Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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

How can I set escape character for GNU Screen, when created

Somehow, setting the escape character when creating a new screen, does not work. screen -e "^Bb" This does however work, if I attach to an existing screen. screen -dr -e "^Bb" , ...
Jason Hunter's user avatar
-1 votes
3 answers
51 views

"The rest of the line" How setup ssh client console to show all (/px aux) java process line to know the name of the java file?

I have 3 java process running on my host - i access the host by a ssh client. Some one of that process freezed and i need kill that pid process to re-start it I know the name of the file, but i dont ...
Felipe Braga Comonier's user avatar
0 votes
0 answers
12 views

Screen changer doesn't work

I'm using KDE Plasma on Archlinux. I can change, turn on and off screens from settings manually, and it works fine. But when I use the shortcut to start this app, the app doesn't work, It seems to do ...
SerchoD's user avatar
1 vote
0 answers
35 views

Is it possible for GNU screen to enforce a unique session name?

The default behavior of GNU screen is to prepend the process id to a session name to allow duplicate names to exist. For example, the following will produce three sessions of the same name, unique ...
Zhro's user avatar
  • 2,679
1 vote
1 answer
47 views

GNU screen copy paste breaks lines

I'm running a Armbian on a PI and operate it through a Serial USB TTL dongle. I'm running the following command to connect to the PI: screen /dev/tty.usbXXXX 115200 I can successully log in and run ...
IArchi's user avatar
  • 11
-1 votes
2 answers
120 views

How to make screen command use shell "bash" instead of shell "sh"?

Realized that my bash script in development needs thourough testing from line 1, line by line Started mate-terminal session Split screen vertically, left side emacs editing bash script, right side ...
futurewave's user avatar
1 vote
0 answers
49 views

Issue with screen command and ssh-tunnel

From 2018 I've been using custom tunnels from remote computers (RPi) and my desktop but lately I'm starting getting problems (regrettably random). This is the scenario: Remote computer (Raspberry Pi - ...
dstonek's user avatar
  • 199
1 vote
0 answers
71 views

Debian 11, 12 and Ubuntu 22.04 terminate screen root processes when started from console (tty) on logout but not Debian 10 nor Ubuntu 20.04

When starting processes due to screen via console, those get killed on logout. login: root password: *** then starting some command: screen -d -S sample -m bash -c '/hom/app/server start' After this ...
Tom Freudenberg's user avatar
0 votes
0 answers
31 views

I typed su <user> and my terminal didn't respond. Now I don't know how to exit, ctrl+D doesn't work

I didn't check if su was blocked so I directly typed su <user>, and then nothing happened except that it "loaded"... however, it didn't give me access to a new line, instead I'm stuck ...
christian ortiz's user avatar
1 vote
1 answer
118 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,786
2 votes
1 answer
137 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,614
0 votes
0 answers
35 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
454 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,893
0 votes
0 answers
39 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
41 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
38 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
66 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
54 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
109 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
32 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
14 votes
1 answer
1k 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.8k
1 vote
2 answers
492 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
79 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
277 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
391 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
85 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
  • 877
0 votes
1 answer
266 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
  • 59
1 vote
1 answer
139 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
32 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
1 vote
1 answer
5k 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
66 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
2 votes
0 answers
97 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
  • 15.5k
0 votes
0 answers
204 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
1 vote
0 answers
33 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
312 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
163 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
739 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
81 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
490 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
181 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
128 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
56 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
  • 665
0 votes
2 answers
240 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
109 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
458 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
539 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
96 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,551
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
137 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
36 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

1
2 3 4 5
19