Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have a home network that I am trying to get my linux box to go on. I run Mandrake 9.0 and used their networking wizard to set it up as:
Subnet Mask: 255.255.255.0
I then re-booted and tried to ping another of the computers on my network: 10.0.0.41. It failed. When I tried the other direction it failed too.
I doubt the problem is with the network or the network card as the computer uses the network fine from XP home or MAC OS 8.1.
On my LAN I have:
Win XP pro
Win XP home
Is there something else I need to do, like emulate some Microsoft Proprietary Networking Client program?
Someone I know recently installed Mandrake and said that it does not come with Samba. I read somewhere about Mandrake now having something that is similar to the Windows active directory. I have not used Mandrake much so I am not sure what that article was talking about and if it would substitute for Samba or not (probably not). If it does not come with Samba, I assume Samba could be downloaded and added.
Samba comes with most Linux distros, but is not always installed by default. With Red Hat I believe installing it is an option in the installation program but is not done so by default. Samba is usually used to share folders and printers between Windows computers and Linux computers. It can also be used between two Linux computers. My experience with Samba is very limited and I only know a little about using it.
If you go into your /etc/init.d/smb directory is there something called smb in there? If so what happens when you are logged in as root (or use the su command) and then type this:
Did it come back with information about whether the smb daemon is currently running or not?
I see you are using a class A IP address of 10.0.0.46 which is in the the range of numbers used for private IP addresses. That is ok but if I am not mistaken the subnet mask for an unsubnetted class A address is 255.0.0.0. You said you are using a subnet mask of 255.255.255.0. That is a subnet mask for a class C IP address such as 192.168.1.46. I assume you are not trying to subnet the host portion of your class A address are you? Even so I do not believe that particular mask would even work. Did the wizard create that combination of IP address and subnet mask for you or did you choose that yourself.
Just out of curiousity can you ping your loopback address of 127.0.0.1
If you end up using Samba not very much would need to be done on the Windows computers. If I remember correctly, in the control panel you would need to make sure that the SMB, TCP/IP and one other protocol is installed. There are also a few other steps that would need to be done on Linux and your other computers. If I am not mistaken Samba can also be used with Mac OS X although I do not have a Mac and have never tried that.
Here is something else you might want to check. On your Windows 2K and your Windows XP computer try typing ipconfig to see what IP address and subnet mask you are using. Then when in Linux try typing in this to see what IP address and subnet mask you are using:
The full path to the command, as shown, may or may not be necessary. On my computer it is necessary. Notice that the commands for Windows and Linux are not quite the same. Windows uses ipconfig and Linux uses ifconfig. I am running Linux at the moment so I hope I am remembering correctly what information is provided by the Windows ifconfig command. I am mainly wondering what subnet mask you are using under Windows.
1) Linux could ping itself using either its own IP address or its loopback address. Linux could not ping the Win XP Pro server.
2) The Win XP Pro server could ping itself using either its own IP address or its loopback address. The Win XP Pro server could not ping Linux.
3) The Win XP Pro server could ping the Win XP Home client. The Win XP Home client could also ping the Win XP Pro server.
The fact that Linux could ping itself makes me that that your NIC is probably working. You IP addresses are in a range of numbers that are normally used for class A address. I am a little bit uncomfortable with the fact that you are using a subnet mask that is appropriate for a class C address on a class A address. However, your IP address is also in a range of numbers reserved for private IP addresses, so perhaps you could get away with doing it that way on your own private network. I am not sure about that point. That may or may not be the trouble. Windows seems to be ok with that. You should not need to have Samba installed to to ping the other computer. There seems to be something very basic wrong with your setup.
Linux does usually comes with an iptables firewall and that might or might not be set to block something and that could be creating a problem. I do not know very much about firewalls yet. For that matter I am only moderatly knowledgeable about networks. I am still trying to learn more about that.
I see your Samba daemon is up and running and presumably that means you have Samba installed. I have only very limited experience using Samba and at the time, as a student in a class, we set up a RH 7.3 Linux server and the clients were using Win 2K and RH 7.3 Linux. That is just the opposite of how you have it. That should be possible though. We only spent about two class Labs on Samba and only learned a little about it.
I will not try to fully describe how set up Samba, because I am not an expert yet. However, in the /etc/samba directory is a file called smb.conf. Usually certain lines must be un-commented out to share a folder. The directory referred to in that file must also be created and given the correct permissions. As I mentioned earlier you should at least be able to ping the other computer without using Samba. I am not sure what is wrong. I hope you figure it out.
I do not know what type of network you have. My only limited experince is with Ethernet using CAT5 cable and a few switches, hubs and routers. I do not yet know anything about using an 802.11 wireless network. I am not sure which you have.