LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-05-2015, 12:42 PM   #1
Edward_Guyatt
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:

Code:
$ 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:

Code:
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,

Ed
 
Old 07-06-2015, 07:31 AM   #2
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan/Devuan based - with - OpenBSD - NetBSD - Fatdog64
Posts: 4,715

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, 11:30 AM   #3
Edward_Guyatt
LQ Newbie
 
Registered: Apr 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
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?
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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