Difference between revisions of "Command line wifi configuration"

From Studio Kousagi Wiki
Jump to: navigation, search
(Created page with "If you don't have a remote control for your NeTV, or you lost it, you can still configure wifi. Do the following: * Plug NeTV into the USB port of your computer * wait for NeT...")
 
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
* Plug NeTV into the USB port of your computer
 
* Plug NeTV into the USB port of your computer
* wait for NeTV to boot and register as an ethernet device.
+
* wait for NeTV to boot and register as an ethernet device.
 +
** '''If this is the first time you're plugging the device in''', you'll probably have to wait for the NeTV to boot, register as an ethernet device, and then reboot it. The reason is that there is a 10-second window where the startup script checks for a valid ethernet connection to decide if to turn on sshd or not. If you miss the window, even though netv is booted and connected via USB, sshd will not be on.  
 
* ssh to 10.0.88.1 as root
 
* ssh to 10.0.88.1 as root
 
* from here, you will need to do the following:
 
* from here, you will need to do the following:
Line 10: Line 11:
 
<code>
 
<code>
 
cd /psp
 
cd /psp
 +
 
cat > network_config
 
cat > network_config
 +
 
<configuration allocation="dhcp" encryption="AES" auth="WPAPSK" key="foobar" ssid="yourssid" type="wlan" />
 
<configuration allocation="dhcp" encryption="AES" auth="WPAPSK" key="foobar" ssid="yourssid" type="wlan" />
 
^D
 
^D
 +
 
killall hostapd
 
killall hostapd
 +
 
killall dnsmasq
 
killall dnsmasq
 +
 
/etc/init.d/NetworkManager restart
 
/etc/init.d/NetworkManager restart
 
</code>
 
</code>
 +
 +
This should get your device onto the wifi network with the specified SSID and encryption mechanism. Other example network_config templates:
 +
 +
'''open'''
 +
<configuration allocation="dhcp" encryption="NONE" auth="OPEN" hwaddr="" ssid="ChumbyTest" type="wlan" />
 +
 +
'''WEP'''
 +
<configuration type='wlan' ssid='wepAP' allocation='dhcp' auth='WEP'    key='1234567890' encoding='hex' encryption='WEPAUTO'/>
 +
 +
'''WPA2'''
 +
<configuration allocation="dhcp" encryption="AES" auth="WPAPSK" key="foobar" ssid="yourssid" type="wlan" />

Latest revision as of 17:02, 3 January 2012

If you don't have a remote control for your NeTV, or you lost it, you can still configure wifi.

Do the following:

  • Plug NeTV into the USB port of your computer
  • wait for NeTV to boot and register as an ethernet device.
    • If this is the first time you're plugging the device in, you'll probably have to wait for the NeTV to boot, register as an ethernet device, and then reboot it. The reason is that there is a 10-second window where the startup script checks for a valid ethernet connection to decide if to turn on sshd or not. If you miss the window, even though netv is booted and connected via USB, sshd will not be on.
  • ssh to 10.0.88.1 as root
  • from here, you will need to do the following:

cd /psp

cat > network_config

<configuration allocation="dhcp" encryption="AES" auth="WPAPSK" key="foobar" ssid="yourssid" type="wlan" /> ^D

killall hostapd

killall dnsmasq

/etc/init.d/NetworkManager restart

This should get your device onto the wifi network with the specified SSID and encryption mechanism. Other example network_config templates:

open

<configuration allocation="dhcp" encryption="NONE" auth="OPEN" hwaddr="" ssid="ChumbyTest" type="wlan" />

WEP

<configuration type='wlan' ssid='wepAP' allocation='dhcp' auth='WEP'    key='1234567890' encoding='hex' encryption='WEPAUTO'/>

WPA2

<configuration allocation="dhcp" encryption="AES" auth="WPAPSK" key="foobar" ssid="yourssid" type="wlan" />