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

3
votes
2answers
994 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.
0
votes
1answer
15 views

Launch screen terminals with set directory

How can I get my screen session to open different terminals in different directories on login? For example, In my .screenrc file I have the following: screen -t bash0 screen -t bash1 screen -t bash2 ...
0
votes
0answers
11 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, ...
20
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
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
205 views

install screen from source code

I tried to install the screen command on RedHat from source code. But when I run the configure, it returned configure: error: !!! no tgetent - no screen So does anyone know how to fix it?
0
votes
0answers
28 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 ...
1
vote
2answers
84 views

Fish shell syntax highlighting looks weird in byobu-screen

When I am in plain fish shell, a command is highlighted like so: but when I am in byobu-screen and type the same thing, I get: When I do a fish_config and look at my color palette, nothing is ...
2
votes
0answers
71 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 ...
0
votes
0answers
30 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 ...
58
votes
3answers
22k 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
2answers
96 views

java app running in screen starts a process and this child is NOT in screen

I'm running a spigot server in screen, it is a java app. When it crashes and goes down gracefully it calls a restart script as a last action. This script simply contains a java -jar spigot.jar. The ...
0
votes
0answers
23 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 ...
1
vote
0answers
64 views

Case insensitive search in tmux's copy mode?

So in tmux's copy mode you can search text with the ? (at least if it's in vi mode). However, it only finds matches with the same case. I also want matches that have a different case. So, when I ...
1
vote
0answers
18 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
1answer
43 views

gnu/screen: session-name in status-line

How do I add the GNU/Screen's session-name (as set by C-a :sessionname foo) to its' status line? The manual says that S is the escape code for session name but when I try to add %S to my caption I ...
1
vote
1answer
70 views

PATH not set in GNU Screen, OS X 10.9

I'm not a regular user of screen but every few weeks I use for some delicate tasks. However yesterday when starting I was unable to execute any command (ls, ssh, mkdir), quick debugging revealed that ...
4
votes
3answers
682 views

GNU screen: change focus in split windows with mouse

Is there a way to enable proper mouse support in GNU screen so that I can switch the focus between split windows using my mouse? In other words, I'm looking for a mouse-driven alternative to typing ...
0
votes
1answer
16 views

'screen -R' is slow when creating a new screen

When starting a new screen session with screen -R, some text at the bottom of the screen informs me it is creating a new screen. It takes about 5 seconds before bash starts seemingly because of this. ...
0
votes
1answer
38 views

How to set the GNU screen log file name non-interactively

I'm trying to parse the output of a screen session from a script. The man page of screen says I can use the command logfile, but gives no indication of the syntax to use when I launch screen ...
21
votes
5answers
10k views

Bash vs. Gnu screen : Replace Ctrl-A with Ctrl-Shift-A

I'm a new user to GNU Screen. I've been using Bash for a very long time, and I want to give GNU Screen a try. As you know, GNU Screen uses 'C-a' (Control-A) as as the command character. Trouble is, ...
2
votes
3answers
336 views

How do I create a hierarchy of terminals or workspaces?

I'm wondering if there is some way to create a heirarchy/tree of terminals in a screen session on Linux? I don't mind hacking on this, so if there is a project out there that's working on this, I'd ...
2
votes
1answer
920 views

screenrc: How to map “alt+number” to “select a screen window” in gnome terminal

I found this online: bindkey "\261" select 1 bindkey "\262" select 2 bindkey "\263" select 3 .... Basically it maps alt+1 to "select 1"; alt+2 to "select 2". So when you press alt+1, it is ...
0
votes
2answers
24 views

Moving windows in GNU screen

I use GNU screen daily and I wonder is it possible to move windows in the window-list. Say I have Num Name Flags 0 emacs ...
0
votes
0answers
37 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. ...
6
votes
6answers
7k 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 ...
3
votes
2answers
582 views

How do I display the current “session” name or “sockname” of a screen session in the status bar?

I run multiple screen sessions each created with 'screen -S name' and I would like to be able to display in the status bar the name I used to create the current screen session. However, I cannot ...
0
votes
1answer
54 views

How to send message both to netcat and other script?

I'm trying to make some client-server interface. Think of it as one-on-one chat. What I want to achieve are two horizontal views. Bottom for my (server) input, top for client output and my input. ...
36
votes
6answers
21k 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 ...
3
votes
4answers
1k views

Running emacs inside screen

I have a screenrc file but I am finding some conflicts when I run emacs inside screen. For e.g, moving across buffers in emacs, Ctrl-right arrow/left arrow, instead of moving back and forth sends ...
1
vote
3answers
80 views

How to press Ctrl+a+A

I was reading an answer about placing a tabs bar at the bottom of GNU Screen, and it said to press Ctrl+a+A. Clearly I cannot press A again while still pressing a, and why are the two capitalized ...
9
votes
1answer
7k views

How do I use tabs with the Linux “Screen” program?

I'm using multiple screen windows and am wondering if it's possible to add a tabbed interface to it, with tab names and keyboard shortcuts for moving between the tabs.
-1
votes
1answer
11 views

how to append to screen buffer file

If I have multiple log files open in several screens and I want to copy all useful traces to a single file. So I initially copy them to screen scrollback buffer file. Doing ">" after selecting text ...
0
votes
0answers
134 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 ...
10
votes
2answers
3k views

Make GNU screen survive reboot

I am using GNU screen a lot. I find it very annoying that everytime the server has to be rebooted I lose all my sessions (even if I know in advance, I need to set-up everything again). I've searched ...
0
votes
2answers
313 views

Transfer current command to a detachable session (tmux/screen)

I'm currently running a backup and it now needs to be transferred to detachable one like on tmux/screen. Is there a way to do this when the command is currently running? I can send the command the ...
1
vote
1answer
35 views

Auto Complete to Windows input queue from text on printed screen

I have a bin which output hostnames to stdout in following format (Usually, it is ~20 lines): ldn0000000002;ldn0000000040;ldn00000000055;ldn0000000117;nyk0000000001;nyk0000000002;tky0000000001 Then ...
7
votes
6answers
2k views

ssh-agent and screen

A while back on StackOverflow, I asked this question about ssh-agent and crontab. I have a similar question now about ssh-agent and screen on linux systems. So, on my Mac, ssh-agent launches at ...
0
votes
0answers
62 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 ...
1
vote
3answers
869 views

vim under screen under PuTTY working with mouse wheel?

Is there any way to make this work? i'd love to scroll my files in vim with the mouse scroll wheel. Also, i wouldn't mind scrolling the gnu screen buffer with the mouse wheel as well, without having ...
11
votes
1answer
637 views

GNU Screen on MacOS 10.8 says “Be careful! New screen tonight”

GNU Screen on MacOS 10.8 says "Be careful! New screen tonight" when it starts up screen sometimes. Any ideas what causes this, or is there a way to disable it and/or change the text to something else? ...
0
votes
1answer
24 views

GNU screen. nothing happens when trying to resume session

I have a D-LINK nas (Linux 3.2.34 armv7l), where I have screen, compiled from sources. Everything was fine until something happened and now I can't resume the session. The symptoms are as follows ...
0
votes
0answers
19 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? ...
3
votes
2answers
608 views

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

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 ...
1
vote
0answers
41 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 ...
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)
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 ...
27
votes
15answers
17k views

What's the best prefix/escape sequence for screen or tmux? [closed]

Screen goes with CTRL+a. tmux, as developed within screen, uses CTRL+b. Both are also keystrokes in other editors, shells, etc. What do you suggest, which one conflictes at least with other programs?
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?
0
votes
1answer
380 views

convert screen hardstatus to tmux

I'm a longtime screen user, but the move to tmux is growing inevitable. I have a fairly large .screenrc that I am working toward porting to tmux (I'd like the bulk of my existing workflow to just ...