Jump to content

Help me to setup a Wifi AP via command line


psygnosis

Recommended Posts

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

Link to comment
Share on other sites

3 minutes ago, Werner said:

DE?

 

Desktop Environment.

 

56 minutes ago, psygnosis said:

to setup armbian without DE and without eth connection?


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

or build a custom image with support for

 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

** 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?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines