LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-16-2004, 09:42 PM   #1
Compton420
LQ Newbie
 
Registered: Sep 2004
Location: Hotown
Distribution: SuSE
Posts: 3

Rep: Reputation: 0
how do i get just a command line after login?


Ok this is prolly pretty simple but i havent been able to figure out how to do it. How can i set up an accout so that when it logs in, X does not start at all, i just want a black screen with the command line.
thanks in advance
CPT
 
Old 09-16-2004, 09:49 PM   #2
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
Edit /etc/inittab, and insert the following:

# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:

Disclaimer: this is copied from my Slackware inittab, which may be different from SUSE; however, I think that SUSE uses init 3 for console login as well.
 
Old 09-16-2004, 09:58 PM   #3
Compton420
LQ Newbie
 
Registered: Sep 2004
Location: Hotown
Distribution: SuSE
Posts: 3

Original Poster
Rep: Reputation: 0
now in that case the id is the uid or the users login right?
 
Old 09-16-2004, 10:03 PM   #4
Compton420
LQ Newbie
 
Registered: Sep 2004
Location: Hotown
Distribution: SuSE
Posts: 3

Original Poster
Rep: Reputation: 0
say i have a user named "testusr" with a uid of 501 when this user log in i want it to bring up just the command line, no X windows. I have another user that will be used for X. I hope this explains my problem a little better.
 
Old 09-16-2004, 10:12 PM   #5
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
I'm tempted to simply post my /etc/inittab (which is the unedited Slackware one), but it will probably screw up your SUSE install.

SUSE probably has a GUI tool for setting the init levels.

As far as setting your system for console or X login per user, I'm afraid that I don't understand your question, and cannot help there. Your system boots into console or X (specifically xdm/kdm/gdm) before any user logs in, so I don't see how you can customize the init mode on a per user basis.
 
Old 09-18-2004, 07:47 PM   #6
poiuytrewq
Member
 
Registered: Jul 2004
Posts: 107

Rep: Reputation: 15
when your system is fully booted

just try using [ctrl]-[alt]-[F#]

where [F#] is the keys F-1 through F-7

F1 to F6 should bring up console logins and F7 should be your xdm/gdm/kdm

(unless that is only a RH/FC feature, but im pretty sure it is a standard nix feature)
(you can switch between them any time (before or after login))

hopefully this will help with what you are looking for
 
Old 09-18-2004, 09:22 PM   #7
hkxx9
Member
 
Registered: Sep 2004
Location: Smoky Mtns
Distribution: Slackware 10
Posts: 64

Rep: Reputation: 15
Hmmmm, no matter how I login, I always get a command prompt.
Maybe I 'm missing something? What's this gooey stuff?

cheers
 
Old 09-18-2004, 10:13 PM   #8
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
If you want one user (user1) to login to a console, and another user (user2) to login to X, you can set up inittab as spurious said.
Then edit the ~/.bash_profile or ~/.profile or ~/.bash_login of user2, adding "startx" at the end of the file.
Don't do this in ~/.bashrc, or user2 will get errors every time he opens an x term.
 
  


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
MySQL: Login as Blank User From Command Line tortle Linux - Software 1 05-14-2005 06:01 PM
Default runlevel = command line login? rdd Debian 5 10-13-2004 01:08 PM
Access Floppy From Command Line Login?.... Stealthy_C Linux - General 1 03-05-2004 02:33 PM
starting graphical login from command line funkymunky Red Hat 1 02-21-2004 01:28 AM
Changin Graphical Login to command line login 3DLirio Linux - Newbie 2 10-16-2003 10:43 PM


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