==== As root ==== apt update apt upgrade export NU=USER adduser $NU usermod -aG sudo $NU ==== As created user ==== * ''sudo apt install emacs-nox'' * if root has correct public cert: * ''mkdir -p ~/.ssh && sudo cp /root/.ssh/authorized_keys ~/.ssh/. && sudo chown $USER:$USER ~/.ssh/authorized_keys'' * otherwise: * ''mkdir .ssh && chdir .ssh && emacs -nw authorized_keys'' * add public rsa * logout, login to test that cert is working * ''sudo emacs -nw /etc/ssh/sshd_config'' and change ''PasswordAuthentication'' from ''yes'' to ''no'' * ''sudo systemctl restart sshd.service'' * in home directory git clone https://whyameye@bitbucket.org/whyameye/.emacs.d.git ==== Optional ==== * consider [[lwc:linux:postfix|setting up a postfix smtp relay]]