This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
configuration [2012/10/06 10:51] 85.218.109.130 created |
configuration [2012/10/06 12:19] (current) 85.218.109.130 [command line network howto] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== command line network howto ====== | ||
- | |||
- | * which network card(s) do i have? | ||
- | |||
- | <code>lshw -C network</code> | ||
- | |||
- | |||
- | * external wireless card connected | ||
- | |||
- | <code>lspci | grep USB</code> | ||
- | |||
- | |||
- | * display and configure network interfaces | ||
- | |||
- | <code>ifconfig</code> | ||
- | |||
- | |||
- | * display and configure wireless network interfaces | ||
- | |||
- | <code>iwconfig</code> | ||
- | |||
- | connect to a network: | ||
- | |||
- | <code>iwconfig [iface(wlan0)] essid "[essid]" key s:[password]</code> | ||
- | |||
- | need to have wpasupplicant installed, and also allow [iface] in /etc/network/interfaces | ||
- | |||
- | <code> | ||
- | #allow-hotplug wlan0 | ||
- | auto wlan0 #bring it on boot, optional | ||
- | iface wlan0 inet dhcp | ||
- | #optionally, hardcode the network settings here | ||
- | wpa-ssid [essid] | ||
- | wpa-psk [password] | ||
- | </code> | ||
- | |||
- | then, start the [iface] | ||
- | |||
- | <code>ifup wlan0</code> | ||
- | |||
- | or restart it | ||
- | |||
- | <code>ifdown wlan0 | ||
- | ifup wlan0 | ||
- | </code> | ||
- | * put the interface in promiscuous mode | ||
- | |||
- | <code>ifconfig [interface] down | ||
- | iwconfig [interface] mode Monitor | ||
- | ifconfig [interface] up </code> | ||
====== x and desktop configuration ====== | ====== x and desktop configuration ====== | ||
Line 116: | Line 66: | ||
then add (or uncomment) this line in the ~/.fluxbox/startup file (to make idesk autostart): | then add (or uncomment) this line in the ~/.fluxbox/startup file (to make idesk autostart): | ||
<code>idesk &</code> | <code>idesk &</code> | ||
+ | |||
+ | ====== autologin ====== | ||
+ | |||
+ | http://b.fluff.cc/2012/02/xbmc-auto-login-auto-start-auto-restart.html | ||
+ | |||
+ | mindgetty |