Linux Setup Tips

Hey! Have you recently set up a new Linux install and you want to fix common issues in your config? Then do we have the page for you!

How to fix SSH so it disconnects without having to wait for an hour
nano ~/.ssh/config

ServerAliveInterval 20
ServerAliveCountMax 3


Edit your ssh client config file and add the ServerAlive config options. 20 x 3 = 60 seconds, so this config will make your ssh client after 60 seconds of inactivity. Set these values based on what works best for your situation. I like to keep it low on my laptop because SSH connections will drop when your computer wakes up from sleep and the default timeout is on the order of an hour or something. Aint nobody got time for that.

How to setup the workspace matrix extension
gsettings set org.gnome.desktop.wm.preferences workspace-names "['Editor', 'Browser', 'Databases', 'Files', 'Terminal', 'Misc']"

gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "['<Control><Alt>Left']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "['<Control><Alt>Right']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "['<Control><Alt>Up']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "['<Control><Alt>Down']"

gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-left "['<Control><Shift><Alt>Left']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-right "['<Control><Shift><Alt>Right']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-up "['<Control><Shift><Alt>Up']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-down "['<Control><Shift><Alt>Down']"

gsettings set org.gnome.shell.app-switcher current-workspace-only true


Don't forget your git settings!

git config --global user.name "Rachel Fish"
git config --global user.email "[email protected]"
git config --global credential.helper 'cache --timeout=14400'
git config --global core.editor nano

Tags: Notes | Computers | Nerds