LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-12-2005, 11:21 PM   #1
LQnewBee
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Rep: Reputation: 0
How do i?...


change my runlevel so i can get a desktop and stuff, not just a command line
 
Old 10-12-2005, 11:59 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Assuming you installed a window manager, you could enter "startx" to bring it up. ( This assumes X windows is installed. )

If you want to default to booting up to a graphical login, you can edit your /etc/inittab. Read the comments at the start of the file. They will explain which run level to use. On SuSE, Mandrake, Red Hat and others, this would be run level 5.

This is what the relevent part of my /etc/inittab looks like:
# The default runlevel is defined here
id:5:initdefault:

Again, be sure to read the table in the comments at the start of the file. You system may be different than mine.

On my system, the two common run levels are:
# runlevel 3 is Full multiuser with network
# runlevel 5 is Full multiuser with network and xdmh

This is taken from my /etc/inittab file, so you have an idea what it should look like in yours.

Last edited by jschiwal; 10-15-2005 at 03:28 AM.
 
Old 10-13-2005, 12:08 AM   #3
LQnewBee
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Original Poster
Rep: Reputation: 0
I just installed debian from the netinst floppies, ntohing else has been downloaded.
 
Old 10-14-2005, 01:04 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
You will need to install the X-windows system (XFree86 or Xorg). There are a number of window managers that you can choose to install, if you don't want to install KDE or Gnome. Without the x-windows system, you won't have a desktop.
 
Old 10-14-2005, 02:45 AM   #5
danimalz
Member
 
Registered: Jul 2005
Location: West Coast South, USA
Distribution: debian 3.1
Posts: 267

Rep: Reputation: 36
Quote:
Originally posted by jschiwal
Assuming you installed a window manager, you could enter "startx" to bring it up. ( This assumes X windows is installed. )

If you want to default to booting up to a graphical login, you can edit your /etc/fstab. Read the comments at the start of the file. They will explain which run level to use. On SuSE, Mandrake, Red Hat and others, this would be run level 5.

This is what the relevent part of my /etc/fstab looks like:
# The default runlevel is defined here
id:5:initdefault:

Again, be sure to read the table in the comments at the start of the file. You system may be different than mine.

On my system, the two common run levels are:
# runlevel 3 is Full multiuser with network
# runlevel 5 is Full multiuser with network and xdmh

This is taken from my /etc/inittab file, so you have an idea what it should look like in yours.
you are confusing the newbie with fstab and inittab.

newbie: /etc/inittab is what u want to look at for runlevels (but go a bit deeper and look at the scripts being called) /etc/fstab is what your system will mount, or make available for mounting, at boot.

cheers!
 
Old 10-14-2005, 01:32 PM   #6
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Is it /etc/fstab ? If not mistaken it is suppose be /etc/inittab. If you are running lower configuration install light weight desktops.

-Prasanta
 
Old 10-14-2005, 03:06 PM   #7
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 416

Rep: Reputation: 53
OK...here we go....

First of all, this is Debian, not Redhat, so runlevels are somewhat different...

Runlevel 0: Shutdown
Runlevel 1: Single User
Runlevel 2-5: Multi-user
Runlevel 6: Reboot

The default runlevel for debian is 2.

I know in Redhat, the default graphical runlevel is 5, but in debian the switch between console and graphical login is the addition of gdm in /etc/rc2.d/, typically at S99.

If all you have done is install from the basic disks, you probably still need to install Xfree86 (or x.org), gnome or KDE, and GDM or KDM. Those packages are listed below (package type: package name):

Xfree86: xserver-xfree86
X.Org: xserver-xorg

Gnome: gnome
KDE: kdebase

GDM: gdm
KDM: kdm

To get these installed, you can do the following:

$ apt-get install <package-name>

apt will handle all of the dependencies quite handily.
 
Old 10-15-2005, 03:30 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Thanks for catching my mistake. I don't know why I kept typing in fstab when I meant inittab. I made the appropriate edit.

I didn't assume his /etc/inittab would use the same runlevels, and pointed out that he would need to read his.
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:01 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