|
Raspberry PI running MinimServer - YES!
|
|
21-01-2013, 22:40
(This post was last modified: 22-01-2013 08:44 by gmeddens.)
Post: #4
|
|||
|
|||
RE: Raspberry PI running MinimServer - YES!
(20-01-2013 17:04)simoncn Wrote:(20-01-2013 13:12)ReneZ Wrote: Hi, I have managed to get MinimServer running on a Raspberry PI with the great help of GMeddens (Thanks Mate!!), whilst using a USB harddisk as file repository. Short manual to get Minimserver working on RasberryPi, quick and dirty, it works for me, but needs refinement: a startup script is the first I would like to add, but for now all is working stable at my site. Prolog: Install the debian distribution from Soft-float Debian “wheezy” http://www.raspberrypi.org/downloads Burn it to your sd card, using the general information found on various websites. see also http://www.raspberrypi.org/wp-content/up...e-v1.1.pdf which is the start up guide. Connect the RaspberryPi to your TV and keyboard, start the computer. Follow the steps mentioned in the guide, type raspi-config to start configure your raspberrypi (RBPi). Set your password, and enable the ssh server. After completing the steps mentioned, and other steps, you should have a working RBPi in your network. You should also know the ip adress already which is shown after booting up, or after typing in the command: ifconfig -a You get the ip address; e.g.: eth0 Link encap:Ethernet HWaddr b8:27:eb:cc:3b:07 inet addr:192.168.2.210 Bcast:192.168.2.255 Mask:255.255.255.0 etc. Step 1 Get the java distribution and minimserver Download the distribution jdk-7u10-linux-arm-sfp.tar.gz from: http://www.oracle.com/technetwork/java/j...80260.html or search google for jdk-7u10-linux-arm-sfp.tar.gz. Download minimserver from minimserver.com. The arm distribution, works on the raspberryPi: MinimServer-0.63-linux-arm.tar.gz Step 2 Create folders and set correct rights First try to connect to your RaspberryPi, using the terminal: ssh -l pi w.x.y.z (Where w.x.y.z is the ip address, eg 192.168.1.12) type your password as set in the prolog. If you can login you can also copy files to your /home/pi folder on the RBPi. We need 2 folders, one for Java, the second for your music; since my knowledge is limited I create them in the /home/pi folder. I am sure there is a better place to create these folders. Make sure you are in the /home/pi folder. Type ls -l to see the items in /home/pi: pi@raspberrypi ~ $ ls -l total 8 drwxr-xr-x 2 pi pi 4096 Aug 9 00:56 Desktop drwxr-xr-x 2 pi pi 4096 Aug 9 00:56 python_games Create the 2 folders java and music: pi@raspberrypi ~ $ mkdir java pi@raspberrypi ~ $ mkdir music I change the rights of the music directory to be available for all: pi@raspberrypi ~ $ sudo chmod -R 777 music This gives the following listing in /home/pi with ls -l: drwxr-xr-x 2 pi pi 4096 Aug 9 00:56 Desktop drwxr-xr-x 2 pi pi 4096 Jan 21 21:33 java drwxrwxrwx 2 pi pi 4096 Jan 21 21:33 music drwxr-xr-x 2 pi pi 4096 Aug 9 00:56 python_games type exit to log out from the RaspberryPi: pi@raspberrypi ~ $ exit Copy the java distribution and minimserver to the pi using scp or secure ftp. From the terminal on your own machine the command is something like: scp filepath/sourcefile pi@192.168.1.12:/home/pi In my example I have both files in my home folder, so type in one line: scp /Disk/Users/chief/jdk-7u10-linux-arm-sfp.tar.gz pi@192.168.1.12:/home/pi pi@192.168.1.12's password: Type your pi password. The same for the Minimserver: scp /Disk/Users/chief/MinimServer-0.63-linux-arm.tar.gz pi@192.168.1.12:/home/pi Step 3 Unpack both files on the RBPI. So connect again to your RBPi ssh -l pi 192.168.1.12 After logging in type ls -l to see the list of files. You should see both the java archive and the minimserver archive. drwxr-xr-x 2 pi pi 4096 Aug 9 00:56 Desktop drwxr-xr-x 2 pi pi 4096 Jan 21 21:33 java -rw-r--r-- 1 pi pi 68225847 Jan 21 21:48 jdk-7u10-linux-arm-sfp.tar.gz -rw-r--r-- 1 pi pi 1230224 Jan 21 21:51 MinimServer-0.63-linux-arm.tar.gz drwxrwxrwx 2 pi pi 4096 Jan 21 21:33 music drwxr-xr-x 2 pi pi 4096 Aug 9 00:56 python_games Move the jdk-7u10-linux-arm-sfp.tar.gz file to the java folder: mv jdk-7u10-linux-arm-sfp.tar.gz /home/pi/java Unpack, or expand java in the java folder: cd /home/pi/java tar -zxvf *.gz This creates a jdk1.7.0_10 folder within the java folder: drwxr-xr-x 8 pi pi 4096 Nov 28 19:13 jdk1.7.0_10 -rw-r--r-- 1 pi pi 68225847 Jan 21 21:48 jdk-7u10-linux-arm-sfp.tar.gz Unpack minimserver: cd /home/pi tar -zxvf MinimServer-0.63-linux-arm.tar.gz Which creates a folder minimserver-0.63 in the /home/pi folder: drwxr-xr-x 2 pi pi 4096 Aug 9 00:56 Desktop drwxr-xr-x 3 pi pi 4096 Jan 21 21:55 java drwxr-xr-x 4 pi pi 4096 Nov 10 23:14 minimserver-0.63 -rw-r--r-- 1 pi pi 1230224 Jan 21 21:51 MinimServer-0.63-linux-arm.tar.gz drwxrwxrwx 2 pi pi 4096 Jan 21 21:33 music drwxr-xr-x 2 pi pi 4096 Aug 9 00:56 python_games Create a command in a file called minimserver.sh with 2 lines using nano or pico: cd home/pi touch minimserver.sh which creates a minimserver.sh file. nano minimserver.sh Which opens the file, and type the 2 following lines: cd /home/pi/java/jdk1.7.0_10/bin ./java -jar //home/pi/minimserver-0.63/lib/minimserver.jar --quiet --nohup & Now safe the file with control-o, hit enter, quit using control-x. Give runaccess to the pi user: chmod +x /home/pi/minimserver.sh Check if the rights for the file are set using ls -l in the /home/pi folder: cd /home/pi ls -l -rwxrwxr-x 1 pi pi 110 Jan 2 21:38 minimserver.sh Start minimserver by typing cd /home/pi ./minimserver.sh Check if minimserver is running using minimwatch and set the folderpaths for your music. e.g. /home/pi/music Put some music files in the music folder and enjoy. I created a folder called music in /home/pi/music, and mounted my usb drive in this folder using fstab by adding the line: /dev/sda1 /home/pi/music ext4 defaults 0 0 Above line tells the system it is a disk formatted ext4, and this drive should be mounted in /home/pi/music. Check the web how to get your device id, and how to mount a usb disk: http://raspi.tv/2012/how-to-mount-and-us...pberry-pi. Again, this is quick and dirty, it works for me, and all I did was copy and paste some commands from the web. To make it better somebody with more knowledge could refine this. Guy |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help



