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.
943
questions
0
votes
0
answers
10
views
gnu screen how log windows into different files
Have a few screen sessions for different projects.
Each session has a few windows.
I am trying to log each window in a session into different files.
I made a cron job that updates log file names daily....
2
votes
0
answers
68
views
Why does pasting something with angle brackets into GNU Screen not work in Alacritty?
pasting this into screen
wg pubkey < ~/.ssh/wireguard.t520.private.key > ~/.ssh/wireguard.t520.public.key
.. results in this:
~/.ssh/wireguard.t520.private.key > ~/.ssh/wireguard.t520.public....
1
vote
1
answer
75
views
How to add delay to my terminal?
I like the experience that I get from using the terminal on a remote device where there is a visible lag between what I type and what happens on screen, because it forces me to trust the actions I'm ...
0
votes
0
answers
11
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"
, ...
-1
votes
3
answers
54
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 ...
0
votes
0
answers
22
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 ...
1
vote
0
answers
47
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 ...
1
vote
1
answer
56
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 ...
-1
votes
2
answers
263
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 ...
1
vote
0
answers
61
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 - ...
1
vote
0
answers
120
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 ...
0
votes
0
answers
33
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 ...
1
vote
1
answer
120
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 ...
2
votes
1
answer
252
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 ...
0
votes
0
answers
61
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 ...
0
votes
1
answer
675
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 ...
1
vote
0
answers
42
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, ...
0
votes
2
answers
40
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 ...
0
votes
0
answers
77
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
...
0
votes
0
answers
107
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 ...
0
votes
1
answer
136
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.
...
0
votes
1
answer
37
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. ...
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 ...
1
vote
2
answers
573
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 "...
0
votes
1
answer
303
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 ...
1
vote
1
answer
426
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 ...
2
votes
1
answer
95
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 ...
0
votes
1
answer
298
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.....
1
vote
1
answer
174
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 ...
1
vote
0
answers
36
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 ...
1
vote
1
answer
7k
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 ...
1
vote
1
answer
115
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 ...
2
votes
0
answers
126
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 ...
0
votes
0
answers
234
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. ...
1
vote
0
answers
34
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 ...
2
votes
1
answer
369
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 ...
1
vote
1
answer
221
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
818
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 ...
0
votes
1
answer
98
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 ...
1
vote
2
answers
645
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/...
0
votes
0
answers
208
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
139
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 ...
2
votes
0
answers
70
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 ...
0
votes
2
answers
265
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
146
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 ...
1
vote
1
answer
566
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
591
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
104
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, ...
1
vote
2
answers
3k
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
153
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 ...