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

Best way to share Knoppmyth drive(s) ?
http://forum.linhes.org/viewtopic.php?f=6&t=6765
Page 1 of 2

Author:  ffrr [ Fri Nov 04, 2005 2:03 am ]
Post subject:  Best way to share Knoppmyth drive(s) ?

I would like to make the drives on my knoppmyth box available over my home network so I can do things like look and edit config files remotely. What would be the best method? I have used Samba to share drives in the past, but as my other machine is a Mandriva linux machine, should I use NFS (which I would have to learn about, but that's OK)?

Is any of this software installed by default in Knoppmyth?

Author:  mad_paddler [ Fri Nov 04, 2005 2:57 am ]
Post subject: 

I think samba and nfs are installed by default in r5a22. Samba needs to be told to start on boot, i think this is the command:

update-rc.d /etc/init.d/samba

I've never actually used nfs so i have no idea about that!

Author:  ffrr [ Fri Nov 04, 2005 3:00 am ]
Post subject: 

mad_paddler wrote:
I think samba and nfs are installed by default in r5a22. Samba needs to be told to start on boot, i think this is the command:

update-rc.d /etc/init.d/samba

I've never actually used nfs so i have no idea about that!


OK, thanks, I appreciate the quick reply too. :D

Author:  Girkers [ Fri Nov 04, 2005 5:50 am ]
Post subject: 

Here is a quick script to get NFS working as it is quicker and probably more reliable than Samba.

Code:
   echo "/myth   *(rw)" >> /etc/exports
   mv /etc/mysql/my.cnf /etc/mysql/my.cnf.old
   < /etc/mysql/my.cnf.old |
      sed -e 's/skip-networking/#skip-networking/g' > /etc/mysql/my.cnf
/etc/init.d/nfs-kernel-server start && update-rc.d nfs-kernel-server defaults


Give that a go.

Author:  ffrr [ Fri Nov 04, 2005 4:14 pm ]
Post subject: 

Girkers wrote:
Here is a quick script to get NFS working as it is quicker and probably more reliable than Samba.

Code:
   echo "/myth   *(rw)" >> /etc/exports
   mv /etc/mysql/my.cnf /etc/mysql/my.cnf.old
   cat /etc/mysql/my.cnf.old | \
      sed -e 's/skip-networking/#skip-networking/g' > /etc/mysql/my.cnf
/etc/init.d/nfs-kernel-server start && update-rc.d nfs-kernel-server defaults


Give that a go.


Yes, that worked nicely thank you. Mandriva (on my remote machine) found and mounted the nfs share easily.

There are a couple of lines in that script that deal with my.cnf. Am I correct that they aren't really anything to do with nfs, but enable network connections into mysql?

Author:  tjc [ Fri Nov 04, 2005 9:27 pm ]
Post subject: 

Dude! You're getting good at this! :D One minor suggestion - the \ after the pipe is redundant, but so is the cat itself. You can just use '<'.
Girkers wrote:
Here is a quick script to get NFS working as it is quicker and probably more reliable than Samba.
Code:
   echo "/myth   *(rw)" >> /etc/exports
   mv /etc/mysql/my.cnf /etc/mysql/my.cnf.old
   cat /etc/mysql/my.cnf.old | \
      sed -e 's/skip-networking/#skip-networking/g' > /etc/mysql/my.cnf
/etc/init.d/nfs-kernel-server start && update-rc.d nfs-kernel-server defaults


Give that a go.

Author:  Girkers [ Sun Nov 06, 2005 10:04 pm ]
Post subject: 

Thanks tjc, I have made your amendments as suggested and confirm that it works fine in R5A22. Thanks for your help.

Author:  klancast [ Thu Dec 01, 2005 9:04 pm ]
Post subject: 

One quick question, can I have NFS and Samba active at the same time. NFS for WinXP machines and NFS for Linux?

Or can NFS work for Windose as well as Linux machines??

Sorry for the newbe question, I have a Mandrake Samba Server ffor my Windose files but hadn't used NFS>

kevin

Author:  Girkers [ Thu Dec 01, 2005 9:49 pm ]
Post subject: 

Yeah you can without worry.

Author:  klancast [ Fri Dec 02, 2005 9:41 am ]
Post subject: 

Thanks for the quick reply. Sorry for the non spell check question.

I did mean NFS for Linux shares and Samba for Windose shares, but from your answer it seems that I can start both and that will work.

Kudos to all who put together the KnoppMyth and associated forums. Couldn't believe how easy it was to get up and recording.

Author:  jsprenkle [ Sun Dec 04, 2005 1:56 pm ]
Post subject: 

mad_paddler wrote:
I think samba and nfs are installed by default in r5a22. Samba needs to be told to start on boot, i think this is the command:

update-rc.d /etc/init.d/samba

I've never actually used nfs so i have no idea about that!


for r5a16 it was:
update-rc.d samba defaults 90
(for run at 90, after networking is up but before the gui starts)

Author:  kingtj [ Thu Dec 29, 2005 8:58 pm ]
Post subject:  Poor network throughput w/Samba on Myth and OS X?

I stumbled onto this whole message thread because I was trying to resolve my problem with my R5A16 Myth box and my PowerMac G5 running OS X Tiger 10.4.3.

I followed the advice to enable the Samba server on the Myth box and it seems to be sharing just fine - BUT, whenever I connect to it from my Mac, I get *horribly slow* transfer rates trying to copy over large files to it. (It took about 11 hours to copy an approximately 700MB video file!)

I don't have any other network performance issues copying to/from any other machine on my LAN -- just this issue with Myth and OS X.

I think I'll try switching to NFS as suggested here, but still - this has me puzzled now. Are there configuration settings for Samba I should be changing to optimize it for playing nicely with an OS X machine?

Author:  cliffgarner [ Sat Dec 31, 2005 6:22 am ]
Post subject:  Script

Where does this go and how do I get it there?

Author:  cesman [ Sat Dec 31, 2005 3:06 pm ]
Post subject: 

Could you be anymore vague?

Author:  Girkers [ Mon Jan 02, 2006 9:03 pm ]
Post subject:  Re: Poor network throughput w/Samba on Myth and OS X?

kingtj wrote:
I stumbled onto this whole message thread because I was trying to resolve my problem with my R5A16 Myth box and my PowerMac G5 running OS X Tiger 10.4.3.

I followed the advice to enable the Samba server on the Myth box and it seems to be sharing just fine - BUT, whenever I connect to it from my Mac, I get *horribly slow* transfer rates trying to copy over large files to it. (It took about 11 hours to copy an approximately 700MB video file!)

I don't have any other network performance issues copying to/from any other machine on my LAN -- just this issue with Myth and OS X.

I think I'll try switching to NFS as suggested here, but still - this has me puzzled now. Are there configuration settings for Samba I should be changing to optimize it for playing nicely with an OS X machine?


kingtj,
Mac OS X is based on UNIX so I would suggest trying NFS as this is more efficient than samba. Enable NFS sharing, there is a thread here with a script to do just that, then on the Mac with Finder selected Apple+K and in the server connection box type nfs://ipaddress click connect.
Try that and please report back your results.

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