-
Notifications
You must be signed in to change notification settings - Fork 0
Change SSID, Channel, or Encryption
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
-
While your PC is connected to an internet accessible network, open this page in a browser and copy the contents: hostapd_manager.sh
-
You will then have to SSH into your Stratux.
-
Once SSH-ed into Stratux, get root access: type
sudo su - -
Type
nano hostapd_manager.sh(This will open a unix text editor) -
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)
-
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)
-
Next type
chmod +x hostapd_manager.shto 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
To reboot just type... reboot and press ENTER
Here is a link to a Reddit post which might help answer a few questions if you're stuck.Trying to create the said, channel change sctipt
####If you change the SSID of your stratux it might need to be changed in your EFB apps also!!!!
Info on WiFi Channels: