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.

5
votes
0answers
2k views

Quick switching between screen sessions

Suppose that I have two screen sessions (screen_session_a and screen_session_b), both of which have several windows (window_1 to window_n). The hierarchical layout looks like this: +--+ ...
4
votes
0answers
140 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
0answers
266 views

Save GNU Screen session layout after reboot

I would like to retain/restore the following properties of a GNU Screen after reboot: Name and number of screen sessions Name and number of windows inside every screen Screen splitting (i.e., ...
3
votes
0answers
770 views

Automatically renew kerberos tickets in GNU screen

I have a program (which I cannnot modify) which runs for > 1 day. I want to start it via SSH in GNU screen and detach then. The remote is a Fedora system using a Kerberos-based file server on which I'...
3
votes
0answers
2k views

How to capture tail -f output from remote host indefinitely

I am trying to monitor a remote, embedded host that is writing output to a file: /var/log/myapp.log This host may lose power for hours. The app may be killed and restarted. On my local machine, I ...
3
votes
0answers
924 views

Read output in `screen` from outside

Suppose I opened up a screen to run some program that outouts some result. Once the program finishes, is there a way to get the result in the screen from outside. For example: I opened up a screen ...
3
votes
0answers
337 views

Screen reptyring screen

Having recently discovered reptyr, my first action was to do everything I could to break it. This included reptyring screen into a screen session as follows: $ screen My zshrc cats some stuff here. $...
3
votes
0answers
476 views

GNU screen :fit equivalent in tmux

I'm experiencing this problem where I've attached a single tmux session at multiple terminals with differing console sizes. Is there a solution to rid of the view-port without having to disconnect ...
3
votes
0answers
250 views

Simulating GNU Screen's shelltitle in tmux

I'm trying to simulate GNU Screen's shelltitle feature in tmux. I have the following in my ~/.bashrc: if [[ "$TERM" == screen* ]]; then SCREEN_ESC='\[\ek\e\\\]' else SCREEN_ESC='' fi PS1="\...
3
votes
0answers
70 views

Can I avoid screen from creating inner screens?

I just started using screen and "screen inception" makes learning screen even more confusing. Can I avoid screen from creating screens when I'm already inside a screen? I'm using fish as my shell if ...
3
votes
0answers
2k views

How to efficiently use Console2 with screen/tmux/byobu?

I'm using Console 2 and msysgit's bash to SSH into my Linux machines. There, I'm using screen (but considering tmux and/or byobu), but currently simply with one single-terminal session per Console2-...
2
votes
0answers
38 views

Redirect all keyboard input to a detached screen session

I'm trying to build a headless system using a Raspberry Pi; I have two programs runnning on it, one to catch all the input from a barcode reader (a simple keyboard emulation device) and one to display ...
2
votes
0answers
530 views

How to have local echo on with `screen` command?

I tried screen /dev/ttyUSB1 9600,echo but I still don't see what I type.
2
votes
0answers
141 views

Issue setting environmental variable in tmux and screen

Whenever I use Tensorflow (a python library) from within a tmux or screen session, I have to manually change the environmental variables. Specifically, I have to type export PATH blah blah blah and ...
2
votes
0answers
42 views

Stuffing text into a screen tab only after the shell has loaded

I'm setting up my screenrc to open several tabs and already insert commands such that I only need to press enter to start some process. Here's an example screenrc: screen -t test stuff hello ...
2
votes
0answers
51 views

GNU screen freeze session if SSH is not connected

I have a dedicated server (Inmotion) running a Java XMPP server through a screen session to keep it alive. Sometimes, after a long period, the execution of this Java XMPP server freeze and then when I ...
2
votes
0answers
602 views

Linux Mint - Glitch in Screen Recording video files

I am new to Linux, and most things seem to work fine; but it is not the case of Screen Recording. I have tried with the following programs: OBS Studio Voko Screen Kazam And I have tried with the ...
2
votes
0answers
202 views

Run server program and allow user to attach to it using SSH

What I'm trying to do is run a program at startup (a game server in this case, started using systemd) and allow a specific user to remotely "attach" to it using SSH. Currently I have it set up to ...
2
votes
0answers
674 views

Send data to a serial port via screen

I've connected to a serial port via screen /dev/ttyACM0 and can read the input, but can't see the text I'm typing and nothing is being sent after I press enter. Is it possible to send data from ...
2
votes
0answers
150 views

Start detached screen session with more than 80 columns?

Does anyone know a way to change the default 80 columns width when starting screen in 'detached' mode (screen -dm) ? Smart curses apps like htop handle resizing when attaching from a wide terminal ...
2
votes
0answers
902 views

Byobu - New window with same ssh session?

Is there a way to configure Byobu to use same ssh session in a new window. For e.g. Open Byobu window ssh into a remote host Press 'F2' to open a new window. This opens the terminal with my ...
2
votes
0answers
669 views

Capturing screen of “perf top” or other interactive programs

I'm trying to write a script to capture output of perf top Similar to top, perf top detects the screen size and fill information to the screen. But sadly unlike top which has a batch mode, perf does ...
2
votes
0answers
134 views

Screens die even though process is still running

I have a problem with running an irssi in a screen session on a tomato usb router setup. Screen reports session as dead, even though the process is still running (both for screen and irssi) Screen ...
2
votes
0answers
153 views

screen toggle windows doesn't work with custom command key

I've been using GNU Screen for a while now, but I prefer mapping the command key to something other than C-a, as I use that to go to the beginning of a line. For a while now, I've been running screen ...
1
vote
0answers
19 views

How to clear DISPLAY variable in GNU screen

Basically, i need to unset DISPLAY variable in screen if I run multiple commands like: screen -dmS name bash -c 'kodi; unset DISPLAY; emulationstation' I'm writing a little something that will ...
1
vote
0answers
79 views

How to Attach Screen Sessions that were Split

I am working with screen and I am having a hard time with reattaching sessions where I split the screen within one session. Is this even possible? I have tried searching for it on here and google ...
1
vote
0answers
62 views

Detached GNU screen session unexpectedly killed upon terminal close

I am using GNU screen for years now on several servers with the same configuration and never ran into this strange problem: After connecting to the server via SSH I start screen (without options). ...
1
vote
0answers
31 views

How to keep screen running after exiting the command that runs in it?

I have the task to start a detached screen session (e.g. when the system reboots) and then to be able to connect to it and interrupt/kill the running process without the screen to terminate. ...
1
vote
0answers
32 views

make logical screen larger than physical screen?

In tmux or screen or other, is there a way to make the logical screen larger than the physical screen - so you can (1) scroll around to see the whole screen, and (2) view different parts of the ...
1
vote
0answers
16 views

How to display message from daemon in gnu screen message line

Let's say I've setup smartd to send out a message any time a SMART warning happens. Is there a way to put this warning into the message line of all running screen sessions?
1
vote
0answers
103 views

How to fix gnu screen term detection when started on detached mode?

I'm writing a script that spawns a screen process but depends on some pre-conditions I intend to perform before attaching to it. I noticed that when started in detached mode it does not recognize the ...
1
vote
0answers
40 views

Bash menu from screen -ls data

Given the screen data There are screens on: 27454.world-of-dragons_SERVER (07/05/2018 04:38:56 PM) (Attached) 6223.potato-wod_SERVER (07/05/2018 10:16:12 AM) (Attached) ...
1
vote
0answers
69 views

GNU Screen doesn't work for split window

My mac is installed with screen, when I type screen, it prompted with the version Screen version 4.00.03 (FAU) 23-Oct-06. I have multiple sessions created: bash-3.2$ screen -ls There are screens on: ...
1
vote
0answers
51 views

Less is broken inside GNU Screen

When using less or git log, about the first 30+ lines are missing. I'm using GNU screen in a 2x2 grid, less is running in the bottom right pane. tput lines returns 65, but that's the total number of ...
1
vote
0answers
83 views

Making a script execute a command in a screen session of another user?

Is it possible to make a script run a command in another users (user1) screen session that has been started by a script ran by a normal user (user1)? For example, a script run by root directing a ...
1
vote
0answers
34 views

Does GUI programs terminate on SSH disconnect even if launched in screen?

I have a Fedora system with a Xvfb display and an x11vnc server for remote connection. To keep programs running after SSH disconnects, a screen session is also set up. And usually, I run fluxbox and ...
1
vote
0answers
126 views

gnu screen stops working within applications

I am a regular user of GNU screen. There must be some quirk of my setup that is causing a strange problem that I can't reproduce. Maybe you can help me isolate it. My session has been going fine ...
1
vote
0answers
30 views

GNU screen session stops working

I use screen to run a script which will run for several days (It will train some neural nets). In general it's working. However, it appears that screen and all processes started in the screen ...
1
vote
0answers
55 views

Change in arrow key behaviour under a GNU screen session

I have noticed a weird behavior in GNU screen session while using arrow keys. I'm sure it is caused because of a change in setting/configuration. I'm looking here for the root cause of it. Problem ...
1
vote
0answers
52 views

Parallel execution in splitscreen?

I'm very well aware, that I can use xargs to run commands in parallel. However since the consoleout of the commands is important I was wondering if I could split the console window similar to how ...
1
vote
0answers
32 views

starting a disconnected screen session at a specified size

I would like to start a screen session (the program named screen) leaving it unattached in the background with it having either a specified size or inheriting the size from the terminal session. It ...
1
vote
0answers
93 views

Run multiple screens and attach them for a split view

So I'm new to screen and I've been using this .screenrc for now - https://gitlab.com/joaopizani/env.screenrc-ftw. I'm trying to make a script that, given a target host, will do the following: Open a ...
1
vote
0answers
135 views

Toggle external display under Wayland

Under X I had a xrandr command that would disable the external display or, if it was disabled, enable it and set it as the main/default display. Is there anyway to achieve similar functionality under ...
1
vote
0answers
200 views

Unable to use up arrow key in screen copy mode or windowlist

I am ssh'ing from a terminal window on my Mac to a NetBSD box (our bastion host) and then running screen on the NetBSD box. In copy mode or in the windowlist (which uses the copymode key bindings), I ...
1
vote
0answers
55 views

GNU screen: how do I use :aclumask to set permissions to unknown users?

Context I often create a multiuser GNU screen session for demonstration purposes. I do it by creating a named session with: screen -S tutorial And then performing ^A:multiuser on ^Aaclchg ...
1
vote
0answers
142 views

Debian kvm switch reset screen resolution

I'm using debian Jessie with mate 1.8.1, I have 2 computers connected on a single screen with a kvm switch in a resolution of 1920*1200. When one of the computer is left idle for a long period of ...
1
vote
0answers
49 views

How to make log file name and status appear in linux screen caption line

Any ideas how to get the Linux screen log file name and state appear in a status line (caption line).
1
vote
0answers
40 views

screen shell keeps getting interrupted with output messages

I connected to my tv box through a UART port on the chip and established a serial connection using screen like this: sudo screen /dev/ttyUSB0 115200 When I hit enter I get shell access and ability ...
1
vote
0answers
177 views

How to switch to another screen to run git commands while resolving conflicts (blocking command)?

Often times, I work out of a single shell when I run git commands. For example, I will start a merge: $ git merge origin/master If during this merge there are conflicts, git will "block" the shell ...
1
vote
0answers
63 views

Dell laptop with two external screens

I have a laptop with Linux Mint Mate and this board graphic: Nvidia-G98M - Frame NVS 160M. I am trying to connect one screen Dell Inc. 15", through the VGA cable, and a Screen Asus 22" through DVI. On ...