screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells.

learn more… | top users | synonyms

3
votes
8answers
28k views

Remote Desktop Connection Screen is totaly black but server is working perfectly

Server is working perfectly but when I do RDC screen is only black. This happened before and I fixed it by powering off the server via KVM/IP, but I don't want do that again. How can I fix this issue. ...
1
vote
2answers
223 views

GNU Screen: opening each screen buffer in a separate terminal tab

I'm looking for a Linux terminal that is fully integrated with GNU Screen, i.e. mapping each screen buffer to a separate tab and with full scrollback support - all that inside a SSH session. Is this ...
1
vote
1answer
639 views

linux screen question: turn off status tab?

Is there a way in screen to turn off the status bar? Ideally, only display it when I have 2+ tabs open? What .screenrc entries would accomplish this?
3
votes
1answer
206 views

send interrupt to window in screen

How can I send a interrupt to a window within screen. I have screen running with several windows. Each of the windows have processes running within them. I wish to be able to send and interrupt to ...
7
votes
2answers
1k views

Does tmux have all the features that screen has? And those screen is missing?

I'm considering switching from screen to tmux, but I've invested lots of time developing an extensive .screenrc, and I don't want to find after many hours of porting it to tmux that tmux can't do ...
2
votes
2answers
434 views

When using vim with screen the keys ctrl + right and ctrl + left don't work

In the last days i became very addicted of using the combination terminator (in full screen) + screen + vim. But i'm having problems with the ctrl + right and ctrl + left key mappings, they are ...
0
votes
2answers
689 views

How can I go back in the (GNU) screen command history? (NOT shell command history!)

Currently, when I enter ^a : (control-A followed by ':') to send a command to GNU screen, I can go back one step in the history, and see exactly ONE previous command. This is really annoying, as I'm ...
12
votes
5answers
11k views

How to scroll back in screen within a ssh session from OS X?

I do the following: Open Terminal.app Open a ssh session to a remote Linux server Open a screen session on the server Start a program who breaks with many lines of error reporting… How can I ...
1
vote
5answers
938 views

Using screen to monitor non-interactive scripts (or some other solution)

I have some autonomous scripts that run commands on remote machines over ssh. These scripts rely on getting stdout, stderr, and the return code of each command run. I want to be able to monitor the ...
2
votes
3answers
221 views

Lock down a linux system with screen

I need to lock down a system so that a group of individuals can log into the server via ssh. When they log into ssh I would like them to be presented with a screen session and locked down to that ...
52
votes
3answers
15k views

How to reload screenrc without restarting screen?

After modified screenrc, how to see the changes without restarting screen?
1
vote
1answer
700 views

How can I force gnu screen to flush it's logfile?

I am using screen like this: screen -L -dm -S session1 -c "./game_server -options" to wrap around game servers. I log their output to a file, and can send them input with: screen -r session1 -p0 ...
1
vote
2answers
1k views

Centos start script for 'screen'?

I have a program that runs in the foreground so I run it via a 'screen'. Is there a good start/stop/restart template for 'screen'? I need it to pass the commands to the screen and create it if it ...
2
votes
1answer
1k views

How to get GNU screen to dynamically set gnome-terminal's title everytime I switch to different windows of a screen session?

Question title says it all. I am not able to tell which window of my screen session I am in, to find that out I am having to view ^aw (window list) and look at the where the * is to tell which window ...
1
vote
1answer
368 views

Destroy a dead window in Screen

I know I can kill the current window using C-k, however it doesn't work for a dead window. Is there anyway to kill it? Thank you. C-a C-k (kill) Destroy current window.
0
votes
1answer
342 views

Linux Screen; How do I make screen persistent with the -X command?

I'm running screen with the following command: screen -dms -X buildscript.py This executes the buildscript.py file and runs it as a daemon. Now, when the build script fails, screen automatically ...
3
votes
3answers
789 views

How to I use Vim's increment (Control-a) when in a screen session?

Is there a way to re-map Control-a in screen to Alt-a or something else, so I can use Control-A in Vim normally (increments the number under the cursor)?
8
votes
5answers
8k views

Is there any way to make “screen” session survive reboot?

The question says it all. I am using screen utility and would like to preserve the session when machine reboots. If not possible may be you can recommend other alternatives to screen that would allow ...
2
votes
1answer
97 views

Prevent Screen from creating sub shells

I'm running a Linux system that starts a custom text mode application from the .bashrc. The users are getting disconnected due to network dropouts. I had the idea that I'd use screen to allow them to ...
25
votes
3answers
17k views

Can I send some text to the STDIN of an active process running in a screen session?

I have a long-running server process inside a screen session on my Linux server. It's a bit unstable (and sadly not my software so I can't fix that!), so I want to script a nightly restart of the ...
4
votes
2answers
3k views

Password for GNU screen lockscreen command?

I have set a password for screen sessions in my .screenrc. It works great, any time I need to re-attach to a screen session I need to enter the password. There is another feature where you can ...
4
votes
6answers
629 views

What are the benefits of using screen?

man screen: Screen is a full-screen window manager that multiplexes a physical ter‐ minal between several processes (typically interactive shells). Each virtual terminal provides the ...
1
vote
1answer
372 views

Screenrc Settings to get status of Remote Server

I frequently use ssh within screen to connect to a set of machines. It would be ideal to have the caption line show information about the server that I am ssh'd into (eg machinename, uptime and info ...
3
votes
2answers
573 views

screen / autossh question: easiest way to transparently integrate screen into my ssh?

I'm a bit new to screen and autossh: I'm simply looking to "fully automate" my ssh sessions, make them implicitly persistent, and have them automatically restore should my connection drop. I've ...
1
vote
2answers
952 views

Getting a custom .bashrc available in ssh session

Currently, we have quite a lot of shared ssh logins to various servers, and my colleagues wouldn't like it if I fiddled with the default shell to much. I do however have quite a list of aliases and ...
0
votes
2answers
224 views

Is there a way to block screen's multi display mode (-x) completely?

I'd like to configure screen to only allow attaching to detached sessions and not to attached sessions, even if they're from the same user. Is there a way to accomplish this? I couldn't find anything ...
0
votes
2answers
392 views

automatic ssh logout not working due to screen caption setting

I have set up an automatic logout for idle ssh session using "ClientAliveInterval 7200" However I do not get logged out everyone else who uses the server gets logged fine. I have tracked the ...
2
votes
2answers
2k views

Terminal Width issues with Linux Screen

I'm having issues where when I'm in a regular SSH terminal, with $TERM set to xterm-256color, and the terminal width is very small (narrow) in Linux Screen. I'm running Arch Linux. When I'm in the ...
1
vote
2answers
3k views

How to automate starting a multiuser screen session with adding acl to another user?

I often start a screen session, issue a ":multiuser on" command and then ":acladd someuser". Is there some way to get with a single shell command a screen session to start with these two commands ...
2
votes
1answer
258 views

Is there a way to configure the 'logfile' directive when invoking GNU screen from the commandline?

I have been using gnu-screen's 'logfile' command to log my session histories when making production changes. I like to log each change in a different directory; this means that whenever I start a new ...
5
votes
3answers
374 views

Can I create and manipulate unix “screens” in a script?

I have a work environment on my Ubuntu laptop in which I want to use three different screens. Eg. in terminal, I usually write screen -S mywork run_server_1 then, ctrl-a c to create a second ...
5
votes
5answers
6k views

Need a solution to stop students from rotating screen on laptops with intel graphics

We have some students who have figured out how to rotate the screen using either the hotkey combination or right click context menu. It's easy to fix but it's time consuming because no matter how many ...
7
votes
1answer
3k views

.screenrc - multiple regions on launch

I know it's possible, but I can't for the life of me figure out how, to launch screen with one window in split region mode? ie: I have screen set to open multiple windows on launch, but want window 0 ...
1
vote
1answer
541 views

screen -Amds screenname /patch/to/script.sh don't work only on debian

I have a problem with screen software, when I try to start screen with options screen -Amds screenname /patc/to/script.sh - nothing happens, it's a problem only on Debian system. On CentOS and FreeBSD ...
4
votes
2answers
2k views

Wrap current session in a screen session

I started an big operation, but I didn't start a screen session, So i can't disconnect without canceling the operation. Is there a way to inject screen so that the operation continues and sends its ...
2
votes
2answers
2k views

Running screen without root

I recently updated screen on my server and for some reason when logged in as a normal user I can no longer create a screen session. If I run sudo screen it works. It's probably a permissions error ...
0
votes
3answers
1k views

How to kill all screens that has been up longer then 3 weeks?

Im creating a script that i am executing every night at 03.00 that will kill all screens that has been running longer than 3 weeks. anyone done anything similar that can help? If you got a script or ...
1
vote
2answers
105 views

What is the best way to apply your old settings / environment to new server

Let's say you have your favorite settings with zsh, vim, screen, etc., behaving the way you want on some boxes. What is the best way to apply these settings / environments to a new server? Assuming ...
0
votes
3answers
184 views

POC of take screenshot from XP virtual machine of windows 7 main machine

I searching any ideas of take screenshot of main machine on windows 7 from virtual machine on windows XP, have any ideas or proof on concept to can do this? Maybe from integration drivers or ...
6
votes
2answers
589 views

How to know who is conected to my screen and where on the screen he is?

I use screen, and sometimes I'm forced to share it. How I can manage the active connections to my screen? I would like to monitor connections and users connected, where they are and what they do. ...
2
votes
2answers
268 views

Taking over locked user sessions in XP

What's the best way to allow an administrator access to a locked user XP session, preferably with a logged event? The goal is to allow admins to cleanly shutdown/save existing work when work needs to ...
2
votes
4answers
470 views

GNU Screen: one window per screen or one screen with multiple windows?

I've inherited a few sys admin tasks recently and am trying to wrap my head around using screen. The way the previous guy left it, there are four screen sessions running, some of which have two or ...
2
votes
1answer
617 views

unix screen logging change filename to window name

I know its possible to change the name of the logfile with "set filename" I'd like to have screen write its log files to the name of the window. how can I accomplish this ?
1
vote
2answers
539 views

Kill named running screen with -X only works after reattached

I am using ubuntu 8.04.4 and would like to start daemons like this: screen -dmS SESSIONNAME script.sh Then i want to kill these screens with -X like so screen -S SESSIONAME -X kill But, this ...
24
votes
7answers
16k views

Using ctrl-arrow keys with PuTTY and screen

I searched and couldn't find a solution for this anywhere. I'm using PuTTY from Windows to connect to various servers where I run bash and screen. It seems bash works fine with ctrl-arrow keys to ...
0
votes
1answer
484 views

Better Method of Opening TTY Permissions

At work, I have a few legacy servers that I log into as root, and then su down to a user. I continue to run into an issue where after doing so, I am unable to run screen as this user. I don't want to ...
14
votes
7answers
12k views

How do I ask screen to behave like a standard bash shell?

Just learned about the screen command on linux - it is genius. I love it. However, the actual terminal/prompt in screen looks and behaves differently than my standard bash prompt. That is, the ...
3
votes
3answers
915 views

How to use cursor keys in vi under screen?

If you run vi/vim in screen, when you press a cursor in insert mode, you get a new line + a character, which is a pain. Configure vim to move around instead.
72
votes
7answers
29k views

Sudo as different user and running screen

Found out today that running screen as a different user that I sudo into won't work! i.e. ssh bob@server # ssh into server as bob sudo su "monitor" - screen (fails) I have a script that ...
2
votes
1answer
204 views

Windows client for GNU Screen

I'm very happy with Putty running on my Windows machine and keeping all my terminal windows under GNU Screen in my server. However, I wonder if there's a version of Putty (or another software for that ...