Commands Linux
Create rsh rsa key and add to authorized_keys
ssh-keygen -t ed25519 -C "your_email@example.com"
cat ~/.ssh/id_ed25519.pub
# In other machine
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3..." >> ~/.ssh/authorized_keys
# check authorized_keys rights
ls -l ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
Troubleshooting
Check if ssh allows public key authentication
nano /etc/ssh/sshd_config
# check if the following lines are uncommented
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
use scp to copy file
# copy directory from host to remote
scp -r username@remote:/path/to/remote/dir /path/to/local/dir
Find file by name
find ./ -name "filename"
Screen
Setup custom screen resolutions
cvt 2560 1080 30
# 2560x1080 29.97 Hz (CVT) hsync: 33.03 kHz; pclk: 106.75 MHz
Modeline "2560x1080_30.00" 106.75 2560 2640 2896 3232 1080 1083 1093 1102 -hsync +vsync
xrandr --newmode "2560x1080_30.00" 106.75 2560 2640 2896 3232 1080 1083 1093 1102 -hsync +vsync
xrandr --addmode HDMI-1 2560x1080_30.00
Keyboard
Change keyboard layout
sudo loadkeys fr
APT
Sources location
ls /etc/apt/sources.list.d/
User
Find current user uuid
id -u
Find group name
id -g -n tom
Find ip on network
sudo arp-scan --interface=wlp3s0 192.168.1.0/24