LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-12-2005, 02:09 PM   #1
GNUROCKS
Member
 
Registered: Jan 2005
Distribution: Fedora Core 3
Posts: 68

Rep: Reputation: 15
Change runlevel in ubuntu (Debian)


Ok, Im using Ubuntu and so far its pretty good, however I want runlevel 3 (text login, multi user). I dont quite know what file to edit, any help is appreachiated. Thanks
 
Old 12-12-2005, 02:41 PM   #2
anti.corp
Member
 
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Rep: Reputation: 30
Hi,

The file you want to edit is called inittab

Open a terminal. Su into root

Then type:

Code:
pico /etc/inittab
Now just edit the line called id:yournumber:initdefault
 
Old 12-12-2005, 03:00 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,239
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Debian (Ubuntu) starts services in run level 2, so trying to change what starts by editing the run level probably isn't going to get you what you want..

The easy way to do this is to disable gdm (or kdm / xdm depending on your config)
mv /etc/rc2.d/S99gdm /etc/rc2.d/K99gdm
on startup you will then login to a normal text console.


alternately you could install rcconf or sysv-rc-conf and use that to modify the sysv startup..
apt-get install sysv-rc-conf
sysv-rc-conf --level 2345 gdm off


a simple startx will launch your desktop after login, if you so desire.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the difference between runlevel 2 and runlevel 5 in Debian? davidas Linux - Newbie 2 01-05-2012 01:10 PM
change runlevel on boot? Randall Slack Slackware 6 06-30-2005 03:30 PM
Change runlevel in FC3 FinalFlash Linux - Newbie 3 05-15-2005 11:01 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:13 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration