LinHES Forums http://forum.linhes.org/ |
|
mapping/configuring a share from another linux box http://forum.linhes.org/viewtopic.php?f=14&t=8676 |
Page 1 of 1 |
Author: | edacsac [ Thu Feb 23, 2006 11:54 am ] |
Post subject: | mapping/configuring a share from another linux box |
Hi all, I'm working on a KnoppMyth install, but one of my plans is to have a folder/shared drive/mount point mapped to another linux box that I already store media on. Ideally I would like the KnoppMyth box to write to this share and use it as the media folder, but I'm not sure how well it will do running over 11mbps wireless. If I can't get it to write well, I still want to access media on that machine. So... How do I "map a drive" from linux to linux? I've set up Samba on several boxes (including the box I want to map to), but I've always connected with a windows machine. I'm not even sure what terms to use in a forum search for mapping linux to linux. I know Samba manages the sharing, so I'm thinking I won't be using Samba on the KnoppMyth box to map my drive or sharepoint. Please point me in the right direction! |
Author: | bonarez [ Thu Feb 23, 2006 3:13 pm ] |
Post subject: | |
you can use fstab for that http://www.justlinux.com/nhf/Filesystems/Mounting_smbfs_Shares_Permanently.html here's one of my fstab lines: //lola/video /myth/video smbfs credentials=/home/mythtv/.smbpasswd 0 0 the lola server in this case is linux with samba |
Author: | edacsac [ Fri Feb 24, 2006 7:20 am ] |
Post subject: | |
Thanks bonarez! Easier than I thought. |
Author: | stinga [ Fri Feb 24, 2006 7:27 am ] |
Post subject: | |
Or you could use nfs... http://www.knoppmythwiki.org/index.php?page=NFSHowTo |
Author: | tjc [ Fri Feb 24, 2006 6:42 pm ] |
Post subject: | |
What stinga said. NFS will give you markedly better performance than SMB without the file size restrictions. |
Author: | bonarez [ Fri Feb 24, 2006 7:43 pm ] |
Post subject: | |
Quote: NFS will give you markedly better performance than SMB without the file size restrictions.
true, NFS gives a far better performance then any other file transfer protocol, even ftp However I still prefer samba for compatibility reasons. I'm running a 'mixed' network here, including several gnu/linux, a windows 2k and a mac os9. While it's possible to connect to nfs shares from windows, I haven't tried it from mac. smb shares are easily accesible from all os's I work with so imho samba is the easiest. |
Author: | edacsac [ Sat Feb 25, 2006 6:15 pm ] |
Post subject: | |
Thanks for all the opinions. I set up a samba share as well as an nfs share, and I find the nfs share to do the "buffer stutter" less, but both would be rough to actually "watch" something over the network. Although I can get through videos whithout a stutter that are small in size, say 10-20 mb, but any dvd rips are stutter madness. I guess 11b isn't enough throughput to stream video. I'll probably throw in a wired card once I work through some other things. I wish there was some way to setup a buffer or read ahead with the video player. I was hopeful for a minute when I found the mythstream directory, but after further reading I found out it wasn't what I thought it was. |
Author: | spalVl [ Sun Feb 26, 2006 12:57 am ] |
Post subject: | |
Quote: wish there was some way to setup a buffer or read ahead with the video player.
If you are using MythVideo with the default of Mplayer there is. This command will utilize a 2MB cache. Code: echo cache=2048 >> /home/mythtv/.mplayer/config Personally I don't like using fstab, can have share timeouts and loses connection. I prefer autofs (great howto on the WIKI) and soft links in appropiate media directory. This is script I use to quickly setup Knoppmyth's connection to my windos box. (replace parameters) Code: /etc/init.d/samba start
update-rc.d samba defaults echo “/mnt/network /etc/auto.samba.mnt --timeout=2 -–ghost” >>/etc/auto.master echo “%servername-share% -fstype=smbfs,credentials=/home/mythtv/.smbpassword ://%windows-server-name%/%shared-folder-name%” >>/etc/auto.samba.mnt echo username=%username% >> /home/mythtv/.smbpassword echo password=%password% >> /home/mythtv/.smbpassword /etc/init.d/autofs stop /etc/init.d/autofs start ln –s /myth/gallery/%servername-share% /mnt/network/%servername-share%/pics ln –s /myth/music/%servername-share% /mnt/network/%servername-share%/audio ln –s /myth/video/%servername-share% /mnt/network/%servername-share%/videos #Add 2MB cache for Mplayer, assists in playing of network video files echo cache=2048 >> /home/mythtv/.mplayer/config |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |