Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Hostname <none>, My hostname was deleted, and now sudo errors everywhere
iamberad
post Jun 24 2006, 07:46 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 22-June 06
Member No.: 6,615



I deleted my hostname setting, trying to connect to a wifi network, and now it is listed as <none>. Great, because now every config option returns a sudo error, editing the hostname file does as well, and my system is basically un-updateable as well. I've tried fixing a broken installation of Dapper Drake with the boot cd, but am not certain how to get it to save the settings for a new hostname. I need a little help, I'm sure its just my unfamiliarity with the basics that has made it so difficult
(although all the tutorial examples I've tried to emulate have returned sudo errors as well!)
Go to the top of the page
 
+Quote Post
michaelk
post Jun 25 2006, 10:21 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,796
Joined: 23-January 03
Member No.: 360



So how did you delete the hostname?

Try adding a hostname via the command i.e.

hostname oldhostname

what does /etc/sysconfig/network file show as a hostname. Do you see a line like
HOSTNAME=oldhostname
Go to the top of the page
 
+Quote Post
iamberad
post Jun 25 2006, 05:17 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 22-June 06
Member No.: 6,615



the KDE gui has several configuration menus, including one that is for network settings, with an editable field to set the hostname.

sudo hostname beradicem
---> sudo: unable to lookup (none) via gethostbyname()

apparently I'm missing a directory ? under etc there is no such directory as sysconfig

file does not exist error.
Go to the top of the page
 
+Quote Post
jayakrishnan
post Jun 29 2006, 01:08 AM
Post #4


Whats this Lie-nix Thing?
*

Group: Members
Posts: 7
Joined: 22-June 06
Member No.: 6,610



Edit ur /etc/hosts file
Go to the top of the page
 
+Quote Post
iamberad
post Jun 29 2006, 04:13 AM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 22-June 06
Member No.: 6,615



trying to edit it as root:
--> 'Su returned an error'

I assume because its referring to a hostname that is no longer assigned/active.

I've tried editing host.conf and hostname as well, it seems to have a sudo error whenever I try to use root, otherwise it seems like it'd be an easy fix
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th October 2017 - 01:53 PM