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

4
votes
1answer
802 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 ...
2
votes
1answer
65 views

Detaching from a GNU Screen suddenly clears the terminal

I feel so stupid for asking this, but here goes: I updated my Ubuntu (Server) install today from 13.10 to 14.04. Before the upgrade detaching from screen did not clear the terminal and now it does. ...
2
votes
1answer
258 views

How to kill screen session with running sudo command?

I'm trying to write a bash script which would relaunch my NodeJS server. This is how I'm launching the screen with the server: screen -S web-server -d -m node web-server.js which end up in this ...
2
votes
1answer
1k 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?
2
votes
1answer
195 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 ...
3
votes
0answers
165 views

putty(vt100+ mode) + screen + emacs = no num keypad?

Putty (VT100+) mode GNU screen emacs The keys on the numkeypad no longer work. Is there any easy way to fix this? (I'm not familiar with customizing emacs settings, and prefer not to mess with .emacs ...
2
votes
0answers
330 views

Local echo using Screen to connect to a serial terminal

Reading through the book "Building Wireless Sensor Networks" I learned that you can use the Screen utility to attach to a serial console. I tried using it to connect to an XBee module and it seemed ...
2
votes
0answers
173 views

How to disable alternate buffer in GNU screen itself but not for vim, less inside it?

What I would like to accomplish is mouse wheel scrolling behavior that I'm used to in a regular ssh session. In bash prompt mouse wheel should scroll my terminal output, and inside less/vim - the ...
2
votes
0answers
198 views

How can I timestamp each line outputted by a serial device?

I access a serial measurement device via screen /dev/tty.usbserial 9600. While the device is measuring it outputs its data n times per second on one line. How can I add a timestamp every line (or ...
2
votes
0answers
84 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 ...
2
votes
0answers
246 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 ...
2
votes
0answers
202 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, ...
1
vote
0answers
23 views

Get command output from detached screen

I am running a detached screen session, and running a command into it with screen -x, like so: screen -S $SESSION -X <command> This works fine, though I would like to be able to catch the ...
1
vote
0answers
37 views

Why when I run a program in a detached screen section it became very slow?

I am not so into Linux and I have the following situation related a strange behavior of the screen command. The situation is the following one: one a RaspBerry Pi I have installed Raspbian (that is a ...
1
vote
0answers
75 views

Creating multiple screens in a for loop to run parellel programs and sending commands to each

Before flagging this questions as redundant, i have read and tried every answer to similar questions with no success I have this loop where it traverses a directory structure, and runs a program ...
1
vote
0answers
37 views

GNU screen lost encoding settings after detached and reattached

I set the defencoding and encoding in the .screenrc, defencoding GBK encoding GBK GBK After I detached and reattached the session, the encoding settings don't work. screen -r -d -S session How ...
1
vote
0answers
68 views

Running vncserver from screen

At work, we use VNC to run a graphical session on a remote Linux server from Windows-based client laptops (sigh). I have a laptop with a much lower resolution than the external monitor on my desk at ...
1
vote
0answers
61 views

Emacs and Gnu Screen Causing Line Wrap Problems

I have gnuscreen on with multiple "tabs" open. Emacs is on tab 0. When I tab to a different screen and return to Emacs, the lines do not wrap properly anymore. They blend into each other. If I have a ...
1
vote
0answers
572 views

using screen with start-stop-daemon, sysv

I'm trying to run a program with an ncurse interface as a daemon using screen. I want to use start-stop-daemon to manage the process, but I'm having trouble creating a SysV init script. Variables: ...
1
vote
0answers
365 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 ...
1
vote
0answers
94 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
0answers
136 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
0answers
376 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. ...
1
vote
0answers
224 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 ...
1
vote
0answers
187 views

$HOME is forgotten only when a remote SSHed “screen” session is detached

Whenever I detach my remote "screen" session and ctrl a-c a new window, it opens the new window with "/" as the PWD. Another extremely annoying problem is that whenever the "screen" session is ...
1
vote
0answers
188 views

gnu screen on redhat enterprise, %H doesn't output hostname

I've had a screenrc that has worked for years on multiple boxes caption always "%{kW}[%H]%{Wb} %-Lw%{kY}[ %n %t ]%{-}%+Lw %=%{kW}[%D %Y %m %d %c %]" I've put my trusty .screenrc on a new box, and ...
1
vote
0answers
66 views

locating a screen session within multiple desktops

I've usually got a lot of stuff on the go, including 10 or more screen sessions. I also have a lot of desktops set up. Sometimes I want to find a particular screen session among the many desktops. ...
0
votes
0answers
13 views

Check for screen using crontab

Currently, I'm using Debian with the following cronjob for screen at reboot: @reboot screen -dmS app1 /home/app1 @reboot screen -dmS app2 /home/app2 The problem is, that sometimes the application ...
0
votes
0answers
38 views

How to prevent terminal bell from going off when exiting vim from within a nested screen session

My vimrc file contains the following lines to set the window title start and end strings respectively. When I enter a vim session and my konsole terminal is either outside of screen or within a ...
0
votes
0answers
65 views

how to show battery percentage on gnu screen hardstatus line

I currently have this as my hardstatus last line on gnu-screen the ~/.screenrc entry is as follows (just incase someone want something similar) hardstatus alwayslastline '%{= g}[ %{G}%H %{g}][%= ...
0
votes
0answers
63 views

Strange behaviour of vim inside of gnu-screen

I use screen a lot and inside one of my screen windows, I use vim a lot. I have, however, sometimes, some strange behaviour of vim: After a while of using vim and switching forth and back between ...
0
votes
0answers
42 views

Get growl notifications from within a unix screen which is not in focus from a remote SSH session

Using iTerm2 I have growl notifications working within a (unix) screen session on remote servers when that window has screen's focus: My server's ~/.bashrc has: growl() { local ...
0
votes
0answers
40 views

Reload user group assignments inside tmux (or byobu/screen)

This question handles reloading group assignments without logging out, but it doesn't really treat a situation where you want the group assignments to be reset inside an existing tmux (or byobu or GNU ...
0
votes
0answers
53 views

GNU screen command on path not found

When I use GNU screen in the following way, it works: screen java -jar .... but why does screen bukkit .... not work when bukkit is a executable script from my path ($PATH)? I've read here, ...
0
votes
0answers
69 views

Bash Script Display Remote Screen Session to User

I'm kind of new to bash scripting and I'm having trouble figuring out how to accomplish this. I'm working on a script that is designed to backup and manage a java application that runs within a ...
0
votes
0answers
40 views

Why using 'screen -r' on remote host changed my terminal background color?

I have a custom vim color scheme on the remote host. Today I found after I using ssh to connect to the remote host and resume my screen process with 'screen -r', everything I wrote in the vim editer ...
0
votes
0answers
36 views

Connecting to ssh and using screen not working properly

I used once ssh -t <login@server> screen -R to connect to a server and everything worked fine. I used the terminal in the server to execute an script and then detach the screen. I came back ...
0
votes
0answers
197 views

GNU screen mirroring (-x) with different size monitors/resolution

I'm using "screen -x" to mirror screens across two systems at the same time, but I seem to have an issue with resolutions. On most of my screen windows, the top portion (or bottom) is cut off when I ...
0
votes
0answers
24 views

How can I start multiple screen windows side-by-side inside one screen instance automatically?

I want to have a desktop/keyboard shortcut that opens a terminal running a screen session that displays top in the upper 60% and iostat in the lower 40%, and possibly pidstat, too. Is that possible? ...
0
votes
0answers
39 views

Increasing scrollback for screen in putty

I use screen a lot. Whenever I scroll up, I see that there is the screen command I used to reattach to the screen. I was wondering if we can increasing the size of scrollback for screen from screen ...
0
votes
0answers
83 views

prohibitive keymapping with putty, gnu screen and vim

I'm logged in to my Debian machine using putty. I have a GNU screen session open and I am running vim in it. the problem I have is that when I go to save the file using :w<enter> this appears to ...
0
votes
0answers
68 views

Gnu Screen rebounded control sequence, switch to last-visited window broken

First time questioner here, so please point out the errors I make. I configured my gnu screen so that the control sequence wouldn't collide with emacs: My .screenrc: # Bind control sequence key to ...
0
votes
0answers
25 views

Run screen splitted and specify commands for each windows?

Ubuntu 12.04, I would like to run gnu-screen already splitted in two regions and with certain commands in it, I have found that in new version of screen there are -Q argument, but I still dont get how ...
0
votes
0answers
31 views

Linux screen program: determining the communication details of a working connection

I am trouble shooting an issue with a PySerial program which interfaces a step motor via terminal emulation, and going back to the use of screen as a known working interface. When I connect to the ...
0
votes
0answers
76 views

Prevent a GNU Screen session from closing

So I run Irssi on my VPS inside a GNU Screen session and sometimes accidentally close Irssi process when I log out, therefore forgetting to close the Screen session beforehand. Is there a way that I ...
0
votes
0answers
396 views

Autostart multiple screen sessions in Ubuntu Server

I recently set up a Newznab server on Ubuntu Server 12.04 (nothing illegal, just TV shows as I prefer to use XBMC instead of Tivo) and I'm having some trouble at the very final step. I can run my ...
0
votes
0answers
157 views

How can I send a command to two separate screen sessions simultaneously?

I'm monitoring two measurement devices (usbserial1 and usbserial2) over RS232 (via an USB adapter). I do this in the following way: I open two terminal windows. In one window I write the following ...
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 ...
0
votes
0answers
60 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. ...
0
votes
0answers
259 views

Getting a setting, the chdir value, out of GNU Screen

I've been using screen's chdir command to set a new working directory for new screen windows, more on that later. What I need to do is find out what the setting was before I set it, so that I can set ...