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
0 votes
0 answers
6 views

Why are keystrokes not intercepted after reattaching a "screen -dmS session bash -c 'command'"?

I'm using screen -dmS mysession bash -c 'command > test.txt' to start a screen, launch a command + write its stdout to a file, and detach. Later, after reattaching it with screen -r mysession, I ...
user avatar
  • 2,245
0 votes
1 answer
16 views

Why does this screen session exit when the command is finished?

I know screen -dmS mysession command to start a screen, launch a command and detach. When we need to redirect the stdout to a file, this works: (see How to run a program in a screen, redirect all ...
user avatar
  • 2,245
0 votes
0 answers
14 views

How to automate screen to run a command, extract some text and detach the screen?

I am trying to automate a simple task which contains four steps : A bash script which takes one argument as the port number Open a screen name "Notebook" run a command in the screen ...
user avatar
0 votes
0 answers
31 views

How to "reuse" the SSH connection created? [duplicate]

Here's my workflow and pain point: In a terminal, I first use tmux and create 3 panes, sometime even more. In each pane, I do a two steps SSH to connect to the work server behind a bastion server. In ...
user avatar
0 votes
0 answers
14 views

invert screen auto-rotate on acer 2in1 laptop

I have installed Ubuntu budgie 20.04 64bit on an acer 2in1 laptop. Everything runs out of the box: when I switch to vertical tablet mode, the screen rotates and deactivates the keyboard. when I switch ...
user avatar
0 votes
0 answers
24 views

linux (gnu-) screen: remap Ctrl-a (default command key) to Alt-a in 'one go'

Looking for a way to remap screens C-a or ^a (default command) binding, to Alt-a or ^[a by using an easy to memorize, one-go command / switch. I know this can be possible in 2 steps, but also only ...
user avatar
  • 1
1 vote
0 answers
19 views

Brightness Settings on my HP laptop do not work on Debian 11 (Bullseye)

Hi good day everyone I have an HP 15-n220ca laptop computer on my Debian 11 Bullseye operating system running LXQt, and I am having trouble to turn down the brightness on my laptop screen. It is all ...
user avatar
0 votes
0 answers
11 views

How to create a new background screen session with "flush" every n seconds in one line

In this tutorial it shows flush time is modified after creating the screen session but i would like to know how to do it in one line. The below command i tried but failed. screen -dm -L logfile flush ...
user avatar
1 vote
0 answers
16 views

Freezed screen and resolution screen won't work on Parrot Security OS

Today I've been installing Parrot OS on my VM Virtualbox, when I've already istalled it, i opened a new terminal, and I typed sudo apt update and after that sudo apt full-upgrade. When it finished, i ...
user avatar
0 votes
1 answer
22 views

vim scrolling with cursor, only bottom line moves until certain amount lines scrolled (in gnu screen)

Vim issue, note this happens only when i open gnu screen, on ubuntu, when shelled from a Mac, and only in the top pane of the screen (bottom pane works fine). It does not happen on the mac when i ...
user avatar
0 votes
0 answers
43 views

Keep the jupyter notebook running in the background using ssh

I am connected to a remote server to connect to jupyter notebook using ssh. I use the screen to attach and detach to the session. One problem I am facing is that I have to open two command prompts. ...
user avatar
  • 103
0 votes
0 answers
22 views

How to add cp437 support into Minicom?

I am using a Raspberry Pi (running Raspbian) to act as translator between SSH-over-Ethernet and an RS232 connection to a proprietary hardware box. This proprietary box seems to be using CP437 ...
user avatar
  • 101
0 votes
0 answers
13 views

GNU Screen closes BEFORE ending execution after I come back

I wanna transfer a big archive to a Debian machine and see progress. I also want to be able to log out of my server remotely and the file transfer continues when I'm logged off. I've done this a lot ...
user avatar
0 votes
1 answer
39 views

How to send `screen -X` command to the right user in a multi-attached session

Let's say I want to bind a key sequence in GNU screen to jump to a specific window. I might do so like this: bind ^t exec screen -X select foo (I've deliberately simplified this; the real-world ...
user avatar
1 vote
1 answer
48 views

How to get the current window name in bash inside screen

In gnu screen I can set the window title using Ctrl-a Shift-a <name>. When I am inside bash prompt I can determine whether I am inside screen by checking the variable $STY. Can I check some ...
user avatar
  • 1,025
1 vote
1 answer
61 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 ...
user avatar
-3 votes
1 answer
76 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'
user avatar
  • 1
1 vote
0 answers
23 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 ...
user avatar
  • 145
1 vote
2 answers
249 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 ...
user avatar
0 votes
0 answers
26 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 ...
user avatar
0 votes
0 answers
67 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 ...
user avatar
  • 242
0 votes
0 answers
19 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 (...
user avatar
  • 1,049
0 votes
0 answers
22 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, ...
user avatar
0 votes
1 answer
134 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 ...
user avatar
  • 2,245
1 vote
0 answers
31 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 ...
user avatar
1 vote
1 answer
71 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-...
user avatar
0 votes
0 answers
19 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 ...
user avatar
2 votes
1 answer
50 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, ...
user avatar
1 vote
0 answers
42 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.
user avatar
0 votes
1 answer
47 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 ...
user avatar
  • 1
0 votes
0 answers
41 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 ...
user avatar
0 votes
0 answers
36 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 ...
user avatar
  • 407
0 votes
0 answers
39 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 (...
user avatar
0 votes
0 answers
79 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 ...
user avatar
  • 550
0 votes
1 answer
39 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 ...
user avatar
  • 111
1 vote
1 answer
94 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 ...
user avatar
0 votes
0 answers
109 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 ...
user avatar
5 votes
1 answer
659 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&...
user avatar
0 votes
1 answer
36 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 "...
user avatar
0 votes
0 answers
25 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 ...
user avatar
1 vote
0 answers
46 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 ...
user avatar
0 votes
0 answers
26 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 ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
0 votes
1 answer
59 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 ...
user avatar
  • 2,245
5 votes
1 answer
333 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 ...
user avatar
  • 153
0 votes
1 answer
236 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 ...
user avatar
  • 115
0 votes
1 answer
60 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 ...
user avatar
0 votes
0 answers
18 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?
user avatar
  • 83
2 votes
1 answer
375 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.
user avatar
  • 1,914
4 votes
2 answers
233 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 ...
user avatar
  • 1,914

1
2 3 4 5
19