GNU Screen is a command line utility which allows the user to create multiple shell sessions on one connection. These sessions are decoupled from the primary connection and so maintain state for the user, even if the connection is dropped.

learn more… | top users | synonyms

0
votes
1answer
17 views

How do I set key bindings for ctrl page up and ctrl page down in gnu screen?

So ctrl page up and down are all the rage nowadays, and I'd like to be able to C-p and C-n in gnu screen when I hit ctrl-pgup and down. I've tried and tried but the documentation is a little thin. Any ...
0
votes
1answer
12 views

How to test if screen is started, then execute a command in screen and detach it?

screen -list There are screens on: 4278.chat (07/16/15 14:26:47) (Detached) 15127.notifier (07/16/15 13:27:57) (Detached) My goal is to : If chat screen is not ...
0
votes
1answer
19 views

how to resume a screen session?

When I log to my SSH, I have 2 screen sessions: screen -list There are screens on: 4278.chat (07/16/15 14:26:47) (Attached) 15127.notifier (07/16/15 13:27:57) ...
69
votes
8answers
38k views

Reload a Linux user's group assignments without logging out

When assigning a user's secondary group list using: # usermod -G <grouplist> <user> is it possible to force this group assignment to take effect without logging out all running ...
2
votes
2answers
52 views

Is it possible to show the current file I have open in vim in my screen tabs?

Was wondering if it'd be possible to somehow show the current file I'm editing in the tabs of my screen Because it'd be way easier to know what I'm switching between.
3
votes
0answers
12 views

GNU screen is slow exiting

I've set up my .bashrc to automatically screen -DRA (even though it's a local session). screen works fine, except that if I run exit from the last window or otherwise close it from the client itself, ...
0
votes
2answers
25 views

'screen.linux': unknown terminal type

When I run clear I get: 'screen.linux': unknown terminal type I get this error message when, on a Debian 7 machine running the OpenVZ kernel, from within a screen session, I vzctl enter into a ...
-1
votes
0answers
19 views

Screen session freezes, output stops, but process continues running. Reclaiming screen possible?

On a remote server, I have one screen session running. Inside the screen session, I have 10 windows, each of which runs a separate process (issued via the cron). We have this setup since we want to be ...
-2
votes
1answer
35 views

Alternatives to byobu as a tmux distribution?

Are there good alternatives for byobu as a tmux distribution?. Minimal, stable and that just works? or most tmux users just learn tmux specifics and configure it all by themselves?
0
votes
0answers
7 views

How to list screen sessions with the currently running commands?

screen -list list the current sessions identified by the pid.tty.host tuple. Is there a way to list those tuples along with the commands each screen session is currently running? I've checked the ...
44
votes
15answers
28k views

What's the best prefix/escape sequence for screen or tmux? [closed]

Screen goes with Ctrl+A.  tmux, as developed within screen, uses Ctrl+B.  Both are also keystrokes in other editors, shells, etc.  What do you suggest? which one conflicts least with other programs?
0
votes
0answers
24 views

Do GNU Screen windows know their name?

I'm trying to write a custom GNU screen key binding which dumps each window's name and environment to file. This would allow me to save/recover a screen session when my server needs rebooting. I ...
0
votes
0answers
44 views

Scrolling with trackpad/mouse in screen on OS X Terminal

I use screen command on Terminal on OS X. When I want to scroll up I change the mode to Copy Mode by pressing Ctrl A Esc. Then I use my trackpad to scroll up/down. It works. However, sometimes ...
5
votes
4answers
4k views

automatically start screen upon ssh login

I have been reading about how to automatically start a screen when I ssh to a remote server. I would like a simple one-liner to add to my .bash_profile to start screen when I ssh in, and NOT exit my ...
4
votes
4answers
12k views

How can I launch multiple screen sessions from a single bash script?

I've written a script (that doesn't work) that looks something like this: #!/bin/sh screen -dmS "somename" somecommand for i in {0..5}; do screen -dmS "name$i" anothercommand $i done For some ...
25
votes
6answers
7k views

How to keep windows split after detaching/reattaching GNU screen

I use screen in a Ubuntu server. I have my screen splited in four regions each showing a different window. The problem is when i detach (or maybe reattach) a get the four windows but only one region ...
1
vote
1answer
104 views

Starting script in screen with cron

I apologise if this has been asked before but I am not sure how to question a search query for this. I am extremely new to linux and I have been learning as I go to solve issues. I am trying to set ...
1
vote
1answer
30 views

Follow current window in screen -x

Using screen -x (after connecting over ssh) from a second computer is a great way to follow what someone is doing in a terminal. However, if the first person changes the screen window (C-a p or C-a ...
0
votes
1answer
71 views

Resize terminal Emacs window to fit when resuming a Screen session from larger display in Ubuntu

Whenever I start a GNU screen session running GNU emacs (nw, so in terminal) on my desktop with a large monitor, then resume it on my laptop, emacs still thinks it's on a large monitor. This means as ...
4
votes
2answers
2k views

How to make IRSSI running under screen in a remote system to beep on my local pc for new messages?

I have an irssi running forever under a "screen" in a remote linux server system. I have fedora 16 in my laptop and ssh into the server and resume my irssi screen when I come to work. But I miss a ...
0
votes
1answer
39 views

Running Cygwin Screen as a standalone program?

Would it be possible to separate Screen from Cygwin, and run it without running Cygwin first? If not, are there any alternatives to screen on Windows?
1
vote
1answer
51 views

VIM + screen on remote (ssh) linux machine

The problem happens with my text in vim when I'm working inside of screen this is my .screenrc file defshell -bash startup_message off term screen-256color and this is what I can see in my terminal ...
2
votes
2answers
1k views

How do I get the F1-F12 keys to switch screens in gnu screen in cygwin when connecting via SSH?

I'm connecting to a desktop running cygwin via SSH from the terminal app in Mac OS X. I have already started screen on the cygwin side and can connect to it over the SSH session. Furthermore, I have ...
18
votes
8answers
13k views

GNU screen - Unable to reattach to screen after lost connection

I was using irssi in screen but lost connection. After I ssh'd back in to the server, I can no longer attach to that screen. screen -ls shows that the screen is already attached. I tried screen -D to ...
1
vote
2answers
99 views

gnu screen not to change my window titles

I set meaningful names to new windows I create in gnu screen, but then when I 'cd' or open vim that name gets changed to 'pwd' for instance. Is there a way to prevent screen from changing the title? I ...
5
votes
3answers
2k views

when running screen on OSX, command+r messes up arrow keys in vim across all screens

How do you unwind this? because you wind up pressing command r all the time to reload your browser, and often you're in the terminal. Since I haven't figured out how to re-enable the arrow keys, I ...
0
votes
1answer
42 views

gnu screen: previous search result

In GNU Screen, I can do a reverse text search by pressing ^A and then typing [?search_string, and press n to go to the next (reverse search) result. But if I go too far and want to go back one result, ...
1
vote
1answer
249 views

Running emacs in GNU Screen overrides .emacs settings for [home] key binding in FreeBSD 8.2

If I use the following .emacs file, I am able to go to the beginning/end of the current line using the home/end keys as I would expect. (keyboard-translate ?\C-h ?\C-?) (add-to-list 'load-path ...
5
votes
3answers
2k views

Reattaching screen (having irssi running) forces window resize

Whenever I reattach to my detached screen (containing Irssi), my Putty screen is resized to something it has been at startup. If I change the window size after this, detach the screen and resize it ...
1
vote
2answers
4k views

Linux: wmctrl cannot open display when session initiated via ssh+screen

I'm using wmctrl on an Ubuntu machine to manage windows from a script, that I run inside a (gnu) screen. If I start the screen session from the local machine, wmctrl works fine, including if I ...
1
vote
3answers
235 views

VIM/Screen background color is inverted for non-text characters

I'm trying to use a vim while inside a screen session. For some reason, the background color for the parts of the screen without text are displaying as dark while the parts with text are displaying as ...
2
votes
2answers
225 views

Vim not colouring the end of lines when run inside screen

When vim is started inside of gnu screen it does not colour the background after text. Screen looks like it should be setup for handling 256 colours correctly: $ screen $ tput colors 256 $ echo ...
0
votes
1answer
23 views

GNU Screen equivalent for X11 aplications [duplicate]

What is the X11 equivalent of GNU Screen for X11 applications? I know there is VNC, possibly RDP and other candidates, but last week when tuning up my VNC config I've stumbled upon a project, that was ...
2
votes
2answers
1k views

List processes being run inside a screen (Linux) session

I have several screen sessions, each one of them is running one java application. For example, I have these 3 screen sessions : 7361.ARM48 (Detached) 7397.ROP90 (Detached) ...
23
votes
5answers
11k views

How to scroll up and look at data in GNU screen

I am using a mac (snow leopard). I am a ruby on rails developer and I watched a screencast on GNU screen and am trying it out. So far I like it. On a window when I start server I get to see the log ...
30
votes
3answers
20k views

Unix: How to unsplit in screen

I'm trying to learn how to use screen, in unix so that I don't have to open up several ssh connections and terminal windows just because I want to do more than one thing at the same time on a machine. ...
3
votes
1answer
327 views

GNU Screen: run arbitrary command in the status bar?

Is it possible to get GNU Screen to display the output of an arbitrary command, e.g. who | wc -l, in the status bar, refreshing it, say, every minute?
72
votes
6answers
29k views

tmux vs. screen

I'm about to get back into using screen, but I have been hearing people occasionally mention tmux as a better alternative. Does it really offer an alternative to all the features screen offers, such ...
0
votes
1answer
35 views

Why is vim inserting the contents of ". after I leave insert mode

vim is doing something that I can't quite figure out. When I leave insert mode, and navigate with j/k/h/l within a second of doing so, vim appends the contents of the ". buffer. On a tip from How to ...
14
votes
2answers
5k views

Sharing a GNU Screen Session

I have a meeting with a professor coming up shortly, but he won't be at school for a face-to-face meeting. Instead he will meet with me via Skype and an SSH login. I'm a heavy user of GNU Screen, but ...
4
votes
1answer
2k views

“screen is terminating” for non-root

When I try to run screen as a non-root user I get: screen [screen is terminating] immediately, though it works fine for root ls -alh /usr/bin/screen -rwxr-sr-x 1 root screen 465K Jun 9 20:30 ...
0
votes
1answer
32 views

GNU screen version confusion

I try to use mousetrack on in screen in Debian Jessie, and it is supported from version 4.1 Mouse in screen(1) on the Linux console? But there are some confusion in the screen version. dpkg -s ...
0
votes
1answer
53 views

Screen vs. socat

There is already a question: Screen fails to release pty and there is no answer (only a workaround has been provided so far). My case is different and I would like to know the answer to the original ...
0
votes
0answers
52 views

GNU Screen hardstatus string not highlighting active tabs correctly

Good Morning, The hardstatus line of my .screenrc file is acting weird on CentOS but works fine on Ubuntu Server. The line I am using is this: hardstatus string '%{= kB}[ %{B}%H %{= kB}]%{kB}[%= ...
6
votes
3answers
9k views

How can I start multiple screen sessions automatically?

I'm trying to build a command that launches screen, creates four sessions with different names, and run four different commands. I know how to do this manually: 1. screen 2. ./command1 args 3. ...
0
votes
0answers
22 views

Mouse works erratically/intermittently over remote SSH

I work remotely sometimes. I’ll use Vim inside a Screen session, over SSH. I use the mouse in Vim. Sometimes the mouse breaks. One of these things happens: Random characters get inserted into my ...
0
votes
1answer
117 views

tmux / screen ctrl+arrow (left right) doesn't work on SSH

I've configured tmux to skip words on Ctrl+right / left : set-window-option -g xterm-keys on It works just fine, but as I do SSH, it doesn't work and prints ;5D or ;5C.. The same issue occurred ...
1
vote
0answers
53 views

Make serial gnu-screen send a line at once

Is it possible to send lines at once in linux screen utility, if used as serial terminal, like for example screen /dev/ttyACM0 9600? By default, every character typed is sent immediately, but my ...
97
votes
3answers
37k views

Rename screen session

Is it possible to change the name of a GNU screen session? Say I called started it with "screen -S foo" and I want to rename it to bar.
5
votes
6answers
3k views

GNU Screen won't inherit my PATH on 10.5.8

I use screen on a daily basis for my terminal needs and I'm quite happy with it. Recently, though, I made some updates to my bash configuration files and I noticed that I was setting various PATH ...