LinuxQuestions.org
Help answer threads with 0 replies.
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, 02: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 02:51 PM.
 
Old 09-03-2005, 03:10 PM   #2
morrolan
Member
 
Registered: Sep 2003
Location: Manchester UK
Posts: 262

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 03:11 PM.
 
Old 09-03-2005, 03: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, 03:46 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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, 01: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


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


All times are GMT -5. The time now is 08:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration