Have Collection (and auto scan) external drive (SAMBA).

Asked by dbjock

I'm running Amarok 1.4.7 on Gutsy (Ubuntu 7.10) and trying to figure out how to configure Amarok, like Rhythmbox, to scan an external system for new files and add it to the collection. I have a Windows Server on the network with LOTS and LOTS of diskspace and I'm able to mount a drive and access it. In "Rhythmbox" (yuk) I am able to set up it's library as smb://LrgVolume/Music and it will scan this for any new files.

I noticed in question 2904 that 'about adding music into the collection' though this really did'n help to much since it's adding a playlist. I'm wanting the 'collection' to be all from the external system.

Thanx in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu amarok Edit question
Assignee:
No assignee Edit question
Solved by:
dbjock
Solved:
Last query:
Last reply:
Revision history for this message
dbjock (junkyardjojo) said :
#1

Not solved though I did find lots of info here
http://amarok.kde.org/wiki/Samba

Revision history for this message
dbjock (junkyardjojo) said :
#2

More info found here too:
http://amaroklive.com/wiki/Samba

Revision history for this message
Harald Sitter (apachelogger) said :
#3

amarok.kde.org = amaroklive.com ... that post was redundant, and before you post that as well, getamarok.com = amarok.kde.org as well :P

Revision history for this message
dbjock (junkyardjojo) said :
#4

thank you for so 'quickly' correcting my redundant post :P though not to quick on assisting with the problem. I did find out that:
mount -t smbfs -o fmask=644,dmask=755,uid=localuser,gid=groupname,guest //server/share /path/to/mount-point
doesn't actually work since smbfs is outdated and cifs would have to be used (though you wouldn't have commented on that either since that really isn't helpful)
Also found was if you have a hostname (server) in your host file mounting will not work with Gutsy, and you have to use the IP addy.
http://ubuntuforums.org/showthread.php?t=332575
Though I'm sure you will 'quickly' correct me on this.

Thanks for you 'help'

Revision history for this message
Harald Sitter (apachelogger) said :
#5

I don't get the "doesn't actually work since smbfs is outdated and cifs would have to be used" can you please enlighten me.

As for the hostname: resolution is done by libsmb, and it pretty obviously doesn't seem to use the hosts file, but instead look up only using the DC or general workgroup broadcast.

something about the original question:
* why is it marked as solved?
* if you stick exactly to the wiki you will have no problems since I know a lot of ubuntu users (with different versions) which made it work doing what the wiki says
* in case it really doesn't help you might however give some (more) information about your setup (samba versions/windows versions/permissions/post the samba configuration file....)
* smb:// would work with amarok, but you wouldn't be able to play anything, since neither xine nor helix (only current supported backends) are able to access smb:// using a virtual filesystem

Revision history for this message
dbjock (junkyardjojo) said :
#6

I'm new with Ubuntu and not sure what the DC and general workgroup broadcast means. It is a bummer that it would not use the hosts file.
I did stick exactly to the wiki and I'm not sure why it didn't work. Could be due to my SAN (or NAS) is a buffalo device and not a 'pc' for a lack of a better word. Thus, I am unable to get a samba version/windows ver/permissions stuff).

The question is marked solved since the problem is solved right? If users stick to the wiki instructions then there problem is solved right?
Thank you for your assistance on this.

Revision history for this message
Harald Sitter (apachelogger) said :
#7

What is your problem exactly? If you can mount the remote storage, collection/playback should work just fine.

Revision history for this message
dbjock (junkyardjojo) said :
#8

The orignal problem is not being able to configure my collection (via tools/configure amarok/collection) to use smb://LrgVolume/Music. The only think in the list is all under "/". I was able to "resolve", as mentioned before, by mounting. With that I was able to configure the collection.

Revision history for this message
Paul Kaufman (paul-kaufman) said :
#9

I'm having the same problem (Amarok can't find media files on my NAS via SMB, even though the filesystem can connect to it.) I too have tried lots of different music players and none seem to work besides the movieplayer included with Ubuntu 9.04 which seems very limited. I don't think I have the samba shares actually mounted (nothing in the /MNT directories anyway) but I'll follow the links above and see if I can figure it out. Any help with adding remote media to the collection will be most appreciated.

Revision history for this message
dbjock (junkyardjojo) said :
#10

Paul - For what it's worth, I was not able to get Amarok 1.4.10 to use a SMB and had to use the mount (editing the fstab and creating directories under /media) with cifs.

If this will help below is an extract of my fstab file:
//PUT_IP_HERE/music /media/NASMusic cifs username=guest,uid=1000 0 0
//PUT_IP_HERE/ftp /media/NASFtp cifs username=guest,uid=1000 0 0

I have directories created under /media called NASMusic and NASFtp (Case sensitve of course)
I did not put anything in there just created them. With the fstab you seen them there.

Be sure to replace PUT_IP_HERE with the IP address of your NAS.

Hope that helps.