This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How can I make it work with files on LAN?

Tags: None
(comma "," separated)
toratora
Karma
0
Hi!

I just installed amarok on fedora. I have 2 computers: one with windows, where I got all my music, and the one with fedora and amarok. Both are connected through a RJ45, and this works ok (I get internet on the linux system, and I can access the files in the windows system from the fedora computer).

However, if I try to use amarok to play files placed on the other computer, it will play nothing. And of course I can\'t find the way to make the library look for files on the other computer.


I\'m a linux newbie, so take that into account. Besides, to access to the other computer, I used the Connect with the server... option using \"Shared by windows\". Now it\'s mounted on my desktop, and I can reach the files though there.


Thanks in advance!
m0nk
Karma
0
Hi,
you can\'t build a library on a samba share, \'cause there\'s no \"local\" path present for amorok to search in. You need to mount the windoze share. Perhaps you can try to drag\'n\'drop a music file into amarok\'s playlist window. First create a mountpoint, let\'s say /media/music. Then you\'ll need something like
//winbox/share /media/music smbfs defaults 0 0
in your /etc/fstab. Try \"mount /media/music\" as root (you don\'t use passwords for sharing, I hope). If this works, you can build your library from within /media/music.
If you use passwords, you need username=yourusernameonwin,password=yourpasswordonwin instead of defaults in fstab. More info with \"man smbmount\".
As I don\'t use fedora, probably the share is mounted somewhere. So first try mount in console to see if it\'s the case.

Good luck
m0nk
toratora
Karma
0
Thanks for the reply.

I think I understand the idea. So you have to mount the files on an actual fedora folder, so that amaroK can see it, right?

The problem is I am Linux newbie, a very newbie one :blush:

I didn\'t use Samba at all to access the other computer files. I had setup the network with the Windows assistant, so I knew the domain name and \"server\" name of the other computer. I used those in fedora, and now I have the other computer mounted on my graphic desktop (it\'s not on my Desktop folder). And that works ok.

So, how can I tell linux to mount that on media/music?


Thanks!!
m0nk
Karma
0
Hi,
you\'re using samba, but as client. Now once more (as already writen in my first reply!!).http://amarok.kde.org/components/com_si ... s/wink.png
1. Open a console (konsole on KDE or gnome-terminal on GNOME).
1a. Here you can try:
smbclient -L nameofwinbox
You should see the shares on your winbox.
2. Become root !
3. Create a folder for mounting your share, let\'s say /media/share:
mkdir -p /media/share
4. Type in:
smbmount //servername/sharename /media/share
where server is the name of your winbox and share, well I think this should be clear. If nothing goes wrong, you can change to /media/share and you should see the files of your winboxes share.
5. For automagically mounting the share add the following line to your /etc/fstab:
//servername/sharename /media/share smbfs defaults 0 0
6. As already said, when using username,password on the winbox, replace \"defaults\" with \"username=yourusername,password=yourpassword\" in fstab.
7. type exit in the console
8. Open amarok and browse to your mounted share.

BTW: italics should be typed in console. Bolds should be added to a file

m0nk
toratora
Karma
0
Thanks a lot for the reply. That\'s what a linux newbie needs :)

Unfortunately, I got stuck in the first step:

smbclient -L nameofwinbox
Connection to nameofwinbox failed




:(
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
Okay,
are you kidding me? nameofwinbox means, that you enter the name of your windows computer, serving the shares. I don\'t know the name, so I\'m using placeholders.

Greetings
m0nk


If men could get pregnant, abortion would be a sacrament.
toratora
Karma
0
First of all, thank you for your patience. Unfortunately I was not kidding, I have no idea of Linux as you\'ve already seen :blush: . Your directions were great and very clear, but I found another problem.

When I type smbmount, I get
-bash: smbmount: command not found

No problem with the smbclient though.


Thanks!
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
Hi,
try to replace smbmount with mount -t smbfs. Have you inserted the line in /etc/fstab? Then you can try mount /media/share,too.

Greetings
m0nk


If men could get pregnant, abortion would be a sacrament.
totaora
Karma
0
Hi again

I found out that they replaced smbmount with cifs in fedora 5, so that\'s what I tried and it work! I used mount -t cifs and I finally could make the library work.

No, what i hope is my last question:

How can i edit fstab to mount this everytime I boot the computer?


Thanks for all your help!
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
Hi,
fine, now it works so far. CIFS is the successor of smbfs. So you can add the following line to your fstab
//servername/sharename /media/share cifs defaults 0 0
where servername is your Windows computer and sharename is the directory.

Keep on amaro(c)kin\'
m0nk


If men could get pregnant, abortion would be a sacrament.
toratora
Karma
0
Works great but for one little thing. It asks my passwork while booting. Can I add something into the file to avoid this?


THANKS!!!
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
Hi,
just replace defaults with user=yourusername,pass=yourpassword in fstab, where user and password are the ones you use on Windows.

Greetings
m0nk


If men could get pregnant, abortion would be a sacrament.
toratora
Karma
0
Thank you very much for all your help. I really appreciate it, you were very useful and patiente.

THANKS A LOT!
Martin Goose
Registered Member
Posts
1
Karma
0
Using amarok with Ubuntu 6.06

When I follow the instructions above using "mount -t smbfs", I get the response:-

mount: wrong fs type, bad option, bad superblock on //nas/podcasts,
      missing codepage or other error
      In some cases useful info is found in syslog - try
      dmesg | tail  or so

Any ideas?
narky
Registered Member
Posts
2
Karma
0
Hi Martin and hopefully any other willing helpers!

I've been looking for something like Amarok for a long time, my thanks.

My apologies if this is in the wrong thread. And at the length of this post.

Martin Goose wrote:Using amarok with Ubuntu 6.06

When I follow the instructions above using "mount -t smbfs", I get the response:-

mount: wrong fs type, bad option, bad superblock on //nas/podcasts,
      missing codepage or other error
      In some cases useful info is found in syslog - try
      dmesg | tail  or so

Any ideas?


I use Ubuntu 6.06 too! I'm a complete linux novice. After far too many hours....
After trying heaps of aps to mount the network shares I decided there inherent instability was causing me my troubles. I also decided that Amarok (can't remember where I read it) was more stable on kde (kubuntu) rather than gnome based ubuntu. If you choose to use kde there's an article of sorts (that worked for me) here:
http://www.ubuntuforums.org/archive/ind ... 86555.html
and an explanation of what it's doing is here:
https://help.ubuntu.com/community/InstallingKDE
However I don't understand this to be essential.

My real discovery was:
"How to mount/unmount network folders manually, and allow all users to read"
located as part of the incredibly useful ubuntu onofficial guide:
How to mount/unmount network folders manually, and allow all users to read
Read #General Notes
Read #How to install Samba Server for files/folders sharing service
e.g. Assumed that network connections have been configured properly
Network computer's IP: 192.168.0.1
Network computer's Username: myusername
Network computer's Password: mypassword
Shared folder's name: linux
Local mount folder: /media/sharename
To mount network folder
sudo mkdir /media/sharename
sudo mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword

To unmount network folder
sudo umount /media/sharename/

http://ubuntuguide.org/wiki/Dapper#How_ ... rs_to_read
If you keep scrolling down it has similiar sorts of instructions (read/write/permenant mounts on boot instructions etc)

Okay so that works for me now but...
If I point Amarok to the collection Amarok doesn't seem to be able to build the database. I suspect there is just to many files there and it conks out. If I point it to a smaller subdirectory say one that only has 50 tracks it has no problems at all, works beautifully in fact (hence i'm so Amarok obsessed!). Any ideas anyone?

If I point it to build a collection off all the tracks it basically locks up. I then have to do a force terminate and the share dissapears (?!?). And I can't unmount it in the terminal because it says it's in use.

Network wise. I can stream music fine using rhythmbox in ubuntu, but it builds the database everytime and does have the same groovey functionality of Amarok. I've even streamed wirelessly, so I don't  believe it's my infrastructure problem. Would an earlier build perhaps help? Assuming, we/I can eventually get it working, do I have to enable the whole dynamic collection thing? It's one of the big reasons I like the idea of using Amarok.

My setup:
  • Ubuntu 6.06 (latest) with kde kubuntu on top.
    Amarok 1.4.2
    NAS music (approx 7000 mp3 tracks) stored on a synology disk station 101j

Cheers,
Chris

[EDIT: Just found a good article here:
http://www.justlinux.com/nhf/Filesystem ... ently.html

Okay so after searching for ages, there's already a thread on it!
http://amarok.kde.org/forum/index.php/t ... 916.0.html
"Cannot build collection (Collection scan was aborted, since too many problems..)"
And yes, it appears it was stearing at me in the face the whole time!]

Last edited by narky on Tue Sep 05, 2006 11:55 am, edited 1 time in total.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]