LinuxQuestions.org
Help answer threads with 0 replies.
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 06-03-2003, 04:13 PM   #1
g1bb0ns
LQ Newbie
 
Registered: May 2003
Location: Dallas
Distribution: Red Hat 9
Posts: 11

Rep: Reputation: 0
Gentoo: want to boot to command line


Not only have i just started my descent into linux, I have (per recomendation) installed Gentoo on my Mitac 6133 laptop. I don't really know my way around the system to well yet, and I was wondering if anyone could direct me to a way to get my computer to boot to the command line instead of gnome.


-sean
 
Old 06-03-2003, 04:22 PM   #2
Rick422
Member
 
Registered: Apr 2003
Location: Arizona
Distribution: Red Hat Linux 9
Posts: 158

Rep: Reputation: 30
I have not used Gentoo, but with every version of Linux I have used so far the inittab file controls that. While logged in as root you can uses your test editor to open the inittab file which is located in the /etc directory. Inside the inittabl file you should see a line like somthing this:

id:5:initdefault:

If there is a 5 on that line it means it will automatically boot up into an X-Windows interface such as Gnome or KDE. If there is a 3 instead of a 5 on that line it will automatically boot up into the command-line interface instead. All you need to do is change that number on that line. You can look at the lines above that to see if there are any comments explaning that.
 
Old 06-03-2003, 04:32 PM   #3
Rick422
Member
 
Registered: Apr 2003
Location: Arizona
Distribution: Red Hat Linux 9
Posts: 158

Rep: Reputation: 30
In the above post I ment to say text editor not test editor. Anway, there is another alternative way to do that at least on some versions of Linux. You could probably also use the telinit or runlevel commands to do the same thing. I have never tried doing it that way though. The way I described above works, so I have stuck with that method of changing runlevels. If you do not want to log-in as root you could just type the su command and give it the root users password to temporarily get the necessary superuser priveleges necessary to change the inittab file.
 
Old 06-03-2003, 04:33 PM   #4
g1bb0ns
LQ Newbie
 
Registered: May 2003
Location: Dallas
Distribution: Red Hat 9
Posts: 11

Original Poster
Rep: Reputation: 0
interesting.

thanx for the reply.

unfortunatly i just checked my /etc/inittab and it is already set to 3.

I think i may of been in error with my original post. Come to think of it, my machine does reach the commandline login prompt, but then immediatly goes into GDM. Any idea what i'm talking about? and perhaps, any idea what else may be the problem?

-sean
 
Old 06-03-2003, 04:39 PM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Gentoo is a little different from other distros and doesn't use the sysvinit system.

Gentoo init system

Try rc-update del <loginmanager> default
 
Old 06-03-2003, 04:40 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
gentoo does do this a little different, you probably know that the standard runlevels 1-5 don't really exist in the conventional sense. you'll have xdm set on the default runleve entry (/etc/runlevel/default) remove that entry:

rc-update del xdm default

and you'll be fine. i've mixed thoughts about doing it this way, it's not standard but it does make sense...
 
Old 06-03-2003, 04:47 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
hey dammit, i started typing first!
 
Old 06-03-2003, 05:21 PM   #8
g1bb0ns
LQ Newbie
 
Registered: May 2003
Location: Dallas
Distribution: Red Hat 9
Posts: 11

Original Poster
Rep: Reputation: 0
I apreciate ya'lls help. The rc-update did work, and I now boot to the command line. I may need to post this under and new thread, but I have some other issues now that I'd like some assistance working out.

at the command prompt, and from my normal user account, to get to gnome , I must type "gdm" (as startx gets me to x itself, rather then gnome). in doing so i get a messege
"only root wants to run gdm"

my question is this. How do i give my day to day account the ability to jump into gdm from the command line?
 
Old 06-03-2003, 05:38 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well you don't... that's why you stopped using it... you're *already* logged in. if you want a menu to choose what window manager to use, just a console based script like Xtart.

you say "x itself, rather than gnome".. which really doesn't make much sense
 
Old 06-03-2003, 06:08 PM   #10
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
You are wanting to set a desktop environment/window manager?

You probably want to create a ./home/<user>/.xinitrc file with something like this:
Code:
# Duron 950 box "uilleann" user fancy .xinitrc file
# Start stuff I want to run when I startx
exec gnome-session
#exec kde
#Esetroot ~/backgrounds/linux.png &
#gkrellm -w &
#xscreensaver &
#exec fluxbox
The uncommented line causes Gnome to start when you command "startx"

You can also alias commands in the user .bashrc file:
Code:
# for launching window manager/desktop environments from console login
alias a='echo DESKTOP=AfterStep > ~/.desktop;startx'
alias ice='echo DESKTOP=icewm > ~/.desktop;startx'
alias kde='echo DESKTOP=KDE3 > ~/.desktop;startx'
alias wm='echo DESKTOP=WindowMaker > ~/.desktop;startx'
alias sf='echo DESKTOP=Sawfish > ~/.desktop;startx'
alias g='echo DESKTOP=Gnome > ~/.desktop;startx'
alias xf='echo DESKTOP=XFce > ~/.desktop;startx'
alias bb='echo DESKTOP=BlackBox > ~/.desktop;startx'
alias fb='echo DESKTOP=FluxBox > ~/.desktop;startx'
alias e='echo DESKTOP=Enlightenment > ~/.desktop;startx'
The command "g" now will start x with Gnome.
You have to log out (control-d) and back in for changes in the .bashrc or .xinitrc to take effect.

Last edited by fancypiper; 06-03-2003 at 06:22 PM.
 
Old 06-03-2003, 06:09 PM   #11
g1bb0ns
LQ Newbie
 
Registered: May 2003
Location: Dallas
Distribution: Red Hat 9
Posts: 11

Original Poster
Rep: Reputation: 0
I apologize. I'm still very new to this

what i ment to say is that startx gets me to a basic x window manager (through gentoo install doc, i believe its twm).

Ultimatly, i would like to be able to get into gnome from the command line outside of root and with out having to log in again once i am in Gnome itself.

any possability for this, or am i still not making any sense?

-sean

-sean
 
Old 06-03-2003, 06:15 PM   #12
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Did you see my post? I was editing
 
  


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
Blank Screen after Suse Boot - HowTo boot from grub to command line benco420 Linux - Newbie 3 02-13-2005 06: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 06:29 PM
mouse problems in Gentoo command line khermans Linux - Newbie 2 06-16-2004 09:18 PM
Boot to Command line nhesson Linux - Software 1 02-18-2004 05:53 AM
How do i boot into Command line only ? Jimmyscab Linux - General 1 01-13-2003 12:43 PM


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