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
515 views

How can I create session logs of individual SSH sessions?

Here is what I am looking for: A way to log individual SSH sessions on SunOS. I would like to have the files kept separate based upon the hostname of the device I am SSHing into. I am only using ...
0
votes
1answer
144 views

gnu screen losing DISPLAY connection

I ssh tunnel into a remote desktop running Ubuntu via a terminal - and use gnu screen to do my work there. I have enabled X11 forwarding in my ssh config for the use of X11 applications launched from ...
13
votes
1answer
2k views

How to switch between two latest windows in tmux?

screen has a Ctrl-a,Ctrl-a to switch between two latest windows? How to do it in tmux?
2
votes
2answers
189 views

GNU Screen prepending dollar signs to window titles

I recently copied my .screenrc from one computer (Mac OSX 10.4) to another computer (Fedora 16) Now, on the Fedora computer, there is a $ prepended to all the window titles. Here is my hardstatus ...
2
votes
3answers
1k views

Run a GUI in screen or tmux (or alternative)

I have an application that's gui only that constantly needs to run. The problem is that I can't install a full desktop just for this application (my OS is debian and ubuntu cli). So I was wondering ...
2
votes
3answers
1k views

ALT+arrow moving between words in ZSH and iTerm 2

I logged in on one of hosting provider servers and noticed ALT + left and ALT + right moved between words in a shell prompt in a screen. What kind of key bindings I need to configure and where to get ...
1
vote
4answers
2k views

Get PID of process started in screen by su

i have a simple script that starts quassel-core in a screen session as different user! The script is: #!/bin/sh su ircc -c 'screen -dmS quassel /home/ircc/quassel/quassel-core' I want to start and ...
0
votes
2answers
546 views

tmux chain keyboard shortcuts, or equivalent for screen's `bind -c` + `command -c`

One nice feature of screen is its ability to assign keyboard shortcuts to groups called "classes". With bind -c, you could assign that shortcuts to a particular class, and binding command -c ...
25
votes
4answers
16k views

Byobu versus gnu screen versus tmux

So far I have used konsole to manage multiple shell sessions but it seems that byobu, gnu screen, and tmux offer a better support for multiple shells. I have never used neither of them before. One of ...
3
votes
1answer
2k views

Remap Ctrl-A in GNU Screen

I have been using GNU screen for a couple of days and the CTRL-A navigation is beginning to wear on me. How can I remap this key combo and what are some common replacements for these keys? For ...
1
vote
1answer
348 views

byobu + screen colors headache

I have byobu installed on FreeBSD, with the users, uptime, load average, cpu count, cpu freq, mem available, mem used, date, and time notification modules enabled, in that order. No matter what I do, ...
1
vote
1answer
100 views

Preserving a job running outside screen in an ssh session

Let's say I've ssh'd into my box and decided to run a long job, but have forgotten to run that job inside screen. Is there anything I can do to stop the job from terminating when the ssh session ...
2
votes
1answer
527 views

Linux gnu screen - run commands immediately when screen starts?

In my .screenrc file, I have this line to open one screen window: screen -t "normal" And this line to open another window and run top: screen -t "top" top Those work just fine so I wanted to ...
3
votes
1answer
238 views

Is there a tmux version of screen's zombie mode?

screen has a feature called Zombie Mode, which makes it so that when the process of a screen (window or pane, in tmux terminology) dies, the window doesn't close - it just stays there until restarted, ...
2
votes
1answer
106 views

Keeping more history in GNU screen

When scrolling up through the history of screen session with ctrl+a ESC (the output in terminal), it only goes back a small number of lines. How do I configure screen to keep (much) longer history? ...
8
votes
2answers
251 views

gnu screen - Copying text between windows

Is it possible to paste text copied in a paste buffer to a different window with some keybinding, without having to leave the current window? I.e., instead of going to the window and doing a Ctr-a + ...
2
votes
1answer
1k views

Use Screen commands (C-A C-C, etc.) in byobu-tmux

I was having some troubles with byobu lately while using the screen back-end, so I switched to using the tmux back-end, which works like a charm. The problem is now that my keyboard has tiny F1­-F12 ...
2
votes
0answers
192 views

monitoring changes in windows of screen while screen is detached

It is possible to monitor windows in screen (I mean the terminal multiplexer called screen) with Ctrl-a M. However, I am only aware of the notification when I am looking at any window. What I want, ...
2
votes
1answer
263 views

Set Terminal.app proxy icon with xterm and screen

For quite a while, I've been using the supplied answers for Resume Zsh-Terminal (OS X Lion) to set the proxy icon for Terminal.app while running under zsh, and so far, it's been working quite well. ...
0
votes
1answer
477 views

Remap shift-tab to tab in bash/screen/putty in Linux?

Well I use vi-mode in bash via the set -o vi command. What's annoying is when I'm typing words in capital then try to complete using tab but don't release the shift-key fast enough, it brings me out ...
1
vote
1answer
1k views

Configure GNU Screen's colors?

GNU Screen gives my bash prompt nice colors, though the dark blue is hard to read on a black background. I can change the ls colors using /etc/DIR_COLORS but the bash prompt in screen doesn't get ...
3
votes
1answer
1k 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 ...
1
vote
1answer
705 views

Running into errors reattaching to a GNU screen session that tunnels X over SHH

After tunneling X over an SSH connection using screen on the remote, how can I reattach the screen session from another machine and tunnel X to that other machine? I either get "cannot open display" ...
1
vote
2answers
2k views

Load RVM environment in Screen and ZSH

This topic has been driving me nuts for a while now, and I'd like to be able to figure out what's going wrong. I use zsh with screen in my terminal, and have been for a while. However, for whatever ...
1
vote
2answers
1k views

Split vertical for GNU screen in cygwin

In cygwin using GNU screen there isn't the vertical split (vsplit). How can i add the vsplit
2
votes
1answer
380 views

How to get byobu to run screen instead of tmux?

With the recently added tmux support, byobu has started running tmux instead of screen. I did not change any settings. It just started using tmux. I would rather use screen. How can I change this?
2
votes
1answer
443 views

gnu screen: find which screen window has a given running process or variable?

I would like to find out which of my ~50 gnu screen windows has a process running with a specific variable defined in it. For example, about a week ago, I did this: id=ABC123456; ~/run_long_process ...
3
votes
2answers
6k 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
1answer
774 views

Starting program on boot with screen

Here is my script in init.d (Debian Linux) #! /bin/sh # /etc/init.d/blah # # Some things that run always touch /var/lock/McMyAdmin # Carry out specific functions when asked to by the system case ...
1
vote
1answer
739 views

installing git version of gnu screen on a rh6 linux with no root permissions

How I would go about installing git version of gnu screen on a centos with no root permissions? I tried this: mkdir ~/work cd ~/work git clone git://git.savannah.gnu.org/screen.git cd screen/src ...
1
vote
3answers
1k views

gnu screen: reordering windows like browser drag+drop tab reordering

I have 20 windows open in my screen session, and I would like to reorder the right-most window 20 to say, just between positions 9 and 10 like this: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 ...
2
votes
1answer
185 views

Child processes remain after quitting screen

I'm seeing some strange screen behavior on OSX. When I quit screen, child processes are not killed. $ screen $ tail -f (or some long running process inside screen) Then, I kill the current screen ...
0
votes
2answers
417 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 ...
4
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
348 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
154 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
787 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 ...
4
votes
2answers
1k 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
921 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 ...
2
votes
1answer
446 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
254 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 ...
61
votes
3answers
23k 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
96 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
1k 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
624 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
153 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
97 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 ...
1
vote
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
356 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 ...