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 10-16-2009, 08:11 PM   #1
magnecticfield
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Rep: Reputation: 0
Command line login screen Ubuntu


Hello, is there a way to make my login screen on Ubuntu 9.04 to be just a command line where I put my login and my password?

Thanks.
 
Old 10-16-2009, 08:25 PM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by magnecticfield View Post
Hello, is there a way to make my login screen on Ubuntu 9.04 to be just a command line where I put my login and my password?

Thanks.
Yes. Edit /etc/inittab. Replace this:

Code:
id:5:initdefault:
With this:

Code:
id:3:initdefault:
Save the result, reboot. You always have the option of activating the graphic desktop by entering this:

Code:
# init 5
 
Old 10-17-2009, 09:48 AM   #3
magnecticfield
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Well, there's no such file on Ubuntu 9.04. But thanks anyway.
 
Old 10-17-2009, 10:12 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Debian and ubuntu are a bit unusual in this area. The default run level is no longer defined in /etc/inittab, now defined by /etc/event.d/rc-default, a script that defaults the run level to 2. There is no non-graphical, multiuser run level as on other systems; you could configure one.

Debian (and Ubuntu) Run Levels
http://www.debian.org/doc/debian-pol...tml#s-sysvinit
Run levels are numbered S and 0 to 6..

* S Boot
* 0 System Halt
* 1 Single user (recovery)
* 2 Full multi-user mode (Default)
* 3-5 Same as 2
* 6 System Reboot

Run level S
is used during boot before transitioning to the default run level.

Run level 0 halts and powers of the system.

Run Level 1
is known as ’single user’ mode. A more apt description would be ‘rescue’, or ‘trouble-shooting’ mode. In run level 1, no daemons (services) are started. Hopefully single user mode will allow you to fix whatever made the transition to rescue mode necessary.

(You can boot into single user mode typically by using your boot loader, lilo or grub, to add the word ’single’ to the end of the kernel command line).

Run levels 2 through 5 are full multi-user mode and identical by default. It is a common practice in other Linux distributions to use run level 3 for a text console login and run level 5 for a graphical login.

Run level 6
reboots. It is the same as run level 0 except it ends by restarting rather than by powering off.


Do you know about Ctrl+Alt+F<n> (where n is 1 to 6) to switch from the graphical logon screen to a text screen (a "virtual terminal")?
 
Old 10-17-2009, 12:26 PM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
From /etc/rc2.d/README on Ubuntu9.04 UNR
Quote:
The scripts in this directory are executed each time the system enters
this runlevel.

The scripts are all symbolic links whose targets are located in
/etc/init.d/ .

To disable a service in this runlevel, rename its script in this directory
so that the new name begins with a 'K'
and a two-digit number, where the
number is the difference between the two-digit number following the 'S'
in its current name, and 100. To re-enable the service, rename the script
back to its original name beginning with 'S'.

For a more information see /etc/init.d/README.
~
The script that starts the graphical environment is /etc/rc2.d/S30gdm

Hope that this helps enough
 
Old 10-17-2009, 01:28 PM   #6
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
Quote:
catkin

Debian and ubuntu are a bit unusual in this area. The default run level is no longer defined in /etc/inittab, now defined by /etc/event.d/rc-default, a script that defaults the run level to 2. There is no non-graphical, multiuser run level as on other systems; you could configure one.
I'm running Debian Lenny and I can tell ya /etc/event.d/rc-default does not exist, now that may not be true for the up and coming squeeze. I have read that Debian is going to adopt some of Ubuntu's methods but I can't remember if it was on this subject or not. Looks like it's time to download and install squeeze to check this out.
 
Old 10-17-2009, 01:52 PM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by mrrangerman View Post
I'm running Debian Lenny and I can tell ya /etc/event.d/rc-default does not exist, now that may not be true for the up and coming squeeze. I have read that Debian is going to adopt some of Ubuntu's methods but I can't remember if it was on this subject or not. Looks like it's time to download and install squeeze to check this out.
Thanks for the update. So /etc/event.d/rc-default is an ubuntu-only thing -- at least for now.
 
Old 10-17-2009, 01:56 PM   #8
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by catkin View Post
Debian and ubuntu are a bit unusual in this area. The default run level is no longer defined in /etc/inittab, now defined by /etc/event.d/rc-default, a script that defaults the run level to 2.
This is a real shame. I'm very sorry to see the speed and indifference with which many Linux distributions are drifting away from any semblance of platform commonality or shared standards. Pretty soon it will be impossible to write an application that will successfully run on different Linux distributions, instead of merely difficult as it is now.

Over the past few years I've been rewriting all my applications in Java for just this reason. There are many things I don't like about Java, but in exchange I don't have to manage endless "I can't compile or install it" correspondence.

I think Linux distributors are losing sight of an important fact -- people's willingness to adopt Linux hinges on its reliability and consistency. There is a political term for this -- "Balkanization". Linux is becoming Balkanized (being turned into numerous small kingdoms that can only fight among themselves).
 
Old 10-17-2009, 02:50 PM   #9
magnecticfield
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Well, thanks for all the answers but I'm quite newbie at Linux. So there's no way to configure Ubuntu 9.04 to have a command line login that starts the Gnome right after it?
 
Old 10-17-2009, 04:28 PM   #10
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by magnecticfield View Post
Well, thanks for all the answers but I'm quite newbie at Linux. So there's no way to configure Ubuntu 9.04 to have a command line login that starts the Gnome right after it?
No problem. Would you like to answer my question: "Do you know about Ctrl+Alt+F<n> (where n is 1 to 6) to switch from the graphical logon screen to a text screen (a "virtual terminal")?".

Before answering your question, let's get clear what it is. Do you want to logon at a text based terminal and, as soon as your password has been validated want the system to start a Gnome desktop session? That's almost certainly do-able but why would you want to do that? All it does is bypass the gdm graphical logon screen.

Or are you asking how to implement a solution you believe is the best way to solve your problem? If that's the case it may be better to state your problem; LQ may suggest a better solution.

Last edited by catkin; 10-17-2009 at 04:30 PM. Reason: Translate gobbledygook to semi-sense
 
Old 10-17-2009, 06:17 PM   #11
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
catkin

Yeh I just confirmed Debian squeeze still uses inittab and Ubuntu 9.04 uses /etc/event.d/rc-default That was installing Debian lenny then doing a apt-get dist-upgrade to squeeze, so it could be that Debian may still change the way it handles its run levels, but later on as squeeze gets closer to stable release.

Last edited by mrrangerman; 10-17-2009 at 06:20 PM. Reason: add info
 
Old 10-17-2009, 06:29 PM   #12
magnecticfield
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by catkin View Post
No problem. Would you like to answer my question: "Do you know about Ctrl+Alt+F<n> (where n is 1 to 6) to switch from the graphical logon screen to a text screen (a "virtual terminal")?".

Before answering your question, let's get clear what it is. Do you want to logon at a text based terminal and, as soon as your password has been validated want the system to start a Gnome desktop session? That's almost certainly do-able but why would you want to do that? All it does is bypass the gdm graphical logon screen.

Or are you asking how to implement a solution you believe is the best way to solve your problem? If that's the case it may be better to state your problem; LQ may suggest a better solution.
Well, thanks. I got Ctrl+Alt+F<n> stuff, that's how I wanted my system to start, and right after I put my password I would like to start Gnome. There's no special reason why I want to have a command line login screen, It's just that I don't like the graphical way, through command line it would look cleaner to me.
 
Old 10-18-2009, 01:48 AM   #13
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by magnecticfield View Post
Well, thanks for all the answers but I'm quite newbie at Linux. So there's no way to configure Ubuntu 9.04 to have a command line login that starts the Gnome right after it?
Did you read post #5 ?
 
Old 10-18-2009, 12:48 PM   #14
magnecticfield
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Wim Sturkenboom View Post
Did you read post #5 ?
Oh, sorry, I haven't reed your post. OK, I changed the file name, it works but how do I start gnome after I login?
 
Old 10-18-2009, 12:54 PM   #15
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
"gdm" is the command.

Your mileage may vary, but this should work for you:
Quote:
sudo /etc/init.d/gdm start
 
  


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
how to change boot screen,splash screen,login themes while custmzing ubuntu cd project_sap Linux - Newbie 1 04-07-2008 07:12 AM
Installed Mepis 3.4_rc3: only allows command line login (black screen) smiley_lauf MEPIS 8 01-29-2006 04:03 PM
Splashy installation causes line in Ubuntu login screen pazzport Linux - Software 0 10-30-2005 02:29 AM
How do I kill a screen from command-line if I know the screen name? CrewXp Linux - Software 6 08-27-2005 10:35 AM
Changin Graphical Login to command line login 3DLirio Linux - Newbie 2 10-16-2003 09:43 PM


All times are GMT -5. The time now is 02:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration