LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-22-2003, 12:50 AM   #1
romcgill
Member
 
Registered: Jan 2003
Location: New Zealand
Distribution: Windows 95, Lycoris desktopLX
Posts: 112

Rep: Reputation: 15
Change host name


I have posted about this before. I wrongly entered my ISP name where I should have put a a nmae for my box. Now it tells me it can't log on, and Gnome won't run properly. I can get to the GUI and the desk top.

Texicle thanks for your info, however when I got to netconfig it told me it was not a valid command or something.

Also - it is dial up modem, not cable or dsl. But i have configuerd the dial up for Suse okay.

Greatly appreciate any help.

Thanks in advance rose
 
Old 02-22-2003, 01:30 AM   #2
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Check your /etc/hosts file and see if it is similar to mine:
Code:
# fancypiper Redhat 7.3 /etc/hosts file
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       fancypiper      localhost.localdomain   localhost
192.168.0.1     fancypiper
192.168.0.2     flute
192.168.0.3     tinwhistle
Some distros like to have these in your /etc/resolv.conf file as well:
Code:
domain yourispname.com
nameserver <your isp's first dns>
nameserver <your isp's second dns>

Last edited by fancypiper; 02-22-2003 at 03:18 AM.
 
Old 02-22-2003, 01:47 AM   #3
Crunch
Member
 
Registered: Feb 2003
Location: York, PA
Distribution: Slackware, FreeBSD, OpenBSD
Posts: 162

Rep: Reputation: 30
yeah try "netconfig" in konsole /terminal and type "netconfig" and you should be able to reconfigure your net settings; reboot then boomage, you have it set ;]
 
Old 02-22-2003, 01:50 AM   #4
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Why reboot? Just restart the network.

Rebooting is for installing hardware and new kernels.
 
Old 02-22-2003, 02:18 AM   #5
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
Originally posted by fancypiper
Rebooting is for installing hardware and new kernels.
they don't make hot swapable hardware for anything -no reboot.

Kernels can be recompiled with new hardware support as modules - w/o reboot - but I guess swapping the kernel on the fly is a little out of our (ie. *my* ) ballpark.... counter-point someone?
 
Old 02-22-2003, 02:44 AM   #6
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
I think I saw how you could do it on the Gentoo forum, but it was quite a few hoops to jump through and it was over my head..
 
Old 02-22-2003, 03:05 AM   #7
romcgill
Member
 
Registered: Jan 2003
Location: New Zealand
Distribution: Windows 95, Lycoris desktopLX
Posts: 112

Original Poster
Rep: Reputation: 15
fancypiper

thanks for your efforts.

I should have given additional info.

I have had Mandrake 9.0 installed by a friend using ftp. His machine is connected to a network/ server.

I tried checking the /etc/hosts file. It advised no such file or directory - that was using the http://www.xtra name. I then tried variations of my name but no luck.

What do I do to enter a command. I get very nervous doing things as root or admin.

Thanks for your help.

Will check the gentoo site and see what i can find. Have been trying various sites (have the bookmarks you list).
Am now on-line via Mnadrake!

Rose
 
Old 02-22-2003, 03:15 AM   #8
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Here are some more, then
# Mandrake links
Mandrake home page
Mandrake Users website
Easy software management: Red Carpet
Maximum RPM
rpmfind

I always wish I could have visited New Zealand when I was in the US Navy

Last edited by fancypiper; 02-22-2003 at 03:16 AM.
 
Old 02-22-2003, 03:26 AM   #9
romcgill
Member
 
Registered: Jan 2003
Location: New Zealand
Distribution: Windows 95, Lycoris desktopLX
Posts: 112

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by fancypiper
Here are some more, then
# Mandrake links
Mandrake home page
Mandrake Users website
Easy software management: Red Carpet
Maximum RPM
rpmfind

I always wish I could have visited New Zealand when I was in the US Navy
I love New Zealand and think it is a very beautiful country - but then I am biased of course! :-)

I have bokmarked these further sites - thanks.

So far my explorations have not helped - however I am now on-line in Mandrake, so maybe the hostname issue does not matter too much.
Rose

PS Maybe you could come over some time and explore our wonderful country?
 
Old 02-22-2003, 03:30 AM   #10
romcgill
Member
 
Registered: Jan 2003
Location: New Zealand
Distribution: Windows 95, Lycoris desktopLX
Posts: 112

Original Poster
Rep: Reputation: 15
Oh - and I just went to all those sites and bookmarked them, without exiting each, with no freezing or crashing. Okay it was slow, because I only have old, small CPU and 64mb ram, but no freezes or crashes! I see why Linux users call it windoze!
Rose
 
Old 02-22-2003, 03:32 AM   #11
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Quote:
I tried checking the /etc/hosts file. It advised no such file or directory
Uh... I have never heard of a distribution without that file. It is required for networking. Mandrake has some clicky tool to set that, but I am in Redhat just now and can't point out the clicks.
Quote:
Originally posted by fancypiper
Check your /etc/hosts file and see if it is similar to mine:
Code:
# fancypiper Redhat 7.3 /etc/hosts file
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       fancypiper      localhost.localdomain   localhost
192.168.0.1     fancypiper
192.168.0.2     flute
192.168.0.3     tinwhistle
Some distros like to have these in your /etc/resolv.conf file as well:
Code:
domain yourispname.com
nameserver <your isp's first dns>
nameserver <your isp's second dns>
If you aren't connected to a LAN (Local Area Network), the stuff with the 192. * can be eliminated in the /etc/hosts file. Your computer's name (fancypiper in my case) is added to the line with 127.

Here is my /etc/hosts file in Mandrake for your reference
Code:
127.0.0.1	localhost
192.168.0.1		fancypiper
192.168.0.2	uilleann
# fancypiper /etc/hosts file
192.168.0.3	tinwhistle
Here is my Mandrake /etc/resolv.conf file:
Code:
search localdomain infoave.net
nameserver 204.116.57.2
nameserver 206.74.254.2

domain infoave.net

# ppp temp entry
hth
 
Old 02-22-2003, 05:48 AM   #12
romcgill
Member
 
Registered: Jan 2003
Location: New Zealand
Distribution: Windows 95, Lycoris desktopLX
Posts: 112

Original Poster
Rep: Reputation: 15
Well - I don't know. I went to command line and entered /etc/host
and got nothing.

Ihave read something at another site but it is beyond me at present!
/
To be honest - I am beginning to feel so stupid!

I have gone to command line and typed what you wrote - am I missing some critical thing?

My main thing now is to get printer configured., but things I read don't deal with the messages I recieve which are:

ftp://dionstoywork//linuxMandrake/i5....1mdk.i586.rpm

abd so on but with cups etc in appropriate place.

The install was from a server so I guess these messages relate to that, but where do I go, and what do I do , to override it?
Thanks
Rose
 
Old 02-22-2003, 05:52 AM   #13
romcgill
Member
 
Registered: Jan 2003
Location: New Zealand
Distribution: Windows 95, Lycoris desktopLX
Posts: 112

Original Poster
Rep: Reputation: 15
oh, and fancypiper

do you have Irish ancestry by any chance?

I note the references to pipes and flutes and uillean pipes ... all my ancestry beyond NZ is Irish. I love Irish music - the pipes, flutes, whistles and that tambourine drum type thing!
Rose
 
Old 02-22-2003, 01:52 PM   #14
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Mandrake is a little shy with easy command line tools. You may have Midnight Commander installed. It has a nice editor.

Open up an x terminal and type this (I am pasting the contents of my x terminal so you can see how the prompt changes.
Code:
[phil@fancypiper phil]$ su -
Password: 
[root@fancypiper root]# mc
What we did: You switched to root's account from your users account and launched Midnight Commander, a tool with lots of goodies. You should be able to navigate your system easily.

In one of the panes, navigate to the top. Press enter when you are on something that has .. and you go up in the directory.

Now go down to /etc and press enter. Navigate down to the file hosts and press F4. Can you see and edit it (if needed) now?

The only other editor I know in Mandrake is vi, which can throw a newbie for a loop. If you want to try that editor, here is a link that explains it.

vi cheat sheet

As far as I know I have Scot, Irish, Dutch and German ancestries. At least the family names indicate that although I haven't done any geneology searches.

The tamborine without the jinglely things is a bodhran (pronounced bow-rahn).

You can hear our first album with the Real Player here:

First CD liner notes

Snippets of our 2nd CD are available here:

http://www.cdbaby.com/naomisfancy
 
Old 02-22-2003, 05:41 PM   #15
romcgill
Member
 
Registered: Jan 2003
Location: New Zealand
Distribution: Windows 95, Lycoris desktopLX
Posts: 112

Original Poster
Rep: Reputation: 15
Hmmmm ....
went to x terminal and all went well until I typed mc. It told me "command not found".

I have something called gedit - is that any help.

Also another problem has surfaced - the names under icons etc and in dialogue boxes are now made of symbols instead of letters, so I can't read them!


Going to listen to your music now - and stick with Windows for a bit of a break!
Rose
 
  


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 do I change Host Name intels_ss Linux - Newbie 4 07-25-2005 07:26 PM
how to change host name? gobi_dgm Linux - Newbie 6 05-01-2005 12:34 AM
how do i change my host name? jsmarshall85 Debian 7 10-19-2004 03:04 PM
How can I change the host name? Kramer Linux - General 7 01-15-2004 08:25 AM
how do you change the host name? Culbert Linux - Software 3 03-15-2003 12:09 PM


All times are GMT -5. The time now is 11:49 PM.

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