RaspyFi » debian http://www.raspyfi.com Pi never sounded so good! Mon, 16 Dec 2013 15:20:41 +0000 it-IT hourly 1 Wi-fi on Raspberry Pi, a simple guide http://www.raspyfi.com/wi-fi-on-raspberry-pi-a-simple-guide/ http://www.raspyfi.com/wi-fi-on-raspberry-pi-a-simple-guide/#comments Tue, 19 Mar 2013 16:24:32 +0000 admin http://www.raspyfi.com/?p=321 Since the Raspberry Pi comes only with a wired network, it could be useful for lot of us to get it wi-fi ready. Wi-fi on Raspberry Pi can be achieved with little effort and at cheap expences. We do only

L'articolo Wi-fi on Raspberry Pi, a simple guide sembra essere il primo su RaspyFi.

]]>
Since the Raspberry Pi comes only with a wired network, it could be useful for lot of us to get it wi-fi ready. Wi-fi on Raspberry Pi can be achieved with little effort and at cheap expences.
We do only require a compatible wi-fi dongle, and the best candidate for the job is the Edimax EW-7811Un.
These are the features:

  • Supports 150 Mbps 802.11n, so if you have a N network, you’ll have enough bandwith to stream even Hi-res FLACs
  • Low power consumption, it can work directly attached to the Pi withouth a powered usb hub
  • Works automatically with Raspbian, since it’s drivers are included
  • It’s very small, so there’s plenty of space left on the Pi to attach your USB DAC or USB Dongle
  • It’s quite cheap, you can find easily at prices above 10 euros (see later)

You can buy it on Ebay

or here on Amazon .

Now we’ll start the setup of the WI-Fi on Raspberry Pi. RaspyFi comes with Wicd-curses already installed and running, this a user friendly gui  wi-fi setup utility. With Wicd-curses the setup of Wi-Fi on Raspberry Pi is simple and straightforwarding. You should access the Pi’s shell, this can be done in 2 ways:

  • Get a monitor and a keyboard attached to the Pi
  • Connect trought SSH, the Pi has to be connected to a wired network to do this. Refer to this guide to do this.

 

If you’re using Raspbian, and you’ve not installed Wicd-curses just type:
sudo apt-get update
sudo apt-get install wicd-curses

Ok, now we are ready to start, type:
sudo wicd-curses
You’ll get a list of the wireless network found by the Raspberry PI

raspberry wi-fi

 

 

Now, you can select your Wi-fi Network, just highlight it with arrow keys and press right arrow key to edit its properties:

raspberry wi-fi1

 

Sorry for Italian language, (not being nationalist!!) but you should be able to guess what these lines mean. You just insert the WEP or WPA KEY. If you wish, you can assing a static ip, configure alternative dns and so on. Remember to check the auto connection.

If you wish to have static ip, just put the ip you desire (e.g. 192.168.1.3), the subnet mask (255.255.255.0) and your router’s ip (e.g.: 192.168.1.1). Please note that the Ip of the Raspberry Pi and the gateway ip should have the same index, so if your router has 192.168.1.ip then also the raspberry pi should have the same, the only thing that will change is the last ip digits (192.168.1.ip).

 

When you’re done, just press F10 to save, then it should connect!

 

Now you’ve Wi-Fi on Raspberry Pi! Feel confident to try other wi-fi dongles other than the one suggested here. You can check the Raspberry Pi compatiblity list.

The Main WICD-CURSES windows, will also tell you the ip of your Raspberry Pi, so you can be able to connect to it via GMPC or your preferred mpd client.

 

UPDATE

Since I got some reports of Wi-Fi dongle not being recognized, this is how you can sort it out:

Enter in wicd-curses,
sudo wicd-curses
then press P (that stands for preferences). You’ll find that there’s a field called wireless interface, which is empty. Just write wlan0
in it. Then F10 to save.

Then, back to the main screen, hit R to refresh, et voilà!!!
Thanks to Andrea Zani from tforum for the hint!

L'articolo Wi-fi on Raspberry Pi, a simple guide sembra essere il primo su RaspyFi.

]]>
http://www.raspyfi.com/wi-fi-on-raspberry-pi-a-simple-guide/feed/ 42
Hiface on linux: Getting Hiface 1 working on RaspyFi and Debian http://www.raspyfi.com/hiface-on-linux-getting-hiface-1-working-on-raspyfi-and-debian/ http://www.raspyfi.com/hiface-on-linux-getting-hiface-1-working-on-raspyfi-and-debian/#comments Tue, 05 Mar 2013 15:30:58 +0000 admin http://www.raspyfi.com/?p=290 Hiface on Linux, finally done! Well guys, since some of you wanted to use the HiFace 1 on RaspyFi, here’s how to get it working. Basically all you need to do is compiling it’s drivers, and execute it on boot.

L'articolo Hiface on linux: Getting Hiface 1 working on RaspyFi and Debian sembra essere il primo su RaspyFi.

]]>
Hiface on Linux, finally done!

Well guys, since some of you wanted to use the HiFace 1 on RaspyFi, here’s how to get it working. Basically all you need to do is compiling it’s drivers, and execute it on boot. I plan to include those drivers on next release of RaspyFi.

Let’s start:

In order to build the driver you need to install your kernel-headers, the build-essential package and git-core binaries, this is quite a hefty amount of data, so make sure you have at least 600 mb free on your SD Card:

 

apt-get install kernel-headers-$(uname -r)
apt-get install build-essential
apt-get install git

Now, we’ll clone the git repository

git clone git://github.com/panicking/snd-usb-asyncaudio.git

Then, we are ready to build our driver:

cd snd-usb-asyncaudio
make

Then, we’ll start the module by typing:

 

sudo insmod snd-usb-asyncaudio.ko

Then, we should add the module to /etc/modules in order to make it start at system boot.

Et voilà! Hiface on Linux, so on RaspyFi!

This tutorial is made thanks to following pages:

 

https://github.com/panicking/snd-usb-asyncaudio/wiki

https://github.com/panicking/snd-usb-asyncaudio

L'articolo Hiface on linux: Getting Hiface 1 working on RaspyFi and Debian sembra essere il primo su RaspyFi.

]]>
http://www.raspyfi.com/hiface-on-linux-getting-hiface-1-working-on-raspyfi-and-debian/feed/ 31
Ho to install Mpd on an existing Debian installation on Raspberry Pi http://www.raspyfi.com/ho-to-install-mpd-on-an-existing-debian-installation-on-raspberry-pi/ http://www.raspyfi.com/ho-to-install-mpd-on-an-existing-debian-installation-on-raspberry-pi/#comments Sun, 23 Dec 2012 11:22:45 +0000 admin http://www.raspyfi.com/?p=79 Well, this tutorial simply follow what I did in order to create RaspyFi, on the Moebius Linux Distribution. But it can work on other Debian distros as well, please note that this tutorial is specifically tailored to the Pi. First

L'articolo Ho to install Mpd on an existing Debian installation on Raspberry Pi sembra essere il primo su RaspyFi.

]]>
Well, this tutorial simply follow what I did in order to create RaspyFi, on the Moebius Linux Distribution. But it can work on other Debian distros as well, please note that this tutorial is specifically tailored to the Pi.

First update:

apt-get update
apt-get updgrade

Y, then Y again

When updating process is over:

reboot

Let’s disable Ipv6, that Raspberry Pi

Just add this line at the end of l file /etc/hosts

::1 localhost.localdomain localhost

Now we can install mpd

apt-get install mpd

Y

On the Pi it usually gives some error messages, we can safely ignore them.

reboot

Le’ts create our playlist folder:

mkdir -p ~/.mpd/playlists

Now let’s edit our mpd.conf file:

nano /etc/mpd.conf
And modify the string:

bind_to_address “localhost”

in

bind_to_address “127.0.0.1″

Ctrl + x ,then Y.

If we want to store our music library on a usb storage:

Let’s see how Debian calls our drive: (formatted in fat32):

fdisk -l

Specifically for me: /dev/sda1

Let’s create the  Music folder and chmod it :

mkdir /media/Music
chmod -R 777 /media/Music
mount /dev/sda1 /media/Music

Modify the fstab file with our partitions :

nano /etc/fstab
just add this line:

/dev/sda1 /media/Music vfat defaults 0 0

Ctrl+x then Y

Let’s check if everything is ok:

mount -a

If we don’t get any error message, we’re ready to go.

reboot

If we want to use a nas as storage (SAMBA)

Install samba client

apt-get install smbclient

Creating  mount directory:

mkdir /mnt/nas
chmod 777 /mnt/nas

Mount the nas

mount -w -t cifs -o username=,password= //192.168.1.nasip/sharename /mnt/nas
If you’ve protected your share with password, insert them. If none password or user has been set, just leave this field empty

Check with:

ls /mnt/nas

If everything is ok, you should see your directories.

Let’s set the automount

nano /etc/fstab

Add this line in the end

//192.168.1.ipnas/sharename /mnt/nas cifs username=,password= 0 0

Check with:

mount -a

If no error appears, again, we’re ready to go

reboot

Ok, last entries in our configuration file:

nano /etc/mpd.conf

Let’s tell mpd where our music is stored:

Usb storage:

music_directory “/media”

Nas storage:
music_directory “/mnt/nas”

If you have a usb dac, let’s tell mpd to use this instead of the shitty analog out:

audio_output {
type “alsa”
name “USB Dac”
device “hw:1,0″ # optional
format “44100:16:2″ # optional
mixer_device “default” # optional
# mixer_control “PCM” # optional
# mixer_index “0″ # optional

 

These options can be quite different depending how debian calls your dac, but i always used that with different usb dacs and it always worked. You can try by changing in 1,0 instead of 0,1 but this is up to you. As you can see, I din’t changed everything from resampling to buffer size etc etc. This will be done in future tweaking tutorials. Anyway the quality of music reproduction with these settings is pretty awesome, so expect some minor improvements with further tweakings.

Some examples:

If you wish to enable audio buffering (and so ram reading). Uncomment these strings.

#audio_buffer_size “2048″
#buffer_before_play “10%”

If you want to send the audio stream directly to the usb dac, bypassing any software\hardware mixer. Change the string

mixer_device “default”

in

mixer_device “none”

ctrl+ x e Y

reboot

Now You should choose a client in order to control your mpd box. The best available is GMPC for Windows\Linux. Pretty simple and straightforwarding (sometimes it freezes, hope this will get solved) you can find it here. Then you can use Mpdroid or Mpod to control mpd via smartphone. These 2 clients are really good and goodlooking.

Happy music, folks!

L'articolo Ho to install Mpd on an existing Debian installation on Raspberry Pi sembra essere il primo su RaspyFi.

]]>
http://www.raspyfi.com/ho-to-install-mpd-on-an-existing-debian-installation-on-raspberry-pi/feed/ 10