XBMC Live setting up Wifi

For those interested in setting up Wifi using XBMC Live or Ubuntu, let’s start installing the necessary packages:

sudo apt-get install wireless-tools wpasupplicant

The packages installed will allow us to configure wifi and encrypt the password. My network is configured with WPA2 but the configuration procedure for others kind of networks should be quite the same. After we’ve installed the packages we should be able to encrypt passphares with the following command:

wpa_passphrase your_essid your_ascii_key

your_essid should be replaced by the name of the network. your_ascii_key should be replaced with the password. This is just an example: wpa_passphrase 'Wireless Home' password100

The result should be:

network={
ssid="Wireless Home"
#psk="12345678"
psk=fe727aa8b64ac9b3f54c72432da14faed933ea511ecab1 5bbc6c52e7522f709a
}

Now we have the network and key encrypted we can start adding this information to the interfaces configuration file:

sudo pico /etc/network/interfaces

Add the following lines of code, the wpa-psk line should match the result from wpa_passphrase:

auto wlan0
iface wlan0 inet dhcp
wpa-ssid Wireless Home
wpa-ap-scan 1
wpa-proto WPA #RSN
wpa-pairwise TKIP #CCMP
wpa-group TKIP #CCMP
wpa-key-mgmt WPA-PSK
wpa-psk ffe1b80746215def132a6afa2f192c90f5bed672b5793f17362086a7624ebe9d

Now we should restart the networking services:

sudo /etc/init.d/networking restart

By typing ifconfig we can validate that we’re connected to the network. In this tutorial I’m using TKIP encryption. For different kind of encryptions please have a look at these manuals: https://help.ubuntu.com/community/WifiDocs/WiFiHowTo and http://ubuntuforums.org/showthread.php?t=202834

Comments

  1. Stijn says:

    WiFi bleek op mijn Acer Revo 3610 erg onstabiel bij het gebruik van de standaard driver. Tip: gebruik ndiswrapper. Is even wat geknoei, maar de verbinding loopt nu als een trein.

  2. Maikel says:

    Mooie beschrijving denk ik, ik heb al een tijdje geleden ook mijn manier gepost.
    Is alweer een tijdje geleden.
    Echter heb ik nog nergens kunnen achterhalen hoe ik nu de boel op N aan de praat krijg.
    De 330HT ondersteund N, en ik heb een N accesspoint, maar ik krijg nooit verbdinging op N alleen maar op G :-(

    Is er iemand die met de Live c.d. geinstalleerd op zijn harddisk van de 330HT het wel aan de praat heeft gekregen op de N standaard?

  3. aliadko says:

    wpa_passphrase your_essid your_ascii_key

    Ik krijg steeds de melding dat wpa_passphrase: command not found?

    Wat doe ik verkeerd? Normaal zijn de wireless-tools wpasupplicant al geïnstalleerd. Ook als ik ze wil installeren met de sudo apt-get geeft hij aan dat ze reeds geïnstalleerd zijn.

    Wie o wie kan mij helpen?

  4. Nice! Kan ik eindelijk mijn bootscript voor wifi weggooien!

  5. Anthony says:

    Thank … that was perfect

  6. Dre says:

    @aliadko: voordat je begint met je command te typen, typ eerst “sudo su -” Zie http://www.mini-itx.com/projects/xbmc-ion/module/8

  7. Pav says:

    I configured wifi on 2 machines with xbmc and all that I needed in /etc/network/interfaces is just this:

    auto wlan0
    iface wlan0 inet dhcp
    wpa-ssid
    wpa-psk

    I use WPA-TKIP encryption and struggled to find this. I don’t understand why this simple config is not mentioned anywhere on the net!

  8. Pav says:

    Oh well, some content got removed. Here is the right lines on interfaces file:

    auto wlan0
    iface wlan0 inet dhcp
    wpa-ssid “SSID without quotes”
    wpa-psk “Unencrypted password without quotes”

  9. Jorrit says:

    Hoe kom ik op XBMC Live in terminal? ik heb de volgende dingen geprobeerd:
    - tijdens opstarten shift ingedrukt houden.
    - bij opstarten ctrl+alt+[f2-f6] ingedrukt houden

    Ook als XBMC helemaal opgestart is werken deze combinatie’s ook niet…

    Ik heb de XBMCFreak Live cd geïnstalleerd.

  10. slingie says:

    Daar ben ik ook nieuwsgierig naar..

    ik heb ook de xmbc live cd erop staan, maar hoe kan ik de wifi adapter aktiveren?

  11. slingie says:

    ik heb dit werl gevonden. alleen ik heb er geen usb toetsenbord aan hangem

    ust follow those instructions, substituting your network details in the setup. You’ll need to drop to the command-line shell to enter the commands. You can do this by keying CTRL+ALT+F2 once XBMC is loaded (to swap back to graphical mode – CTRL+ALT+F7)

  12. bassman says:

    I have both the 10.04 gnome session and xbmc standalone session and i changed the /etc/network/interfaces file to

    auto wlan0
    iface wlan0 inet dhcp

    Then I restarted networking as noted and now when i automatically start xbmc instead of gnome, it recognizes my rtl8187 wifi adapter without any problems since I have my network ssid/pw already saved from my gnome session in wicd.

    I did get this part:

    sudo apt-get install wireless-tools wpasupplicant

    and put all the stuff for the interfaces file it says on this page but it didn’t work until i just had:

    auto wlan0
    iface wlan0 inet dhcp

    so i cant say if the wpasupplicant helped or not but i did get it.

  13. bassman says:

    OK, not by choice I got to verify what I said above. I had a problem and had to re-install 10.04 LTS. I installed xbmc & xbmc standalone through the software center along with the codecs and all. I also saved the wifi password through the regular network manager gui only. I did not install wpasupplicant or remove the regular network manager. All I had to do was change the /etc/network/interfaces file to

    auto wlan0
    iface wlan0 inet dhcp

    After restart, connects without any prompts or problems.

  14. xbmcrevo says:

    I have a non-broadcasting access point with WPA. I used your settings and changed one line to have my ap work.

    change the following line
    wpa-ap-scan 1
    to
    wpa-scan-ssid 1

  15. toby says:

    Hey!
    Followed your guide totally, but still I keep getting the “Network is down” error, and its not really :)
    xbmcrevo sollution didnt work either
    Any ideas ?

Add Comment Register

Leave a Comment

*