LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 08-22-2005, 01:31 PM   #1
oleic
LQ Newbie
 
Registered: Dec 2004
Location: England
Distribution: Ubuntu 5.04 hoary
Posts: 6

Rep: Reputation: 0
How do I find my other PC on the network?


Hi,
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.

Thanks for any help you guys can give!
 
Old 08-22-2005, 01:47 PM   #2
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
It depends what you mean by "see each other"

You talk about network neighbourhood in your post, do you mean filesharing between the pc's?

If they are both on the network ok then escentially they do "see" erachother

to find the ip address of the computer you are sat at try:
Code:
/sbin/ifconfig
 
Old 08-22-2005, 02:10 PM   #3
oleic
LQ Newbie
 
Registered: Dec 2004
Location: England
Distribution: Ubuntu 5.04 hoary
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the reply. Yes, I guess it is file sharing that I mean, e.g. I want to be able to send a document from one PC to the other, and to view documents on the other PC.

On each PC I made a folder in home/user called Shared and made in this a folder called Documents. I set the Properties of Documents for sharing.

I can ping each PC from the other. But on this PC I cannot find anything - such as an icon - that represents the other PC.

ifconfig gives:

eth0 Link encap:Ethernet HWaddr 00:0C:6E:5D:42:7E
inet addr:192.168.254.5 Bcast:192.168.254.255 Mask:255.255.255.0
inet6 addr: fe80::20c:6eff:fe5d:427e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1617 errors:0 dropped:0 overruns:0 frame:0
TX packets:1787 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1075698 (1.0 MiB) TX bytes:277648 (271.1 KiB)
Interrupt:17 Base address:0xcc00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:12960 errors:0 dropped:0 overruns:0 frame:0
TX packets:12960 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1020856 (996.9 KiB) TX bytes:1020856 (996.9 KiB)

Last edited by oleic; 08-22-2005 at 02:18 PM.
 
Old 08-22-2005, 03:23 PM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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.

Last edited by Nylex; 08-22-2005 at 03:24 PM.
 
Old 08-22-2005, 04:23 PM   #5
red_over_blue
LQ Newbie
 
Registered: Feb 2003
Location: MB, Canada
Posts: 26

Rep: Reputation: 15
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:

Code:
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
john@diablo:~$
 
Old 08-23-2005, 03:13 AM   #6
oleic
LQ Newbie
 
Registered: Dec 2004
Location: England
Distribution: Ubuntu 5.04 hoary
Posts: 6

Original Poster
Rep: Reputation: 0
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):
Code:

; security = user

change it for
Code:

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?
 
Old 08-23-2005, 03:40 AM   #7
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
hi there,
won't NFS help u???
NFS
 
Old 08-23-2005, 04:35 AM   #8
oleic
LQ Newbie
 
Registered: Dec 2004
Location: England
Distribution: Ubuntu 5.04 hoary
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by ruudra
hi there,
won't NFS help u???
NFS
Hi ruudra,
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.

Last edited by oleic; 08-23-2005 at 05:42 AM.
 
Old 08-26-2005, 01:46 AM   #9
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
Ok,

Some people here have talked about samba. My advice would be not to use samba. It is evil in an microsofty sort of way.

Our file sharing system of choice is NFS - Network File System.

A good How To can be found http://www.linuxquestions.org/questions/showthread.php?threadid=355875&goto=newpost]Here[/URL]


All you really need to do though is (on the computer to be serving the files):
Code:
apt-get install nfs-*
Code:
apt-get install portmap
On the other computer it is still advisable to install the nfs and portmap services.

Then read this advice on setting up the service:

http://www.ubuntulinux.org/support/d...faq/nfs-server

Hope this helps
 
  


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
how to find out if the computer is on the network ariana Linux - Networking 1 08-10-2005 09:55 PM
cant find over server name over network dave13 Linux - Networking 2 06-13-2005 11:48 AM
Can't find network card Big Al Linux - Networking 3 03-27-2004 08:32 PM
Can't find network FF103 Linux - Networking 0 03-22-2004 02:41 PM
I can't find my network controuer ! help iamthewind Linux - Software 1 11-21-2003 08:40 PM


All times are GMT -5. The time now is 12:51 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration