Questions tagged [gnu-screen]

screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). For computer monitors, see the tag /monitors.

Filter by
Sorted by
Tagged with
4
votes
1answer
73 views

What is the scheme for textual representation of keystrokes in screen?

How can I derive the character sequence that represents a certain keystroke in screen? I mean, what bind takes as input. For instance, 's' represents the obvious keystroke on the 's' key. 'S' ...
4
votes
1answer
1k views

'Cannot open display' on restored GNU screen session

Using debian unstable with Gnome 3 but I think this has always happened. If I log out and then log back in again it seems the X session is restarted or in some way changed. In any case, when I start ...
4
votes
2answers
371 views

alias to detach screen when I exit (and kill ssh)

I auto start gnu screen when I ssh into one on my own servers. When I am done, I have to d to detach. Then exit to quit ssh. This means that when I ssh into the server again at some point in time, I ...
4
votes
1answer
449 views

Access GUI of an already running application through SSH

I have a virtual server, and a graphic application (an electron browser, actually) is running on it. I actually run the command launching it with this script: #!/usr/bin/env bash set -e # Start ...
4
votes
1answer
1k views

How to stop Linux console output from being truncated when using Screen?

Overview I use Screen as an add-on to the Linux console so that I can have multiple screens and can run my server while doing additional tasks simultaneously. Issue The console output seems to be ...
4
votes
1answer
1k views

Is there a way to create a screen windows from shell script?

I am trying to write a script that creates a new screen session and creates 4 windows within it. I am able to create the screen session, finding it difficult to find out how to replicate Ctrl+A+C, in ...
4
votes
1answer
654 views

Select screen in detached screen session [duplicate]

In screen there is a kill command, which kills the current window. This command can be sent even to a detached screen session by running: screen -S SessionName -X kill This works to kill the current ...
4
votes
1answer
3k views

Screen: can I execute commands and split the window when starting screen?

I use the screen command on several servers, where I monitor several log files. I arrange the log files to my preferences with several splits and by naming the regions. Sometimes the server gets ...
4
votes
1answer
2k views

How to disallow GNU screen from making change to my putty window title

Currently whenever I open a screen session from within PuTTY, the window title of the PuTTY window changes to "screen". I would like to prevent this from happening. Please let me know what is the ...
4
votes
2answers
3k views

Getting 256 colors to work in terminal multiplexer

tmux I followed Getting 256 colors to work in tmux: I have alias tmux='TERM=xterm-256color tmux' in ~/.bashrc and also set-option -g default-terminal "screen-256color" in ~/.tmux.conf In konsole: $...
4
votes
1answer
9k views

Make screen start as Daemon for a Minecraft server

I made a script that runs fine manually, but can't get it to run with the description in How to start a script file on boot?. I have run update-rc.d -f minecraft.start defaults This is what my /etc/...
4
votes
1answer
361 views

How can I do logging of every screen sessions

I am using screen utility for couple of years. I just simply love it. In cloud machines I do have multiple screens as I work with a team. I want to log every commands that have been run in every ...
4
votes
2answers
2k views

Buffer overrun on Fedora 16 serial

I got a brain smashing problem with Fedora 16 and my serial port. I use the serial to monitor an STB on which I'm developping. The STB runs on Linux and when booted, I launch the program I'm working ...
4
votes
1answer
738 views

GNU screen tab gets renamed whenever I type a command

When I use gnu screen, in other tabs, I ssh into other machines, rename the tab accordingly, and do work normally. The tab name sticks. In a fresh tab, which is just a terminal on the original ...
4
votes
2answers
1k views

screenrc subshell for every window

.screenrc: shell -${SHELL} caption always "%n(%t) %= %{b}@%H[%l] : %{r}%c:%s" termcapinfo xterm ti@:te@ termcap xterm 'AF=\E[3%dm:AB=\E[4%dm' terminfo xterm 'AF=\E[3%p1%dm:AB=\E[4%p1%dm' ...
4
votes
1answer
150 views

How to see screen information at the top of terminal?

I once used a server where using the screen command gave me a colorful header which told me the name of the screen, the total number of screens, the runtime, cpu utilization and maybe some hotkeys to ...
4
votes
1answer
1k views

How to bind 'tab' and 'shift+tab' in GNU screen?

How do I bind the keys Tab and ShiftTab in screen? My problem is that I don’t know what to pass to the screen bind command to designate these keystrokes. BTW, I’m aware of GNU screen: move between ...
4
votes
3answers
575 views

Replacement shortcuts for `screen` [closed]

Screen uses the shortcut CtrlA to activate. I find that this interferes with the Bash command for jumping to the start of the line, and the VIM command for incrementing an integer. Certainly I could ...
4
votes
2answers
2k views

How to set up `screen` to modify the window title and xterm-window title?

I'd like to have my current $PS1 prompt (\u@\h:\w$(__git_ps1 "(%s)")\$ plus some coloring) to be also used as screen's window title (in the hardline) and as the xterm window title. How can this be ...
4
votes
1answer
698 views

Why is GNU screen / byobu leaving garbage text in the shell during a reverse search?

I recently starting using GNU screen via Byobu but I think the problem is related to screen. I first SSH into a server and then do a reverse search to run a commonly run command (dump a the database)....
4
votes
1answer
2k views

screen command not showing status bar

I have a ~/.screenrc file that contains the following lines: # 2.2) hardstatus = navigation bar @ bottom hardstatus alwayslastline "%H %-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<" I have to admit that ...
4
votes
3answers
3k views

list processes running inside of screen (manager with with VT100/ANSI terminal emulation)

I have an application that during installation runs a bunch of processes via screen, so I can see those if attached to the screen, however I don't see those via "ps -ef" or "ps auxww". How can I list ...
4
votes
2answers
824 views

Screen/Minicom multiline problem [duplicate]

I'm managing with some boards like Arduino/UDOO etc. but I always face an annoying problem with minicom or screen. If i type a long command, for example: sudo /sbin/wpa_supplicant -s -B -P /run/...
4
votes
0answers
142 views

gnu screen: automatic session on split

Inactive region appears after 'split' command in gnu screen now. You must go to the new region and type :screen. Only after that shell session appears in this region. Is it possible to make new ...
3
votes
3answers
5k views

How are “xterm” and “screen” related?

I am not quite sure if there is any subtle or wide differences between screen and xterm. I have used screen before and had it being described as kind of like a multiplexer and have tried xterm a few ...
3
votes
4answers
6k views

Leave remote command running storing output

Scenario; I have SSH'ed to a machine, opened a new screen session, and fired off a script. Some days later I SSH back to that machine, re-attach the screen session and look at the output that has ...
3
votes
4answers
2k views

How to prevent a program from dying when its ssh session dies?

I have a really old console application that I want to make a bit more resilient. The program is used this way: the user uses a custom terminal emulator to connect to a remote machine through ssh the ...
3
votes
3answers
865 views

How to run a command inside screen such that you can get back to the command's parent shell?

What's the best way to run a command inside a screen session such that its parent shell can be accessed? I want to be able to restart it from within the same screen session. The best I've managed to ...
3
votes
3answers
4k views

Screen cannot exec 'Myscript.sh': No such file or directory

I am trying to execute a script on a remote machine in screen session using ssh. The command I use is: ssh -t MYSERVER "cd tempdirXYZ; screen Myscript.sh" When I execute this, I see a screen window ...
3
votes
1answer
6k views

GNU screen locked, how to unlock?

So here's what happened: I ssh to the server with a normal user I run sudo -i I run screen Then I accidentally locked the screen session. to unlock it, it asks for root's password not the ...
3
votes
2answers
970 views

clear(1) after detach in GNU screen

I run irssi in screen and I want screen to automatically blank the terminal (scrollback) after detach. I found out that screen has a command called "blanker" that can clear the screen, but I don't ...
3
votes
2answers
244 views

what does the dashed line on a `screen` multiplexed terminal?

I'm using screen terminal multiplexer. For some reason a dashed line appears on the 10th row. ... [ec2-user@ip-172-31-1-24 var]$ ls account db games lib lock mail opt run tmp ...
3
votes
2answers
1k views

How to switch to a screen with two digit index in screen command?

Let's say we have opened more than 10 screens in the screen program. How to switch to a screen using Ctrl+A, n where n > 9?
3
votes
4answers
1k views

Is there a way to maintain ssh-agent connectivity in different screens?

Whenever I use ssh-agent for passwordless logins it doesn't work across different logins and screen sessions, even if they are concurrent. I suspect it uses some shell variables that don't work ...
3
votes
1answer
679 views

Gnu screen : load multiple configuration files

Is it possible to load multiple configuration files in Gnu screen? I tried multiple -c options, in vain. The basic idea is to keep my default ~/.screenrc loaded, and add a custom session ...
3
votes
4answers
222 views

Logic to detect if a GNU screen is running

For a project I am developing I would like to detect if a screen is running as the current user, attached or detached. I would like an approach that uses the minimal number of processes and will be ...
3
votes
1answer
743 views

Send commands to screen within screen

login to Server1 and run screen SSH to Server2 and connect to an existing screen session Realise ^A commands are procesed by Server1's screen only Is it possible to control Server2's screen in this ...
3
votes
1answer
824 views

Does the screen need to be detached to keep the process running after disconnection

My ssh connection is unreliable, so I've been studiously using screen and detaching every time I start a long-running process. The screen part I know is necessary, but is the detaching as well? Thanks....
3
votes
2answers
2k views

Screen - inherit current window's environment

In GNU Screen, how can I create a new window whose shell inherits the environment of the shell in the current window? The usual Ctrl+A C doesn't seem to do this.
3
votes
2answers
887 views

Start a GNU screen window in the background/without focus

The following command screen -t 'fubar' cmd will create a new screen window with the command cmd running in it and will set the focus to this window. How can I keep the focus in the current screen ...
3
votes
1answer
50 views

How to override the copy-mode behavior of the Home and End keys in GNU Screen?

I use screen a fair amount and would like the Home and End keys to simply go to the beginning or end of the current line, rather than the default, which is to go to the global beginning or global end ...
3
votes
1answer
220 views

Is there a way to open screen's terminal scrollback buffer in vim?

I'm looking for a way to drop the mouse, forever and always. I got to a very comfortable point, where I don't use it for regular text editing, however, something's bothering me. When I work with the ...
3
votes
2answers
2k views

maximum scrollback size of “screen” window manager

The "screen" window manager allows specifying the desired size of the scrollback buffer. E.g. when starting a new session: (source) ‘-h num’ Set the history scrollback buffer to be num lines ...
3
votes
1answer
210 views

Bind Screen shortcut to Ctrl+Q without prefix

I want to create a screen shortcut ^q to detach from the current session. In Tmux I would use bind -n command. In screen I'v tried: bind q detach works with prefix as C-a q bind ^q detach doesn't ...
3
votes
2answers
684 views

How to Find out a GNU Screen Window’s Default Directory?

Question How do I find out the default directory of a window in GNU screen? NB: I’m not looking for the current directory of the process running in the window. Background I have created a hardcopy ...
3
votes
1answer
815 views

Abort copy mode in Screen

While using GNU Screen in copy mode, I sometimes want to abort in the middle and go back to the prompt. What command will exactly achieve that ?
3
votes
1answer
2k views

Terminal: termcapinfo command not found

I added the following line to my .screenrc script such that I can use my mouse to scroll up and down in the terminal when the output is too large and long. However, when I try to source .screenrc ...
3
votes
2answers
3k views

Ctrl-S doesn't work in rtorrent when accessed via screen. Can't start torrents

I run rtorrent remotely on a seedbox. When I log in with a web interface I'm able to start torrents, and when torrent files get dropped into my watched folder that works too. However, when I try to ...
3
votes
1answer
6k views

Automatically save bash command history in screen session [duplicate]

I connect to a screen session. After doing some stuff I detach it. Then in history | tail I only see screen -r and previous commands and not the commands run in screen session. Basically history shows ...
3
votes
4answers
11k views

Running `screen` through a @reboot cron job

I want to have a script running in screen at startup. This doesn't work: @reboot pi screen -d -m /home/pi/db_update.py however running this manually as user pi works: screen -d -m /home/pi/...