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

5
votes
1answer
1k views

How can I make window list in GNU Screen appear always ( C-a, C-w)

How can I make window list in GNU Screen appear always ( C-a, C-w) ( permanently )
1
vote
1answer
3k views

Running nicklist with irssi using screen inside tmux?

I try to run the nicklist addon with irssi using screen inside tmux but strangely :) it doesn't work and I get the input on top of the screen. Is it possible to run nicklist when you are on tmux?
35
votes
6answers
20k 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 ...
1
vote
1answer
392 views

Run a command in GNU Screen when the window changes

Is it possible to execute a screen command when the user changes the window? I have my current working directory in my hardstatus by using zsh's precmd() feature to change screen's working directory ...
3
votes
2answers
1k views

How can I keep the tmux prefix key pressed between commands?

In GNU screen, I can keep Ctrl+a pressed in between commands. For instance, to change windows I keep Ctrl+a pressed and just keep pressing n without releasing Ctrl+a. Is this doable in tmux? ...
1
vote
1answer
135 views

Do each application need to support writing to /dev/stdout or /dev/fd1 or is that handled transparently by the OS?

I tried this command to print the buffer of an existing screen session to stdout but I don't know why it doesn't print anything. screen -x lftp -X hardcopy /dev/fd/1 screen -x lftp -X hardcopy ...
1
vote
1answer
294 views

bash does not recognize alt+backspace command

I use bash and alt+backspace key to delete a word at a time. This works nicely, but for some reason, it stops working after a while. It seems as though it does not recognize the alt key, and simply ...
2
votes
1answer
2k views

Send command to another user's screen terminal

I have two users; user1 and user2. I have a bash script run by user1, that needs to run a command on a screen terminal started by user2. Suggestions? Thanks Max
1
vote
1answer
556 views

How do detatch and reattach a x-forwarded ssh-session?

i have a linux-server and would like to run linuxdcpp (linux dc++) on it. for that I need to create a ssh connection with x-forwarding like: ssh user@server -X Then I need something like screen to ...
4
votes
4answers
2k views

start gnu screen automatically

I want to start gnu screen automatically when I login to my remote machine via ssh, so I add exec screen to the end of the .bash_profile file, then I find out that when I terminate the screening, ...
2
votes
1answer
90 views

sharing emacs killed text with gnu screen

I'd like to automatically have text I kill in emacs get put into screen's clipboard. I don't care too much about travel the other direction. I can do it now via a temporary file, but I have to run a ...
19
votes
2answers
3k views

Slight delay when switching modes in vim using tmux or screen

Switching to and from insert mode in Vim is no longer instantaneous since I use tmux. After pressing Esc in insert mode, it takes a noticeable amount of time to actually get out of insert mode. After ...
13
votes
2answers
2k views

Problem with GNU Screen when using Emacs C-x C-s (save-buffer)

When I am using emacs under GNU Screen, if I call C-x C-s screen hangs and does not respond to any keyboard input. I can't reproduce this, but at least one time per day I have to kill my screen ...
6
votes
5answers
8k views

rename tmux window name to prompt_command, ps1 or remote ssh hostname?

I would love to be able to have my tmux window title automatically renamed to prompt_command, ps1 or just the hostname of a machine I ssh to. having 9 windows opened labeled "ssh" is really useless. ...
8
votes
3answers
374 views

Tabbed terminal that connects to a GNU Screen session?

I use the session feature of screen extensively. For example, I'll start a screen session for "project1" as "screen -S project1", and then when I need to reconnect I use "screen -d -r project1". ...
0
votes
2answers
1k views

How to switch between Linux virtual terminals over serial?

How do you switch between Linux virtual terminals over a serial terminal connection? I'm trying to install Debian on a Beagleboard via the serial console. I'm using screen (screen /dev/ttyUSB0 ...
4
votes
2answers
4k views

Gnu screen, how to update dynamically the title of a window?

I'm trying to improve the aspect of GNU Screen using the screenrc file, I tuned colors, status line, caption and the list of the loaded windows. The only thing I'm not able to achieve is getting the ...
1
vote
2answers
105 views

keyboard shortcut for pasting in gnu screen

how can I paste the text in my system clipboard using screen over an ssh connection with Putty?
24
votes
2answers
11k 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. ...
1
vote
1answer
368 views

Bash profile script order in screen

I have put an echo in three profile scripts that shows the file name so that I can see the order they run. When I log in I see. /etc/profile /etc/profile.d/color-ls ~/.bashrc /etc/bashrc $ alias ls ...
1
vote
1answer
129 views

How to have different settings for each window in GNU screen?

Can I use different color setting (foreground and font) for each of the window that I create?
1
vote
1answer
258 views

libreadline history lines combine

This has been driving me crazy for about three years. I don't know how to fully describe the problem, but I think I can finally describe a way to recreate it. Your milage may vary. I have a mixture ...
16
votes
1answer
5k views

Binding a command in tmux without using the prefix key

Is it possible to bind a tmux command to a key combination and use it directly without first pressing the prefix? I find C-b + n too cumbersome to switch panes, so I was wondering whether I could ...
1
vote
2answers
464 views

In GNU Screen, Recalled bash history command displays one character position to the left of actual location

I am running Red Hat 5 32-bit (2.6.18-194.26.1.el5). The issue is that when I recall any previous command in bash's history, the first character in the command is displayed immediately after the ...
2
votes
4answers
2k views

is there a way to save what's printed on the display with gnu screen?

I like to save everything I do on the command line, for example when I upgrade something and want to read back how the upgrade went etc.. Usually with Mac OSX and Terminal you can scroll back as much ...
1
vote
2answers
535 views

GNU/screen not setting $STY

I'm trying to script the spawning of GNU/screen windows by using commands of the form screen <CMD>. For some reason when I start GNU/screen (by hand), the shell that it starts in window 0 ...
2
votes
0answers
314 views

Hibernating/Saving state of a gnu-screen, to resume after reboot? [duplicate]

Possible Duplicate: Make GNU screen survive reboot Is it possible to hibernate or save the current state of a gnu-screen to resume after reboot?
2
votes
3answers
1k views

LD_LIBRARY_PATH unset by screen

Running screen in bash wipes the variable LD_LIBRARY_PATH. I've done some reading and it seems that this is expected behaviour, but I need to get around it. The workaround is adding the ...
2
votes
2answers
367 views

New serial window in GNU Screen

I know that I can launch Screen as a serial port terminal from scratch. What I want to do is to create a new window inside an already running screen session as a serial terminal. so that I don't need ...
0
votes
1answer
1k views

GNU Screen: «unknown command 'vert_split'» though C-a | works

in GNU-screen (4.00.03jw4 FAU 2-May-06) I'm able to perform a vertical split pressing C-a | (i.e. Ctrl+a, then pipe). Since I'd like to have the screen vertically splitted at the program startup, I ...
7
votes
4answers
2k views

How do you run a gnu screen within a gnu screen?

Is it possible to run a gnu screen within a gnu screen? I'm not sure how the key bindings would work. I need to log into a server that is already running a screen session, from a local screen session. ...
1
vote
1answer
632 views

How can I keep gnu screen from becoming unresponsive after losing my SSH connection?

I use a VPN tunnel to connect to my work network and then SSH to connect to my work PC running cygwin. Once logged in I can attach to a screen session and everything works great. Now, after a while, ...
2
votes
1answer
980 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 ...
0
votes
1answer
269 views

Cron Job that Boots Screen at Start

I am trying to set up a number of processes that start during boot (servers for games) with the below command as the cron item: @reboot /usr/bin/screen -fa -d -m -S NAME COMMAND However if the ...
53
votes
5answers
18k 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 ...
3
votes
1answer
824 views

Open a screen session inside a certain user on boot Ubuntu Server Linux

I currently have a private server which I test my web apps on which runs Ubuntu Server 10.04 I also host a few game servers (rather than having wasted CPU time :-D) for some of my friends. These game ...
17
votes
6answers
9k 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
1answer
567 views

How can I make screen's statusbar show the windows without the - and $ characters?

I have the following in my .screenrc file hardstatus string '%{= kw}[%{r} %d/%m/%Y %C %A %{w}] [%= %{= kw}%-Lw%{= kW}%{r}%n:%t%?%?%{= kw}%?%+Lw%?%?%= ] [ %{r}%l%{w} ]%{w}%{w}' and the statusbar ...
12
votes
5answers
6k views

alternatives to Gnu screen under Cygwin

Are there any terminal multiplexers for Cygwin/Windows other than Gnu's screen? I know of 2 alternatives to the Gnu's screen application: Byobu and TMux. However, neither of these run under Windows ...
0
votes
1answer
109 views

GNU Screen, any command causes a lockup

I am ssh'd into a remote box, I think it is redhat, but I am not sure how to tell. In my home directory I went through the process of installing screen and all its dependencies from source as it is ...
8
votes
2answers
2k views

Is it a good idea to put “screen -r” in my .bashrc?

I'd like to use screen to keep ssh sessions alive on my server. It would be nice if I could automatically resume any running session for my user when I log in. The straightforward way to do this would ...
4
votes
2answers
348 views

on quit, 'less' does NOT clear its contents when run in a 'screen' session [duplicate]

Possible Duplicate: Using screen, commands like less and man don't clear the screen afterwards When I quit 'less' in a normal bash, it clears the previous contents displayed by 'less' ...
2
votes
2answers
210 views

How do I secure screen for use with a menu script?

I'm launching screen with the following command, inside a shell script that is set as a user's shell to keep them from escaping. screen -dRRq -S ${USER}_MC -s $HOME/runthis.sh Is there a way to ...
2
votes
1answer
271 views

GNU Screen Copy mode blocks execution?

I use GNU Screen's scrollback/copy mode. So I hit Control-A [ to enter copy mode, scroll up to the section I care about... and then I forget. However, it seems like leaving GNU screen in ...
1
vote
4answers
2k views

Linux: aliases when using `screen`

I'm using screen, and I have several aliases in my ~/.bash_profile, for example python=python-2.6. But for some reasons these aliases don't work when I work in screen. How can I make them work?
7
votes
1answer
2k views

Prevent gnu screen from resizing display size

Every time I start screen (screen -A) or try to connect to an already running screen session (screen -Ax) my terminal is resized to 80 columns. I want to prevent screen from resizing my terminal. I ...
1
vote
1answer
219 views

Show names of created virtual consoles in screen (Linux)

How can I tell screen to always show created virtual console names in the bottom. I am using Ubuntu.
2
votes
1answer
1k 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 ...
14
votes
1answer
3k views

how to include screen's session name in hardstatus?

I use different screen sessions for different projects. Starting screen like screen -S project1. Now, I'd like to mention 'project1' in hardstatus line. Session name can be obtained from environment ...
6
votes
3answers
1k views

use gnu screen when ssh'ed as a user, but su as another

Below is what happens when trying to use gnu screen. Essentially, it all works fine until I su as another user. then I get a Cannot open your terminal '/dev/pts/7' - please check. error l413:~$ ssh ...