Page 2 of 3

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Wed Jan 11, 2012 5:10 pm
by BuZz
and make sure you try mounting it first before rebooting like mount /mnt or /mnt/extusb - note the directory needs to exist.

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Wed Jan 11, 2012 5:21 pm
by Jarv_77
Thanks BuZz,
Knew it was too good to be true,
If I have time tonight ill try it all out.

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Thu Jan 12, 2012 4:27 pm
by Jarv_77
BuZz wrote: if running ubuntu off an external drive, then use the ext4 version. btrfs does still have free space issues (possibly some new issues again related to free space introduced with 3.1.x kernels).

Just been re-reading the posts above and realised I've put an Ext4 version onto a Flash drive when I think you meant its best for an external hard-drive.. Whoops...

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Thu Jan 12, 2012 5:03 pm
by BuZz
ext4 will be fine.

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Wed Jan 18, 2012 2:48 pm
by Jarv_77
An update,

I'm having a lot of trouble with the combinations of USB flash drive, USB soundcard and External Hard Drive on a USB hub, making use of my Ubuntu painfully hap-hazard.

I'm using:

-A 16gB Sandisk Cruzer USB flash drive with the Ubuntu:
http://www.amazon.co.uk/SanDisk-Cruzer- ... rs_title_2

-An unpowered USB HUB from Ebay:
http://www.ebay.co.uk/itm/Black-4-Port- ... 0639286606

-A powered Western Digital 1TB hard drive as mentioned above - (which may have spinning down issues and loss of mount to be dealt wih seperately).

-A cheapish USB soundcard like this on
http://www.ebay.co.uk/itm/200701880792

-Buzz's EXT4 Image for Ubuntu 11.10.

Ubuntu works like a dream - if I plug the USB flash drive straight into the Joggler, I have downloaded Logitech media server and Roobarbs squeezeplay and things seem to work well.
Sometimes Ubuntu will boot up with the flash drive in the USB hub but then it is slow and often freezes.
Only once by fluke I have managed to get the flash drive to boot up Ubuntu with the external hard disk also plugged into the USB hub. I then had seperate issues as mentioned above to get Media server to find the music folders, was it mounted or not etc.

I have tried 2 other USB hubs of differing quality with no success. I have also looked at this thread (and others to see what others are doing. but no joy as yet.
http://www.jogglerwiki.com/forum/viewto ... =usb#p6499

Getting frustrated now. I'm guessing next step is to try a better quality USB hub and perhaps a good quality powered one too. Then also swap external hard drives around to see what works? Or maybe do a partition on the hard drive for ubuntu and the mp3's seperately?

Any help welcome, at the moment I can't try out any of the mods and adjustments as I cant get Ubuntu running with the hard drive.

:(

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Wed Jan 18, 2012 3:49 pm
by gegs
I used a USB hub like yours for over a year and it provided power to a Seagate portable drive, a USB soundcard, USB-powered speakers and a Bluetooth dongle without any bother. When my (second-hand) Seagate died, I had to get a powered hub because the unpowered one didn't provide enough juice to fire up my new Samsung 750 gig portable drive. I have Ubuntu loading from the hard drive and find it much quicker than running from a stick.

Have you tried loading Ubuntu from the stick (in the hub) first and then plugging the hard drive into the hub. Once Ubuntu has booted up it should automount your hard drive when you plug it in.

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Wed Jan 18, 2012 4:42 pm
by Jarv_77
Thanks Gegs, your name came up a lot on my search of the forums, very jealous that you have it all working as you describe!

I will try as you suggest, connecting the hard drive after booting but its a temporary fix really as I don't want to have to do that everytime, or require another member of the family to do so if they wanted to use it.

I hadn't realised Ubuntu will auto mount once already booted. Out of interest does you partitioned drive mount to /media and do you point media server to this location or have you set it to mount in /mnt ?

Cheers,

David

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Wed Jan 18, 2012 5:00 pm
by gegs
I'm not really using my device like you want to use yours. I don't really access music files from a server, I either play a CD, minidisk or LP (old-fashioned I know), listen to web radio or use Spotify playlists on Squeezeplay.

I mostly stream video to my Apple TV or son's Xbox 360 from a samba share on the Joggler and the default mount point is fine for that - /media as you correctly mentioned.

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Wed Feb 01, 2012 9:41 am
by Jarv_77
So... Still going.

I've got Ubuntu booting from a usb flash drive on a hub with my music on a seperate usb hdd.

I've installed logitech media server and squeezeplay.

Now - when I go to localhost:9000 to set up media server and select the folder where Ubuntu has mounted my HDD, it doesn't see the sub folders, even though the Ubuntu file explorer does.

Hmm.

Also
If I leave the setting to look in media and finish the wizard I then can't select the 'settings' button in the bottom right. I'm just using the touch display, do I need a seperate mouse for this?

Thanks for any help.

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Wed Feb 01, 2012 1:20 pm
by holmes
Hi Jarv_77,

Your difficulty with the selection of the music directory is a classical issue with SBS on Linux System.
I had the same problem. I remember it was related to group ownership. You have to modify something whith the way you mount
your disk (fstab). I am sorry for not being more specific but I do not remember the details except that it can be solved!
Have a look there:

http://forums.slimdevices.com/showthrea ... ht=showing

It is not the best example to solve this problem but by doing a more thorough search in this forum, you will find a better explanation.
I will try to post my fstab if you don't solve this by yourself.

Regards,

Holmes

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Wed Feb 01, 2012 3:06 pm
by Jarv_77
Holmes,

Thanks for your explanation if I had been concentrating I would have realised I have asked this already, in this very thread and got some responses regarding fstab. But I never managed to apply them as I was having trouble with the whole USB hub issue, I need to go back and re-read my own thread.
I will get there in the end I hope. :o)

David

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Sun Feb 12, 2012 9:00 am
by Jarv_77
Puuting this project on hold briefly while I play with PnP MkII.... Thanks for all the help, to be honest I think all my problems must be to do with the harddrives spinning down and thats where I need to focus to get a squeezeplay and server set up working......

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Sat Feb 25, 2012 9:57 am
by Jarv_77
Life is never simple, now have joggler stuck at o2 logo on boot after reflashing. Needs a few more reflashes and trying a wired comnection I think. Ar$e

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Tue Mar 06, 2012 1:41 pm
by Jarv_77
So, getting closer…….. Gave up on PnP II after I had the issues with the Joggler bricking itself (or did I brick it?) and getting the feeling that it would have identical problems as per my original set up with squeezeserver installed losing sight of the USB harddrive. Now seeing the light as far as running an Ubuntu,Mint,Joli set up rather than PnP. Got reading up on Joli and Mint etc being run from an external harddrive wih partitions adjusted to store the media on the drive too. So thought I’d try that. Weirdly I found that the length of USB cable made the difference between the USB external drive booting up on Joli or hanging at the O2 screen. Short cable seems to work (approx. 150mm long), exactly the same brand at closer to 800mm long doesn’t. Also won’t work from a hub. So temperamental!


Now have Joli (which I like for its finger-pressing friendliness) running from the externally powered hard drive and the data on the separate Fat32 partition. Currently fiddling with the fstab as posts above to get the permissions sorted out for squeezeserver to see files. I am confused however about the different configurations that people are posting online.

So far I have:
/dev/sdX1 /media/MyDirectoryName vfat rw,user,auto,exec,gid=115,uid=65534,umask=000 0 0 (from Holmes)

/dev/sdX1 /media/MyDirectoryName vfat uid=1000,gid=1000,utf8,dmask=027,fmask=137 0 0 (from BuZz)

/dev/sdX1 /musicdrive vfat rw,user,umask=027,uid=501,gid=502 0 0 (from http://wiki.slimdevices.com/index.php/M ... HardDrives )


sdX1: id of the FAT32 partition on the disk
vfat for FAT32

In the first option above (from Holmes via http://forums.slimdevices.com/showthrea ... 076&page=2)
115 is SBS user id (see /etc/passwd)
65534 is SBS group id (see /etc/group)
The slim devises link gives another way to find these.

I’m going to work though these and see what works, seems people have different opinions – but which one is the ‘safest’ and most reliable? Any thoughts? Probably going to use the slimdevices one first.
:ugeek:

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Tue Mar 06, 2012 2:35 pm
by gegs
Jarv_77 wrote:Life is never simple, now have joggler stuck at o2 logo on boot after reflashing. Needs a few more reflashes and trying a wired comnection I think. Ar$e
I wouldn't give up on PnP II so quickly. A new version has been released with Logitech Media Server.
I also had problems trying to install PnP II after reflashing (stuck interminably on the O2 logo) but realised that I first had to boot up the stock OS after reflashing and add my details; once I'd done that PnP II installed perfectly.

Be warned though that it can take a l...o...n...g time. My USB stick has a pretty slow transfer rate and it took about half an hour to install. Just be patient and wait till it reboots (it will flash a couple of times during the process but this is expected).

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Tue Mar 06, 2012 4:14 pm
by Jarv_77
Gegs, the issue for me would probably be that my storage is on external harddrive which mediaserver frequently 'lost' requiring a rescan taking over 6hrs. Also turning joggler off and on again caused it to forget the data. If I could have got to the root of that issue then I would have been happier! Going the Joli on harddrive partition route means the drive will always be mounted and active (I hope) so shouldn't be 'lost'.

How long is 'long' when installing pnpII vs realising that you have a 'stuck on o2' joggler? Mine got to the stage where I resorted to following a guide online to delete partitions via gparted then install original o2 from ethernet connection. Even then it needed another Roobarb reflash before the OS worked. I did get pnp working but never tried media server. Original OS didn't last though and my joggler is stuck on O2 at boot, but luckily will autoboot from ausb stick or drive into Joli etc. Hence me following that route with more interest. Have you got pnpII working with mediaserver and player? I'd be interested to hear how and what drove you jhave! Cheers.

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Tue Mar 06, 2012 5:19 pm
by gegs
I'm not suggesting you abandon JoliOS - most of the time I boot into Ubuntu from a portable hard drive but my wife uses the Joggler a lot and she prefers the stock OS. PnP II just provides a souped up stock OS without interfering with your JoliOS setup.

I think I answered the question about how long is 'long' in my previous post; for me it was about half an hour but I suppose this could vary according to the data transfer capabilities of your USB stick. I'd suggest not watching while it runs; watch TV for a bit and then go back to your (hopefully) souped-up new Joggler. If it doesn't work you've not lost anything.

Out of curiosity, I've a couple of questions about your setup.
Do you power down your JoliOS setup? If so:
Is your media content cached with JoliOS so that you don't need to re-scan the library with each re-boot?
Is it only media on the Joli partition that isn't lost or does it cache what media is contained on the FAT 32 partition until a manual re-scan?

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Tue Mar 06, 2012 6:02 pm
by Jarv_77
Gegs,
My questiom on how long is long was probably more rhetorical, I did note your 30mins startup time in your post.

Your queries on my Joli set up I can't answer yet as I haven't got it set up 1st time round just yet. I've successfuly run Joli on a usb stick with squeezeplay running sytreaming media from a seperate laptop. Now I have written Joli to the usb hard drive resized the partitions, checked it booted and then installed squeezeplay and mediaserver. Then I copied my media (mp3) files to the fat32 partition. Then when I booted Joli, mediaserver (via the web interface) couldn't see the fat32 partiton though file manager can. And that is where I got to regarding the fstab changes above. Need to work through those now.

At the moment my joggler doesn't boot at all on its own so before trying pnp II again I need to clear that up. I should state that in no way am I claiming pnpII is at fault here, more my random (often rushed) tinkering when the littluns (3yr old and 18mnth old) are in bed. To be honest they probably play with it more in the day when I'm at work and find all sort of menus and settings I never knew about! :)

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Tue Mar 06, 2012 6:14 pm
by gegs
It was because my Joggler wouldn't boot (stuck in an O2 loop) that I was forced to reflash and install PnP mkII last night. It worked a treat.

Would LMS see your FAT32 partition if it was mounted as a samba share? I've never tried accessing stored files from Squeezeplay so forgive my ignorance. I mainly use it for web radio and Spotify.

Re: Ubuntu+squeezeserver+Squeezeplay - plea for an idiots gu

Posted: Thu Mar 08, 2012 9:51 am
by Jarv_77
Managed to get fstab working last night to allow LMS to see the fat32 partition. Didn't work at first and Joli hung on boot requiring keyboard input to skip mount. Found I hadn't left a space after 'fat32' in my fstab entry, fixed that and it booted fine and LMS csn see the files!

LMS scanned the library within about 20mins which isabout 6hrs quicker than it did when running on stock OS, so very happy with that. I turned off and rebooted and the music was still there though it may have been running another scan to validate it, couldn't be sure. It seemed that LMS had cached it all.

Very happy at the moment, only niggle is that to switch on power I have to do a quick on-off-on to kick the WD hard drive into life so it is ready at the point that the boot process needs to see the Joli files. Not sure if that is due to the drive though.