Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-05-2015, 11:42 AM   #1
LQ Newbie
Registered: Apr 2015
Posts: 2

Rep: Reputation: Disabled
GNU Screen instead of Bash at login

When I log in at a VT or start a terminal emulator, bash is run. With a graphical terminal emulator, in order to avoid bash and have a program manage the terminal directly, I can run something like:

$ xfce4-terminal -e screen
How can I run Screen (or another program e.g. mc) at a VT console without bash? If all that instance of bash does is one command, I feel I might as well cut it out for speed and elegance.

Another problem is that just entering the command screen once seems to cause it to be run twice, with one instance nested within the other. Here's some output from top in Forest View Mode:

11002 root      20   0   0.0  0.3  `- login                                    
11016 user      20   0   0.0  0.6      `- bash                                 
11039 user      20   0   0.0  0.3          `- screen                           
11040 user      20   0   0.0  0.3              `- screen                       
11041 user      20   0   0.0  0.6                  `- bash                     
11049 user      20   0   0.0  1.4                      `- weechat-curses
How can I make screen be run just once?

Thanks in advance,

Old 07-06-2015, 06:31 AM   #2
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan with some Tiny Core, Fatdog, Haiku, & BSD thrown in.
Posts: 5,152

Rep: Reputation: Disabled
Basically, you need a shell running otherwise the computer can't accept your input.
You have a login shell, then you have bash, (which may or may not be the same shell), then you load in your terminal multi plexer (screen)
Once in screen, use ctrl+A T to get another terminal instance, then use ctrl+A N to go to the next terminal instance, use ctrl+A P to go to the previous terminal instance. (ctrl+A ? will show you the commands.)
Old 07-10-2015, 10:30 AM   #3
LQ Newbie
Registered: Apr 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Originally Posted by fatmac View Post
Basically, you need a shell running otherwise the computer can't accept your input.
Oh okay... I thought that the shell just interpreted command lines and applications would be able to talk directly to the console, which I understand (maybe wrongly) to be a the program that renders text into pixels for the monitor. I take it that this is not the case and you do actually need a shell to run screen... but then how come you can run an ncurses program like screen directly inside a terminal just using the -e option for the terminal command?


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
Dynamic title using GNU Screen with bash shuple Linux - Newbie 0 08-07-2011 02:47 AM
[SOLVED] GNU Screen doesn't start shells as a login shell Himilhil Linux - Software 3 03-22-2010 03:52 AM
[SOLVED] GNU screen---uses my login password on other distros, but not on Slackware. koenigdavidmj Slackware 2 01-26-2010 12:37 AM
GNU Screen and Bash shortcuts keysorsoze Linux - Software 2 09-18-2007 05:45 PM
GNU screen and bash settings stutterbug Linux - Software 0 01-13-2005 08:27 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:24 AM.

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
Open Source Consulting | Domain Registration