LinuxQuestions.org
Help answer threads with 0 replies.
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 09-03-2005, 01:39 PM   #1
rameshchandra
LQ Newbie
 
Registered: Sep 2005
Location: Hyderabad India
Posts: 5

Rep: Reputation: 0
Please help. Newbie in BIG trouble


Hi, Cant start my computer. Ipaddress / Display server mismatch

I changed the IP address to 21.23.60.249 using the system tools network option. But I did not change the environment variable DISPLAY to reflect the ipaddress change.


System starts, gets me to the login screen, I enter my login id and password then a message box says

*********************************
Your session only lasted less than 10 seconds. If you have not logged out yourself, this could mean that there is some installation problem or that you may be out of diskspace. Try logging in with one of the failsafe sessions to see if you can fix this problem.

View Details (~/.xsession-errors file)

with an OK button. (When the ok button is clicked)

xhost: unable to display "172.35.10.40"

(gnome-session:3377): Gtk-WARNING **: cannot open display:

**********************************************

When I click ok it goes back to the login screen. And never comes out of this loop.

Is there a way for me to stop the startx cmd from running and make the system come up with the cmd line, using which I could go edit my DISPLAY variable with the new ipaddress.


Thanx in advance.
Newbie in trouble

Last edited by rameshchandra; 09-03-2005 at 01:51 PM.
 
Old 09-03-2005, 02:10 PM   #2
morrolan
Member
 
Registered: Sep 2003
Location: Manchester UK
Posts: 264

Rep: Reputation: 30
Are you using LILO or GRUB as your bootloader?

I've had similar problems, and it's quite simple.

Extract from www.redhat.com:

Quote:
If you are using LILO, you can enter single-user mode by typing linux single at the LILO boot: prompt.

If you are using GRUB as your boot loader, you can enter single-user mode using the following steps.

*

In the graphical GRUB boot loader screen, select the Red Hat Linux boot label and press [e] to edit it.
*

Arrow down to the kernel line and press [e] to edit it.
*

At the prompt, type single and press [Enter].
*

You will be returned to the GRUB screen with the kernel information. Press the [b] key to boot the system into single user mode.

A very bare system will boot, and you will have a command shell from which you can fix things.
Hope this helps!

Last edited by morrolan; 09-03-2005 at 02:11 PM.
 
Old 09-03-2005, 02:21 PM   #3
rameshchandra
LQ Newbie
 
Registered: Sep 2005
Location: Hyderabad India
Posts: 5

Original Poster
Rep: Reputation: 0
Thanx for replying.

In the GRUB loader screen there are 3 options

root (hd0, 0)
kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.21-4.EL.img

What do I change the second line saying 'kernel...' to

Please advice.
 
Old 09-03-2005, 02:46 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You would press "e" to edit the last line and append the word "single" (no quotes) to it to boot to single user mode. But why don't you just press CTRL+ALT+F1 from the GUI login prompt to get to a text console, edit whatever files you need to edit, and then press CTRL+ALT+F7 to get back to X? Also, you should probably use 127.0.0.1 (localhost) for X based communication so it's not dependent on your public IP address.
 
Old 09-04-2005, 12:00 AM   #5
rameshchandra
LQ Newbie
 
Registered: Sep 2005
Location: Hyderabad India
Posts: 5

Original Poster
Rep: Reputation: 0
Thanx much Miller. I got my system back up and running now. Did the Ctrl Alt F1 in the login screen and edited my etc/profile.

Meanwhile, I use this system as an Oracle Apps. server. Need to set the display env. variable to the IP address.


Thanx again
RC
 
  


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
a big trouble with glxgears hmtbooster Slackware 14 06-24-2005 10:45 AM
I am in big big trouble maphi262 Slackware - Installation 14 09-25-2004 11:08 PM
Big Trouble rhraz Linux - Newbie 5 02-18-2004 11:15 PM
Big trouble with startkde Dukov Linux - Newbie 2 09-21-2003 02:31 PM
I have a big trouble with GRUB~~~ iLRainyday Linux - General 4 11-22-2002 10:35 PM

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

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