Linux Configuration

Add new user

$ sudo adduser --ingroup users <USERNAME>
$ sudo adduser <YOUR_USERNAME> sudo
$ logout
$ sudo deluser --remove-home user

Setup Wifi

  • Generate WPA passphrase for your WiFi
$ wpa_passphrase <ssid> <password>
  • Update /etc/network/interfaces
$ sudo nano /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
    wpa-ssid <ExampleWifi>
    wpa-psk <wpa-psk-generated-by-wpa-passphrase-command>

More wpa_supplicant usage examples can be found at [1].

  • Update system time
$ sudo apt-get install ntp

Useful Commands

curl: download a file

$ curl -O link-to-remote-file

su: get root privileges

exit: log out of “su” mode, shortcut: Ctrl+D