Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help me to setup a Wifi AP via command line

Featured Replies

HI, sorry if I bother the community so much.

Is there a way (I'm sure that is) to setup armbian without DE and without eth connection?

I've noticed that I need wired connection to launch armbian-config. Can I do the same with a wifi USB stick? How? 

If I want to use armbian as wireless AP, do I need to install the DE? Can you guide me?

Thank you in advance

  • Author
3 hours ago, Igor said:

 

Desktop Environment.

 


Yes. You need a serial connection and temporal network connection to setup AP armbian-config way. 

or build a custom image with support for

 

 

 

Can you link me a guide or explain me some steps?

I achieve to connect to a wifi hotspot with armbian-config but i need to configure it as AP for an router that as PEAP WPA2 security. For what I've tested this security is not supported out of the box for Linux...

Thank you in advance for your patience

I have another issue.

 

I can setup WiFi using nmtui. But it requires connect using ethernet or TTL. If I just set wpa_supplicant.conf, WiFi not works. Do we have any tutorial for Armbian how to setup wifi by editing config on sd card?

9 hours ago, AZ8 said:

I have another issue.

 

I can setup WiFi using nmtui. But it requires connect using ethernet or TTL. If I just set wpa_supplicant.conf, WiFi not works. Do we have any tutorial for Armbian how to setup wifi by editing config on sd card?

Most of the work on Armbian's side is to provide a working kernel where Debian or Ubuntu is set up on top. The OS itself contains minimal adjustments only. Therefore tutorials outthere that are ment to be used on your causal PC should work for Armbian as well.

** Network Manager CLI **

 

use NMCLI

$ nmcli device status
DEVICE  TYPE      STATE         CONNECTION         
enp1s0  ethernet  connected     Wired connection 1 
wlp2s0  wifi      disconnected  --                 
lo      loopback  unmanaged     --  

 

to check radio

$ nmcli radio
WIFI-HW  WIFI     WWAN-HW  WWAN    
enabled  enabled  enabled  enabled 


Let's see what's out there... scan for AP's

$ nmcli dev wifi list
SSID                  MODE   CHAN  RATE       SIGNAL  BARS  SECURITY 
MYSSID         Infra  11    54 Mbit/s  100     ▂▄▆█  WPA2     
MYSSID         Infra  132   54 Mbit/s  100     ▂▄▆█  WPA2     
SOMEOTHERSSID  Infra  52    54 Mbit/s  49      ▂▄__  WPA2     
MYSSID         Infra  149   54 Mbit/s  45      ▂▄__  WPA2     
MYSSID         Infra  11    54 Mbit/s  42      ▂▄__  WPA2     
SOMEOTHERSSID  Infra  1     54 Mbit/s  27      ▂___  WPA2

 

Now, let's connect to WiFi (note, one must be root or sudo access)


Connecting to an open AP

$ nmcli device wifi connect <SSID|BSSID>

For a password protected AP, see below

$ nmcli device wifi connect <SSID|BSSID> password <password>

 

Cool, eh?

 

To set up a device as an AP - this assumes that WLAN0 is the wireless interface...

$ nmcli dev wifi hotspot ifname wlan0 <SSID> password "<password>"

 

Cool, eh?

On 6/21/2020 at 12:42 AM, sfx2000 said:

 

To set up a device as an AP - this assumes that WLAN0 is the wireless interface...



$ nmcli dev wifi hotspot ifname wlan0 <SSID> password "<password>"

 

 

Thank you for the tips. However when I enter the above I get the error Unknown parameter <SSID>. I passed <SSID> as ARMBIAN_WiFi. Any ideas on why this is the case?

Edited by TRS-80
move reply out of quote

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.