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

Invoking "screen" to run 2 programs side by side

The screen utility's man page is confusing as regards running screen to run two programs at once. Is there a simple, clear answer to the following question? How can I start two programs from the ...
ppppppp2's user avatar
1 vote
1 answer
113 views

Best practice to give more IQ to screen about the actually running task

If I check in screen the the currently running tasks (ctrl/a + "), I get this: Num Name ...
peterh's user avatar
  • 9,691
2 votes
1 answer
40 views

Configure screen to have multiuser support

Following up on Sharing a terminal with multiple users (with screen or otherwise) Same as the first comment, my screen complains about needing suid root, and sudo chmod u+s /usr/bin/screen fixes that ...
xpt's user avatar
  • 1,356
0 votes
0 answers
17 views

Problem with screen autorotation - systemd hwdb

I want to get my Spectre x360 screen rotation to work. iio-sensor-proxy correctly find the normal orientation, but when I rotate the laptop, it doesn't register any movement. I found somewhere that ...
enrico223's user avatar
0 votes
1 answer
72 views

How to launch a screen session and run an application with a specified terminal size

I'm trying to use an old application that has a fixed screen size and really can't adapt to a different screen size. It looks like the screen command should be able to do this, but I can't figure out ...
Joshua's user avatar
  • 1,765
0 votes
0 answers
29 views

Pasting multiline value in Screen GNU executes line by line

I am used to pasting snippets of code in ipython shell to test things out. When I copy and paste something like this print("A") print("B") print("C") in ipython shell, ...
Moeed Huda's user avatar
1 vote
0 answers
39 views

Parameters OK at startup but problems when logging back

When I start the computer, everything works fine. But if I leave the computer, then when I log back to my session, I sometimes have 1 or 2 or 3 of those weird behaviors (not all, and not always, ...
Nicolas's user avatar
  • 11
0 votes
2 answers
32 views

Long list cut off and requires piping to more. Occurs only with screen sessions

When performing a long list where there is a lot of files, the output is cut off and requires piping to more. It happens when I am logged into a screen session. What settings needs to changed for ...
supmethods's user avatar
0 votes
0 answers
41 views

Log the output of a process running as a SystemD service with screen

I am running a minecraft server as a systemd service with the following service script Description=MC Server: %i After=network.target [Service] WorkingDirectory=/opt/minecraft/%i User=minecraft ...
AcademicCoder's user avatar
0 votes
0 answers
37 views

Installing screen 4.9.0 on a Raspberry Pi

I am working on a script which requires the terminal emulator program “screen” to work. Unfortunately, version 4.8.0 which is the only one I can by default download easily via sudo apt-get install ...
Kuba0040's user avatar
0 votes
1 answer
77 views

What's the difference between "-dm" and "-Dm" in GNU Screen?

The GNU Screen manual says: `-d -m' Start `screen' in _detached mode. This creates a new session but doesn't attach to it. This is useful for system startup scripts. ...
Sebastian Carlos's user avatar
0 votes
1 answer
25 views

How to make GNU screen create new window on same path under running process (ex: top)

I added my .screenrc below line to create new window on same path. bind , stuff "screen^M" #send command 'screen' to current screen session It creates new window on current path well. ...
OfusJK's user avatar
  • 101
15 votes
1 answer
908 views

Running GNU screen through SSH, the shell is not a login shell?

I'm using screen (the problematically named terminal session manager) on a remote system accessed over SSH - to run long running processes and such. I have eventually started using a command to attach ...
Guss's user avatar
  • 12.4k
1 vote
2 answers
259 views

Does any terminal multiplexer (screen, tmux, zellij) support job suspension (Ctrl-Z) in Bash?

As far as I've seen, pressing Ctrl-Z on any terminal multiplexer, or trying to start them in the background, does nothing or crashes. I know that, in a sense, terminal multiplexers are a "...
Sebastian Carlos's user avatar
0 votes
0 answers
30 views

Screen session inside of chroot does not show console output

I have a chroot jail set up for a minecraft server to be managed via SSH by someone. The chroot is setup properly with proc and lib bind mounted to the / directory for the jail, chroot/usr folder ...
dylanface's user avatar
0 votes
1 answer
208 views

Kill command refuses to work when using 'screen' utility what am I doing wrong?

Ctrl+a+k does nothing I've tried to get it to work but nothing happens no confirmation prompt shows at the bottom I looked up the file .screenrc and I'm considering changing the keys but I would like ...
DudlyDog's user avatar
1 vote
1 answer
270 views

How to spawn a user screen in a docker container?

runsvdir: UNIX init scheme with service supervision from runit is a nice tool to re-run some service(s) if it dies. It monitor a directory for changes, inotify like. It execute scripts in directories ...
Mévatlavé Kraspek's user avatar
2 votes
1 answer
73 views

zsh gnu-screen tab completion for `-x` flag similar to `-ls`

In bash, when I type screen -x and press tab twice, I get a list of all the running sessions. In zsh, when I type screen -ls and press tab twice, I get a list of all the running sessions and can tab ...
Daniel F's user avatar
  • 847
0 votes
1 answer
170 views

Checking if a script is running in the screen remotely

I want to check whether the script test.sh is running or not in the screen(GNU screen) named testscreen. Need to do this job for many servers, so, want to do through ssh remotely. for serverid in {1.....
Hardguy's user avatar
  • 49
1 vote
1 answer
75 views

screen -t <titlename> , does not set screen title properly

I setup $HOME/root/.screenrc with caption always "%3n %t%? @%u%?%? [%h]%?%=%c" This is supposed to show the title at the bottom When I launch a new screen with screen -t testtitle I see a ...
Greg Long's user avatar
1 vote
0 answers
30 views

How do I fix screen when I am inside screen running ptpython and its messed up due to autocomplete probably?

So, I am running this command os.system(f"screen -S Uploader -d -m bash -c 'bash uploader.sh 2>&1 | tee uploader_log'"). Uploader.sh in turns runs a python script that was displaying ...
Machinexa's user avatar
  • 123
0 votes
1 answer
1k views

How to get the logs of a process created with screen?

I have a GO application that log text to the console every 10 seconds, I run the application with the command below to keep it running behind the scenes $ screen -d -m go run start I can watch my ...
Pablo Salazar's user avatar
1 vote
0 answers
41 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 ...
keflavich's user avatar
  • 111
0 votes
0 answers
164 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-...
djfrickert's user avatar
0 votes
0 answers
62 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 ...
rugobal's user avatar
2 votes
0 answers
69 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 ...
kjo's user avatar
  • 15k
0 votes
0 answers
176 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, ...
artemis's user avatar
0 votes
0 answers
162 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. ...
Jason's user avatar
  • 111
0 votes
0 answers
13 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 ...
aswine's user avatar
  • 323
0 votes
0 answers
107 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" ...
Wilhelm de Fheur Gorm's user avatar
1 vote
0 answers
32 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 ...
SEU's user avatar
  • 219
2 votes
1 answer
216 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 ...
NickG's user avatar
  • 121
1 vote
1 answer
93 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 ...
Santiago Martinez's user avatar
1 vote
0 answers
510 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 ...
Volatil3's user avatar
  • 123
0 votes
1 answer
65 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 ...
rivu's user avatar
  • 436
1 vote
2 answers
303 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/...
JOC0N's user avatar
  • 13
0 votes
0 answers
143 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 ...
troubleshoot's user avatar
1 vote
0 answers
105 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 ...
Jeff's user avatar
  • 123
2 votes
0 answers
49 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 ...
Kyle's user avatar
  • 655
0 votes
2 answers
195 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?
dinan5m3's user avatar
0 votes
1 answer
71 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 ...
therealneil's user avatar
1 vote
1 answer
347 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 ...
jerkstorecalled's user avatar
0 votes
0 answers
456 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 ...
Martin Zeltin's user avatar
0 votes
1 answer
67 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, ...
vfclists's user avatar
  • 7,391
1 vote
2 answers
2k 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 /...
Dimitrios Desyllas's user avatar
0 votes
1 answer
113 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 ...
acedogblast's user avatar
1 vote
0 answers
33 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 ...
Gift Brightson's user avatar
0 votes
1 answer
129 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 ...
meBe's user avatar
  • 1
1 vote
1 answer
257 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 ...
12jikan's user avatar
  • 11
1 vote
1 answer
271 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 ...
Rick's user avatar
  • 1,147

1
2 3 4 5
19