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
1
vote
1answer
13 views

Prevent qemu from hijacking input

I am trying to run gnu screen in a virtual machine. To create a new screen window, I press ctrl+a c, but this key combination makes the qemu monitor appear instead. How do I send these keystrokes to ...
-3
votes
1answer
35 views

How to fix apt update,upgrade

Due to new installation an error was show that installation step failed Failed to fetch http://http.kali.org/kali/dists/kali-last-snapshot/inrelease Temporary resolving'http.kali.org'
1
vote
0answers
16 views

Using BRKINT With Pseudo-Terminals

$ screen $ stty -ignbrk brkint $ sleep 10 If I now press Ctrl-A+b to trigger a serial break, why is no SIGINT sent to the foreground process group sleep 10? Are serial breaks not implemented for ...
1
vote
1answer
55 views

How can I kill a specific process running inside a screen session, without killing that screen session?

I have run multiple ANN training processes under multiple screen sessions. When I enter a screen, I see a training process running. Now, I want to kill a specific process inside the screen without ...
0
votes
0answers
18 views

screen extensions to vt52

The documentation for the vt52 terminal does not include the codes transmitted for CTRL+ something, ALT+ something (clearly: they did not exist). screen launched in vt52 mode sends some keys. For ...
0
votes
0answers
32 views

How to use screen inside of an LXC container

I am using Proxmox 7.0 to run an LXC container with Debian 11 as guest. When connecting via ssh to the guest, I can install and run screen as usual. I can detach and re-attach as usual. But if I ...
0
votes
0answers
10 views

Turn off keyboard input on gnu screen so I don't accidentally Ctrl-C

I have started a long running programme in GNU Screen on a linux system. I detach & reattach to check how it's running. I want to prevent myself from accidentally pressing Ctrl-C on the process (...
0
votes
0answers
14 views

Screen going black in debian after using wine or java

It all started when I switched graphics drivers for nvidia. I have never had this issue before until now lol. I use Debian 11 with an nvidia gt 1030 gpu. It all fixes when I restart my tv/monitor, ...
0
votes
1answer
30 views

Reboot and relaunch a script if error

I have a script (not written by me, I cannot modify it) that has to run for days, that sometimes fails (exits with an error). In this case all I have to do is just reboot the server (there is no ...
0
votes
0answers
15 views

GNU screen: window in multiple sessions

Recently, I came across the following situation: I am using multiple screen sessions. Sometimes, it happens that a window of one screen session shows up in another screen session. Whatever I do in ...
1
vote
1answer
45 views

How to flip linux console?

I want to flip the image output of the linux console when not in XServer. I saw an issue that is similar to this here: https://askubuntu.com/questions/237963/how-do-i-rotate-my-display-when-not-using-...
0
votes
0answers
9 views

GNU screen append buffer multiple times without exiting copy-mode

Is there any way to append copy buffer multiple times without exiting copy-mode in GNU screen? With the functionality I'm looking for I would be able to enter copy mode, scroll to the desired area ...
2
votes
1answer
40 views

How do I redirect the output of Python curses to a different display?

If the Python curses library takes control of the display, how do I specify which display (amongst multiple GNU screens) it should display to? So that I could code with curses in a live Python shell, ...
1
vote
0answers
24 views

Linux Mint 20 - Switch users doesn't work correctly

When the Account Switch is made, Linux Mint collapses, as shown in the figure below. Often it is necessary to restart the computer in a forced way. I used Ubuntu and had no such problem.
0
votes
1answer
27 views

passing arguments inside quote, e.g. screen -dm ' ls /home/$dir1 '

I use the following script #!/bin/bash echo 'Please enter the password of your XXXX:' read -sp 'Password:' password screen -dm bash -c ' BLABLA ' Problem is that my commands in BLABLA include the ...
0
votes
0answers
33 views

bash script doesn't run properly when I detach from screen

So I have a fairly hacky bash script that I've put together that monitors a particular Python training script (launching/interacting with some blackbox docker containers, which unfortunately have a ...
0
votes
0answers
33 views

How to make process substitution work from .screenrc?

From .screenrc, I want to open a window with bash on directory /myDir. Running chdir /myDir before runnning screen does not work for me because .bashrc has a line changing the working directory to a ...
0
votes
0answers
36 views

Is my script still running after having pressed Ctrl+d?

I'm running a bash script in a screen, and when I recently went to check it, I pressed Ctrl+d instead of Ctrl+a Ctrl+d to detach the screen. The screen in question reacted as if I had pressed Ctrl+l (...
0
votes
0answers
48 views

Get screen serial port in remote

I have some industrial equipment with serial ports equipped. There are 2 serial ports on each one (COM1 /dev/ttySC0 and COM2 /dev/ttyAMA0). Before sending to production, to test the correct ...
0
votes
1answer
21 views

Screen program splits window but unable to use or type

I want to use the screen program to run sessions on my terminal and split my terminal. But both in horizontal and vertical split, when the window splits into two, I'm not able to use or type in the ...
1
vote
1answer
29 views

Can GNU Screen Bindkey command be used to enter a key press?

I would like to make a custom keybinding in GNU Screen which, when some key is pressed, like F1, is the equivalent of pressing Enter and then the Screen next command. I know that bindkey can bind keys ...
0
votes
0answers
44 views

Difficulty setting up .screenrc file: [screen is terminating]

I rely on screen extensively for development and server management. In the rare event that a server reboots, I have to rebuild my screen sessions manually, and I've known about the .screenrc method ...
3
votes
0answers
337 views

Split ultrawide monitor in 3 virtuals screens

For my work, I try to split my new ultrawide monitor in 3 virtual screens on Ubuntu (I don't want to use tile tools as gTile). My first test using "xrandr" was OK when I selected "xorg&...
0
votes
1answer
18 views

Execute command when creating new screen session

With the screen command, the -X option allows you to execute a command in the specified screen session, but when you try to use it when creating a new screen, e.g: screen -dmS -S downloader -X "...
0
votes
0answers
17 views

Is it possible to get gnu-screen instance to print output to the monitor of the PC running it?

I have a little raspbery pi running a twitter bot. I have programmed it to print some bits of info to the terminal when it does the job successfully, fails or waits. I launch the application via SSH ...
1
vote
0answers
27 views

Controlling a process that has been moved into a Screen session with Reptyr

I have been experimenting with trying to pull a running process into a screen session with reptyr, as per a number of guides like the following, and which also generally seems to work fairly reliably ...
0
votes
0answers
14 views

Why did my screen process pause while detached?

I use screen a lot and leave processes running overnight, etc. However, this morning I was surprised to see this output: (bash) taskset -ac 0 my_program # (another similar program completes fine ...
0
votes
1answer
35 views

Is there a more efficient way to get X11-style mouse-based, cross-application copy-and-paste for command-line use than "xinit xterm" or the like?

In some contexts, I want the ability to run screen and to copy and paste text between different windows (in the screen sense of that term, not the X11 window manager sense) using click-and-drag to ...
0
votes
1answer
41 views

Easier scrolling of pages with "screen" [duplicate]

Inside a SSH session to a distant server, I use screen (similar tu tmux). I know that, in order to scroll with PG-UP / PG-DOWN, one has to do this before: CTRL+A[ This is not very handy. Is there a ...
5
votes
1answer
198 views

Execute bash function to run screen

I'm using an aws ubuntu instance. I would like to create an alias/function to run some shortcuts, for example to activate a python virtual environnement in a screen. I've made this function for ...
0
votes
1answer
82 views

Scrollback to previous screens in session of screen in Putty

I use Putty to connect to my VPS and run screen -r to restore the Screen session. Then I run a command in the Screen session. The command outputs a lot of content. When I scroll back to try to see the ...
0
votes
1answer
29 views

Can LightDM greeter blank the screen to save power on laptop?

LightDM would display the greeter (login box) after Lock Screen was activated. The display with the greeter would stay on and I suspect that would chew up battery (I'm using a laptop). Is there any ...
0
votes
0answers
14 views

GSync/FreeSync status of plugged monitors

Is there any environment variable that we can check to know if GSync or FreeSync is activated? Or is there a software that can tell both for us? Or just one of them?
2
votes
1answer
189 views

Some characters get lost when pasting large amounts of text into serial console

When pasting large amounts of text into a serial console like screen or minicom, some characters get lost and are not being transmitted.
4
votes
2answers
177 views

In GNU screen, how to read from stdin and save into a register?

I'm using GNU screen and I want to save input from stdin into a register to slowpaste it later. I tried a workaround with a temp file (which I can read into a register with readreg afterwards) and to ...
0
votes
2answers
220 views

How to set "character tx delay" in GNU screen? (Like in minicom)

Minicom has this useful setting called "character tx delay": Is there a setting like this for GNU screen, too?
0
votes
1answer
134 views

How to execute a command in tmux and detach using a single line command?

How can I get tmux to execute a command and then detach (That is, automatically in a single line without further input beyond initially starting the session)? I don't know to write sophisticated ...
0
votes
0answers
17 views

GNU screen open tab in specific position and shift already opened tabs

Is it possible in GNU screen to open tab in specified position and shift all tabs on the right side of this position? E.g. If I have opened tabs: 1 2 3 4 and I want to open new tab on position 2 I ...
1
vote
0answers
25 views

Running a process at startup and viewing its console output via ssh (or other means)

Is there a way I can have a process on a headless server which runs at startup, and still be able to connect remotely at a later time to view the console input? I need to be able to view console ...
0
votes
0answers
38 views

Screen resume starts new screen

Sometimes when I do screen -r name it starts a new screen, when I run screen -r I get both screens but I can only resume the new one
0
votes
1answer
27 views

How to get both the current working directory and the current process in the status line for tmux?

I would like to have two status lines with the first status line showing which directory the window is in and the second one showing which process is running in the window. Is this possible? I use ...
1
vote
0answers
125 views

Android-x86 guest in virt-manager screen adjustment

I have an MX Linux 19.4 as host and installed Android-x68 9 r2 64bits guest, the problem I'm having is how to adjust the guest screen size to fit the VM screen size, right now the guest screen size is ...
0
votes
2answers
38 views

How do I get a list of screen session names for a loop

I have used a loop to create a set of screens using Bash that are connected to a set of serial ports: for i in $(ls /dev/ttyACM*) do screen -S ${i##*/} -L -d -m $i done Subsequently, I want to ...
0
votes
0answers
21 views

Behavior of screen over ssh / screen detachment

When I use screen, it works fine except up to the point where I need to re-attach. My suspicion is that the sort of "shelled" environment I am using is not letting screen fully detach ...
0
votes
1answer
28 views

Start process and access the "shell" at a later time

I have a remote testing machine which is experiencing some failures. What I would like to do is trigger a gdb process upon failure on the remote machine, and then ssh into the remote machine and ...
0
votes
0answers
66 views

separate stderrs of different pipe commands to different tmux/screen/ncurses/... windows?

I have a pipe which contains multiple commands which tend to write to stderr. Naturally, the output will be interleaved. I wonder if there is a utility that neatly separates the stderrs of the ...
1
vote
1answer
130 views

symbols display wrong in `screen` - ascii or utf

I don't know since when and why : $ mkdir -p a/b/c x/y/{1,2,3} $ tree . ├── a │   └── b │   └── c └── x └── y ├── 1 ├── 2 └── 3 8 directories, 0 files when I run ...
3
votes
1answer
140 views

How to create split screen and run commands from Bash script?

The following doesn’t work given second command doesn’t run until first exits and when I try running first in background using &, I get following error. I also tried running first in background ...
0
votes
1answer
19 views

How to send ctrl+a+c to detached screen to create nested window?

I tried following but it doesn't work... screen -S foo -d -m screen -S foo -p 0 -X stuff "^Ac" Trying to create two relate screen session windows that can be toggled using ctrl+a+n.
0
votes
0answers
16 views

GNU Screen bind mouse wheel to up and down arrow keys

Is it possible for GNU screen to translate all mouse wheel actions to the up/down arrow keys? I do not want the mouse wheel to scrollback the buffer history which is what it currently does. I have ...

1
2 3 4 5
18