LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-01-2003, 12:06 AM   #1
chrismiceli
Member
 
Registered: Aug 2002
Posts: 349

Rep: Reputation: 31
linux to linux


what is the best way to share files between linux and linux, is it samba, nfs or something else?
 
Old 06-01-2003, 12:10 AM   #2
log
Member
 
Registered: Dec 2002
Location: South Australia
Distribution: Gentoo
Posts: 113

Rep: Reputation: 15
NFS, it works quite well and allows you to mount a network drive as one of your own.
 
Old 06-01-2003, 12:12 AM   #3
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
nfs
 
Old 06-01-2003, 12:36 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Uh, just to re-itterate in case it wasn't clear, NFS

Cool
 
Old 06-01-2003, 12:55 AM   #5
chrismiceli
Member
 
Registered: Aug 2002
Posts: 349

Original Poster
Rep: Reputation: 31
i am trying to get nfs to work now but i can't seem to, i am trying to start the deamons but i get this error message

[root@localhost bane]# /usr/sbin/rpc.mountd
Cannot register service: RPC: Unable to send; errno = Invalid argument

that is after i ran
/sbin/portmap

i tried to do it running the redhat service command but that didn't work either
[root@localhost bane]# service nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: Cannot register service: RPC: Unable to send; errno = Invalid argument
rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).
[FAILED]

I have redhat 9.0 and my /etc/exports looks like this

/home/ 192.168.1.107(rw)

i am using this tutorial
http://nfs.sourceforge.net/nfs-howto/
 
Old 06-01-2003, 01:10 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Just some ideas (since I didn't do the quota thing with my NFS):

1. Maybe you didn't enable quotas in your kernel?
2. Have you check to see if it's running:
rpcinfo -p

What do you get from that command?

Cool
 
Old 06-01-2003, 01:28 AM   #7
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
The easiest is ssh and scp.
NFS is a close 2nd.
 
Old 06-01-2003, 01:41 AM   #8
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Some linkage that may help.

Redhat 9.0's Network Configuration
Networking HOWTOs
 
Old 06-01-2003, 01:44 AM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by 2damncommon
The easiest is ssh and scp.
NFS is a close 2nd.
How do you "easily" use ssh to transfer files from 1 box to the other?

Cool
 
Old 06-01-2003, 01:49 AM   #10
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
How do you "easily" use ssh to transfer files from 1 box to the other?
I would guess you already know this, but ssh would be used to list any and view text files while scp will copy files from one PC to the other. This with just the ssh server running and without configuring /etc/exports or /etc/fstab.
Of course after a sucessful correct configuration of NFS one could view any files at all as if they were on the viewing PC. A defination of easy is called for, I guess.
 
Old 06-01-2003, 02:02 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Thanks for the vote of confidence but I didn't know that. I don't know what scp is. I've been using ssh for a long time, and here's what I do to transfer files (if I am just too lazy to mess with exports on NFS at the moment):
ssh -l username boxname
{enter pass}
cd /path/to/directory/to/save/file/to
ftp masterc (box I am ssh'ing from)
Login name
pass
get filename.tar.gz
exit
And then I have the file on the other box. Pretty damn incovenient, but works So I guess I'll be looking into scp and giving it a try.

Thanks for the info.

Cool
 
Old 06-01-2003, 02:07 AM   #12
log
Member
 
Registered: Dec 2002
Location: South Australia
Distribution: Gentoo
Posts: 113

Rep: Reputation: 15
nfs isnt that hard to set up. I was using it for a while, but went back to FTP because I didnt want the NFSD running on my other computer that I use specifically for timing how long algorithms take to run.
 
Old 06-01-2003, 02:11 AM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by log
...I use specifically for timing how long algorithms take to run.
{OT}
What? Care to expand on that? If it's private or you just don't want to, simply ignore this post. But uh, what kinds of alogrithms are you running that you need to time them?

{OnTopic}
Chris, you get this figured out yet?
Can you not post up your rpcinfo -p info?

Cool
 
Old 06-01-2003, 02:12 AM   #14
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
Thanks for the vote of confidence
I'm a little surprised you had not heard of scp, although it is somewhat obscure.
I heard about it while I was trying to send files to a shell account that did not allow FTP. I had zero luck attempting to use lrzsz and minicom (telnet rather than secure) but heard about scp and have used it often ever since.
If you use ssh, you will like scp.
 
Old 06-01-2003, 02:15 AM   #15
log
Member
 
Registered: Dec 2002
Location: South Australia
Distribution: Gentoo
Posts: 113

Rep: Reputation: 15
you learn something about linux every day that you use it

any other interesting things that you know of? hehe
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
access external hard drive linux partition on linux and vice versa garyozzy Linux - Newbie 2 08-03-2005 06:11 PM
setting up data exchange between Red Hat Linux and Windows 98 - Linux Newbie Hosiah Linux - Newbie 3 09-13-2004 01:11 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:00 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration