Kirch's Stupid ~ Tricks

Connect to screen without a login shell

       ssh -t tilde.town screen -r
    

The magic here is provided by the `-t` flag, this tells ssh to force a pseudo-tty session, and run the command (here, `screen -r`) without starting a shell. If you have OpenSSH 7.6 you can update your `.ssh/config` file to do this automatically with these lines

       Host tt
         ServerAliveInterval 30
         HostName tilde.town
         RequestTTY force
         RemoteCommand screen -r
    
now you can connect directly to screen with `ssh tt`

Tunnel through an HTTPS connection

          ssh -tt <server with HTTPS proxy> -p 443 ssh -tt tildetown screen -RRD
        

This combines the trick above with another - basic ssh tunneling.

If you have an account on tilde.team or blinkenshell.org, each offers an https proxy - tilde.team's is located at ssh.tilde.team

Ssh in from anywhere you connect to github from

      curl https://github.com/<your user name>.keys >> ~/.ssh/authorized_keys
    

Github stores a copy of all the SSH keys you have authorized with it, this makes it easy to add yourself (or others) to servers and anything else requiring a key.

Remove duplicate ssh keys (without making temporary files)

      vim ~/.ssh/authorized_keys +":sort u|wq"
    

This tells vim to open a file and run a few commands, in this case `:sort u` to uniquely sort the file, and `wq` to write and quit vim. The `|` tells vim that these are two separate commands (like `;` in most programming languages)

Pocket Tildeverse

Get a 64gb+ thumb drive, install Ventoy, then some Linux Installation ISOs and reboot into linux. Install Ventoy on a USB stick, shop around on LibreHunt & DistroWatch. Now you can try out, or install, all sorts of Linux systems easily until you find your favorite!

Permanent Home Tildeverse

Using something like Ventoy, Install different Linux distros directly on your hard-drive. Use GParted make a few different partions, 100gb a piece to be sure it has enough space for all the stuff you wanna try out, smaller for older/lighter systems — use the rest as brtfs storage.

Check Grub (the same software Ventoy uses to let you pick OSes) settings with

sudoedit /etc/default/grub
and make sure `GRUB_DEFAULT` isn't set or the `GRUB_TIMEOUT` options give you plenty of time, and that `GRUB_DISABLE_OS_PROBER=false` is set.

Now you can setup Grub using with the following command, it should detect all the different OS partions and write the configs.

grub-mkconfig -o /boot/grub/grub.cfgs