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

1
vote
2answers
574 views

vim : <c-a> occupied from tmux/screen

I use screen/tmux and vim. In vim, I can't use <c-a> for increment a number, <c-a> is occupied from screen/tmux. any suggestion for a simple map for increment a number ? I try with ...
6
votes
3answers
2k views

How can I run byobu from xterm at starting?

I set up byobu auto run with the command byobu-enable. It's great when I log in from terminal or ssh, but how can I make xterm attach to it automatically ? (mate-terminal from Linux mint especially)
1
vote
0answers
398 views

GNU screen and PID namespaces

I have GNU screen running in LXC container, thus having private PID namespace. I'm trying to attach to that screen from "outside" the namespace. Both screens share filesystem, thus are able to access ...
0
votes
1answer
176 views

How to reconnect a screen session every time terminal is fired?

I wrote this command to reconnect an active screen session when Terminator is opened. It works find but there has got to be a better way to to it This is goes in the Terminator config file (note ...
2
votes
4answers
933 views

Use gnu-screen and X instead of desktop environment?

I have a HTPC with Debian currently installed on. I would like to run applications which got a gui but without using a desktop environment such as gnome, kde etc. I was wondering if running X would ...
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
1k views

Reopen screen session after connecting to server

Im working only in a screen session on my vps which runs all the time. When I connect to this server via ssh, I reattach this with a bash alias alias screenr='screen -r -d' What I want: Connecting ...
1
vote
0answers
127 views

Getting the screen to delete contents of less, man, etc. after “q” [duplicate]

Possible Duplicate: Using screen, commands like less and man don't clear the screen afterwards In bash without screen if I do a less or man and then type q to quit, the contents of the ...
3
votes
1answer
843 views

How to open two terminals side by side using `screen`

I use vim a lot. I can open two files side by side with -O option: $ vim -O hello.{h,cpp} Today I tried screen: `C-a |` => split terminal vertically. `C-a <tab>` => switch to the ...
1
vote
1answer
302 views

Reattaching to screen - Linux

We run several screen instances from one box, eg. : 27185.pts-53.CentOS-57-64-minimal (Detached) 27209.pts-53.CentOS-57-64-minimal (Detached) 27281.pts-53.CentOS-57-64-minimal ...
112
votes
3answers
45k 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.
2
votes
1answer
152 views

Screen “dies” whenever “ls” is executed

I'm running Screen 4.00.03 on my RHEL 5 server. Wheneven I open a new screen and execute ls the screen dies. This only happens in this server and not in other servers. What is causing this problem? ...
2
votes
1answer
2k views

Screen reattach: Cannot open your terminal

I am trying to use screen with another user than I logged in. The command is started with: sudo -u user /usr/bin/screen -A -m -d -S screen ./nice_command For reattaching I am using screen -x ...
2
votes
1answer
743 views

Move already running program into screen

Is it possible to have a already started program move to screen/tmux? I'd like to have something like the following: program; ^Z screen; fg; I know the above won't work, but is there a way to ...
0
votes
1answer
181 views

Using a script to control a process already running in screen

Due to Gnu Screen being hard to Google for, I've been having trouble finding an answer to this one. As a concrete (what are you trying to do) example: Running a server process (under linux) starts up ...
1
vote
1answer
102 views

How to determine if the client on an ssh connection is using screen

I have an odd predicament. I want to detect on the remote end of an ssh connection if the client is running the terminal inside a screen session. I want to set my prompt based on this. So far I have ...
3
votes
3answers
2k views

Keep GNU screen window open after program terminates?

The GNU Screen manual says: When a program terminates, screen (per default) kills the window that contained it. The (per default) suggests that you can change this option, so that a program ...
3
votes
2answers
489 views

GNU Screen: Combining split-regions and full-screen sessions

Let's say I have three sessions: 0, 1 and 2 I'm on session 0 and I press CTRL-A S to split the screen. Then I select session 1 for the bottom split region, while 0 is in the upper. Can I switch to ...
1
vote
2answers
1k views

How to re-enable function keys in byobu?

I was using byobu on Ubuntu 11.10 Server and I needed to hit a function key in an app, so I hit F9 to bring up the config menu and switched the keybinding set from "f-keys" to "screen-escape-keys". ...
1
vote
1answer
1k views

Scrolling in GNU Screen

I'm seeing something weird in GNU screen. When I use screen on my own Ubuntu 10.04 box, as I enter a bunch of lines in the shell, I can see my GNOME-terminal window gathering my scrollback, and I can ...
1
vote
0answers
96 views

GNU screen session dies when I open vim or vi

Sometimes it dies in the moment a file is opened. Sometimes it allows me to browse the same file and dies on tenth PageDown, for example. I set "term xterm" in .screenrc.
1
vote
1answer
968 views

Using fg with screen

I have a running job in a ssh terminal on an external server. I can pause it with CTRL + Z and resume it with fg. But I would like to pause it, run screen screen -S my_job and get it back in front ...
5
votes
1answer
3k views

Detach screen in screen?

I like to have a screen session set up with two windows side by side (Ctrl+A | key combo). The issue is that sometimes I need to run a server that starts a screen session in the foreground of one of ...
3
votes
2answers
9k views

How to list all users that have terminal sessions, including screen sessions?

I would like to have a list of all users that are active on my Linux system, including those who have running but detached screen sessions. The who command only shows me currently logged in users, but ...
3
votes
2answers
2k views

Is there an application like screen but for GUI applications?

I'm running few projects at the moment, I'd like to switch between them without closing and reopening all applications. Is there a way to do so with some screen-like application? Only way till now is ...
1
vote
1answer
1k views

How do I get the F9 menu in GNU screen on Mac OS X?

Using screen on Mac OSX 10.7.1. Already applied various hacky fixes to get the home and end keys to work, changed the command key to left control key - however now I find the F buttons all do silly ...
1
vote
2answers
1k views

byobu in ubuntu always attaches to the same session

It used to be when I ran byobu I would get a new session with a new socket and I could open multiple windows in that one. Now when I run it it concurrently attaches to the same one existing byobu ...
0
votes
1answer
2k views

GNU Screen: Setting the default baud rate

Does anyone know how to set the default baud rate for GNU Screen? Currently I explicitly specify the baud rate when I open screen like so: $ screen /dev/ttyUSB0 115200 115200 is a magic number, and ...
1
vote
0answers
138 views

How to use cursor keys with a modifier to switch buffers in GNU screen

I want to use cursor keys with a modifier like Ctrl to switch between screen buffers (e.g. C-a [arrow] or C-a C-[arrow]). So far I have tried settings like the ones below with no success. bind ...
1
vote
1answer
230 views

Vim “* and ”+ in screen

I recently started using screen, and I am enjoying it quite a bit. The problem is, when I run vim from within screen, I can no longer seem to access the + register. It used to be, I could say "+dd ...
1
vote
0answers
470 views

LINUX [UBUNTU]: screenlog.0 - modify path

I have a screen command like this: screen -A -h 1500 -m -dmS SKY-001 /home/SKY-users/SKY-001/./ ... I'd like to start the output logging and save the screenlog.0 file to /home/SKY-users/SKY-001. ...
4
votes
1answer
239 views

linux 'screen' command - lowers process priority if detached?

If I run a program within a screen session, and then detach the screen - does the program have lower scheduling priority?
1
vote
1answer
220 views

How to divide screen within a bash script

I have made a short bash script that gets xml data using curl and sends some (it's a chat, in fact) regarding its given arguments. So I can either run the following : watch --no-title myscript and ...
3
votes
1answer
629 views

Write special chars in hardstatus of GNU Screen

I want write the next specials chars to hardstatus of GNU Screen: "↑" (up arrow) and "↓" (down arrow), but it shows strange chars. How can I do this? More info: This worked to me before but I have ...
2
votes
1answer
542 views

gnu-screen: Automatically run script when attach/detach session

I would like to have bash script run by screen every time when i attach (start.sh) or detach (end.sh) session. Is there any way to configure screen to do that?
1
vote
1answer
215 views

How to disable input translation for some keys in GNU Screen?

I have Ctrl-Left and Ctrl-Right bound for vim, and would like to be able to use these shortcuts when vim runs inside screen. However, because of Screen's input translation my key presses are mangled ...
3
votes
2answers
16k views

how to reset /dev/ttyS0

I'm trying to connect to a Khepera robot using serial interface (running Scientific Linux 6.1) I used the command screen /dev/ttyS0 to communicate which worked OK, but then I wanted to close it and ...
6
votes
3answers
2k views

How to go past window 9 in GNU Screen without going to Window list? [duplicate]

I use GNU Screen tool to keep my sessions alive on the system. To switch between windows I use Ctrl+a N where N is the number of the window. I want to use similar keystroke to access windows with ...
8
votes
2answers
3k views

Can I name GNU screen sessions?

I use multiple sessions for different things. One for work, one for school work and one each project I'm working on. It gets really hard to keep track of the sessions when screen -ls returns ...
2
votes
2answers
211 views

Screen does not appear in list when using sudo

While under root user (printed by whoami), execution of sh -c "screen -d -m -S testscreen sh -c \"echo asd; echo qwe\"" creates a screen with two lines output, which can be reattached via screen -r ...
0
votes
1answer
252 views

Launch process in new window, whether GNU screen session exists or not

I'm having a bit of trouble with GNU's screen. What I want to do is this (from cron): If a screen session named cron exists, add a new window to the session and launch a process in it (but do not ...
8
votes
6answers
11k views

How switch between screen inside screen?

I have to work inside two environment. One Windows (local) and one Linux (remote). I've installed the screen linux utility in both. I'm able to open a screen on my windows, then in one tab, I opened a ...
4
votes
1answer
439 views

gnu screen - how to highlight searched text

While doing a reverse text search via " C-a[? search_string", I have to keep pressing 'n' to figure out occurrences of 'search_string'. Is there a configuration in GNU screen that can hihglight ...
0
votes
1answer
1k views

GNU screen, vim, and urxvt with 256 colours. gnu

I have defined urxvt*color0: #000000 urxvt*color8: #777777 in my $HOME/.Xdefault. Using vim (console not gvim), this gives me a light grey for strings in bash scripts when I use urxvt. ...
6
votes
1answer
2k views

How do I change the order of screens in byobu?

I'd like to bind Shift + ← and Shift + → to move my current screen left/right in the ordering of screens. How can this be done? These are the versions I'm using: $ byobu -v byobu version 2.68 ...
3
votes
2answers
3k views

How can I make sure my system uses the ~/.screenrc file?

My friend provided me with a rather detailed .screenrc which I put into my ~/ directory. I am pretty confident when I run screen it isn't utilizing the edits in the file. How could I confirm whether ...
0
votes
1answer
116 views

Reattaching GNU Screen session name with a common prefix

I have 2 screens with session names test1 and test19. When I try to reattach to test1 by typing screen -r test1 Gnu Screen cannot tell the difference and pops up 27082.test19 (08/10/2011 ...
1
vote
3answers
360 views

screen -x ignore utf8

I use screen and I use utf8 with this in my ~/.screenrc # utf-8 encoding utf8 utf8 defencoding utf8 ok. But, when I reopen screen with screen -x screen don't show the utf8 characters EDIT I ...
4
votes
1answer
337 views

Launch program automatically with screen/byobu using an alias

My screen starup commands look like: screen alias1 screen alias2 alias1 is an alias pointing to command1 alias2 is an alias pointing to command2. alias1 and command1 share the same name. alias2 and ...
5
votes
2answers
563 views

A “view-only” mode in `screen`?

One of my favorite modes for screen is using the -x option, wherein multiple users can connect-to the same session (great for team troubleshooting and training purposes). However, it would be really ...