Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-26-2006, 03:18 AM
|
#1
|
Member
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139
Rep:
|
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.
|
|
|
02-26-2006, 04:01 AM
|
#2
|
LQ Newbie
Registered: Jan 2006
Posts: 20
Rep:
|
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)
|
|
|
02-26-2006, 04:36 AM
|
#3
|
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,492
Rep:
|
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.
|
|
|
02-26-2006, 04:37 AM
|
#4
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep: 
|
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.
|
|
|
02-26-2006, 09:43 AM
|
#5
|
Member
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139
Original Poster
Rep:
|
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.
|
|
|
02-26-2006, 09:55 AM
|
#6
|
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,492
Rep:
|
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...
|
|
|
02-26-2006, 10:49 AM
|
#7
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
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)
|
|
|
02-26-2006, 11:22 AM
|
#8
|
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,492
Rep:
|
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
|
|
|
02-26-2006, 09:47 PM
|
#9
|
Member
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139
Original Poster
Rep:
|
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! 
|
|
|
02-27-2006, 12:14 AM
|
#10
|
Senior Member
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639
Rep: 
|
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
|
|
|
02-27-2006, 02:14 AM
|
#11
|
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,492
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|