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 installed Ubuntu 5.04 and I'm very pleased with it, so I put it on my other PC too (both desktop PCs). But when I try to network them I can't find where to look for the "other" PC.
The cabling is through a router and the two PCs network fine to each other in Windows 98. I've tried to do the things needed to make the two Linux disks see each other - but how can I view one from the other? In Windows 98 I simply open Network Neighborhood and click on the icon for the other PC. What's the equivalent in Linux? In the Ubuntu menu I can go to Places > Network but there is no sign of it there.
Are you using GNOME? If so, double click "Computer" on your desktop and you should see something that says "Network". That's how you can view the shares on other machines. Edit: I think you'll need to have Samba installed to do that, though.
Or, if you just want to see what machines are up on a particular IP range, and what ports they have open, just issue the following in a terminal: nmap 192.168.0.*
For example, here is my single computer and router:
john@diablo:~$ nmap 192.168.0.*
Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-08-22 16:21 CDT
Interesting ports on 192.168.0.1:
(The 1661 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
80/tcp open http
5432/tcp open postgres
Interesting ports on 192.168.0.3:
(The 1662 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
Nmap finished: 256 IP addresses (2 hosts up) scanned in 4.143 seconds
Thanks for the help. Yes, I am using Gnome - it is Ubuntu although I see my Distribution was still down as Mandrake (I have now changed it to Ubuntu). By the way, I should mention that I am using DHCP and a router.
In Ubuntu I can open the "Places" menu and click "Computer" - but the box only shows Floppy, CDRW and Filesystem - no network icon. Also I can use Places > Network but this box only shows an icon for Windows Network (I have a Windows PC connected). Clicking this icon opens a box called Windows Network but it is empty.
Following the suggestion of running nmap, I installed this from the repository and tried it with 192.168.0.*. All it gave was:
Nmap run completed -- 256 IP addresses (0 hosts up) scanned in 24.018 secvonds
I installed Samba earlier (although I thought it was only needed for networking Linux to Windows PCs, not to to other Linux PCs) and, following the Ubuntu Guide, tried to add users with:
sudo smbpasswd -a system_username
It asked me for “New Samba password”. Whatever I entered it returned a “Failed” - I tried my username, my password, the username of the other Ubuntu disk, new passwords etc, but all failed.
After more searching on the Ubuntu site I found the following instructions:
sudo gedit /etc/samba/smb.conf
look for this (line 76):
; security = user
change it for
security = share
(notice that the ; is gone)
sudo /etc/init.d/samba restart
I tried this but the sudo /etc/init.d/samba restart gave me:
* Stopping Samba Daemons....ok
* Starting Samba Daemons.....fail
I again tried sudo smbpasswd -a system_username but now get:
Can’t load /etc/samba/smb.conf - run testparm to debug it
The testparm output is meaningless to me so i tried to change the smb.conf file back to what it had been - but I still get the same "Can't load..." message. (I guess I should have made a back-up file!)
Does all this throw any light on the network problem?
Originally posted by ruudra hi there,
won't NFS help u??? NFS
As a newbie, I thought NFS was an integral part of Linux on a distro like Ubuntu - is it not there on all installations already?
Or perhaps you mean it is there but I need to configure it in some way. I have tried to configure using the GUI in Ubuntu whenever possible. I'm a bit wary of editing configuration files in the terminal because I might wreck something important!
Also, some of the advice I have seen on configuring involves putting in an IP address - but if my router uses DHCP I think it changes the IP addresses of the PCs with each boot.