PDA

View Full Version : how to find squeeze server for ubuntu



mgh
2010-11-24, 20:26
Just installed ubuntu, and it has been awhile. When I do a simple search within the software center for squeeze, nothing comes up.

How do I find an install squeeze server?

Thanks for any help.

aubuti
2010-11-24, 22:14
You need to add the SBS debian repository to your /etc/apt/sources.list. See http://wiki.slimdevices.com/index.php/Debian_Package

mgh
2010-11-25, 08:16
Thank you.

I opened synaptic package manager, got to where I was prompted enter the complete APT line. I copied and pasted:

apt-get install squeezeboxserver

The "add source" button stays grayed out, so I am unable to get any farther. Can you tell me what part of the process I am missing?

Thanks for the help.

bpa
2010-11-25, 08:53
In the "APT Line:" dialogue box use
deb http://debian.slimdevices.com stable main

mgh
2010-11-25, 09:28
I think I am getting close. I downloaded and installed squeezeserver. When I power on the sqeezebox I get the "can't connect to server".

When I try to start server via command line I get this:

mike@ubuntu:~$ sudo /etc/init.d/squeezecenter start
[sudo] password for mike:
sudo: /etc/init.d/squeezecenter: command not found
mike@ubuntu:~$

I rebooted after the installation, hoping that the server would start. It may be running already, but I don't know where to find it if it is in fact running.

Many thanks.

AnotherTribe
2010-11-25, 10:49
try /etc/init.d/squeezeboxserver

mgh
2010-11-25, 12:48
Woo hoo!

Still can not get server to connect in XP, but it is running on Ubuntu.

Many thanks for the replies.

mgh
2010-11-25, 13:41
Well OK, I am getting very close.

I need to find out how to open the control panel or web interface.

I don't know how to find out what the IP address of the slimserver is so that I can enter it in a browser.

Can I find it by checking the settings on the squeezebox? Now that it is set up, I can't get the setup menu to display.

Thanks again for all the help.

AnotherTribe
2010-11-25, 13:42
Woo hoo!

Still can not get server to connect in XP, but it is running on Ubuntu.

Many thanks for the replies.

You are entering http://server:9000 to connect, right? (replacing 'server' with your server name or IP)

#ifconfig should provide you with the interface IP assigned.

mgh
2010-11-25, 15:23
I did not know what the IP address was. I booted to XP, opened the web interface, and got the IP from that.

Now I have a question about scanning my music folder.

I can find and access all my Windows partitions, but when I go to squeezeboxserver,to settings, and browse for my music folder, the partitions are not available. I can find my documents folder, so I tried pasting a link to my music folder, but that did not work, the link is not visible.

I can access, and play my music when I navigate to the folder, but within the sqeezeboxserver interface, the partitions are not available.

So far so good, just one more step.

Thanks for the help.

gharris999
2010-11-26, 09:09
I did not know what the IP address was. I booted to XP, opened the web interface, and got the IP from that.

Now I have a question about scanning my music folder.

I can find and access all my Windows partitions, but when I go to squeezeboxserver,to settings, and browse for my music folder, the partitions are not available. I can find my documents folder, so I tried pasting a link to my music folder, but that did not work, the link is not visible.

I can access, and play my music when I navigate to the folder, but within the sqeezeboxserver interface, the partitions are not available.

So far so good, just one more step.

Thanks for the help.
To get SBS to allow you to use a directory on your NTFS formatted drive as the Music Folder, you'll need to explicitly mount the drive in fstab. This is the script I use to configure fstab for this purpose. You may need to modify this or do the similar steps manually as this script assumes that the system only has a single NTFS partition.

config-fstab.sh


#!/bin/bash
#-------------------------------------------------------
# Script to set the 1st ntfs formatted device to auto-mount
# via fstab using its UUID
#

MOUNTPOINT=/mnt/media

#-------------------------------------------------------
# Backup fstab...
MOUNTFILE=/etc/fstab
cp -f $MOUNTFILE $MOUNTFILE.bak

#-------------------------------------------------------
# Set up mount points..

if [ ! -d "$MOUNTPOINT" ];
then
echo "Creating $MOUNTPOINT"
mkdir "$MOUNTPOINT"
chmod 777 "$MOUNTPOINT"
fi

if [ ! -d /mnt/backup ];
then
echo 'Creating /mnt/backup'
mkdir /mnt/backup
chmod 777 /mnt/backup
fi

if [ ! -d /mnt/usb ];
then
echo 'Creating /mnt/usb'
mkdir /mnt/usb
chmod 777 /mnt/usb
fi

#-------------------------------------------------------
# Remove any existing ntfs-3g mount points..

sed -i '/ntfs-3g/d' $MOUNTFILE

#-------------------------------------------------------
# Get the 1st NTFS formatted device..
NTFSDEV=`blkid | grep "ntfs" | sed -e 's/\(^.*\)\:.*$/\1/'`
ISMOUNTED=`mount -l | grep "$NTFSDEV"`

if [ -n "$NTFSDEV" ];
then
if [ -n "$ISMOUNTED" ];
then
echo "Unmounting $NTFSDEV.."
umount "$NTFSDEV"
fi
else
echo 'No NTFS formatted devices found!!'
exit 0
fi

#get the UUID for the device..
HDUUID=`/sbin/blkid -o value -s UUID $NTFSDEV`
if [ -n "$HDUUID" ];
then
echo "Setting $NTFSDEV to automount in $MOUNTFILE using uuid $HDUUID.."
echo "UUID=$HDUUID /mnt/media ntfs-3g rw,defaults,noatime,umask=0000 0 2" >>$MOUNTFILE
mount -a
echo 'Device mounted:'
mount -l | grep "fuseblk"
exit 0
else
echo "No UUID for device $NTFSDEV !!!"
exit 0
fi

exit 0


You should end up with an entry like:


UUID=9C2C008A5C00233E /mnt/media ntfs-3g rw,defaults,noatime,umask=0000 0 2

..in your /etc/fstab file.
If you then:
# mount -a

..your ntfs partition should end up mounted at: /mnt/media and you can point SBS to the appropriate directory off of that.

If you somehow screw up /etc/fstab and the machine hangs on boot, just press "s" on the keyboard and the system should continue booting up and you'll be able to fix or delete the offending fstab entry. (Thanks to epoch1970 for telling me about that!)

Re finding the SBS ip address: static IPs are your friends. Again, here's a script I use for configuring static ips. Modify this so you get the IP address you want and so that it matches your subnet (i.e. your subnet may be 192.168.1.x or 10.0.0.x rather than 192.168.0.x. Check the IP address of the machine when running under windows and you could safely set the static IP to that.).


#!/bin/bash
echo 'Configuring networking..'
cp /etc/network/interfaces /etc/network/interfaces.org

echo 'Configuring eth0..'

chkconfig network-manager off
chkconfig networking on

cat >/etc/network/interfaces <<NET1;
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.102
gateway 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
NET1

/etc/init.d/networking restart

mgh
2010-11-26, 09:42
So I have to mount the partition, even though I can access it, and read files off it when I navigate through the folders outside of the squeezeserver software?

gharris999
2010-11-26, 10:02
So I have to mount the partition, even though I can access it, and read files off it when I navigate through the folders outside of the squeezeserver software?
That's been my experience, yes.

mgh
2010-11-26, 16:03
That looks like I would be a bit too far in over my head. Maybe if I can learn more about Linux first.

I'm a little bummed, but this is as close as I have ever been to getting a Linux distro to do everything I have needed.

Thanks for all the help.

adamslim
2010-11-27, 06:36
Try
NTFS Configuration Tool
in the software center, usually sorts out this kind of issue

mgh
2010-11-27, 09:35
Success!

It did not read the playlist folder for some reason, but squeezebox is running in Ubuntu.

This is further along than I have ever made it with Ubuntu.

Many thanks.

aubuti
2010-11-27, 12:50
Congrats. For your playlist folder the problem is probably permissions. Make sure that user "squeezeboxserver" (which is created when you install SBS) has read, write, and execute permissions on your playlist folder and files.

pablolie
2010-12-07, 09:58
For what it's worth, I run the desktop version as a server on a modestly speced Atom box. I find the user interface much easier to navigate, and you can manage it remotely too.

kappclark
2011-06-21, 15:31
that is what I do, using an Acer aspire laptop running Lucid

mudlark
2011-06-24, 00:22
I cheat I am afraid. I use webmin to make sure the folders get shared. My data drive is in ntfs so that any windows machines can see the folders, alter files etc. I have to install samba and ntfs-3g (depending on distro)