Configuration of the Thinkpad T470p laptop for a remote use.
Update GRUB settings
Install grub-customizer (not the best way, but do the job).
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
Open grub-cutomizer, change the boot order and set a timeout of 3 seconds.
Power management (lid closure)
Open logind.conf.
sudo vim /etc/systemd/logind.conf
Uncomment HandleLidSwitch
and HandleLidSwitchExternalPower
and set it to ignore
.
...
#HandleHibernateKey=hibernate
#HandleHibernateKeyLongPress=ignore
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
...
Install SSH server
Install openssh-server
and reboot (i didn’t found sshd.service).
sudo apt install openssh-server
reboot
On the client side, generate the SSH key and copy it to the turtle
remote machine (will ask for password)
ssh-keygen -t rsa
ssh-copy-id turtle
Check if the SSH connection is asking again for a password.
ssh turtle