LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-03-2004, 09:19 PM   #1
degraffenried13
Member
 
Registered: Sep 2003
Posts: 228

Rep: Reputation: 30
grub and different window managers


I have just recently purchased and built a new computer, and I installed redhat 9 not finding the option to boot into "text mode" instead of gnome. I will eventually be putting a different window manager on as well i think.

My question is: is it possible to add some lines to grub to allow me to choose to boot to text, gnome and/or some other window manager?
 
Old 01-04-2004, 12:15 AM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
grub doesn't handle either of the issues you describe

To boot into text mode
As root, edit the file /etc/inittab

Change the line

id:5:initdefault:

to

id:3:initdefault:

To add window managers to the graphical login screen

Create a file with the window managers name in /etc/X11/gdm/Sessions with the following lines

#!/bin/bash
exec /etc/X11/xdm/Xsession window_manager

For example, to add fluxbox:

vim /etc/X11/gdm/Sessions/Fluxbox

and put in it:

#!/bin/bash
exec /etc/X11/xdm/Xsession fluxbox

If you are going to boot into text mode create a file in your home directory named .xinitrc and add the line
exec name_of_window_manager

Then run the command startx.
 
Old 01-04-2004, 12:16 AM   #3
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
grub doesn't handle window managers...it's purpose is to help you choose which kernel to boot.
You're booting into gnome automatically because many distros are designed with the assumption that people want it that way, so they start up X without asking, and then use a session manager or just load up the default window manager.

If you want text mode, look into /etc/inittab. This file contains the line
id:5:initdefault:
change it to id:3:initdefault: and you'll start in text mode.

edit:
Hi...my name is mikshaw and I like to post things immmediately after someone else just said the exact same thing....

Last edited by mikshaw; 01-04-2004 at 12:18 AM.
 
Old 01-04-2004, 12:26 AM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Quote:
Originally posted by mikshaw

edit:
Hi...my name is mikshaw and I like to post things immmediately after someone else just said the exact same thing....
I'm glad it happens to other people beside me
 
Old 01-04-2004, 07:48 PM   #5
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
Actually if you want to choose at boot what runlevel to start into you can pass it as a kernel (actually init) parameter: so you may add your grub entry such as:
Quote:
title = Linux-Console
root (hd0,6)
kernel /vmlinuz 3
here is where i found it:
http://216.239.59.104/search?q=cache...hl=en&ie=UTF-8
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Window Managers thorn168 General 21 05-10-2006 11:37 AM
Window Managers vs Window Shell Environments DJOtaku Linux - General 7 08-09-2005 12:43 PM
window managers jonhewer Linux - Newbie 14 05-08-2005 03:43 AM
Window Managers vs. Desktop Managers mikeshn Linux - General 4 02-11-2004 11:31 AM
Window Managers rsarson Fedora 5 01-14-2004 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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