LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-27-2013, 10:00 PM   #1
theAdmiral
Member
 
Registered: Oct 2008
Location: Boise, Idaho
Distribution: Debian GNU/Linux (Jessie) + KDE
Posts: 168

Rep: Reputation: 4
command line shows up upon boot


After requesting to have help to resolve some troubling advice in another forum not related to LinuxQuestions.org, I received some advice along the lines of upgrading Gnome when I was running Squeeze.

The advice read as follows:

Quote:
fully update your squeeze system
change your /etc/apt/sources.list file to
deb http://ftp.us.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
apt-get update
apt-get dist-upgrade
To make a long story short, I followed the advice and now when I restart my computer, the computer boots into a command line. To get into my window manager I have to provide my login username, password, and the command:

Code:
$ startx
Upon entering this command, my window manager loads effortlessly (although at this time it is loading the wrong mode, i.e.--classic instead of Wheezy default--a problem which I have posted another new thread about).

Anyway, what I want to do is this: upon cold start or restart, display shows the typical login dialog where I press "Enter" with my name highlighted, and enter my password to log in to my desktop/computer/etc. and get some work done.

Can somebody help me fix this problem, please?

Much thanks in advance for your help.
 
Old 06-27-2013, 11:07 PM   #2
rosehosting.com
Member
 
Registered: Jun 2012
Location: Missouri, USA
Posts: 236

Rep: Reputation: 64
Open your /etc/inittab file and change the line that looks like this:

Quote:
id:3:initdefault:
to

Quote:
id:5:initdefault:
Save the file and restart the machine.
 
Old 06-27-2013, 11:44 PM   #3
theAdmiral
Member
 
Registered: Oct 2008
Location: Boise, Idaho
Distribution: Debian GNU/Linux (Jessie) + KDE
Posts: 168

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by rosehosting.com View Post
Open your /etc/inittab file and change the line that looks like this:



to



Save the file and restart the machine.
Thank you for your suggestion. I tried it and got the same behavior. So I put the "2" back in there where it was originally. If it should definitely be something else, then by all means let me know. Otherwise, I will leave that the way it is. But, if there is some other change you know of, that I should make, please let me know.

Much thanks for your help in advance.
 
Old 06-28-2013, 10:16 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Is the gdm3 package installed?
jdk
 
1 members found this post helpful.
Old 06-28-2013, 10:18 AM   #5
theAdmiral
Member
 
Registered: Oct 2008
Location: Boise, Idaho
Distribution: Debian GNU/Linux (Jessie) + KDE
Posts: 168

Original Poster
Rep: Reputation: 4
I presume the gdm3 package is installed because I can boot into Gnome 3.4.2.1 from the command line.
 
Old 06-28-2013, 10:48 AM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by rosehosting.com View Post
Open your /etc/inittab file and change the line that looks like this:



to



Save the file and restart the machine.
For Debian the default runlevel should be 2, not 5, though that makes no difference.

As to the problem in hand -- I'd say
Code:
apt-get install gdm3
ought to solve it. GDM3 isn't required to run gnome it's just the session manager.

Last edited by 273; 06-28-2013 at 10:50 AM.
 
Old 06-28-2013, 11:00 AM   #7
theAdmiral
Member
 
Registered: Oct 2008
Location: Boise, Idaho
Distribution: Debian GNU/Linux (Jessie) + KDE
Posts: 168

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by 273 View Post
For Debian the default runlevel should be 2, not 5, though that makes no difference.

As to the problem in hand -- I'd say
Code:
apt-get install gdm3
ought to solve it. GDM3 isn't required to run gnome it's just the session manager.
Code:
apt-get install gdm3
This did take care of it! Thanks.
 
Old 06-28-2013, 11:27 PM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by theAdmiral View Post
I presume the gdm3 package is installed because I can boot into Gnome 3.4.2.1 from the command line.
As you can see, it's not good to "presume". It's better to check. For example to check if a package is installed takes 2 seconds. Type this on the command line:
Code:
aptitude search gdm3
This example checks if gdm3 is installed. If it isn't you will see this:
Code:
~$ aptitude search gdm3
p   gdm3                                          - Next generation GNOME Display Manager                  
p   gdm3:i386                                     - Next generation GNOME Display Manager
If it is installed you will see this (I use KDE so my example is kdm).
Code:
~$ aptitude search kdm
i   kdm                                           - KDE Display Manager for X11                            
p   kdm:i386                                      - KDE Display Manager for X11
In this example you notice that kdm is installed (the "i" means "installed"). But the 32bit version is not installed.
Easy, innit.
jdk
 
  


Reply



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
[SOLVED] How to boot into command line? steviebob Ubuntu 4 09-17-2011 10:43 AM
command line copy program that shows progress milomak Linux - General 2 07-25-2009 12:38 PM
Blank Screen after Suse Boot - HowTo boot from grub to command line benco420 Linux - Newbie 3 02-13-2005 05:50 AM
mandrake 10 command line to gui boot, then stuck at boot with hour glass chris008 Linux - Laptop and Netbook 1 11-14-2004 05:29 PM
How do i boot into Command line only ? Jimmyscab Linux - General 1 01-13-2003 11:43 AM

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

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

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
Open Source Consulting | Domain Registration