LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-19-2010, 11:22 AM   #1
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Screwed up gdm AND kdm...Now I can't even get into a console


Running Ubuntu 9.10...

I was messing around with gdm/kdm and now BOTH of them are screwed up...

It boots into "rescue" mode but none of the options work...not even droping into a console (the screen just goes black)

I've also tried pressing CTL+ALT+F[1-9] ...still can't get a console....

I AM, however, able to boot from the live CD and mount /dev/sda1 and...

Code:
root@livecd# chroot /mnt
Unfortunately...

Code:
root@chroot# dpkg-reconfigure gdm
Doesn't work...SO I tried using apt-get to reinstall gdm...the only problem is when I try getting the network up in the chroot enviroment I get an error saying...

Code:
root@chroot# dhclient
/proc/net/dev: No such file or directory
SO...I was wondering if apt-get had something similar to yum where I can specify the "install root" (since I CAN get a network connection via the live cd in a non-chroot environment

for example, if this was fedora/rhel/centos...I could do...

Code:
yum -y --installroot=/mnt install gdm
Is there something similar with apt-get or am I attacking this the wrong way?

-C

Moderators: PLEASE move this if it's in the wrong forum...because I need help
 
Old 03-19-2010, 11:51 AM   #2
irmin
Member
 
Registered: Jan 2010
Location: the universe
Distribution: Slackware (modified), Slackware64 (modified), openSuSE (modified)
Posts: 342

Rep: Reputation: 62
You can boot into runlevel 3 (every service started except gui) by specifying the runlevel number as a kernel parameter. In grub select the entry you will boot, press 'e' and append " 3" at the end, then press enter.
 
Old 03-19-2010, 11:58 AM   #3
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979

Original Poster
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by irmin View Post
You can boot into runlevel 3 (every service started except gui) by specifying the runlevel number as a kernel parameter. In grub select the entry you will boot, press 'e' and append " 3" at the end, then press enter.
Isn't, for ubuntu, runlevel 3 WITH the gui? Last time I remember Ubuntu uses messed up runlevels...in any event I'll give that a try...

-C
 
Old 03-19-2010, 12:06 PM   #4
irmin
Member
 
Registered: Jan 2010
Location: the universe
Distribution: Slackware (modified), Slackware64 (modified), openSuSE (modified)
Posts: 342

Rep: Reputation: 62
Quote:
Originally Posted by custangro View Post
Isn't, for ubuntu, runlevel 3 WITH the gui? Last time I remember Ubuntu uses messed up runlevels...in any event I'll give that a try...

-C
Maybe. Ubuntu is a little bit strange. Nevertheless you can also specify other runlevel numbers (and single for single user mode).
 
Old 03-19-2010, 12:07 PM   #5
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979

Original Poster
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by irmin View Post
Maybe. Ubuntu is a little bit strange. Nevertheless you can also specify other runlevel numbers (and single for single user mode).
I will edit the grub menu from the chroot environment...
 
Old 03-19-2010, 01:20 PM   #6
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979

Original Poster
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Okay fixed now...

I edited the /boot/grub/grub.cfg file from a livecd and set the all the timeouts to 10 (that way I can get the grub screen)

Then when the grub screen came on I added "single" to the kernel parameters

Upon boot I chose "root prompt with networking" from the menu

Then I did the following once I got into a root shell (with networking FYI...)

Code:
root@host# apt-get remove kdm
root@host# apt-get remove gdm
root@host# apt-get autoremove
root@host# apt-get install gdm
Then I rebooted and now I have my gdm back (once I had it fixed I restored the /boot/grub/grub.cfg file)

Hopefully this helps someone out there

-C
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't login to kdm nor gdm but can on console!! cyrilng Linux - General 6 10-10-2008 12:30 AM
kdm to gdm jani1982 Linux - Newbie 1 03-21-2008 03:34 PM
GDM to KDM Pr_009 Fedora 1 11-23-2005 05:14 AM
how to use gdm instead of kdm? mking007 SUSE / openSUSE 5 10-15-2004 11:01 PM
screwed up eterm after deleting gdm Hammett Linux - Software 1 02-25-2004 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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