LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-06-2002, 10:00 PM   #1
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Rep: Reputation: 30
The name of my PC


I seem to have the wrong name for my pc, i am trying to connect with NFS to my other pc and it doesn't work, i tried the IP, i tried the name and it doesn't work...
What is the name of my pc? i go to the shell and i see root@dhcppc2 is that the one? i tought so! but if i try the use the mount root@dhcppc2:/mnt/export /mnt/import it gives me that it is impossible to get the address for that name.
What am i doing wrong?
 
Old 11-06-2002, 10:09 PM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Try leaving out the "root@" part.
 
Old 11-06-2002, 10:13 PM   #3
aliensub
Member
 
Registered: Apr 2002
Location: Denmark
Distribution: OS X
Posts: 306

Rep: Reputation: 30
root@dhcppc2 = root is your username (you are logged in as root) dhpcppc2 is the name of your pc.

Btw: it is not a good idea to be logged in as root all the time if you have internet acces from that machine. Wth a silly misatke you can mess up the whole system, as user there is not a chance for that, and you are more secured when you surf the net.
 
Old 11-06-2002, 10:16 PM   #4
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Original Poster
Rep: Reputation: 30
Still impossible to get the address for that name.
 
Old 11-06-2002, 10:57 PM   #5
jdc2048
Member
 
Registered: Jul 2002
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
do an "nslookup dhcppc2" from your other PC and see if if it can find it. if it cant then you need to do something to make dhcppc2 visible to the other.

1. edit /etc/hosts and add dhcppc2 + IP to this file.
2. if the dhcppc2 can be resolved by dns, then ensure your machines can see the dns server. (/etc/resolv.conf)
 
Old 11-07-2002, 09:38 AM   #6
Zwitterion
LQ Newbie
 
Registered: Nov 2002
Location: Florida
Distribution: Gentoo
Posts: 10

Rep: Reputation: 0
How do you change the computer name? Mine reads:

root@localhost
 
Old 11-07-2002, 09:47 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally posted by Zwitterion
How do you change the computer name? Mine reads:

root@localhost
hostname name-you-want-as-your-host

man hostname for more options.
 
Old 11-07-2002, 10:41 AM   #8
esael
Member
 
Registered: Jul 2002
Posts: 109

Rep: Reputation: 15
edit /etc/HOSTNAME ... or other location
 
Old 11-07-2002, 11:27 AM   #9
frankietomatoes
Member
 
Registered: Oct 2002
Posts: 44

Rep: Reputation: 15
Under Redhat:

vi /etc/sysconfig/network

...
HOSTNAME=whatyoulike
...
 
Old 11-07-2002, 07:48 PM   #10
jdc2048
Member
 
Registered: Jul 2002
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
Quote:
Still impossible to get the address for that name.
What is the status on this? Were you able to get this working?

Post the solution if you have one, so that others can access the info.

--------------------
thanks,
Jeremiah
 
  


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 On
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:27 AM.

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