Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Runlevel 3

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
DavidMcCrossan
LXF regular


Joined: Fri Aug 19, 2005 10:46 am
Posts: 321

PostPosted: Fri Feb 24, 2012 4:45 pm    Post subject: Runlevel 3 Reply with quote

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
Back to top
View user's profile Send private message
MartyBartfast
LXF regular


Joined: Mon Aug 22, 2005 8:25 am
Posts: 804
Location: Hants, UK

PostPosted: Fri Feb 24, 2012 7:42 pm    Post subject: Reply with quote

<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.
_________________
I have been touched by his noodly appendage.


Last edited by MartyBartfast on Fri Feb 24, 2012 8:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
lok1950
LXF regular


Joined: Tue May 31, 2005 6:31 am
Posts: 1016
Location: Ottawa

PostPosted: Fri Feb 24, 2012 8:29 pm    Post subject: Reply with quote

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

Enjoy the Choice Smile
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8364
Location: Warrington, UK

PostPosted: Fri Feb 24, 2012 11:10 pm    Post subject: Reply with quote

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:
/etc/init.d/*dm stop


which is fairly universal.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
lok1950
LXF regular


Joined: Tue May 31, 2005 6:31 am
Posts: 1016
Location: Ottawa

PostPosted: Sat Feb 25, 2012 12:27 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8364
Location: Warrington, UK

PostPosted: Sat Feb 25, 2012 8:48 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
DavidMcCrossan
LXF regular


Joined: Fri Aug 19, 2005 10:46 am
Posts: 321

PostPosted: Sun Feb 26, 2012 5:46 pm    Post subject: Runlevel 3 Reply with quote

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
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast