PDA

View Full Version : Home Network


Justbill
2005-12-21, 08:53 PM CST
I have been wanting to network my to machines together. I am sharing an internet connection, using a Belkin (wired) router. My main goal is to use the printer which is physically conected to box1, from box2. Although file sharing between the 2 machines would be nice also. Both machines are running linux os's. Box1 has Fedora Core 4 on it, and win XP (we seldom boot XP), box2 has CentOS 4.2 and win98 (again, seldom booted). I have been reading about Samba, and it looks quite interesting, however, it seems all the documentation I am reading is geared toward a linux server, and windows clients. My goal is to have box1 be the server (FC4) and box2 be the client (Centos 4.2). This is my first attempt at anything like this, and I must say I do find it somewhat confusing! I have found Samba under System Settings > Server Settings in both FC4 and CentOS, and again, the documentation assumes I want to communicate with windows boxes. Can anyone simplify this for me?

box1 is a

Compaq Presario SR1426NX
2.93 Ghz Pentium 4
512MB PC2-3200 DDR2 SDRAM
160GB 7200RPM Serial ATA hard drive
dual booting Win XP & Fedora Core 4

box2 is a

HP Pavilion 6630
500MHZ Celeron
256MB ram (pc 100/133 )
80GB Western Digital hard drive
dual booting Win98 & CentOS 4.2

My printer is a HP PSC 1315 , and is connected (usb) to box1

Any help wit this would be greatly appreciated!
Justbill

jdonz
2005-12-21, 08:57 PM CST
Samba is strictly for Linux to Windows communication. For Linux to Linux look into using NFS for filesharing, it's a snap to set up and use. I believe you can set up a network printer using the GUI tool or the CUPS admin tool (I have never done it though).

panama
2005-12-22, 10:56 AM CST
Samba is strictly for Linux to Windows communication. For Linux to Linux look into using NFS for filesharing, it's a snap to set up and use. I believe you can set up a network printer using the GUI tool or the CUPS admin tool (I have never done it though).
to use the cups admin tool open internet browser and type this in the address bard --> http://localhost:631
Concerining NFS file sharing, I would first suggest that you disable your firewall first to make sure that you can communicate between the 2 linux boxes. After you've verified the communincation between the box1 and box2 then enabled your firewall.

Justbill
2005-12-22, 04:20 PM CST
And this brings me back to square one. I can probably figure out how to disable the firewall on each box, but I don't know where to begin on getting the 2 boxes to communicate. Do they each need an address? how do I assign an address to the boxes? Are there any good tutorials on this subject?
Thanks
Justbill

jdonz
2005-12-22, 04:57 PM CST
To disable the firewall use the GUI:
$ system-config-securitylevel

You will need to set one machine as a NFS server. Once again, use the GUI:
$ system-config-nfs

On the client machine you need to mount the NFS share to the client. Use something like this (substitute you own info):
$ mount 192.168.1.101:/path/to/share /path/to/local/mountpoint
You must also make the directory before you try mounting to it.

You can use IP addresses but if you set up your hosts files you can use hostnames in place of the IP addresses. For documentation use the Red Hat site, the commands/paths are nearly identical to Fedora. Also, Google is your friend.