LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Networking two Slack boxes (https://www.linuxquestions.org/questions/slackware-14/networking-two-slack-boxes-419664/)

SaintsOfTheDiamond 02-26-2006 03:18 AM

Networking two Slack boxes
 
I've been reading some tutorials/guides/etc here and there about Samba and I'm a little confused. I have two Slack boxes (my main box and an old POS I plan to use as a place to practice a little Apache/web serving) and I want to just transfer files between them. Do I have to have something like Samba running to send say an HTML or script file from my main box to my other "test" server? Most of the Samba guides I've found deal with transferring files between Linux and Windows. :confused: My computers are already connected to the internet via a router (hence each other) so I guess I'm looking for a quick and easy solution rather than having to straighten out my myriad of questions and confusion with Samba. :D

dom83 02-26-2006 04:01 AM

1) If you only want to transfer files, have a look at scp. On the server side you only have to run sshd.

2) Samba. On the client side you have to mount your samba share. Look for smbmount (it's equal to: "mount -t smbfs"). It would be the same as mounting a Windows share.

3) NFS. I don't know if Slack's Kernel support nfs, but I think so. Google for the NFS HOWTO.


So it's up to you. In my eyes the easiest solution is the scp one.

(Maybe for the future: There are also projects to mount directories with plain ssh. sshfs or shfs for example. But they didn't work stable enough on my setup)

satinet 02-26-2006 04:36 AM

dont use samba to talk between linux boxes. it's like both slack boxes having a chineese interpretter e.g

slack 1 (english) > chineese 1 (mandarin) > chineese 2 (mandarin) > slack 2 (english)

as you can see it's silly and complicated. using nfs, scp, ftp....

slack 1 (english) > slack 2 (english).

well silly analogy but you get the point. samba is for windows compatibilty.

you could use NFS, but personally i would just use SSH for the odd file transfer (use nfs if you want to copy things all the time). SCP is part of the SSH suite of tools.

i just wrote this mini howto on SSH.

hope it helps....

http://www.linuxquestions.org/questi...d.php?t=419680

dive 02-26-2006 04:37 AM

If you want to play with Apache, just run it on one box and use its ip in the browser on the other box to connect.

If you want use ssh to connect from one to other to run commands and/or start services use 'ssh ip'. You will be asked pass and then you can run commands as if you were sitting at other box.

SaintsOfTheDiamond 02-26-2006 09:43 AM

Quote:

Originally Posted by satinet
dont use samba to talk between linux boxes. it's like both slack boxes having a chineese interpretter e.g

slack 1 (english) > chineese 1 (mandarin) > chineese 2 (mandarin) > slack 2 (english)

as you can see it's silly and complicated. using nfs, scp, ftp....

slack 1 (english) > slack 2 (english).

well silly analogy but you get the point. samba is for windows compatibilty.

Actually it's a great analogy. :) I'll take a look at that tutorial and see what I can dig up on Google. :study: I just had no idea where to start and now I've got a little better idea of what I need .. I think. :D

satinet 02-26-2006 09:55 AM

with my howto you should be able to copy files between your boxes very easily.

it may be worth setting up NFS is you require mounted file systems...

cwwilson721 02-26-2006 10:49 AM

I use NFS because I mount drives/tranfer loads of files.

Fairly easy to setup, and Slackware DOES support it straight out of the kernel.(Sorry, dom83. Slackware supports most everything. Recompiles for me are required to get RID of stuff I don't use....lol)

satinet 02-26-2006 11:22 AM

yes, i'm using a NetBSD NFS server and a Slackware NFS client. although it also work's the other way around.

if you want an nfs client in slackware dont forget to chmod +x /etc/rc.d/rc.portmap

SaintsOfTheDiamond 02-26-2006 09:47 PM

Just a quick update. I got my computers talking and I'm able to send files back and forth using scp following satinet's How-To in the other thread. :cool: I'm sure I'll be content with this setup for a while until the novelty/convenience wears off and I have time to look into NFS a little more. :D Thanks again! :)

BCarey 02-27-2006 12:14 AM

scp is great.

Another option is using Konqueror (assuming you use kde) and typing "fish://remote_host" in the url window. You'll be prompted for your user name and password on the remote machine.

Brian

satinet 02-27-2006 02:14 AM

okay i'll do the NFS howto soon, when i get the time ;)

if you like my SSH post, please rate it :-) thanks


All times are GMT -5. The time now is 10:42 AM.