Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

basic setup help

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
newbie here... I'll try to make it simple.

I have three boxes; (2) RH7.1 linux, (1) M$98.
All that I want to do is network these together via
ethernet and using samba. No internet connections, yet.

--RH7.1 setup --
After installing the OS and samba, now what? I guess I
have to assign IP's and host names etc. etc. What is involved? I have lots of books to guide me but I really just need a step by step plan. I can work from there.

Hope I'm not in over my head. I've learned a lot of shell scripting in school but have no networking experience.

Any help, links, books would be great. Thanks bunches.


 
Make sure all the computers are on the same network. Assign them both static IPs. Here's an example...

Linux - 192.168.1.2
Windows - 192.168.1.3

Subnet mask for both - 255.255.255.0

After you do this, verify connectivity between the two machines using the 'ping' command.

If Samba is already installed on the Linux machine, then you should be able to see the Samba Server from Windows via Network Neighborhood. If you want to access the Windows machine from Linux, then you can mount the Windows share using something like...

mount -t smbfs //win_server/share /mnt/win

Make sure that /mnt/win exists before you run this command.

Let us know if you have anymore questions.


ChrisP ------------------------------------------------------------------------------
If somebody helps you, please click the link in the botton left hand corner that says "Mark this post as a helpful/expert post".
 
Ok, I suppose you have the proper equipment for making a small network?

You may need some of these but not all:

-Cross-over cat5 cable
-Switch
-Router
-Straight-through cat5 cable
-2 NICs (one for each computer obviously)

In you W98 box set it up so you have to login. (If I remember correctly you need to right-click network neighborhood and choose properties. You should see a drop down box with things like '..family logon' and stuff like that. Change it to the one where you have to login to the computer with a login name and password. Setup a login and password - make it the same as you Linux box login and password.)

In Redhat get to a shell prompt. If I remember correctly you may have to go to the /etc directory or you can do a find or locate smbpasswd. When you get to the correct place type:

smbpasswd -a "LoginName" -without the quotes.

You should be propted for a password, make it the same as whatyou have for logging into Linux and Windows. Now, if you have everything setup correctly and the samba (smb) daemon is running you should be able to see the Linux box from Windows network neighborhood. If not do a search and search for a computer on the network (search for the IP of the linux box).


ONE MORE IMPORTANT THING I FORGOT:

Find your smb.conf file and make sure that where it says WORKGROUP you have the same workgroup name as you belong to in Windows. Also check to make sure WHAT you windows workgroup is.


I hope I didn't leave anything out. Just don't change anything in your smb.conf file except the one thing I said. That's all I changed to get Windows to see the linux box.

I'm sure if I left something out (which I wouldn't doubt) someone will fill it in or correct me.


Good luck and let us know how it goes. ====================================
I love people. They taste just like
chicken!
 
Sorry for the wait guys,

I've done all the things that both of you said to do, I think I'm getting closer.
I can ping both machines, no problem. But can't see my linux box from win98 network neighborhood.

I've discovered some nice little commands that I thought would be useful. Here's the output of some of them...

#results of:
grep "Winbond" /proc/pci

Ethernet controller:
Winbond Electronics Corp W89C940 (rev 0).
------------------------------------------------------

#results of:
more /sbin/ifconfig

eth0 Link encap:Ethernet HWaddr 00:20:78:17:30:8A
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2183 errors:0 dropped:0 overruns:0 frame:0
TX packets:1118 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:106 errors:0 dropped:0 overruns:0 frame:0
TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
-------------------------------------------------------

#results of my smb.conf file
#all lines not starting with a "#" or a ";"

[global]
workgroup = Mygroup
server string = Linuxbox
hosts allow = 192.168.1. 192.168.2. 127.
printcap name = /etc/printcap
load printers = yes
printing = lprng
log file = /var/log/samba/%m.log
max log size = 0
security = user
ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
username map = /etc/samba/smbusers
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no


[homes]
comment = Home Directories
browseable = no
writable = yes


[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
printable = yes


[public]
comment = Public Stuff
path = /home/samba
public = yes
writable = yes
printable = no
write list = @staff
----------------------------------------------------

My network card is a "winbond?" could that mean it's M$ proprietaty like winmodems? I can ping successfully though.


does any of this help?

 
Sorry for the wait guys,

I've done all the things that both of you said to do, I think I'm getting closer.
I can ping both machines, no problem. But can't see my linux box from win98 network neighborhood.

I've discovered some nice little commands that I thought would be useful. Here's the output of some of them...

#results of:
grep "Winbond" /proc/pci

Ethernet controller:
Winbond Electronics Corp W89C940 (rev 0).
------------------------------------------------------

#results of:
more /sbin/ifconfig

eth0 Link encap:Ethernet HWaddr 00:20:78:17:30:8A
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2183 errors:0 dropped:0 overruns:0 frame:0
TX packets:1118 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:106 errors:0 dropped:0 overruns:0 frame:0
TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
-------------------------------------------------------

#results of my smb.conf file
#all lines not starting with a "#" or a ";"

[global]
workgroup = Mygroup
server string = Linuxbox
hosts allow = 192.168.1. 192.168.2. 127.
printcap name = /etc/printcap
load printers = yes
printing = lprng
log file = /var/log/samba/%m.log
max log size = 0
security = user
ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
username map = /etc/samba/smbusers
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no


[homes]
comment = Home Directories
browseable = no
writable = yes


[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
printable = yes


[public]
comment = Public Stuff
path = /home/samba
public = yes
writable = yes
printable = no
write list = @staff
----------------------------------------------------

My network card is a "winbond?" could that mean it's M$ proprietaty like winmodems? I can ping successfully though.


does any of this help?

 
"I can ping both machines, no problem. But can't see my linux box from win98 network neighborhood." --> Are your Win98 machines part of the "Mygroup" workgroup?


ChrisP ------------------------------------------------------------------------------
If somebody helps you, please click the link in the botton left hand corner that says "Mark this post as a helpful/expert post".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top