Posts

Showing posts from April, 2020

Creating an md RAID 6, LUKS, LVS filesystem for eventual private git

# Check the old disks for data sudo cryptsetup luksOpen /dev/sdc TESTING udisksctl mount -b /dev/mapper/TESTING udisksctl unmount -b /dev/mapper/TESTING sudo cryptsetup luksClose /dev/mapper/TESTING sudo cryptsetup luksOpen /dev/sdd TESTING udisksctl mount -b /dev/mapper/TESTING udisksctl unmount -b /dev/mapper/TESTING sudo cryptsetup luksClose /dev/mapper/TESTING sudo cryptsetup luksOpen /dev/sdf TESTING udisksctl mount -b /dev/mapper/TESTING udisksctl unmount -b /dev/mapper/TESTING sudo cryptsetup luksClose /dev/mapper/TESTING sudo cryptsetup luksOpen /dev/sdg TESTING udisksctl mount -b /dev/mapper/TESTING udisksctl unmount -b /dev/mapper/TESTING sudo cryptsetup luksClose /dev/mapper/TESTING # Zero the old disks MBR before making RAID 6 # dd if=/dev/zero of=/dev/sdc  bs=1M count=1 # dd if=/dev/zero of=/dev/sdd  bs=1M count=1 # dd if=/dev/zero of=/dev/sdf  bs=1M count=1 # dd if=/dev/zero of=/dev/sdg  bs=1M count=1 # Create a new partition for the whol

Fastest rsync between directly connected Linux boxes

For my own reference, after experimenting, the fastest transfers for copying an Epic Stores Games (lutris deployment) between hosts connected via a cat6 cable: RSYNC_CONNECT_PROG='ssh -o "Compression no" -c aes128-ctr %H' time rsync -a --delete --progress 6.6.6.11:Games/epic-games-store .

Remote X11 Session with GPU

Linux: running remote X11 server with GPU access There are times where it is convenient to have a remote X11 session with access to the remote GPU.  I have used this process for many things, including running a video game remotely (for testing purposes.) Documenting this process here for me as much as anyone else who finds it useful. Assumptions root on local and remote boxes running Xubuntu (not a requirement but you'll need to modify some of these steps) latest VirtualGL is 2.6.3 and you are running 64-bit OS Setup On the remote server: Install VirtualGL cd /tmp/ && curl -sL https://sourceforge.net/projects/virtualgl/files/2.6.3/virtualgl_2.6.3_amd64.deb/download > virtualgl_2.6.3_amd64.deb sudo dpkg -i virtualgl_2.6.3_amd64.deb sudo apt-get -f install sudo apt-get install tigervnc-standalone-server sudo service lightdm stop sudo /opt/VirtualGL/bin/vglserver_config ## follow the prompts sudoedit /usr/share/lightdm/ligh