LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Linux -> Mac (https://www.linuxquestions.org/questions/linux-networking-3/linux-mac-189708/)

einstein_linux 06-04-2004 01:12 PM

Linux -> Mac
 
I want to be able to see my iBook's drive on my linux machine. Should I use Samba and if so how should I mount it to the linux machine?

fluppi 06-04-2004 04:52 PM

Well,there are many ways to do that:
Samba, FTP, scp and NFS.

To mount (as root!) a samba share, first create a mountpoint "mkdir /mnt/ibook" or so and then mount it there:"mount -t smbfs -o username=YOURSAMBAUSERNAME,password=YOURSAMBAPASSWORD //IBOOKNAME/SHAREDFOLDER /mnt/ibook/"

Maybe it works with the IP insted IBOOKNAME

Samba have sometimes problems with files bigger than 2 GB.
FTP works with every system.
scp = Secure Copy is encrypted
and NFS can te tricky.

Depends on your environment: Private LAN, Company network or Internet.

einstein_linux 06-04-2004 06:14 PM

Thanks!
 
Samba worked great. Is that the best choice out of the three you mentioned? I am familar with ftp but not nfs. Should I just stick with samba?

fluppi 06-05-2004 04:50 AM

IMHO, Samba is good with windows computers or files smaller then 2 GB.

For a safe transfer (through the Internet), you shold use scp. It's very cool, due you can copy from any place to anyplace, you dont need to share a volume, mountpoint or similar !

And NFS is like the Samba for UNIX: You can mount a remote directory, CD, ... and it looks to you as it would be built in your Computer you sit an. It's transparent to the user, but wrongly used, it can be a trap: If your NFS-Server disconnect (Network problem, media change or switched off) you go can go down too, because your system don't give up to search it. In the past, sometimes you had to reboot the client.

Hth
Fluppi

einstein_linux 06-06-2004 01:14 PM

scp?
 
scp intrests me. How do I go about setting that up? Do i have to install it, is there a gui or is it command line?

iainr 06-06-2004 01:30 PM

Re: scp?
 
Quote:

Originally posted by einstein_linux
scp intrests me. How do I go about setting that up? Do i have to install it, is there a gui or is it command line?
I haven't installed these on a Mac yet (should do next week), but try investigating these sites :

http://pro.wanadoo.fr/chombier/index.html
http://www.rbrowser.com
http://rsug.itd.umich.edu/software/fugu/download.html

fluppi 06-06-2004 06:57 PM

If the command line interface is enough for you, then just open a terminal and type: "scp MYFILE REMOTECOMPUTER:/TARGETDIRECTORY" to copy a file to the remote computer.

You can also get a remote file if you know place and name: "scp REMOTECOMPUTER:/TARGETDIRECTORY/HISFILE LOCALDIRECTORY".

On the Mac, I think you have to change the security settings to allow this.

69_rs_ss 06-07-2004 12:02 AM

Is scp just for files or can you use it for whole directories too?

iainr 06-07-2004 03:20 AM

Quote:

Originally posted by 69_rs_ss
Is scp just for files or can you use it for whole directories too?
You can use it for whole directories. The -r (recursive) flag tells scp to copy everything below the directory you specify.

http://www.hmug.org/man/1/scp.html

69_rs_ss 06-07-2004 07:31 AM

Thanks, I've been having trouble trying to rsync a directory so I wanted to try it another way.

fluppi 06-07-2004 09:29 AM

You can tunnel rsync though ssh:
rsync -re ssh LOCALDIR/ USER@REMOTE:/REMOTEDIR

That's why I like Linux/UNIX: there is nothing you can't do !


All times are GMT -5. The time now is 08:27 AM.