ALIX as server

0 Members and 1 Guest are viewing this topic. Read 3482 times.

jkelly

ALIX as server
« on: 27 Nov 2011, 02:26 pm »
As I await my second ALIX board....

Has anyone used an ALIX board as a server instead of player?
I am interested in installing squeezebox as described in this link:

http://forums.slimdevices.com/showthread.php?t=90581

The goal is to move to a low power server than the old clunker that is running now.

Also has anyone installed a 2.5" drive in ALIX?  I would need to either install a 2.5" IDE drive or
connect a USB external drive for storage.

Any input would be helpful.

Jeff
« Last Edit: 8 Dec 2011, 04:19 pm by jkelly »

jkelly

Re: ALIX as server(?)
« Reply #1 on: 3 Dec 2011, 04:29 pm »
I had success converting a ALIX MPD box over to running Logitech Media Server.
I currently have a USB drive connected to a USB port on the back which I imagine
slows the access down a bit.  I hope to add a internal 2.5" IDE next.

Since I had the CF card with voyage on it, these are the things I needed to do:

(From the link in the post above)
 -------------------------------------------


Next install Squeezeboxserver or now LogitechMediaserver:
First we need to make Voyage writable, so after a reboot, we log in like this;
user: root
Password: voyage
then you write: remountrw

To solve the PERL problems for Squeezeboxserver:
editing the /etc/apt/sources.list
and adding the line
deb http://http.us.debian.org/debian squeeze main contrib

Then we start installing Squeezeboxserver/LogitechMediaServer
I did it this way; Locate the version of Squeezebox-Server you would like to use. ie like: http://downloads.slimdevices.com/nig...~33496_all.deb
**** the above link needs to be updated and would change below as well- Jkelly
Which is the one I used below:

Download the installation-package directly to your Voyage CF-card and install directly, so do the following:
Create a directory for installation and download SBS
# cd /
# mkdir install
# cd install
# wget http://downloads.slimdevices.com/nig...~33496_all.deb
# apt-get --yes update
# dpkg -i squeezeboxserver_7.6.2~33496_all.deb

Ignore any errors like this: “Errors were encountered while processing: squeezeboxserver” Use this:

# apt-get install -f

_______________________________________ ___________ __________
NEXT we need to tell Voyage that´Squeezebox needs to be able to write to the CF. As I understand, Voyage will then mount these directories in RAM, and only at power-down it will be written to the CF-card.

To do so you need to edit the file: etc/default/vopyage-util, because it needs to have this line:
VOYAGE_SYNC_DIRS="/var/lib/squeezeboxserver"

Then reboot - and you are done.

------------------------------------
To mount the external USB drive I created a folder /mnt/usbdrive
and I added this line to /etc/fstab

/dev/sda1 /mnt/usbdrive   auto   rw,user,auto,umask=000 0 0

-----------------------------------

I assigned a fixed ip in
/etc/network/interfaces

iface eth0 inet static
        address 192.168.1.248
        netmask 255.255.255.0
        broadcast 192.168.1.255
        gateway 192.168.1.1

and all ran well.

Next step is get this running on a small solar panel and battery!

Jeff


TJHUB

Re: ALIX as server(?)
« Reply #2 on: 3 Dec 2011, 08:38 pm »
Awesome post Jeff!  I'm a complete Linux noob, but I have a full operational Alix doing nothing at the moment.  Since it's doing nothing, I'd really like to use it to stream to my Touch as well.  I'll have to see if I can work my way through your post and get it working. 

Thanks for doing this!  :thumb:


jkelly

Re: ALIX as server(?)
« Reply #3 on: 3 Dec 2011, 09:02 pm »
Great.

Remember when you want to write to the voyage cf card you have to use
the command:
remountrw 
to put it into read write other wise you can't save out of nano or
whatever text editor you use.

Also you will have to figure the link to the latest nightly build or whatever you
want to install.  As I recall it is this, but not positve:

http://downloads.slimdevices.com/nightly/7.7/sc/33737/logitechmediaserver_7.7.1~33737_all.deb

I use Putty from my PC to connect to the Alix once I boot it up and find it's IP.

UN: root
PW voyage

Jeff


TJHUB

Re: ALIX as server(?)
« Reply #4 on: 3 Dec 2011, 09:24 pm »
I use WinSCP and Putty.  I also have my Alix on a static IP address.  I just need to work my way through the commands.  I'll have to give a try over the next week when I get time.  I also should buy a new USB drive as I need one anyway.


jkelly

Re: ALIX as server(?)
« Reply #5 on: 3 Dec 2011, 09:31 pm »
I am using a pc formatted NTFS usb drive.

The server runs on port 9000 so

192.168.1.x:9000

TJHUB

Re: ALIX as server(?)
« Reply #6 on: 3 Dec 2011, 09:34 pm »
I am using a pc formatted NTFS usb drive.

That makes it easier.  Can this drive be shared so it can be seen on a windows network?


jkelly

Re: ALIX as server(?)
« Reply #7 on: 3 Dec 2011, 09:36 pm »
I didn't do this but the original post above mentions how to get samba running on Alix:


Finally, I wanted Samba as an easy way to add and remove media files on the attached USB-HDD

Remember to log into voyage: user: root and password: voyage , then:
#remountrw ............ so you are able to write to the HDD (or CF-card)

In order to install samba I had to add this line to etc/apt/sources.list
deb http://security.debian.org/debian-security squeeze/updates main

Next:
#apt-get install samba

Then I made the directory that should be shared via Samba (I don't know if it is important as I already had it):
#chmod a+w /mnt/media (= the USB-HDD which is mounted in /etc/fstab)

Then move the default samba config (so you have an untouched copy if needed):
#mv /etc/samba/smb.conf /etc/samba/smb.conf.orig

Then make a new empty samba config file:
#touch /etc/samba/smb.conf

Edit this new /etc/samba/smb.conf file so it contains:

[global]
workgroup = workgroup
netbios name = Voyage SERVER
server string = Voyage server %v
map to guest = Bad User
#log file = /var/log/samba/log.%m
#max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = No
local master = No
dns proxy = No
security = User
# Sharing for downloaded files
[download]
path = /mnt/media
valid user = root
read only = No
create mask = 0777
directory mask = 0777

Restart samba:
#/etc/init.d/samba restart


Add a samba user (this gave me much trouble, I could not make new users, therefore I used the already present linux user: "root"

To make a samba user "root" write:
#pdbedit -a root
... then write a password - I used voyage - same as in log into voyage

To define the correct homedirektory for root:
# pdbedit -u=root -h=/mnt/media

Then restart samba
/etc/init.d/samba restart


Samba needs to be able to write to the following directories: /var/lib/samba and /var/cache/samba /etc/samba
So add these directories to the file etc/default/vopyage-util so it now contains the line:
VOYAGE_SYNC_DIRS="/var/lib/squeezeboxserver /var/cache /var/lib/samba /var/cache/samba /etc/samba"

EDIT: I added /etc/samba to the line above, otherwise SAMBA would die after 15-20 min.

================================================== =========
Finally in order to mount my USB-HDD at startup I needed to edit my /etc/fstab, first you need to find you USB-HDD name by:
#fdisk -l

in my case it was /dev/sda1 therefore I added the following line to my /etc/fstab file:

/dev/sda1 /mnt/media auto rw,user,auto 0 0

jkelly

Re: ALIX as server
« Reply #8 on: 8 Dec 2011, 04:27 pm »
I have been using the Alix/Voyage/Logictech Media Server for a week and it
has performed well.  This is being used to drive a house system with 6 Squeeze
Boom boxes and Radios synced.

SqueezePad from a iPad works great to control this setup.

All the streaming stuff starts up fast and playing flac from my library on the attached
USB NTFS drive is instant.

I subscribe to MOG and I am starting to think I don't need my own library on the setup,
since this is lowfi.

So still trying to put together a cheap solar panel + battery with over/under voltage controller to power this.

Jeff


Squeezboxer

  • Newbie
  • Posts: 2
Re: ALIX as server
« Reply #9 on: 8 Jul 2017, 11:29 pm »
Sorry to revive a dead thread but would you happen to have any images you can share? After I had to upgrade my router, I would like to use my old Alix box as a squeezebox server. Low power really appeals.

richidoo

Re: ALIX as server
« Reply #10 on: 9 Jul 2017, 02:49 am »
Bump for ^Squeezboxer^
His post was delayed for noobie moderation, so it fell off front page before it got approved.