Tuesday, 14 January 2014

Squeeze Slave

LMS up and running? Just one step left to turn your raspi into the best internet radio.
If you looked closely what is in allthingspi package you may had found squeezeslave, but as LMS works perfectly with allthingspi package  squeezeslave does not, so we have to do it different way.
Make a temporary directory for squeezeslave
Pick a correct version from https://code.google.com/p/squeezeslave/downloads/list depending on wheter you have soft float or hard float version. If you do not know which one to choose, you probably have a hard float version. Check it with  uname -a  command, if you have soft float your architecture will be armel, I have hard float version:
Hard float version download:
If you get a below error you can use  wget --no-check-certificate  to skip checking site certificate , assuming you know what you download and you trust this site. Downloading Squezeslave from Googlecode is safe but use this option wisely in future.
Unpack squeezesalve and copy binary to /usr/bin:
Check if it works by checking avaliable outputs:
As you can see there are a bunch of possible outputs, if you don’t have external audio card choose default, but I strongly recommend using external usb audio card, output from raspis jack is terible. I use fiio e10 (fiio.com.cn) and fiio d5 (discontinued but you can still find it in stores), superb audio quality for this price and no install required, just plug’n'play.
Download init script and copy it to /etc/init.d/
Create defaults file for sickbeard, where you can override any option you like, below my defaults with configuration that should be sufficient for most systems.
SSMAC – find it with  ifconfig  command, this is mac of your active internet interface, e.g. wlan0 or eth0.
SBHOST – hostname or IP of your LMS instalation, you can install and use LMS and squeezeslave on one raspi without any problems, in this case type localhost there.
SSOPTIONS – I choose output device with number 0 and squeezebox to run as a daemon (background service). All squeezeslave options can be listed with  squeezeslave --help
Now, run squeezeslave
And go to http://[raspi IP or hostname]:9000 or use Android/iOS application to play your favourite music.
taken from http://raspberry-at-home.com/squeezeslave/

Installation Of TP-LINK WN725N V2

People using Raspbmc (including me) tend to have problems with installation of TP-LINK WN725N v2 (v1 works out of the box). I have no idea why tp-link didn’t change model name when they changed the chipset but that’s reality that causes a lot of confusion. Anyway, installation is very simple and consist of 3 steps.
That’s it! Check network-manager plugin – it should work now….

source http://raspberry-at-home.com/installation-of-tp-link-wn725n-v2/

Raspberry Pi TOR Server



Be a part of the TOR network! This is a tutorial for a TOR middle relay server. NOT A EXIT NODE. Middle relay server just speed up the TOR netwerk.  Your IP ADRESS will not show up as the source of the traffic.

First step, Update your pi:
sudo apt-get update
[ENTER]
sudo apt-get upgrade
[enter]

Step 2, make a new user named '"tor"
sudo adduser tor
[enter]Enter a secure password![enter]Enter the password again[enter]
Now press the enter key for a few times, the questions are stupid :)

Now we have to to add the tor user account to the list of sudoers:

sudo nano /etc/sudoers
[enter]
Add the following line at the bottom of the page: tor ALL=(ALL) ALL


control + x to close/save the file.


Step 3: Install TOR!
sudo apt-get install tor
[enter]sudo nano /etc/tor/torrc[enter]

Edit / change and uncomment (#) the following settings:

SocksPort 0
Log notice file /var/log/tor/notices.log
RunAsDaemon 1
ORPort 9001
DirPort 9030
ExitPolicy reject *:*
Nickname some-nickname-here (you can chose whatever you like)
RelayBandwidthRate 100 KB  # Throttle traffic to 100KB/s (800Kbps)
RelayBandwidthBurst 200 KB # But allow bursts up to 200KB/s (1600Kbps)


Control + x to close / save the file.

Step 4:
Open port 9030 /  9001 in your modem/router/firewall. Otherwise there will be no connection.

Step5:
After changing the settings you have to restart TOR. Open a terminal and type:
sudo /etc/init.d/tor restart
Open /var/log/tor/log, if the tor server works correct you will find a entry like:

"Tor has successfully opened a circuit. Looks like client functionality is working.
at the end."

Your Raspberry Pi TOR server is  ready now! 


Now you have the option to install a Tor monitor program to watch the status of your tor node.
(this is not a screenshot of my own tor server)

sudo apt-get install tor-arm
[enter]
To start Tor-arm Use the following command:

sudo -u debian-tor arm
[enter]

Amazon

Donate

Donate Towards More Raspberry PI's for Projects