To connect to a hidden WiFi network, use put this into a script, chmod +x it, and then run it by typing ./path_to_script/script

I put my script in a folder called WirelessConfig and titled it wirelesscfg

sudo mkdir -p /home/chronos/WirelessConfig/
nano wirelesscfg

Now, put this in the text file:

sudo iwconfig wlan0 essid [replace with the ssid of the wireless network]

For example, if my network was “Wireless,” I would type:

sudo iwconfig wlan0 essid Wireless

You should now see your network in the list of networks. Connect to it, and if necessary, use your password. You need to run this script every time you wish to connect. Your password, however, should be saved.

Thanks to darthn8ers, I was able to figure out how to add to a startup script

To get to the file, use these commands:

cd /etc/init
sudo nano netdebug.conf

Now add /path_to_script/script AFTER /usr/bin/broadcomfix.sh

It should look like:

# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# netdebug
#
# enables network debugging once connman has been started.

start on started connman

# Tells upstart not to manage this script as a service so that it
# is only run once.
task

script
  # enable connman wifi debug msgs
  /usr/local/connman/test/debug wifi
  # set wpa_supplicant debug level to 1, disable timestamps, disable show_keys
  dbus-send --system --dest=fi.epitest.hostap.WPASupplicant --print-reply \
    /fi/epitest/hostap/WPASupplicant \
    fi.epitest.hostap.WPASupplicant.setDebugParams \
    int32:1 boolean:false boolean:false
  # add other stuff here
/usr/bin/broadcomfix.sh
/home/chronos/WirelessConfig/wirelesscfg
end script

You will have to wait about 30 seconds to log in, however, so i recommend after logging in once to view this after having logged in once.

 
connect_hidden_wifi.txt · Last modified: 2010/05/04 01:45 by sailerboy
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki