HELP!!, Can't login anymore because I screwed up network config
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
HELP!!, Can't login anymore because I screwed up network config
I run a dual boot machine, Windows ME and Redhat Linux 7.1 (Seawolf). I run KDE as the desktop in Linux.
I was in the Network Config tool, and accidently chaged the host and domain names and saved the changes. They were originally set to localhost and localhost.localdomain respectively. I was attempting to set it up to work with my DSL account, but apparently I didn't know what I was doing. I set the host name to "same" and the domain name to my DSL provider.
Now when Linux is booting up it recognizes "same" as a bad host name, but once it goes through the standard boot procedure it does the following:
same login:
blank screen
I was wondering if there is anything I can do to reset the network config back to the defaults, without reinstalling and losing everything (files,mysql,etc) that are important and already there.
Download a rescue distribution. I use Knoppix. It's overkill for a "rescue" disk, but it serves the purpose.
When it boots, right-click on the drive and partition that has your hosts configuration file. Select to change its read/write mode (Knoppix defaults to read-only). Then left click the same icon to mount the drive. Then edit the file with any of the editors Knoppix includes.
Red Hat has a special way of setting up the hostname that I don't remember off-hand.
Last edited by Dark_Helmet; 07-13-2003 at 11:56 PM.
what you should do is edit the /etc/resolv.conf file and there you can specify your domain name and domain server. Add something like this to it and save the file:
search Domain_name
nameserver XXX.XXX.XXXXX
nameserver YYY.YYY.YYY.YY
ofcourse you should put the correct values in it. Then try to reconfigure/reboot the machine. Hope it helps
Whoa! I don't think anything so drastic has happened? Or am I reading it all wrong? To me it just sounds like instead of the usual login prompt he's getting "same" as the name of box, no big deal right?
Open up your /etc/hosts and post up the contents. Also in RedHat is seems like there is an /etc/sysconfig/hostname or similar file/directory where this is changed. If you find something along those lines, post that up as well.
Also, look at:
uname -a
And you should see "name" there now, where before it said localhost. Still... no biggie.
What you are seeing as the blank space is exactly that, a login prompt with a blank space. Login as root:
root
And enter root's password:
Password: ******
And then you can use:
startx
To get into a gui, and post up the information I am requesting.
Again, if I am reading this all wrong, my appologies.
Yeah, you're probably right MasterC. When he said "blank screen" I took it to mean the login prompt displayed, but then disappeared; giving a truly blank screen.
Quite a different story if it's actually displaying a login prompt vs. all black.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.