Author |
Message |
kolemieux
|
Posted: Mon Feb 09, 2004 12:16 pm |
|
Joined: Sat Jan 31, 2004 2:48 pm
Posts: 77
|
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
|
|
Top |
|
 |
rusty0101
|
Posted: Mon Feb 09, 2004 1:41 pm |
|
Joined: Mon Jan 05, 2004 1:30 pm
Posts: 139
Location:
New Hope, MN
|
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.
|
|
Top |
|
 |
dequire
|
Posted: Mon Feb 09, 2004 2:52 pm |
|
Joined: Tue Feb 03, 2004 11:05 pm
Posts: 18
Location:
Ohio
|
That's just what I was looking for. Thanks!

_________________ Where all think alike, no one thinks very much.
- Walter Lippmann
|
|
Top |
|
 |
jesse
|
Posted: Mon Feb 09, 2004 5:47 pm |
|
Joined: Fri Jan 09, 2004 8:30 pm
Posts: 146
Location:
Reno, NV
|
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!
|
|
Top |
|
 |
kolemieux
|
Posted: Mon Feb 09, 2004 7:19 pm |
|
Joined: Sat Jan 31, 2004 2:48 pm
Posts: 77
|
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.
|
|
Top |
|
 |
cards
|
Posted: Tue May 11, 2004 6:57 pm |
|
Joined: Sun Dec 14, 2003 10:57 pm
Posts: 65
|
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.
|
|
Top |
|
 |
cesman
|
Posted: Wed May 12, 2004 1:15 am |
|
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location:
Fontana, Ca
|
That is a safe assumption.
_________________ cesman
When the source is open, the possibilities are endless!
|
|
Top |
|
 |
cesman
|
Posted: Wed May 12, 2004 2:39 am |
|
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location:
Fontana, Ca
|
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.
_________________ cesman
When the source is open, the possibilities are endless!
|
|
Top |
|
 |
esteban
|
Posted: Mon Dec 13, 2004 10:09 pm |
|
Joined: Wed Dec 08, 2004 10:45 pm
Posts: 38
Location:
Vancouver BC
|
I get this error when I mount one of my XP directories into /myth/music and try to "ls"
Code: Stale NFS file handle
|
|
Top |
|
 |
Xsecrets
|
Posted: Mon Dec 13, 2004 10:17 pm |
|
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location:
Nashville, TN
|
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.
_________________ Have a question search the forum and have a look at the KnoppMythWiki.
Xsecrets
|
|
Top |
|
 |
esteban
|
Posted: Mon Dec 13, 2004 10:41 pm |
|
Joined: Wed Dec 08, 2004 10:45 pm
Posts: 38
Location:
Vancouver BC
|
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.
|
|
Top |
|
 |
Xsecrets
|
Posted: Mon Dec 13, 2004 11:49 pm |
|
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location:
Nashville, TN
|
well not sure where that nfs error is coming from, but it is deffinately not from the smbmount.
_________________ Have a question search the forum and have a look at the KnoppMythWiki.
Xsecrets
|
|
Top |
|
 |
esteban
|
Posted: Tue Dec 14, 2004 12:39 am |
|
Joined: Wed Dec 08, 2004 10:45 pm
Posts: 38
Location:
Vancouver BC
|
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.
|
|
Top |
|
 |
srahrens
|
Posted: Sun Jan 30, 2005 3:54 pm |
|
Joined: Sun May 02, 2004 7:04 pm
Posts: 53
|
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
|
|
Top |
|
 |
aquamike7
|
Posted: Tue Mar 01, 2005 8:51 pm |
|
Joined: Fri Nov 12, 2004 8:40 am
Posts: 45
|
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!!!!!
|
|
Top |
|
 |