Categories
Ubuntu Virtualisation

Rescue Partitions in LVM

Using hypervisors is great. However, you will end up in whole “disks” with partitions in an LVM logical volume. And “from the outside” (e.g. when you are trying to rescue data on that damn disk) is not that easy.

pvscan will give you the lvs. But there inside is nothing you can mount directly.

Solution: kpartx

kpartx -av /dev/mapper/yourvg–yourlv

add map yourvg–yourlvp1 (253:26): 0 2048 linear 253:21 2048
add map yourvg–yourlvp2 (253:27): 0 67102720 linear 253:21 4096

This will read the partition table of the lv and add additional endpoints to the /dev/mapper to mount them.

mount -oro /dev/mapper/yourvg–yourlvp1 /mnt

Source: http://www.microhowto.info/howto/mount_a_partition_located_inside_a_file_or_logical_volume.html

Categories
Family life Geeky

Setup Alpine Linux as Minecraft Server

So I am now using Proxmox VE as hypervisor on my home server, I can use LXC containers easily. And with this, setting up an Alpine Linux Minecraft server from Proxmox LXC template is easy as that.

After the container is up and running and setup-alpine had run, this is all it needs to have everything prepaired to setup your Minecraft server:

# apk update; apk upgrade; apk add openssh openjdk8-jre htop vim screen; rc-update add sshd; rc-status; /etc/init.d/sshd start;
# adduser --disabled-password minecraft
# passwd -u minecraft
Categories
Geeky

Git Repository on your Own Server

Your server is available over SSH? So place your own Git repository there instead of $Github|Gitlab|Whatever.

On the Server:

Create your Storage directory
# mkdir ~/myrepo
Initialise this directory
# git init –bare ~/myrepo

On the Client:

Clone this empty repo
# git clone ssh://myserver:myrepo
Create a first file
# vim README.md
Add, commit and push this as initial commit
# git add README.md
# git commit -m “initial commit” README.md
# git push


Categories
Geeky Redhat Ubuntu

freerdp / xfreerdp

No, no, no, the message “If credentials are valid, the NTLMSSP implementation may be to blame” is kind of misleading.

However, the hostname needs to be the last argument on the list.

Geometry for my business portrait screen:

xfreerdp -u administrator -g 1170x1830 192.168.99.99

 

Categories
Ubuntu Zimbra

Zimbra Bricollage

Damit es nicht vergessen geht. Falsch gemachtes Zimbra Updgrade zusammen mit LTS Upgrade.

Siehe auch https://news.numlock.ch/linux/how-to-upgrade-zimbrazcs-8-8-ga-from-ubuntu-14-04-lts-to-16-04-lts

Zimbra Pakete deinstallieren:
dpkg --get-selections | grep zimbra | awk '{ print $1 }' | xargs apt-get -y remove

Sparse Files:
http://www.gnu.org/software/tar/manual/html_node/sparse.html

Fix LDAP Sparse File:
https://forums.zimbra.org/viewtopic.php?t=60522

How to upgrade with Ubuntu dist-upgrade:
How to upgrade Zimbra/ZCS 8.8 GA from Ubuntu 14.04 LTS to 16.04 LTS
KVM Snapshots http://www.tldp.org/HOWTO/LVM-HOWTO/snapshots_backup.html https://www.thegoldfish.org/2011/09/reverting-to-a-previous-snapshot-using-linux-lvm/
Categories
Uncategorized

… wieder da

Stolze eineinhalb Jahre lang war die Seite weg. Nun ist sie wieder da. Geändert hat sich wenig: Es ist vor Allem (m)ein Notizblog.
Viel Spass beim Stöbern. – Dan

Categories
Ubuntu Virtualisation

Thinlinc on Ubuntu 16.04

Ubuntu 16.04 Xenial is not yet officially supported by Thinlinc 4.6. However, with just some additional dependencies, it is working.

Additional packages needed:
apt-get install lsb-core python python2 python-gtk2 python-apt

Check if /var/lib/lsb exists. If not, create this directory as root.

Install Thinlinc as usual.

To have MATE as desktop environment available, use the following meta package:
apt-get install mate-desktop

In my scenario, I use a single Master server built from a freshly installed Xenial Desktop (Unity), let Unity greeter still exist and have Mate as additional Desktop to choose. Like this, my VDI is accessible on small bandwith connections and with a Raspberry Pi 2 as Thin Client using RPiTC.

Categories
Ubuntu

Linux/Windows Dualboot Zeit-Problem

Echtzeit-Uhr unter Windows auf UTC stellen

Und damit ich es gleich noch kopiert habe:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation

DWORD32 erstellen: RealTimeIsUniversal=1

Categories
Redhat

chkconfig / Redhat Way to select Init-V startup scripts

# chkconfig --list

# chkconfig sgemaster.cluster on
Categories
Ubuntu Uncategorized

git random commit message

git log --pretty=format:"%s" | shuf | head -n 1