Wifi on ubuntu server

I start to build my home lab and starting building my ubuntu server on my old thinkpad laptop.
I will use this machine to learn 
  • Linux command and practice command
  • Running docker on this machine 

Start first with setup wifi on this laptop.
I start setting up wifi via netplan, the wifi is not setup yet, there is no wifi setting in netplan folder.

sudo touch /etc/netplan/01-jimmy-network.yaml 
sudo vi /etc/netplan/ 01-jimmy-network.yaml
 
Type the following into the file 01-jimmy-network.yaml 

 network:
  version: 2
  renderer: networkd
  wifis:
    wlan0:  # Replace with your interface name
      dhcp4: true
      optional: true
      access-points:
        "YOUR_SSID":
          password: "YOUR_PASSWORD"


saved and exit the file with :wq

sudo netplan apply
 
It will display some error due to the permission
you can run this command

sudo chmod 600 /etc/netplan/01-jimmy-network.yaml

 
Now try again, it should work.
Good luck to you !! 

Comments

Popular posts from this blog

List, Typle and Set in python

Commands homelab