LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-16-2005, 04:08 PM   #1
joyman555
LQ Newbie
 
Registered: Feb 2005
Posts: 13

Rep: Reputation: 0
debian runlevel init 3


Hi

I'm running Debian sarge, and I have trouve switching runlevels, I can switch to runlevel 1 by typing "init 1" but init 2, 3 and up seems to keep my X server.
So how can I run without my X server, do I have to change anything in /etc/inittab ?
Thanks for the help

Arthur
 
Old 02-16-2005, 04:27 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,765

Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
Near the top of /etc/inittab, there is a comment which states: "The default runlevel is defined here", which is followed by the statement "id:x:initdefault". The X stands for the default runlevel. Change it to 5, save, and reboot to see if it starts if GUI mode (runlevel 5). If it boots to runlevel 3 (command line), issue the command "startx" to see if it starts the X server.
All of the commands are, of course, issued without quotes.
 
Old 02-16-2005, 05:45 PM   #3
joyman555
LQ Newbie
 
Registered: Feb 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks, I'll try that, but I thought there was a way to do it without rebooting or changing any setting, just to have a runlevel 3 for a moment.
 
Old 02-16-2005, 05:49 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Debian seems to just use run levels 1 and 2. init 1 is the command prompt and init 2 is X. If you want the command prompt edit /etc/inittab and change initdefault to 1
Code:
sed -i 's@id:2:initdefault:@id:1:initdefault:@g' /etc/inittab
 
Old 02-16-2005, 05:56 PM   #5
joyman555
LQ Newbie
 
Registered: Feb 2005
Posts: 13

Original Poster
Rep: Reputation: 0
But level 1 is single-user mode right ? and I need a multi-user mode with no X, so how do I do that ?
Can I change level 1 to be multiuser ?

Thanks
 
Old 02-16-2005, 08:04 PM   #6
rbochan
Member
 
Registered: Dec 2004
Location: Central New York
Distribution: Debian
Posts: 218

Rep: Reputation: 30
try this command:
cat /etc/init.d/README
 
Old 02-16-2005, 09:30 PM   #7
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
there are some apps you can download and install via apt-get to edit the apps that start up with each runlevel in debian.

Debian uses runlevel 2-5 as graphical. you have to manually tell it to not start up X for runlevel2.

http://qref.sourceforge.net/Debian/r...tombootscripts

that link tells you exactly how and what to use to edit the runlevel list for debian.
 
Old 02-17-2005, 10:32 AM   #8
joyman555
LQ Newbie
 
Registered: Feb 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks a lot
 
Old 04-07-2008, 08:32 PM   #9
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30
I've been trying all of this and it just doesn't work.

I am trying to get into init 3 runlevel to install my nvidia driver, but i can't do it. Ctrl+alt+backspace just logs me out. Inits 1 and 2 do something. And no matter how i get into a console, i always get a message within the driver installer that X server is running.

I even typed telinit 3 as root to see if it would drop into it. But debian is just not paying attention to it.

Is there a simpler, direct way instead of modifying scripts???

Thanks a lot.
 
Old 04-14-2008, 04:23 PM   #10
Icode4food
LQ Newbie
 
Registered: Jul 2007
Distribution: Debian, Fedora
Posts: 3

Rep: Reputation: 0
Shouldn't you go to /etc/rc2.d and move S21gdm/S21kdm to K21gdm/K21gdm.

That way when you in run level 2 it would kill the X server
 
Old 04-15-2008, 01:47 AM   #11
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30
Lol

Thanks for the tip, i would have tried that, but i just killed X server with 'killall gdm'. That way i just forced init 3, i suppose.

Thanks for the help everyone. I appreciate it.
 
  


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
INIT: no more processes left in this runlevel netsina Red Hat 3 07-04-2005 03:21 AM
Init and runlevel commands CliffLandin Linux - General 2 11-22-2003 05:01 PM
INIT: no more processes left in this runlevel ..:eMa:.. Linux - Newbie 8 10-29-2003 11:49 AM
init runlevel adam171771 Linux - General 3 07-05-2001 09:02 PM


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

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