OS/Ubuntu

Raspberry Pi Ubuntu Server 20.04 LTS wifi setting

강서버 2020. 10. 4. 06:00
728x90
반응형

1. network device list

Ubuntu@ubuntu$ ls /sys/class/net

eth0    lo    wlan0

 

2. network setting file edit

Ubuntu@ubuntu$ sudo vi /etc/netplan/50-cloud-init.yaml

 

before

=======================================================================================

network:

    ethernets:

        dhcp4: true

        optional: true

=======================================================================================

 

add

=======================================================================================

network:

    ethernets:

        dhcp4: true

        optional: true

    wifis:

        wlan0:

            optional: true

            access-points:

                "SSID_NAME":

                password: "PASSWORD"

            dhcp4: true

=======================================================================================

 

3. netplan apply

$ sudo netplan apply

or

debug mode apply

$ sudo netplan --debug apply

 

4. confirm

$ ip a

 

참조 : https://linuxconfig.org/ubuntu-20-04-connect-to-wifi-from-command-line

728x90
반응형

'OS > Ubuntu' 카테고리의 다른 글

Ubuntu Intel graphics driver install  (0) 2020.10.19
Ubuntu 20.04 LTS + VMware Workstation Player 16.x  (0) 2020.10.14
Raspberry Pi Ubuntu Server 20.04 LTS default login credentials  (0) 2020.10.04
Ubuntu Music Player  (0) 2020.09.28
HDD, SSD Auto Mount  (0) 2020.09.25