LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   runlevel 1 doesn't work [kubuntu] (https://www.linuxquestions.org/questions/ubuntu-63/runlevel-1-doesnt-work-%5Bkubuntu%5D-712885/)

froginvasion 03-19-2009 01:26 PM

runlevel 1 doesn't work [kubuntu]
 
As im trying to get into single-user mode runlevel 1,
just before the end of the loading bar the screen seems to freeze (there's no movement in the bar anymore) yet capslock still reacts (so it didn't crash or something).

Code:

sudo init 1
I've used this before sometime before and it worked fine. i'm using one of the latest versions of the kubuntu kernel, and i didn't change any config files or anything...

PS: if this might help: a friend of mine has an install of ubuntu and it does the exact same thing for him... In recovery mode it just works fine.

tredegar 03-19-2009 07:24 PM

Quote:

sudo init 1
Where are you issuing this command?
If in any sort of GUI, it'll "crash" because you have killed it.
Your login should still be available on VT1
Get to it with <CTRL><ALT><F1> if that fails try <CTRL><ALT><F2>

BTW "i'm using one of the latest versions of the kubuntu kernel" really isn't helpful at all. How much trouble is it to post the output of uname -r ?

syg00 03-19-2009 08:59 PM

Quote:

Originally Posted by froginvasion (Post 3481040)
... In recovery mode it just works fine.

Recovery mode works fine for your mate, or you (recovery mode is single user mode - at least in Ubuntu) ?

Any messages of interest in Recovery mode ?.

froginvasion 03-20-2009 10:33 AM

uname -r gives me
2.6.27-11-generic

well i'm sorry i'm just another windows newbie...

I'm indeed trying to issue this command in GUI, but why should that be a problem? I had to use it to install videodrivers, so why wouldn't it work right now?

alt+ctrl+f1 and f2 work fine indeed, but what's the difference between changing runlevel?

recovery gives no messags that need any noticing...

tredegar 03-20-2009 12:18 PM

Quote:

i'm just another windows newbie...
No need to apologise. Many us were, once ;)

Quote:

I'm indeed trying to issue this command in GUI, but why should that be a problem?
Because the GUI doesn't run in runlevel 1
So your login ceases to exist when you switch to runlevel 1

You don't need to be in runlevel 1 to install (eg the NVIDIA) drivers, you just need to stop / start X (much faster than rebooting) like this:

alt+ctrl+f1
Login as yourself.
Become root
Code:

sudo  -i      #If you are using a distro that uses sudo
su  -          #If you are using a distro that uses su

Now stop X:
For Gnome users:
Code:

etc/init.d/gdm  stop
For KDE users:
Code:

etc/init.d/kdm  stop
Your terminal may disappear. Get back to it with alt+ctrl+f1

Install the driver

Restart X:
For Gnome users:
Code:

etc/init.d/gdm  start
For KDE users:
Code:

etc/init.d/kdm  start
You'll be dumped at the GUI login if all has gone well. So go back to alt+ctrl+f1 and logout exit (from being root) exit (logout)
Now go back to your GUI with alt+ctrl+f7

alt+ctrl+f1-f6 are terminals alt+ctrl+f7 and up are GUIs (and, yes, you can have them all open and running at the same time, but you can only see one of them at a time)

Next time, please tell us your distro & KDE / Gnome / whatever, it saves me typing.


All times are GMT -5. The time now is 01:44 PM.