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
1 answer
15 views

How can gnu-screen windows be configured to inherit the same ssh-agent session from the terminal?

I want to link some passwordless SSH logins to some screen sessions, so that anytime a window is opened in the screen session the ssh-agent is inherited, but whenever I open a new window in screen, ...
  • 6,847
0 votes
2 answers
55 views

Why I can open serial via screen but cannot open via minicom?

I have an arduino communication via Serial port at /dev/ttyACM0 and I can open it via screen: $ screen /dev/ttyACM0 115200 But for some reason I have no privileges to open it via minicom: $ minicom /...
0 votes
1 answer
25 views

No GNU screen sockets found after SSH logout [Steam Deck]

I am unable to use screen or tmux to keep a process running after a logout. Usually on my Linux servers I can use GNU screen to keep my process running after a logout but on Valve's Steam Deck which ...
1 vote
0 answers
16 views

Dual monitor with different screen resoultion

I have bought a secondary monitor for my laptop its 18-inch monitor with a resolution of 1366x7688. My Laptop is 15-inch monitor with a screen resolution of 1920 x 1080. I am using a pop os on my ...
0 votes
1 answer
33 views

Using GNU Screen on Kali Linux displays not expected

When I used screen and splited vertically, right session cursor appeared the picture above. How can I fix this? The procedure I took was I typed screen on the left session which is bash terminal I ...
1 vote
1 answer
85 views

Dual Booted Arch Linux | Windows 11 won't POST

recently, I started messing around with Arch Linux and was able to get it running dual-booted with Windows 11, running GRUB as the bootloader. After doing this, I've been fine for pretty much a week ...
  • 11
1 vote
1 answer
46 views

How to know if I am in a screen of a screen?

I know how to see if I am in a screen: I have made an alias alias inscreen = 'echo $STY' . But earlier today, I accidently type screen inside a screen without noticing it and in some way it made me ...
  • 991
1 vote
1 answer
88 views

How to figure out what process or event is waking up laptop from `xset dpms force off`

I have a laptop where I tried xscreensaver auto blanking screen after 1 minute of idle time and even though everything seems idle it doesn't blank the screen. So then I ran this command to blank the ...
0 votes
0 answers
15 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 ...
  • 2,179
0 votes
1 answer
359 views

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

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 ...
  • 2,179
0 votes
0 answers
31 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 ...
0 votes
0 answers
32 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 ...
0 votes
0 answers
33 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 ...
0 votes
0 answers
192 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 ...
  • 1
1 vote
0 answers
232 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 ...
0 votes
0 answers
72 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 ...
1 vote
0 answers
70 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 ...
0 votes
1 answer
78 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 ...
0 votes
0 answers
214 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. ...
  • 103
0 votes
0 answers
36 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 ...
  • 101
0 votes
0 answers
14 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 ...
0 votes
1 answer
118 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 ...
1 vote
1 answer
187 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 ...
  • 1,035
1 vote
1 answer
133 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
1 answer
148 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
1 vote
0 answers
40 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 ...
  • 145
1 vote
2 answers
716 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
0 answers
36 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
0 answers
115 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 ...
  • 252
0 votes
0 answers
36 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 (...
  • 1,096
0 votes
0 answers
48 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
1 answer
453 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 ...
  • 2,179
1 vote
0 answers
53 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
1 answer
100 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
0 answers
32 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
1 answer
164 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
0 answers
69 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
1 answer
132 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 ...
  • 1
0 votes
0 answers
60 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
0 answers
46 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 ...
  • 417
0 votes
0 answers
47 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
0 answers
122 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 ...
  • 560
0 votes
1 answer
167 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 ...
  • 111
1 vote
1 answer
163 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
0 answers
204 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 ...
7 votes
1 answer
1k 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
1 answer
133 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 "...
1 vote
0 answers
78 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
1 answer
76 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
1 answer
111 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 ...
  • 2,179

1
2 3 4 5
19