LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-02-2003, 04:54 AM   #1
neolus
LQ Newbie
 
Registered: Dec 2003
Location: australia
Distribution: redhat 9
Posts: 6

Rep: Reputation: 0
viewing files on other computer


ive set up the network, i think, i can ping the other computer from the other no probs. However, i am new to this and now i dont know how to view the contents of the other computer from my own, and vice versa etc. any help is appreciated
 
Old 12-02-2003, 05:20 AM   #2
tiger3
Member
 
Registered: Nov 2003
Location: Land of the Rising Sun!
Distribution: Fedors Core 3, Red Hat 9, Mandrake 8.1
Posts: 52

Rep: Reputation: 15
The easiest way of setting up file sharing between Linux boxes is to use NFS. See link for a how to on editing/creating your /etc/exports file and creating mount points.

NFS Configuration:
On the server or sharing computer--
1) Configure the files or directories you want to export this is done in the
/etc/exports file. The file contents indicate the dir/files to share.
FILE FORMAT:
DIR HOST(options) # Comments
EXAMPLE:
/home laptop(rw) # share with laptop
/home 10.0.0.11(rw) # share with ip address
/home 192.168.1.0/25.255.255.0 # share with network
/home domain.my.domain # share with domain

2) Turn on NFS:
To enable it on next boot use: # chkconfig nfs on
enables file locking # chkconfig nfslock on

To enable it without boot use:
# /etc/init.d/nfs start
# /etc/init.d/nfslock start

3) Edit the /etc/hosts file to list all hosts on the domain to be able th share
by name.

4) export the newly created share by issuing
# /usr/sbin/exportfs -a -v

On the clients or computers to be shared with--
5) Create a mount point for the share this can be done anywhere. Use /mnt.
Create a new directory in /mnt ( # mkdir /mnt/server )

6) Test the mount point by mounting the new share.
mount server:/home /mnt/server
Or with options:
mount -o rw,bg,intr,soft server:/home /mnt/server

To mount the export automatically in NFS:
7) Edit the /etc/fstab file.
FILE FORMAT:
host:directory mountpoint nfs options 0 0

Example:
server:/home /mnt/server nfs rw,bg,intr,soft 0 0
***Always remember the last two zeros this tells linux not to dump the contents
of the file system and not to run fsck on it.

These may help too:
http://www.ibiblio.org/mdw/HOWTO/NFS-HOWTO/
http://www.ibiblio.org/mdw/HOWTO/NFS-HOWTO/server.html


To share files between Linux and Winblows you have to use SAMBA.

SAMBA file server: www.samba.org

-To see if Samba is installed: # rpm -qa | grep samba
-You should see 4 packages as noted below (version #s may vary)
samba-2.2.7a-7.9.0
redhat-config-samba-1.0.4-1
samba-common-2.2.7a-7.9.0
samba-client-2.2.7a-7.9.0

Samba rpms are located on disk 2 and 3. To install use:
# mount /mnt/cdrom
# cd /mnt/cdrom/Redhat/RPMS
# rpm -Uhv samba*
# cd ; umount /mnt/cdrom
repeat for each disk....
To install:
1) Edit the smb.conf file
2) Add samba users
3) Start samba service

This may help too:
http://www.ibiblio.org/mdw/HOWTO/SMB-HOWTO.html

Good luck!
 
Old 12-02-2003, 06:04 AM   #3
tiger3
Member
 
Registered: Nov 2003
Location: Land of the Rising Sun!
Distribution: Fedors Core 3, Red Hat 9, Mandrake 8.1
Posts: 52

Rep: Reputation: 15
I forgot one thing,
You Linux can view Winblows FAT32 drives, so you can transfer files between Linux and Winblows without using SAMBA if you want. I do not use SAMBA. I just mount the FAT32 drive directly.
Read the man page for mount it tells you how to do this.

$ man mount
 
Old 12-02-2003, 03:47 PM   #4
neolus
LQ Newbie
 
Registered: Dec 2003
Location: australia
Distribution: redhat 9
Posts: 6

Original Poster
Rep: Reputation: 0
thanks for the help, much appreciated, i am slowly getting to where i want to be
 
Old 12-02-2003, 05:03 PM   #5
neolus
LQ Newbie
 
Registered: Dec 2003
Location: australia
Distribution: redhat 9
Posts: 6

Original Poster
Rep: Reputation: 0
ahh buggar now, im having trouble on mouning the filesystem on nfs, im running all the daemons, on both computers, but it just reads "mount: RPC: Timed Out"
 
Old 12-02-2003, 07:51 PM   #6
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
probably you need to changed "net.ipv4,ip-forward=0" in /etc/sysctl.conf to "...=1"
 
Old 12-03-2003, 04:58 AM   #7
tiger3
Member
 
Registered: Nov 2003
Location: Land of the Rising Sun!
Distribution: Fedors Core 3, Red Hat 9, Mandrake 8.1
Posts: 52

Rep: Reputation: 15
You have to be root to mount a file system unless you add it to the /etc/fstab file to allow users to mount it.

To mount the export automatically in NFS:
7) Edit the /etc/fstab file.
FILE FORMAT:
host:directory mountpoint nfs options 0 0

Example:
server:/home /mnt/server nfs rw,bg,intr,soft 0 0
***Always remember the last two zeros this tells linux not to dump the contents
of the file system and not to run fsck on it.
 
  


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
viewing video files ryanml43 Linux - Newbie 16 08-07-2005 10:49 PM
Can't copy files from an SCO Unix System V computer to a Linux computer gnppapas Linux - General 2 11-27-2004 01:39 PM
Viewing Windows Files AGilley007 Mandriva 4 07-13-2004 08:55 PM
Computer Crashing - Viewing logs Jose Muņiz Linux - General 4 01-03-2004 06:54 PM
viewing linux files. dmath1n Linux - General 3 08-18-2003 04:14 PM


All times are GMT -5. The time now is 07:35 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