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.

switch between wifi client and AP mode with command via terminal

Featured Replies

Hi friends, 

I am using armbian on orangepi lite and it is brilliant! My orange pi zero is on the way. One question - sometimes I want to make wifi AP from my armbian and sometimes I want armbian to be wifi client. Now it connects successfully to my wifi as a client. 

 

I am looking for terminal commands to switch between modes (AP vs. client) on the fly. Any ideas how to do it?

Ideally I would like to run two commands:

- one command to act as wifi AP (with specified wifi name, password, etc.)

- second command to act as wifi client (to connect to specific network with password, etc.)

 

Any idea how to do it, please?

P.S. LAN port (on orange pi zero) should always stay as client (in case wifi goes wrong to be able to simply connect via LAN cable). 

If you have good shell scripting skills it might be possible but it would be easier just to buy a new unit.

With Client you need to use networkmanager (nmcli) or wpa_supplicant to change the settings.
Most likely with client you are using dhcp for the wlan0.

With AP you need to set the wlan0 as static ip for it to work as the subnets routing node (perhaps you can do this with networkmanager profile ?).
Start hostap and isc-dhcp and enable the iptables forwards.

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.