Tag Archives: Wireless LAN

NEW Airpi images for 2GB SD Cards

I’ve just published new images for the AirPi with iOS6 support, that fit on a 2GB SD card.
For everyone that wants to save the time, you can download the image directly from my public dropbox.
Both images are based on Rasbian Wheezy and configured withthe following default settings:
– SSH enabled
– User = pi
– Password = raspberry
– locale = en_US.UTF8
– timezone = Europe.Berlin
– broadcast name = AirPi
The file names are:
20130416 Wheezy AirPi with WLAN (works via onboard 3.5mm sound jack)
20130416 Wheezy AirPi with WLAN and USB sound
Write the image to a 2GB SD card using Win32DiskImager.
In case that you prefer to use the USB sound it might be wise to use a USB extension cable for the wifi dongle, in order to place it at a distance from the USB sound dongle. In my setup I experienced quite some interference when the WLAN dongle was close the USB Sound dongle.
 
How to set the WLAN
Both images work with both LAN or WLAN
connect to the Raspeberry Pi via SSH or connect keyboard & monitor directly to the Raspberry Pi
WLAN configuration can be set using the following command:
sudo nano /etc/network/interfaces
look for the lines with
wpa-ssid “YOUR SSID”
wpa-psk “YOUR PASSWORD”
and replace YOUR SSID with the SSID of your network and replace YOUR PASSWORD with the password of your network.
ctrl-x and Y to save changes
sudo reboot
ready!
If there is no WLAN connection the Raspberry Pi will use the LAN connection if available.
How to set the broadcast name of the Airpi
The broadcast name of the Raspberry AirPi can easily by changed, at the command prompt type:
sudo nano /etc/init.d/shairport 
look for the following line
DAEMON_ARGS=”-w $PIDFILE -a AirPi”
and change AirPi in what ever you like.
ctrl-x and Y to save changes
sudo reboot
ready!
I have tested the setup with the Edimax EW-7811Un, the Logilink UA0053 USB soundcard and a generic C-Media USB soundcardUSB Sound
Advertisements

How to setup a USB wlan connection on a Raspberry Pi – alternative method

Last week I received a new Raspberry PI model B with 512MB ram. I tried to enable WLAN using my own instructions for the Edimax WLAN Hi-Speed USB 2.0 EW-7811Un Nano and it didn’t work!?!? Huh?

Some how I got the following error message:

wpa_supplicant: /sbin/wpa_supplicant daemon failed to start

but after some google-ing I found a solution for the problem. In many posts on the web, it is suggested that the problem relates to a “lack of power” issue on the RPi USB. I found out that it is really a configuration issue. Here is how I solved it:

The setup assumes working from a clean Rasbian Wheezy image and applying the latest updates.

Configure the network adapter interface

sudo nano /etc/network/interfaces

you have to make the content of /etc/network/interfaces look like this:

auto lo

iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp

wpa-ssid “YOUR NETWORK SSID HERE”
wpa-psk “YOUR NETWORK PASWORD HERE”

ctrl-x and Y to save the changes

Now just restart your network connections

sudo /etc/init.d/networking restart

or alternatively reboot

sudo reboot

That is it! You don’t have to use the  “/etc/wpa_supplicant/wpa_supplicant.conf” with this setup.

new RPi with Edimax EW-7811Un

Using my Raspberry Pi as a Citrix Client

A few weeks ago I came accross The Raspberry Pi Thin Client project (RPiTC). You can find its website here: http://rpitc.blogspot.nl/

I like to use the IceWeasel Citrix Client that it has onboard. Which works very well! In case you are a user of VMWare, Windows Remote Desktop etc, it also provides ready support for that.

Out of the box, the image works via the onboard Ethernet connection. But I wanted to use the RPiTC via a Wifi connection (Edimax ew-7811un). The RPi can be powered from the USB of my TV screen. I have the HDMI cable, USB WLAN and USB wireless HTPC keyboard connected to the RPI to make the setup complete and ready for work.

This is how I got it to work.

1) connect via SSH

2) logon using the following standard credentials

user: root

password: raspberry

you have to install the following tools:

aptitude install wireless-tools

apt-get install wpasupplicant
configure the wlan settings
nano /etc/wpa.conf
the file should look like this:
network={
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
ssid=”YOUR-SSID”
psk=”WPA-PASSWORD”
}
ctrl-x and Y
Configure your network interfaces
nano /etc/network/interfaces
the file should look like this:
auto lo
iface lo inet loopback
# auto eth0
# iface eth0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa.conf
ctrl-x and Y
reboot
For anyone that just wants an SD-card image, the original and the one with wlan support can be found in my public dropbox. (Files are currently being uploaded)
If you use the WLAN image you will have to edit the WLAN settings.

1) connect via SSH

2) logon using the following standard credentials

user: root

password: raspberry

configure the wlan settings
nano /etc/wpa.conf
by changing the following lines
ssid=”YOUR-SSID”
psk=”WPA-PASSWORD”
ctrl-x and Y
reboot
PS: note that the original image RPiTC06022013.IMG fits on a 1GB card (the unpacked image is 1000MB). The RPiTC06022013-WLAN.IMG was made on my 4GB SD card (I didn’t have any smaller SD-cards), therefor this image is much bigger, despite the fact that the software doesn’t need all that space.
Enjoy!

How to setup a USB wlan connection on a Raspberry Pi

A little while ago I got myself a Raspberry Pi to tinker around. I didn’t know anything about Linux / Debian / Wheezy but I was inspired by the many different kind of applications of the Raspberry Pi that I read about on the internet.

In the meantime I’ve managed to turn the Raspberry into an Airpi. It took me some time to figure everything out, but I finally got there.

Every time I want to change/add some functionality I find myself spending lots of time Google-ing for the right solution. The solutions that work I’ll share on this blog so you can save some time achieving the same.

Today I figured out how to setup and enable the USB wlan connection on the Raspberry Pi and make it connect to my wireless network.

update, I’ve also posted an alternative solution: How to setup a USB wlan connection on a Raspberry Pi – alternative method

I got two usb wlan adapters which I both tested and seemed to work with this method:

Edimax WLAN Hi-Speed USB 2.0 EW-7811Un Nano

WLAN 11n USB Micro Stick US300EX Lite

First you need to configure the network adapter interface

sudo nano /etc/network/interfaces
#———————————————-
# This file describes the network interfaces available on your system
# and how to activate them.
# The loopback network interface
auto lo
iface lo inet loopback
# the LAN network interface
auto eth0
iface eth0 inet dhcp
# the WLAN network interface
auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

#———————————————-

Then you need to set the wlan parameters

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
#———————————————-
network={
ssid=”put your SSID here”
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
auth_alg=OPEN
psk=”put your psk here”
}
#———————————————-

Then you need to reboot

sudo reboot