Plug your router into your internet socket if you want to share your internet Plug your router into your PC with an Ethernet cable

Type ifconfig into the terminal to determine whether it’s been detected. lshw -C network

Type ifconfig into the terminal to determine whether it’s been detected. lshw -C network

sudo ifconfig down sudo dhclient -r sudo ifconfig up sudo iwconfig essid “ESSID_IN_QUOTES” sudo iwconfig mode Managed sudo dhclient

Add those commands to /etc/rc. local Make /etc/rc. local executable with chmod