WHAT'S NEW?
Loading...

How to setup usb wifi dongle on RaspberryPi with CentOS 7 After Minimal Installation

After installing CentOS 7 minimal, you may not able to connect network in that machine. This will happen because Ethernet/Wifi interfaces are not enabled by default.

First of all setup your keyboard mapping

To permanently change keymap on CentOS 7 to eg. us keymap run the localectl command:
# localectl set-keymap us

(if you use Italian layout put 'it', for USA use 'us' and so on... )

To get the server hostname, type:
# nmcli g hostname
server.example.com
To assign a new hostname (here desktop.example.com) to the server, type:
# nmcli g hostname desktop.example.com
To get the general status of radio, type:
# nmcli radio
WIFI-HW WIFI WWAN-HW WWAN
enabled enabled enabled disabled
To get the status of wifi, type:
# nmcli radio wifi
enabled

To get the list of available wifi access points, type:


# nmcli d wifi
* SSID MODE CHAN RATE SIGNAL BARS SECURITY
AAA Infra 11 54 MB/s 55 ▂▄__ WPA2 802.1X
BBB Infra 11 54 MB/s 54 ▂▄__ WPA1
CCC Infra 1 54 MB/s 49 ▂▄__ WPA1
DDD Infra 11 54 MB/s 44 ▂▄__ WPA1 802.1X
EEE Infra 11 54 MB/s 92 ▂▄▆█ WEP
To connect to a wifi access point specified by a SSID (here EEE), type:
# nmcli d wifi connect EEE password '12345678901234567890123456'

To request that NetworkManager rescans for available access points, type:
# nmcli d wifi rescan


If you want to set a static IP address

Type “nmtui” command in your terminal to open Network manager. After opening Network manager chose “Edit connection” and press Enter (Use TAB button for choosing options).

0 comments:

Post a Comment