LinHES Forums
http://forum.linhes.org/

LinuxMyth to XP Sharing ... ?
http://forum.linhes.org/viewtopic.php?f=5&t=676
Page 1 of 2

Author:  kolemieux [ Mon Feb 09, 2004 12:16 pm ]
Post subject:  LinuxMyth to XP Sharing ... ?

I am still digging for some data on this, but thought I'd post for advice and or a pointer?

I must admit - the Samba HOW-TO was beyond superb. Cesman, I am using that and "the Pretty script" awesome.

I am wondering how hard it is to:
1 - Have my Mythbox establish a pointer/shortcut/map to an XP share?

2 - Can I then define more than one path (or that path) to have the Videos/Mplayer access.

3 - Could this also work for the MUSIC library?

Any advice or direction on this?

Thanks much

Author:  rusty0101 [ Mon Feb 09, 2004 1:41 pm ]
Post subject: 

You can mount a windows or other samba server share to your mythtv box.

I already have a server set up that shares all of my mp3 files internally. I dicided it wasn't worth it to move everything over to my Myth box, as this box already had Samba installed on it, and could share the folder without any problem.

To start with I configured the share as MyMusic, and since I would like to be able to use my MythTV box to update the files, create new ones, etc, I also made sure that I could write as well as read the share. You may have different ideas, but this is what worked for me. On XP, you should be able to just right click on the folder you want to share, and select "share" or "share as..." and you should be able to give it a share name.

Now the MythTV box needs something that has not been installed yet, which is the smbfs package. Run the command:

apt-get install smbfs

as root and it should be installed. You may have to tweek your apt sources, as I have been able to do this with one myth box, but not the other, both built off the R4 CD.

Since this is my Music folder, I first made sure that there was nothing in the folder /myth/music, then ran the command:

smbmount //username:password@server/MyMusic /myth/music

Once I confirmed that this worked, I edited my /etc/fstab to include the line:

//servername/MyMusic /myth/music smbfs uid=101,gid=101,password=password,username=username 0 0

(which should all appear on line line.)

Now every time I reboot the share is mounted, and mythtv can play the music located there. Setting the uid and gid to 101 means that if the share is writable that mythtv can write it.

I am not sure how to set XP to restrict access to the folder to specific users, nor how to configure passwords for those users.

Hope that this helps.

Author:  dequire [ Mon Feb 09, 2004 2:52 pm ]
Post subject:  Cool

That's just what I was looking for. Thanks!

8)

Author:  jesse [ Mon Feb 09, 2004 5:47 pm ]
Post subject: 

rusty0101 wrote:

I am not sure how to set XP to restrict access to the folder to specific users, nor how to configure passwords for those users.



Windows XP has a simple file sharing turned on by default. You change this by opening Window Explorer, Tools, Options, View tab, uncheck Simple file sharing.

This will open a new Secutiry tab if you right click on folders. From there you can change permissions around by user/group.

Finally, my Windows skills pay off!

Author:  kolemieux [ Mon Feb 09, 2004 7:19 pm ]
Post subject:  Thanks a ton Rusty

Rusty,

I am going to give this a whirl but I want to say THANKS IN A BIG WAY. This was a tremendous response - and very very well written.

Thanks so much for it - I sincerely appreciate it.

rusty0101 wrote:
You can mount a windows or other samba server share to your mythtv box.

I already have a server set up that shares all of my mp3 files internally. I dicided it wasn't worth it to move everything over to my Myth box, as this box already had Samba installed on it, and could share the folder without any problem.

To start with I configured the share as MyMusic, and since I would like to be able to use my MythTV box to update the files, create new ones, etc, I also made sure that I could write as well as read the share. You may have different ideas, but this is what worked for me. On XP, you should be able to just right click on the folder you want to share, and select "share" or "share as..." and you should be able to give it a share name.

Now the MythTV box needs something that has not been installed yet, which is the smbfs package. Run the command:

apt-get install smbfs

as root and it should be installed. You may have to tweek your apt sources, as I have been able to do this with one myth box, but not the other, both built off the R4 CD.

Since this is my Music folder, I first made sure that there was nothing in the folder /myth/music, then ran the command:

smbmount //username:password@server/MyMusic /myth/music

Once I confirmed that this worked, I edited my /etc/fstab to include the line:

//servername/MyMusic /myth/music smbfs uid=101,gid=101,password=password,username=username 0 0

(which should all appear on line line.)

Now every time I reboot the share is mounted, and mythtv can play the music located there. Setting the uid and gid to 101 means that if the share is writable that mythtv can write it.

I am not sure how to set XP to restrict access to the folder to specific users, nor how to configure passwords for those users.

Hope that this helps.

Author:  cards [ Tue May 11, 2004 6:57 pm ]
Post subject: 

Can I assume this same process will work for videos too? I'm deciding what parts to buy right now, and hard drive size is one I'm having trouble with...because I'd really prefer to keep the strong majority of my media files on a seperate server. I haven't gotten started yet, but I'd just like to know that networked (not just local) videos can be browsed and played the way they are shown on the MythTV site's screenshots with imdb data such as covers and descriptions.

Author:  cesman [ Wed May 12, 2004 1:15 am ]
Post subject: 

That is a safe assumption.

Author:  cesman [ Wed May 12, 2004 2:39 am ]
Post subject: 

kolemieux, why was this posted in installation? Installation is for KnoppMyth related installation issues. I'd like to keep things seperated in the forum so it is easier to find things.

Author:  esteban [ Mon Dec 13, 2004 10:09 pm ]
Post subject: 

I get this error when I mount one of my XP directories into /myth/music and try to "ls"

Code:
Stale NFS file handle

Author:  Xsecrets [ Mon Dec 13, 2004 10:17 pm ]
Post subject: 

well you are definately doing something wrong if you are trying to mount an XP share and getting an NFS error. XP uses samba not nfs.

Author:  esteban [ Mon Dec 13, 2004 10:41 pm ]
Post subject: 

Xsecrets wrote:
well you are definately doing something wrong if you are trying to mount an XP share and getting an NFS error. XP uses samba not nfs.

I follolwed the instructions found here: http://knoppmythwiki.homelinux.org/inde ... SambaHowTo

and used this method: smbmount //10.0.0.100/Downloads /myth/music/protoss

I am as puzzled as the next person, seems like a simple proceedure. I can map a myth directory from XP quite easily using webmin but not the other way round.

Author:  Xsecrets [ Mon Dec 13, 2004 11:49 pm ]
Post subject: 

well not sure where that nfs error is coming from, but it is deffinately not from the smbmount.

Author:  esteban [ Tue Dec 14, 2004 12:39 am ]
Post subject: 

Xsecrets wrote:
well not sure where that nfs error is coming from, but it is deffinately not from the smbmount.


Well - if I smbmount an XP directory then ls always returns that error in the said mounted directory. I guess I will have to troubleshoot it some more.

Author:  srahrens [ Sun Jan 30, 2005 3:54 pm ]
Post subject: 

I had a heck of a time getting samba shares secure without the "stale handle" problem occurring. I tried everything I could think of - making a new myth admin account on my XP machine, etc etc. In the end only one specific combination of settings allowed me to share Windows XP folders in a secure way:

- use xp's administrator username and password when declaring mounts in /etc/fstab

- turn off simple file sharing in winxp

- in the sharing permissions for the xp folder you want to share, remove the "Everyone" entry and add the group "Administrators" with full control.

This was the only thing that worked! Even a simple change such as allowing the administrator user full control (instead of administrators group) caused the stale handle problem. in the end, though, I was able to share the folders securely on a wireless network without fears (at least, without as many fears).

I hope this helps someone, it took me forever to figure out.
--sa

Author:  aquamike7 [ Tue Mar 01, 2005 8:51 pm ]
Post subject: 

ok, i am probably missing something obvious but i am trying to follow the above instructions...
Quote:
Since this is my Music folder, I first made sure that there was nothing in the folder /myth/music, then ran the command:

smbmount //username:password@server/MyMusic /myth/music

Once I confirmed that this worked, I edited my /etc/fstab to include the line:

//servername/MyMusic /myth/music smbfs uid=101,gid=101,password=password,username=username 0 0

(which should all appear on line line.)


my question is what to type where....
is username:password the username for the XP share? is it for the myth box?

I have set up a share on the XP box called mp3s, so what would the line look like?
my xp box's ip address is 192.168.1.102

Thanks so much!!!!!

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/