Skip to content

Instantly share code, notes, and snippets.

@anisyanka
Last active February 27, 2024 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anisyanka/8a6cc1b80114f9b33cced0063d238425 to your computer and use it in GitHub Desktop.
Save anisyanka/8a6cc1b80114f9b33cced0063d238425 to your computer and use it in GitHub Desktop.

SSH setup

WIFI setup

Show available networks

nmcli dev wifi list

# or
sudo iw dev wlan0 scan | grep SSID

Connect to available AP*

nmcli device wifi connect <SSID> password "PASSWORD"

# After these lines RPI will automatically connect to network if available
nmcli device set wlan0 autoconnect yes
sudo reboot

Turn off power managment for interface:

/sbin/iwconfig wlan0 power off

Add this line to /etc/rc.local Then reboot.

Change host name if you wand

sudo hostnamectl set-hostname <newhostname>

Than add your hostname to /etc/hosts Like pointed in this

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