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

control-left and control-right not working in vim, within a screen session

In vim, control-left and control-right are back and forward whitespace-separated word (i.e. synonyms for B and W), the same as web textareas and bash. But when running screen, these keys stop ...
2
votes
2answers
2k views

Screen session wouldn't detach, now it won't attach

I typically log into my Linux box from my Windows laptop using PuTTY and run screen there. When my corporate overlords decided to update my laptop to Windows 7 my PuTTY sessions have been freezing. ...
0
votes
1answer
573 views

In GNU screen, how do you reload .bashrc in all windows?

I typically use about 10 windows in GNU screen and am constantly customizing my .bashrc. I would like to be able to source .bashrc across screen windows with a one-liner. Can I broadcast a command ...
0
votes
1answer
433 views

Why does my screen session still have “attached” status?

Why does my screen session still have "attached" status, when tcp/ip connection is broken?
3
votes
1answer
2k views

How to enable mouse wheel scrolling in GNU screen?

In my GNOME Terminal, I can use my mouse wheel to scroll up and down. But as soon as I start screen in my terminal, 'mouse wheel' does not work. How can I get my mouse wheel to work in screen?
4
votes
1answer
3k views

Why a command launched with nohup isn't able to write file after user logout?

I'm using nohup to launch matlab and run a script which requires to read and write some given files. nohup matlab -nojvm -nodisplay -r 'MyScript'& This runs smoothly while I'm logged in but as ...
2
votes
2answers
539 views

How can bash screen be setup in the background and brought to the front later?

This a deeper explanation for the question. My goal is: Start a bash shell configured with a set of environment variables, but running in the background. Launch about five screen commands in the ...
1
vote
1answer
142 views

In Screen, how can I use 'F1' (function key) as my escape key?

how can I use 'F1' (function key) as my escape key? I have the following: escape `` I want to switch to use F1 as my escape, how can I do that?
0
votes
0answers
23 views

application in screen sometimes gives characters at wrong location

I have a character bases application in a telnet session. To allow reattaching of lost connections i use screen. But sometime i get character at wrong screen-location. The application is 8 rows by 20 ...
2
votes
3answers
3k views

Persistent PuTTY sessions for multiple windows

I'm working in various Linux environments through PuTTY connections which break from time to time. I'm looking for a solution to make the PuTTY windows persist (e.g. if I was editing a file, then ...
1
vote
1answer
126 views

Setting gnu screen split by default

Is there a way in say a .screenrc file to simulate the following commands? screen (ctrl + a) + :split (ctrl + a) + tab (ctrl + a) + c (ctrl + a) + tab (ctrl + a) + :resize 10 Basically what it does ...
0
votes
2answers
2k views

PuTTY + Ubuntu 12.10: why do I have no colors unless I use screen?

I am accessing a new Ubuntu 12.10 installation via PuTTY. I am attempting to get my shell to display in color. Color works fine in interactive applications like vim, but I want to get color in e.g. my ...
2
votes
1answer
2k views

Horizontally split-screen with two programs?

I have two programs A and B. I want a single command, which will run Program A and Program B in two different terminals but in the same tab, i.e, in a horizontally split terminal. I know screen can do ...
0
votes
0answers
62 views

Screen ssh tunnel doesn't seem to work

I've got an entry in my .screenrc that goes like this: screen ssh -nNfL 2200:remotehost:22 tunnelhost screen -t 'Launcher' ssh localhost -p 2200 This seems to start the tunnel session in screen no. ...
3
votes
2answers
516 views

Screen run command, detach and get output

I am trying write a script which connects and runs command on /dev/ttyUSB0 after that gets the output. screen -d -m 'SCREEN COMMAND' -L /dev/ttyUSB0 But this does not create an output file. How ...
0
votes
1answer
323 views

irssi keybinding: backward_word/forward_word

I'm currently experimenting with irssi as my irc client of choice and I'm getting along pretty well. BUT there is one thing I still need to get done. Somehow it isn't possible for me to use the usual ...
0
votes
2answers
1k views

Why Matlab in screen in Linux on PuTTY terminates itself after closing PuTTY session?

I connected to a linux server with PuTTY and start a screen session, and start matlab with: matlab -nodesktop Then, I run my matlab code as usual. The code will run for hours. So to test whether ...
0
votes
1answer
846 views

How do I forcibly kill a locked screen session?

I have an old screen session on a server that seems to be password-protected. The problem is, I don't recall setting a password on it, and I have no idea what the password could be. Any terminal ...
1
vote
1answer
322 views

How to connect to a vim server running in a re-attached screen session?

I normally ssh -X to a remote Linux box, launch GNU screen and run vim in server mode inside screen. After detaching and re-attaching to the screen session, I cannot send files to the vim server ...
8
votes
2answers
2k views

Screen divider / border width and color

In GNU screen, using a horizontal / vertical split, how do you set the color and width of the divider between the splits? I want to make them thin and darker so they don't stand out as much. There is ...
0
votes
1answer
216 views

Running Emacs on Multiple TTYs in screen

When working with EMACS over SSH, is there any way to spawn a new frame of the same emacs session on a different terminal? In my use case, I have screen running, so I have multiple terminals, and can ...
1
vote
1answer
248 views

Screen and xclip - configuration that don't work

I'm trying to configure GNU/Screen utility to work with X clipboard. I followed the tutorial: http://www.lowlevelmanager.com/2012/10/screen-clipboard-to-x11-clipboard.html but without a result, so I ...
2
votes
0answers
94 views

Keep GNU screen from resizing

I found a few threads that dealt with screen resizing a terminal, but I'm looking to do the opposite. I want to run a screen session with a height of 4 to limit output (why I'm doing it is ...
0
votes
1answer
633 views

Screen multiuser - Permission denied

I'm trying to send input to a screen session from php. So far I have followed the steps explained here Is running GNU Screen suid root the only way to make multiuser mode work? And I have set ...
0
votes
2answers
304 views

I logon via ssh and the first command is always screen. Can I make it either reconnect to same sesson or make a new one if one does not exist?

Basically what I want to do is something like this: screen -session-name=mydefaultscreen and if the 'session name' of mydefaultscreen doesn't exist, it creates it. if it does exist already then it ...
1
vote
2answers
127 views

bash screen title usage (screen -t “something”)

I was working with screen lately and wanted to use the -t option for it. What's the point of the-t option if the title of the screen does not show anywhere like when using -list or within the screen ...
1
vote
1answer
1k views

Enable audible bell in gnu screen current window

I use putty to ssh to a ubuntu bash shell, which holds irssi in a screen session. I figure I can probably configure irssi to send system bell when certain messages show or activity happens, and I ...
2
votes
2answers
4k views

Running Linux commands in the background: ampersand (&) or screen

Running an app in the background can be done by adding ampersand (" &") at the end of the app or via screen (by opening a screen session) if the app needs input now and then. Is there any other ...
1
vote
3answers
367 views

Is there a way to ask screen to start with terminal split in 3 parts with a different command running in each?

I always start 3 terminals with a dev server in one, a python shell in the second one and a cd in the third one, ready for bash input. I would like to have in my .bashrc a shortcut to set this up ...
3
votes
2answers
2k views

How do I use the terminal SCREEN when chrooted?

How do I allow a user to use SCREEN on a chrooted user? I have tried everything but I keep on failing. I need the user to be able to use SCREEN when they are logged in bash as a chrooted user.
3
votes
4answers
237 views

When using screen, I see me as logged in twice through 'who'

I've been using Gnu screen for some time now, and I absolutely love it! I installed it on a second RHEL server of mine, and I'm seeing odd behavior when I issue a 'who' on the new server. 'who' ...
3
votes
1answer
533 views

Is it possible to have zsh+keychain+tmux not ask for keys?

I'm using tmux and zsh, and I've recently been learning about ssh-agent and keychain. From the manpage for zsh, it says that it will source .zlogin only if the shell is, well, a login shell. ...
7
votes
2answers
124 views

How to prevent gnu screen capturing the mouse?

I want to use local scrollback on my terminal, whilst using gnu screen. That's because my network connection is incredibly slow, so using screen's scrollback is very slow. Local scrollback is much ...
5
votes
1answer
615 views

Gnu screen with local scrollback buffer?

I'm using a remote server over a very slow and unreliable network connection. So, I want to use gnu screen in order not to lose what I'm doing whenever I get disconnected. But I want a local ...
1
vote
1answer
232 views

How to disable keyboard on a user using ssh?

I am trying to create an automated monitoring system that other people can see but cannot do commands. I have a problem where the user is automatically connected to a screen where the monitoring is ...
1
vote
1answer
206 views

How do I create a unix script to create multiple GNU screens?

In .screenrc, I can have the lines: screen -t title1 command1 screen -t title2 command2 I would like to create a batch file to add a few screens at once, what is the best way of going about that? ...
3
votes
1answer
1k views

Prevent an already running background process from being stopped after closing SSH client

I have a process running on my Linux machine (Debian squeeze) that takes hours (or days) to finish. I don't want to stop it to restart it again with screen, tmux or with an output redirect to nohup. ...
2
votes
1answer
129 views

“Redirect” shell to gnu screen

I'm just wondering. Very often I want to quit shell connection. For example when I ssh to remote linux and after while want to turn off computer. If there is process running I can't turn my computer ...
2
votes
1answer
995 views

A way to auto cycle (close) through all screen sessions

I frequently use screen when I log into the interactive nodes to a supercomputer that I have access to -- and I often run things and move on. There are about 20 separate nodes that I can log into; and ...
2
votes
1answer
152 views

Gnu screen: get around 100-character limit for commands - can't change hardstatus

I have a hardstatus line set in my .screenrc file: hardstatus alwayslastline '%{= kg}[ %{G}%H %{g}][%= %{= kB}%?%-Lw%?%{+b r}(%{G}%n*%f %t%?(%u)%?%{r})%{-b B}%?%+Lw%?%?%= %{g}%]' # This is 127 ...
7
votes
1answer
679 views

Native xterm mouse scrolling in tmux

I have decided to try tmux as GNU screen replacement and wonder if there is a way to scroll with mouse as in xterm? It is possible to enable native xterm scrolling with Shift + PageUp in tmux by set ...
7
votes
4answers
8k views

Quickly switching between virtual sessions (screen?)

I'd like to have few virtual session in one putty window and change between them quickly. What's the best way to do that? screen? I know I can detach with ctrl+ad and then reattach to a different ...
3
votes
3answers
445 views

Can I remove the ctrl-z key binding in my shell?

The background for this question: I currently have to do a lot of my work in terminal over ssh, and I use screen quite a bit. Because I found the ctrl-a key binding for screen commands so annoying ...
2
votes
1answer
870 views

Putty and screen under CentOS 6

My current work enviroment is Windows workstation with Putty. And almost always i run "screen" session. When i started using CentOS 6 i noticed strange behavior with screen. When I run screen in Putty ...
4
votes
1answer
1k views

PS1 window title under PuTTY with GNU screen

I'm currently setting my PS1 title with by concatinating three variables in my .bashrc in such a way: export TERMSERVER=`who am i | awk '{print $NF}' | tr -d ')''('` if [ -n "$TERMSERVER" ] ; then ...
2
votes
0answers
319 views

Terminal with session management and scrollback OS X

I use GNU Screen all the time in OS X, primarily running on the server side of my SSH connections in order to maintain persistence, while multitasking. The beauty is that if I get disconnected, all ...
1
vote
1answer
2k views

Send command to a detached screen with enter?

I have a screen running a server. That screen is run with: screen -m -d -S server (cmd to start server) Then I want to send a command to the server by doing this: screen -S minecraft -X stuff ...
2
votes
2answers
54 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.
5
votes
3answers
964 views

gnu screen - get list of window titles

How can I obtain information (title, created time, visible content) about windows in a screen session? I need to do this in a script, so I am not looking for key bindings or interactive commands. ...
2
votes
1answer
825 views

How can I make a window “read only” in GNU Screen?

I started a really long process and would like to check it occasionally how it goes, but want to avoid interrupt it by mistake. Is there a way to set only this window "read only" ?