LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-13-2003, 10:45 PM   #1
ern_day
LQ Newbie
 
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
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.

Please help!!! Any advice is much appreciated

Best regards,

ern_day
 
Old 07-13-2003, 10:54 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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 10:56 PM.
 
Old 07-13-2003, 11:18 PM   #3
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
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
 
Old 07-13-2003, 11:21 PM   #4
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
I also recommend upgrading the the most recent version of redhat. It automatically configures network (if you are a newbie)
 
Old 07-14-2003, 01:04 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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.

Cool
 
Old 07-14-2003, 01:16 AM   #6
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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.
 
  


Reply



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
bad Pam config => unable to login anymore nikoon Linux - Security 3 11-05-2004 08:45 AM
X server config sort of screwed up rob-n Linux - Newbie 11 04-11-2004 01:26 AM
Newbie screwed up and can't log as root anymore chumley115 Linux - Software 3 03-12-2004 02:20 PM
HELP! Screwed up on configuring monitor config, in FGLXCONIFG! Cant see anything! RHLinuxGUY Linux - Hardware 2 01-10-2004 02:58 AM
screwed up XFree86 Config file Longinus Slackware 5 12-14-2003 11:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:57 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