Computing.Net > Forums > Linux > Questions about Bash

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Questions about Bash

Reply to Message Icon

Name: sxkorean
Date: January 5, 2007 at 19:39:54 Pacific
OS: Ubuntu 6.06 Dapper Drake
CPU/Ram: 256
Product: Dell
Comment:

I decided I wanted Fluxbox like on the first Linux distro I used, and was wondering how I could *not* have to have gdm running to login.
I couldn't figure out how to make it boot into bash, and let me log in from there.
I can't figure out how to start X and Fluxbox from bash, either.
Also, ctrl+alt F1-6 takes me into a shell, and I was wondering if you could change the "resolution". I didn't even know how to search for this answer, google.com/linux didn't return anything helpful, so I assume that I'm not phrasing it correctly.
"Smaller characters, so more of them can fit on a screen" is how my friend put it.
Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: January 7, 2007 at 07:47:31 Pacific
Reply:

"...how I could *not* have to have gdm running to login..."
Edit /etc/inittab and change:
id:5:initdefault:
to
id:3:initdefault:

"...I can't figure out how to start X and Fluxbox from bash..."
type startx

"...I was wondering if you could change the "resolution"..."
Try appending vga=791 to your boot command at the grub (or lilo) prompt.


0

Response Number 2
Name: sxkorean
Date: January 9, 2007 at 17:52:25 Pacific
Reply:

startx starts gdm with it as well, instead of fluxbox.

my /etc/inittab doens't have that line, it does have this:

# The default runlevel.
id:2:initdefault:


0

Response Number 3
Name: 3Dave
Date: January 10, 2007 at 01:15:03 Pacific
Reply:

Create a file in your home directory called .xinitrc (note the leading ".") with the contents:
exec /usr/bin/fluxbox
You can add other programs you want to start when launching X such as xclock. You may find you already have a sample xinitrc.fluxbox somewhere on your system (often in /etc/X11/xinitrc/) which you can just copy over to ~/.xinitrc

Yep, changing id:2:initdefault: to id:5:initdefault: should do the trick.

FYI Runlevels
0 = halt
1 = single user maintenance mode
2 = multi user normal mode
3 = as above but with networking
4 = unused
5 = graphical login (eg xdm, kdm or gdm)
6 = reboot

NB Some distros use different runlevels, eg slackware uses 4 instead of 5 for a GUI. You can use the telinit command to change runlevels, eg "telinit 6" will reboot your machine.

Runlevels are also used to control what services are run. To read more:
http://www.help2go.com/Tutorials/Li...
http://www.skullbox.net/init.php

PS For obvious reasons you don't want to set your default runlevel in inittab to be either 0 or 6!


0

Response Number 4
Name: sxkorean
Date: January 11, 2007 at 00:41:55 Pacific
Reply:

changing id:2:initdefault: to id:5:initdefault didn't change anything...

If i have fluxbox run when "startx" is used, it looks strange, and the background is missing.
Would i put the entire contents of the flux init file into the initrc file?


0

Response Number 5
Name: 3Dave
Date: January 11, 2007 at 01:46:38 Pacific
Reply:

Having a look on the net you may want to change /usr/bin/fluxbox with startfluxbox.

http://fluxbox-wiki.org/index.php/....

Oops, just read your first post again, you want to boot to text and not gdm so id:5:initdefault is incorrect. Change it back to id:2:initdefault and then remove the symbolic link in your /etc/rc2.d/ directory which points to the gdm init.d script. The link will be called something like /etc/rc2.d/S13gdm. Alternatively use something like bum (Boot Up Manager) to remove the service graphically.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon

htaccess and ebay seller DVD video burining softwa...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Questions about Bash

Some questions about the kernel www.computing.net/answers/linux/some-questions-about-the-kernel/2797.html

Question about linux rh 9... www.computing.net/answers/linux/question-about-linux-rh-9/20073.html

Question About Installation www.computing.net/answers/linux/question-about-installation/14454.html