Skip to content

Change SSID, Channel, or Encryption

peepsnet edited this page Apr 12, 2016 · 11 revisions

This script will allow you to change the SSID of your Stratux, Change the WiFi channel, and enable or disable WiFi security.

Lets assume we are using a Stratux not connected to a internet accessible network.

If your Stratux is connected to an internet accessible network then replace steps 4-6 with

wget -c https://raw.githubusercontent.com/cyoung/stratux/master/image/hostapd_manager.sh

Creating the script on your Stratux:

  1. While your PC is connected to an internet accessible network, open this page in a browser and copy the contents: hostapd_manager.sh

  2. You will then have to SSH into your Stratux.

  3. Once SSH-ed into Stratux, get root access: type sudo su -

  4. Type nano hostapd_manager.sh (This will open a unix text editor)

  5. With the text copied you just have to paste the text into your SSH app(If you are using putty just right click. If that fails you will need to google how to paste with your SSH application)

  6. When all the text is copied into the editor press CTRL+X (to exit the editor), then press "y" (to confirm you want to save the file), then press ENTER (to except the file name)

  7. Next type chmod +x hostapd_manager.sh to make the file executable

We are now ready to run the script but you will need to know how!

Typing ./hostapd_manager.sh will run the script and display the help file but not make any changes to your Stratux.

    #### Stratux HOSTAPD Settings ####


Help documentation for hostapd_manager.sh.

Basic usage: hostapd_manager.sh -s ssid -c chan -e pass

Command line switches are optional. The following switches are recognized.
 -s  --Sets the SSID to ssid. "-s stratux"
 -c  --Sets the channel to chan. "-c 1"
 -e  --Turns on encryption with passphrase pass. 8-63 Printable Characters. Cannot be used with -o. "-e password!"
 -o  --Turns off encryption and sets network to open. Cannot be used with -e.
 -h  --Displays this help message. No further functions are performed.

Example: hostapd_manager.sh -s stratux -c 1 -e N3558D

Examples:

./hostapd_manager.sh -s stratux-N3558D -This will set the SSID(WiFi name) of your Stratux to "stratux-N3558D"

./hostapd_manager.sh -c 6 -This will set the wireless channel to 6. Channels must be from 1 to 13

./hostapd_manager.sh -e squawk1200 -This will turn on WiFi Security and set the password to "squawk1200". Passwords must be from 8 to 63 characters

./hostapd_manager.sh -o -This will remove the WiFi security.

You can also combine options like this:

./hostapd_manager.sh -s stratux-N3558D -e squawk1200 -c 6 -SSID, Security, and Channel will all be changed.

./hostapd_manager.sh -s stratux -o - This will set the SSID to stratux and remove Security

When you are done monkeying around don't forget to reboot!

To reboot just type... reboot and press ENTER


####If you change the SSID of your stratux it might need to be changed in your EFB apps also!!!!


Info on WiFi Channels:

More info on wifi channels

Choosing the best WIFI channel

Clone this wiki locally