Runlevel 3

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

Runlevel 3

Postby DavidMcCrossan » Fri Feb 24, 2012 4:45 pm

My friend is just getting to grips with linux and has loaded a distro onto his laptop, as a clean install.

He is faced with a blank screen and wishes to edit xconfig. I remember from the distant past it was possible to hold down (I think) Alt+F something which caused the distro to go to runlevel 3, and a command line.

Can anyone please let me know the sequence to get to this?

Many thanx

David
DavidMcCrossan
LXF regular
 
Posts: 347
Joined: Fri Aug 19, 2005 9:46 am

Postby MartyBartfast » Fri Feb 24, 2012 7:42 pm

<alt><ctrl>F2 (or F3/4/5 etc) will open up a console terminal, one of those will be the X display on mine it's F1, sometimes it can be F10. Basically hit them in sequence until you get the login prompt and you can log into one of the tty consoles.

Edit: to be clear, this doesn't alter the run level, but it brings up a character console which looks like run level 3, which is what I thought you were looking for.
Last edited by MartyBartfast on Fri Feb 24, 2012 8:50 pm, edited 1 time in total.
I have been touched by his noodly appendage.
User avatar
MartyBartfast
LXF regular
 
Posts: 820
Joined: Mon Aug 22, 2005 7:25 am
Location: Hants, UK

Postby lok1950 » Fri Feb 24, 2012 8:29 pm

And the command to get back to run level 5 (desktop) is
Code: Select all
 init 5
while the one to kill the X sever is
Code: Select all
 init 3
.

Enjoy the Choice :)
User avatar
lok1950
LXF regular
 
Posts: 1044
Joined: Tue May 31, 2005 5:31 am
Location: Ottawa

Postby nelz » Fri Feb 24, 2012 11:10 pm

Those are distro dependent. Not all distros use the runlevels in the same way, some don't even have a different runlevel for a no-X boot.

Ctrl-Alt-Backspace will kill X, or you can switch to a console and run

Code: Select all
/etc/init.d/*dm stop


which is fairly universal.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8577
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby lok1950 » Sat Feb 25, 2012 12:27 am

And lots of current distros use policy-kit to make so that when you do use Ctrl-Alt-Backspace all that happens is that you log out and restart the X server at the the GDM log-in screen.I know that's what happens with fedora 16 and has since f10.

Enjoy the Choice :)
User avatar
lok1950
LXF regular
 
Posts: 1044
Joined: Tue May 31, 2005 5:31 am
Location: Ottawa

Postby nelz » Sat Feb 25, 2012 8:48 am

That's done without PolicyKit too, which is why it is best to stop the DM.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8577
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Runlevel 3

Postby DavidMcCrossan » Sun Feb 26, 2012 5:46 pm

Thanx guys for all your help.
My friend is a newbie convert from Windoze, and is a pc repairman out here.
He will easily cope with this.
Best

David
DavidMcCrossan
LXF regular
 
Posts: 347
Joined: Fri Aug 19, 2005 9:46 am


Return to Help!

Who is online

Users browsing this forum: No registered users and 1 guest

cron