Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:setting_up_wifi_at_boot [2012/10/25 01:22] – [Locate commands] ethanHwiki:setting_up_wifi_at_boot [2012/10/25 01:45] (current) – [Prerequisites] ethanH
Line 1: Line 1:
 ====== Automatically Connect To A WPA Protected Access Point at Boot ====== ====== Automatically Connect To A WPA Protected Access Point at Boot ======
 ==== Prerequisites ==== ==== Prerequisites ====
-A prerequisite is to read the instructions here: [[wiki:setting_up_wifi|Easy Way: wicd]].\\ +A prerequisite is to read the instructions here: [[wiki:setting_up_wifi|Setting Up Wifi]].\\ 
-To use this guide, one must follow the instructions under the **More Advanced Setup: using wireless tools** section and the **Connecting to a WPA-PSK secured access point**.\\+To use this guide, one must follow the instructions under the [[wiki:setting_up_wifi#more_advanced_setupusing_wireless_tools|Advanced Setup Using Wireless Tools]] section and the [[wiki:setting_up_wifi#connecting_to_a_wpa-psk_secured_access_point|Connecting to to a WPA-PSK Secured Access Point]] section.\\
  
 Specifically you must have a "wpa_configure.conf" file and these commands must connect you to the desired access point. Specifically you must have a "wpa_configure.conf" file and these commands must connect you to the desired access point.
Line 9: Line 9:
 udhcpc -i *interface* udhcpc -i *interface*
 </code> </code>
- 
 ==== Locate commands ==== ==== Locate commands ====
  
Line 16: Line 15:
 We can do this using the **find** command. We can do this using the **find** command.
  
-<code>find / -name'filename' 2> /dev/null</code>+<code>find / -name 'filename' 2> /dev/null</code>
 For me: For me:
 <code>find / -name 'wpa_supplicant' 2> /dev/null</code> <code>find / -name 'wpa_supplicant' 2> /dev/null</code>
Line 26: Line 25:
 </code> </code>
 And And
-<code>find / -name'udhcpc' 2> /dev/null</code>+<code>find / -name 'udhcpc' 2> /dev/null</code>
 Results in: Results in:
 <code>/sbin/udhcpc <code>/sbin/udhcpc
Line 34: Line 33:
 So I write down the two file locations:  **/usr/local/sbin/wpa_supplicant** and **/sbin/udhcpc** So I write down the two file locations:  **/usr/local/sbin/wpa_supplicant** and **/sbin/udhcpc**
  
-==== Move Config File ==== +==== Move The Config File ==== 
-You should have a file named **wpa_configure.conf**.  This file needs to be persistent between reboots.\\ +You should have a file named **wpa_configure.conf**. 
-Thus you must store it a place that is saved between reboots.  These locations are specified in the file **/opt/.filetool.lst**.\\+If you do not have a **wpa_configure.conf** file, please read these instructions: [[wiki:setting_up_wifi#connecting_to_a_wpa-psk_secured_access_point|Connecting to to a WPA-PSK Secured Access Point]].\\  
 +This file needs to be persistent between reboots.  Thusyou must store it a place that is saved between reboots.\\ These locations are specified in the file **/opt/.filetool.lst**.\\
 I chose to keep my **wpa_configure.conf** file in the **/opt** directory, but you can save it anywhere as long as that location persists between reboots. I chose to keep my **wpa_configure.conf** file in the **/opt** directory, but you can save it anywhere as long as that location persists between reboots.
- 
 ==== Editing bootlocal.sh ==== ==== Editing bootlocal.sh ====
 Finally we need to tell Tiny Core that we want to run these specific commands at boot.\\ Finally we need to tell Tiny Core that we want to run these specific commands at boot.\\
Line 56: Line 55:
   * My /path/to/udhcpc = **/sbin/udhcpc**   * My /path/to/udhcpc = **/sbin/udhcpc**
   * The " &" tells the command to run in the background which is what we want.   * The " &" tells the command to run in the background which is what we want.
-So my bootlocal.sh file additions look like:+So my **bootlocal.sh** file additions look like:
 <code> <code>
 # Setup Wireless # Setup Wireless
 /usr/local/sbin/wpa_supplicant -iwlan0 -c/opt/wpa.conf & /usr/local/sbin/wpa_supplicant -iwlan0 -c/opt/wpa.conf &
 /sbin/udhcpc -i wlan0 & /sbin/udhcpc -i wlan0 &
 +</code>
 +
 +==== Save Your Changes ====
 +Finally, we must save all of our changes.\\ This will save changes to our **bootlocal.sh** file and also allow us to save our **wpa_configure.conf** file.
 +
 +To save your changes run:
 +<code>
 +sudo filetool.sh -b
 </code> </code>
Print/export
QR Code
QR Code wiki:setting_up_wifi_at_boot (generated for current page)