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
16 views

gnu screen frozen sessions

I have frequently had gnu screen sessions freeze (no keyboard input is accepted) and become unrecoverable. This usually happens when typing fast or interrupting a task. However, the screen itself ...
  • 101
0 votes
0 answers
30 views

How to make tmux detach when exiting ssh by closing terminal?

Trying to start using tmux instead of screen in my raspberry pi, due to screen's weird problems with colors. But not really understanding how to make tmux detach automatically. I used to use ssh me@my-...
0 votes
0 answers
21 views

Can I avoid the screen sessions to change the title of the terminal?

I'm using zsh and Oh-my-Zsh Every time I run a command the title of my terminal changes to the latest one, and I want to keep that behavior, but when I create a 'screen' session and I want to be able ...
2 votes
0 answers
26 views

How to systematically troubleshoot a broken gnu-screen installation?

I recently started to work in a shared Linux cluster that a version of gnu-screen that I consider unacceptably old (4.01, from 2006). I was not able to convince the system's administrators to install ...
  • 14.2k
0 votes
0 answers
26 views

Screen is definitely running but I cannot find the screen session

I would just like to preface to say I'm an absolute beginner so maybe the solution is easy. I have a python script which writes some data to a csv file, and I want to run it on a remote server. So, ...
0 votes
0 answers
23 views

shell script not running screen session with cron tab

I'm running a Minecraft Bedrock server for my kids on an Almalinux VPS. It's not exactly supported but it runs. It shuts down about twice a day. I'm trying to automate the restarting of the server. ...
  • 111
0 votes
0 answers
3 views

How can I make screen stay in sync when attached multiple times?

I attached one screen session to multiple terminals, and I switched screen windows. I expected that the same window would be shown on all of the terminals, but it only switched on the terminal I was ...
  • 323
0 votes
0 answers
54 views

xrandr --rotate inverted is making a kind of mirror effect

I use a script to setup all my screen when I plug my laptop on my dock xrandr --output eDP1 --off xrandr --output DVI-I-2-2 --mode 1920x1080 --pos 0x0 --rotate inverted xrandr --output DP1 --mode ...
  • 11
0 votes
0 answers
31 views

How can I connect to a serial device, log output to a file and append a timestamp to each line?

OS: Debian 11 amd64 I cannot run in detached mode. I added the following to /etc/screenrc: #Turn timestamping and set delay deflog on logfile "/home/debian/Documents/logs-log.%Y%m%d.log" ...
1 vote
0 answers
29 views

Probe the output of "screen" every 30 minutes

I have a program running in a "screen" session. It displays one line every 5 seconds to the console. I would like to "probe" this output twice every hour and initiate another ...
  • 219
2 votes
1 answer
68 views

How to log binary data with GNU screen

I am using GNU screen to open a serial port and log incoming binary data to a file. The command I use is: screen -S mySession -L -Logfile data_out /dev/ttyUSB0 115200, cs8 At some point the recording ...
  • 121
1 vote
1 answer
29 views

execute a command by screen in another user

I'm trying to run a command on screen from another user, but I'm having trouble. this is the command line: sudo -u user123 screen -A -m -d -L screenlog.0 -S test123 ./my_program. This is how I'm ...
1 vote
0 answers
208 views

How to save screen output in a file?

I am running a python script within a screen session for hours which is printing messages on the terminal. I want all that output in a file for debugging purpose. How do I it Just to clear, the screen ...
  • 123
0 votes
1 answer
43 views

Mistakenly started a long running task on an ssh shell

I understand that a long-running job on a server should be started with nohup/screen/tmux. But sometimes by mistake, I will start a job w/o realizing how long it would take. For example, I recently ...
  • 436
1 vote
2 answers
121 views

How to start a screen with crontab

sudo Crontab -e 15 0 * * 1-5 /usr/bin/screen -S wake_up -d -m /home/pi/auto/wake_up.py But at 00:15 there is no screen started... This command: (worked in terminal) screen -S wake_up -d -m /home/pi/...
  • 13
0 votes
0 answers
15 views

vim not properly sequencing key strokes

I am having an issue with vim after installing a new system (I mention that because it may be an issue specific to a recent update in vim, said new system is Ubuntu 22.04). Key strokes are not ...
  • 655
0 votes
0 answers
70 views

slow command output scrolling in xterm + screen

Expected behaviour: Output of ls /* whizzes by very quick. Actual Behaviour: $ time ls /* ... real 0m21.003s user 0m0.082s sys 0m0.095s It takes 21 seconds for this command to complete. The ...
1 vote
0 answers
58 views

Use altscreen like vim with screen with Ubuntu XTerm

When I exit a screen, I want to be able to return to the terminal looking as I left it. But right now, all I can do is have it clear the screen and put the terminal at the top or the bottom through ...
  • 123
2 votes
0 answers
31 views

Screen issue when using vim

When I launch vim in a window of gnu screen, it shows the file as if I had inserted two 'z's at the initial cursor position, but the file is in fact correct and these 'z's just get over written the ...
  • 655
0 votes
0 answers
14 views

Linux screen program to override the terminal's logical rows when reattaching to running screen?

I'm using SecureCRT terminal program in Linux, and it has this setting called "Logical rows", and it's currently set to 58. My defscrollback is set to 200000 in ~/.screenrc file. I can use ...
0 votes
0 answers
160 views

How to create new screen, activate the environment and run python script in crontab

I want to run python script after creating screen and activating the environment in crontab. In linux, I did the following comments: 1. screen -S test inside the screen 2. cd /home/folder 3. export ...
0 votes
2 answers
66 views

In GNU screen program, can you go back by n-number of lines, and scroll forward from there?

Once I'm in the Copy Mode, how do I go back 500 lines, so that I can start scrolling forward from there?
0 votes
1 answer
27 views

GNU screen: How to rename current window via shell commands?

I have an interactive shell (assume dash) running under a GNU screen session. Is it possible to rename the "current" window via commands issued to the interactive shell? If so, then how? By ...
  • 724
1 vote
1 answer
192 views

Unable to cross-compile GNU screen for ARM

I'm on Ubuntu, and trying to build GNU screen for an old ARM device running Busybox. I have a custom cross-compilation toolchain installed in /usr/local/toolchain. I downloaded screen 4.3.1 (from 7 ...
0 votes
0 answers
27 views

Is it possible to configure GNU screen for wrapping the screen titles?

When entering the windowlist selection (ctrl-a " by default) we get a list of screens with their numbers and titles for selection: Num Name 0 The first screen 1 Another screen with a ...
  • 281
0 votes
0 answers
218 views

Laptop screen won't turn on unless I plug in external monitors (Ubuntu / NVIDIA)

When I installed my Ubuntu 20.04.4 LTS I had it connected to 2 external monitors (at the time of installation). Now every time I reboot my computer, my laptop screen is off. I need to connect it to my ...
0 votes
1 answer
18 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, ...
  • 7,021
0 votes
2 answers
571 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
75 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
21 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
49 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
233 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
90 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 ...
  • 1,057
2 votes
1 answer
217 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
21 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,211
1 vote
1 answer
2k 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,211
0 votes
0 answers
81 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
103 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
1 answer
497 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
2 answers
513 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
100 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 ...
2 votes
0 answers
362 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
161 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
540 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
52 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
1 answer
341 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
525 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
265 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
275 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
2 3 4 5
19