Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-16-2004, 05:13 PM   #1
Registered: May 2004
Location: Alaska, USA
Distribution: Fedora Core 4 - RedHat
Posts: 42

Rep: Reputation: 15
loading into a true BASH shell?!

Warning!!! Newbie here!!!

Hello everyone and thanks for reading...

I wanted to ask how one goes into the Bash Shell from the GUI login screen that is a true BASH... the reason is something I was trying to install something (can't recall the exact program from that time) and it would not let me install its from the control + alt + f2 bash screen (I think its that keystroke that brings it up). So is there a way to exit the GUI login screen completely as if I was loading the computer straight into the BASH by the way of the edited /etc/inittab file with the id of 3. I am wanting this because I don't want to load into the BASH login all the time then entering KDE by the way of "startx" and I don't want to have to restart the computer to enter the BASH to load something... =/

any ideas on this issue???

Much thanks as always,


Kevin in Alaska
Old 05-16-2004, 05:49 PM   #2
LQ Newbie
Registered: May 2004
Posts: 15

Rep: Reputation: 0
I'm not sure if I really understand what are you asking. I mean, you should be able to open bash from any shell by just typing in "bash" or alternatively "/bin/bash" or something like that... I might be wrong, but bash is bash so it should work - and if it doesn't work from a gui terminal, then chances are it wont work in full text mode either...

Maybe your issue is not bash, but permissions... Do you have write permissons in the directories? Do you need to be root to install that software? Check the software documentation.

This is probably not the answer to your question, but I hope it helps...
Old 05-16-2004, 07:02 PM   #3
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
If you really need to drop out of a WM and into the console, you usually can exit the WM without shutting down the computer. Viola, you're at the command-line. To get back into your manager type "startx"
Old 05-17-2004, 12:21 AM   #4
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Open a terminal window. "su" to root. Type
telinit 3
This tells the machine to drop to a console. Do your thing. As root, type
telinit 5
and you'll be shot back to GUI. Usually the comments in inittab will show what the runlevels mean. Remember 6 is reboot , 5 is GUI, 3 is multi-user console, 2 is same as 3 without networking, 1 is single user, 0 is halt (never make that your default!)
Old 05-17-2004, 01:45 AM   #5
Registered: Feb 2003
Posts: 482

Rep: Reputation: 33
ctrl+alt+F1-F6 will take you to a command line with out a gui interface. to get back to the gui, alt+F7. it's that easy.

also as farseer pointed out, bash is bash. if your opening up a console, your in bash, if that's your default shell anyway. your problem might have been that what you where trying to install actually needed a gui, so if you weren't in init5 it couldn't find the x server and then make the proper adjustments to it's self when doing the config and install. or you didn't do it as root.
Old 05-17-2004, 01:52 AM   #6
Registered: Mar 2004
Location: Colorado, US
Distribution: Debian "Sarge"
Posts: 228

Rep: Reputation: 30
When you type ctrl+alt+F2 it will take you to a true bash (as you call it).

A) If you were unable to install something might be because you tried as a regular user.

B) If you were unable to install something because the xserver was running, you can kill it fromt any console as root with '~# killall kdm' (if kdm is you desktop manager currently running) (use 'gdm' for gnome) (you can try both if you dont know which oe is running)

C) if you are running KDE, go to 'K menu > log out > end session only' then at the kdm loggin screen you can chose 'console logging' (that kills the xserver/kdm)

And, ofcurse the previous advice given to you also work.


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
null values in bash scripts always true? jdupre Programming 5 09-27-2005 06:22 PM
bash shell dawood shaheen Programming 9 08-01-2003 06:07 AM
Bash Shell triplem Linux - Software 4 04-17-2003 06:11 PM
Bash shell triplem Linux - Software 1 04-14-2003 09:01 AM
Help!!!!! Bash Shell???? DarkHorse Linux - Newbie 7 06-04-2001 01:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration