Skip to content

Instantly share code, notes, and snippets.

@WhoAteDaCake
Created September 26, 2018 09:03
Show Gist options
  • Save WhoAteDaCake/045ba16b9be095b261678fdec3460438 to your computer and use it in GitHub Desktop.
Save WhoAteDaCake/045ba16b9be095b261678fdec3460438 to your computer and use it in GitHub Desktop.
Setting up linux server at home

Setting up linux server at home

Wifi

auto lo
ifacelo inet loopback

auto wlo1
iface wlo1 inet dhcp
wpa-ssid SSID
wpa-psk PASSWORD
dns-nameservers 8.8.8.8

to /etc/network/interfaces

SSH

Folllow https://dev.to/zduey/how-to-set-up-an-ssh-server-on-a-home-computer

Run ip addr show to find the ip, it will likelly start with 192

Add PermitRootLogin prohibit-password to /etc/ssh/sshd_config

Stop being requested a password

https://superuser.com/questions/596900/how-to-enable-sudo-commands-over-ssh-without-asking-password Add august ALL=NOPASSWD: ALL at the end of /etc/sudoers to stop being request password on login

Setup auto login after reboot

https://askubuntu.com/questions/819117/how-can-i-get-autologin-at-startup-working-on-ubuntu-server-16-04-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment