LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-14-2008, 04:12 PM   #1
Krolros
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
Question Trying to change my runlevel on Kubuntu 8.04 - need to boot without an X-server.


This is probably a pretty complex first post, but here goes:

I'm trying to install some graphics drivers for my nVidia Geforce 8800, but the installer that nVidia provides has to run without the X-server running.
I'm pretty confident I can install it properly in the console, but I don't know how to boot to different runlevels - namely, runlevels that don't start a graphical window manager.
Apparently on other distros this is possible by editing /etc/inittab, but there's no such directory on my machine.

Help?
 
Old 12-14-2008, 04:22 PM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
if grub is in mbr...etc....when grub gfxmenu appears = the graphical clock, penguin etc....press the escape key to get to text grub menu

or you only have a text grub menu and from here...for the relevant kernel press e for edit and arrow down to the kernel line and press e for edit and at end of kernel line...press one space then the number 3
press enter to (enter) new string and that takes you back to grub menu and now press b to boot

2) another way of doing it...is to boot up as normal open a root shell and try command

Code:
init 3
 
Old 12-14-2008, 04:25 PM   #3
Krolros
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by aus9 View Post
if grub is in mbr...etc....when grub gfxmenu appears = the graphical clock, penguin etc....press the escape key to get to text grub menu

or you only have a text grub menu and from here...for the relevant kernel press e for edit and arrow down to the kernel line and press e for edit and at end of kernel line...press one space then the number 3
press enter to (enter) new string and that takes you back to grub menu and now press b to boot

2) another way of doing it...is to boot up as normal open a root shell and try command

Code:
init 3
Thanks very much. I'll give it a try and post another reply in a few minutes.
 
Old 12-15-2008, 03:29 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,008

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
You are running kubuntu - that's KDE.
You need to stop X before installing the NVIDIA driver.
You can easily do it like this (no reboots needed):
<CTRL><ALT><F2> to get a terminal
login as yourself
Become root:
Code:
sudo -i
Backup your xorg.conf in case of trouble:
Code:
cp /etc/X11/xorg.conf  /etc/X11/xorg.conf.bak
Stop X:
Code:
/etc/init.d/kdm  stop
-or, if you were running gnome-
Code:
/etc/init.d/gdm  stop
If your root terminal disappears, switch back to it with <CTRL><ALT><F2>

Install the NVIDIA driver:
Code:
sh /path/to/NVIDIA-Linux-x86-X.Y.Z-pkg1.run
Answer the questions, accept the licence etc.

Then restart X:
Code:
/etc/init.d/kdm  start
-or, if you were running gnome-
Code:
/etc/init.d/gdm  start
Your primary graphical login (X) is on terminal <CTRL><ALT><F7>

If the install failed for some reason and you have lost your graphical login, you can go back to where you started like this:
Go back to the root terminal:
<CTRL><ALT><F2>
Restore xorg.conf:
Code:
cp /etc/X11/xorg.conf.bak  /etc/X11/xorg.conf
Restart X:
Code:
/etc/init.d/kdm  restart
But maybe you have already fixed this?

Edit:
Note: The 'buntus are unusual in that they run their GUI in runlevel 2 (init 2), single-user (no X) is runlevel 1 (init 1)

Last edited by tredegar; 12-15-2008 at 03:33 AM.
 
Old 03-31-2009, 05:03 AM   #5
elaterite
LQ Newbie
 
Registered: Nov 2007
Location: Reno, NV
Distribution: Linux Mint 9 LTE KDE
Posts: 7

Rep: Reputation: 0
I've written a more comprehensive, or alternate version if you prefer, for installing kubuntu-8.04.2-desktop-i386 (Hardy) with a MSI GeForce 9800 GT & NVIDIA 180.44 Drivers (release 3/30/2009). It's an extrapolation from this and several other sources. Follow this link: http://tinyurl.com/cxsbdu
 
Old 03-31-2009, 05:32 AM   #6
rizwanrafique
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, openSUSE, CentOS
Posts: 147

Rep: Reputation: 19
About your original question. That is, starting system without X/gdm. Ubuntu (and generally Debian) doesn't configure runlevel in the same way as SuSE etc. It starts system in runlevel 2 with runlevels 2, 3, 4, and 5 identical. I've written a couple of how-tos to configure runlevels in Debian/Ubuntu and to start system without gui.

http://tinyurl.com/d4gzet
http://tinyurl.com/cp7ngb
 
  


Reply

Tags
geforce, helpful, kubuntu, nvidia, post, runlevels


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
Tri-Boot Problem, Kubuntu, XP, and Server 2003 you Linux - Newbie 4 02-10-2006 04:37 AM
Change runlevel jstephens84 Debian 4 01-02-2006 05:25 PM
change runlevel on boot? Randall Slack Slackware 6 06-30-2005 03:30 PM
Change runlevel Quiber Linux - Software 1 01-10-2005 11:27 PM
how do i change my runlevel pguru Linux - Newbie 5 08-13-2004 01:51 PM


All times are GMT -5. The time now is 01:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration