LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-26-2006, 03:18 AM   #1
SaintsOfTheDiamond
Member
 
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139

Rep: Reputation: 15
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. 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.

Last edited by SaintsOfTheDiamond; 02-26-2006 at 03:21 AM.
 
Old 02-26-2006, 04:01 AM   #2
dom83
LQ Newbie
 
Registered: Jan 2006
Posts: 20

Rep: Reputation: 1
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)
 
Old 02-26-2006, 04:36 AM   #3
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
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

Last edited by satinet; 02-26-2006 at 06:01 AM.
 
Old 02-26-2006, 04:37 AM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 292Reputation: 292Reputation: 292
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.
 
Old 02-26-2006, 09:43 AM   #5
SaintsOfTheDiamond
Member
 
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139

Original Poster
Rep: Reputation: 15
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. I just had no idea where to start and now I've got a little better idea of what I need .. I think.

Last edited by SaintsOfTheDiamond; 02-26-2006 at 09:52 AM.
 
Old 02-26-2006, 09:55 AM   #6
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
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...
 
Old 02-26-2006, 10:49 AM   #7
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 65
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)
 
Old 02-26-2006, 11:22 AM   #8
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
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
 
Old 02-26-2006, 09:47 PM   #9
SaintsOfTheDiamond
Member
 
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139

Original Poster
Rep: Reputation: 15
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. 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. Thanks again!
 
Old 02-27-2006, 12:14 AM   #10
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,457

Rep: Reputation: Disabled
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
 
Old 02-27-2006, 02:14 AM   #11
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
okay i'll do the NFS howto soon, when i get the time

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

Last edited by satinet; 02-27-2006 at 04:58 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Networking 2 linux boxes together d4harvey Linux - Networking 6 05-29-2004 11:41 AM
Networking with windows boxes SappySE107 Linux - Networking 10 11-18-2003 11:21 PM
Networking problems. Can't connect to any other boxes. cirofren Linux - Networking 2 10-19-2003 06:34 AM
networking two linux boxes dhcp?? mike@wales Linux - Newbie 2 06-02-2003 05:43 PM
Networking 2 Linux boxes Jester21 Linux - Networking 4 01-21-2003 03:28 AM


All times are GMT -5. The time now is 09:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration