LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-16-2006, 06:49 PM   #1
JacekZ
Member
 
Registered: Sep 2005
Location: Notts, England
Distribution: Debian 10
Posts: 71

Rep: Reputation: 15
basic q. how to copy files over home (peer) network


Bear with me, I'm still learning..

Laptop with FC5 and wireless networking working nicely..
Installed FC5 on desktop, said goodby to old os.
Basic firewall activated on both, allowing only ssh.
Both connect to hardware router gateway to cable modem. The router uses DHCP to assign addresses to the home network..
In network manager, lets say I've set the DNS tab hostname to "laptop.workgroup" on one and "desktop.workgroup" on the other, and my username is "me" on both.

Then I try (and get) the following from the laptop:

Quote:
[me@laptop ~]$ ssh -l me desktop
ssh: desktop: Name or service not known
[me@laptop ~]$ ssh -l me desktop.workgroup
ssh: desktop.workgroup: Name or service not known

[me@laptop ~]$ scp /home/me/tmp/* me@desktop.workgroup:/home/me/test/
ssh: desktop.workgroup: Name or service not known
lost connection
[me@laptop ~]$ scp /home/me/tmp/* me@desktop:/home/me/test/
ssh: desktop: Name or service not known
lost connection
Any ideas what I'm missing here?

Also if I want to have a shared folder on one of the machines, do I have to run SAMBA, of NFS on one / both machines or can things work without either?
 
Old 07-16-2006, 06:57 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
What does the "hostname" command return on each computer.
Does it return "laptop" on one and "desktop" on the other?
I'm not certain if you are posting the hostname.domainname of each computer or used a hostname containing the string ".workgroup".

Does your router have a web configuration. If it does, look on the status page or the dhcp page and display the "dhcp clients" table. Do the hostnames show up there?

Last edited by jschiwal; 07-16-2006 at 06:59 PM.
 
Old 07-16-2006, 08:16 PM   #3
JacekZ
Member
 
Registered: Sep 2005
Location: Notts, England
Distribution: Debian 10
Posts: 71

Original Poster
Rep: Reputation: 15
The "hostname" command returns "laptop.workgroup" on the laptop, the desktop returns "desktop.workgroup. The router has a status tab - DHCP active clients table: ip addresses are there but client host names are blank. Presumably I need some way to broadcast the hostnames?
 
Old 07-16-2006, 11:39 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
First, change the hostnames to "laptop" and "desktop" respectively. Having a host.domain name of laptop.workgroup.workgroup is too confusing. Get rid of the ".workgroup" part.

look at "cat /etc/HOSTNAME". I bet on the laptop it says "laptop.workgroup.workgroup".

I'm using SuSE, so I don't know what or where the DHCP client configuration file is on Fedora Core. On my system, it is at "/etc/sysconfig/network/dhcp" and there is an entry: DHCLIENT_HOSTNAME_OPTION="AUTO".
The client daemon uses this variable value. On my system this will send the value of /etc/HOSTNAME to the DHCP server. Your system may be similar. Locate the DHCP client configuration file. It will hopefully be well commented , so you should know which variable "value" entry to edit.

Good Luck!
 
Old 07-17-2006, 04:39 PM   #5
JacekZ
Member
 
Registered: Sep 2005
Location: Notts, England
Distribution: Debian 10
Posts: 71

Original Poster
Rep: Reputation: 15
Thanks jschiwal

I've changed the hostnames as you suggested. However the files you refer to don't exist on FC5, here's as much as I could find:

Quote:
[me@laptop ~]$ cat /etc/hostname
cat: /etc/hostname: No such file or directory
[me@laptop ~]$ cat /etc/HOSTNAME
cat: /etc/HOSTNAME: No such file or directory
[me@laptop ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost laptop
[me@laptop ~]$
There used to be a DHCP config file in FC4 called etc/dhclient.conf but it seems to have been done away with in FC5.

In the network manager there is a place to enter the hostname on the DNS tab, and then for each device there is an optional place to enter the hostname, I've tried in one, in another, in both etc, still no show in the router table. There are also fields on the DNS tab for primary, secondary and tertiary DNSs, and one for DNS search path, all are blank.

Unless someone has a brainwave I guess I'll just go to static addressing, that might work..

Jacek
 
Old 07-17-2006, 05:52 PM   #6
JacekZ
Member
 
Registered: Sep 2005
Location: Notts, England
Distribution: Debian 10
Posts: 71

Original Poster
Rep: Reputation: 15
How about this then - although I had to restart the network service in testing all the above methods, nothing worked. Now I tried deactivating and reactivating the 'devices' in network manager, and Voila! the hostname now appears in the router!
 
Old 07-17-2006, 07:08 PM   #7
JacekZ
Member
 
Registered: Sep 2005
Location: Notts, England
Distribution: Debian 10
Posts: 71

Original Poster
Rep: Reputation: 15
Yet I still get this:
Quote:
[me@laptop ~]$ ssh me@desktop
ssh: desktop: Name or service not known
If I use the ip adress for desktop it logs in correctly, yet if I use the hostname, it doesn't. Any suggestions anyone?
Thanks
 
  


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
Using a multi-boot box in a simple peer-to-peer network Woodsman Slackware 5 11-22-2005 09:35 PM
Setting up a basic home network with Slackware 10.1 sleepisforwimps Slackware 6 05-02-2005 07:28 PM
Does any body have a simple Samba Config file for a peer to peer network? tlawlessrr Linux - Software 1 03-25-2004 12:26 AM
Setting up a peer to peer network Nigel Linux - Networking 4 12-01-2003 07:27 PM
Peer to peer network problems azkatro Linux - Networking 2 01-30-2003 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:34 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
Open Source Consulting | Domain Registration