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
1
vote
0answers
24 views

How to save command line screen output in Linux after running program?

I ran a program that has a good amount of command line output, and it ran on a screen in a ssh server. I referred to this post so that I can scroll through the screen and see the output, but there is ...
3
votes
2answers
47 views

How to configure GNU screen or tmux to reattach to the previous session without using command line arguments?

By launching GNU screen or tmux as the initial default shell (set with chsh, for instance), passing arguments seems not to be supported, such as "-d RR" for screen and "attach" for tmux. chsh's ...
0
votes
1answer
18 views

How to use existing terminal session to save output with ANSI escape code like `script` or `screen -L` do?

I run a python script on konsole to print long logging for few hours, then I realized I want to save its output with color, but it's too late to run either script or screen -L to save the output as ...
3
votes
1answer
55 views

How can I make screen go down a line AND start at the beginning when receiving only CR from a serial device?

I am connecting to a serial port using screen: screen /dev/cu.usbserial-A703XAOG. The device on the other end sends only a carriage return to separate lines. Screen only starts at the beginning of the ...
1
vote
1answer
26 views

Can gnu-screen periodically toggle between two virtual terminals?

I need a way to display two multiple running processes periodically on a system console so that I don't need to manually type commands to switch between the virtual terminals running them. So for ...
0
votes
0answers
87 views

Run a serial connection over SSH

EDIT: After some advice here and additional investigation here, the situation is now as follows: I have a serial device that takes input in batches of four bytes and outputs responses in batches of ...
0
votes
0answers
15 views

How to run LFTP in a bash script using screen so I can reconnect to the session later while it's running?

I'm having trouble figuring out the right syntax and approach to run a potentially long running LFTP command that is sync'ing files between servers using screen. I want to use screen as it allows me ...
1
vote
1answer
55 views

Make usual programs use the alternate screen

This has been annoying me for ages. Even though I use a modern terminal emulator and most CLI programs, such as less and vim, are able to use the alternate screen adequately (i.e. entering it on ...
1
vote
0answers
15 views

the easiest way to see a grid of many workspaces on the large screen

I have Mint/ubuntu and screen of 4K. is an extension to turn on 4 workspaces to be visible at once? alternatively any tool, which supports grid layout for ubuntu For example: windows are pinned/...
0
votes
1answer
26 views

Turn off GNU screen dynamic window titling for entire screen session

I found: GNU Screen window rename nuisance However, none of the answers there solve my problem and my situation is slightly different from the linked question. I work in a large infrastructure ...
1
vote
0answers
10 views

Login Loop Black Screen when opening terminal [closed]

I'm having a huge problem that is made of different small problems. I'm Caught in a login loop but when I call a terminal to fix the problem I end with a black screen asuming there is something wrong ...
0
votes
0answers
43 views

GNU screen doesn't work in Cygwin — directory must have mode 700

I installed Cygwin on Windows 10 and screen fails with $ screen Directory '/tmp/uscreens' must have mode 777. I couldn't change the permissions for whatever reason $ chmod -R 777 /tmp $ ls -hal /...
1
vote
0answers
11 views

Possible to use screen loopback to create virtual 300bps session?

I came across this answer here explaining how to set the bit rate in a screen session. The answer is applicable to serial connections. It came close to what I needed to do, but not quite. I'm ...
0
votes
1answer
89 views

Persistent screen session inside Docker container

I am trying to create a Docker container with screen session running some script. Dockerfile contains CMD screen -S session1 ./testLinux When I run it in detached mode it closes immediately, saying ...
0
votes
1answer
21 views

Screen keeps terminating when trying to console in to routers

I am having trouble with screen. It keeps terminating every time I try to console into my routers. eric@pop-os:~$ screen /dev/ttyUSB0 [screen is terminating] eric@pop-os:~$ screen /dev/ttyUSB0 [...
1
vote
0answers
36 views

Ubuntu 18.04 with Multi-touch screen can't single click

The problem I have is that my touchscreen registers 2-3 mouse clicks per second when I tap the screen. It continues registering clicks if you hold your finger down. Rather than producing a single ...
1
vote
1answer
12 views

GNU screen keeps changing window title on start & exit of vim

My status line in screen is: hardstatus alwayslastline "%{= Wk}%-Lw%50>%{= BW}%n%f* %t%{= Wk}%+Lw%<" This always shows a list of windows with their names. I have also bound C-a T to set this ...
0
votes
0answers
26 views

Screen goes off (black) until I suspend and resume the system, how can I run a command to reboot screen without suspend?

I have Linux mint 18.3 Sylvia My screen goes off (black) until I suspend and resume the system, While everything is working fine (keyboard mouse audio..etc) just the screen is black. so I thought ...
0
votes
1answer
30 views

Getting the last output from a stuck screen session

I have a very stuck screen session - I can see it in screen -ls, it shows as attached, but I can't detach it re-attach it, not even with "screen -D -RR". Trying the detach and re-attach in separate ...
0
votes
0answers
56 views

Got “Must be connected to a terminal” after the bash script run (screen -S screenName -d -m bash /root/RunServer.sh)

If I login to the Ubuntu 19.04 server via PuTTY ssh, I can just type the command screen -S screenName -d -m bash /root/RunServer.sh then everything works. But when the above command runs in the ...
0
votes
1answer
32 views

Linux start screen and run a java program and detach it?

I have the following script that should do the following: Stop screen "server" if exists Start screen "server" Run a java program and detach screen. However, when I firstly run the script, the ...
1
vote
1answer
35 views

screen logging - How to ommit interactive shell control characters and prompt?

One of my first questions. Please comment if further explanation or information is required or if the question is not like it's supposed to be here I'm using screen to automatically start servers (...
0
votes
1answer
29 views

Remote screen session

This is running me crazy: I want to use 4 screen windows (within the same session) in a remote server (GCloud) to process 4 subjects in a parallel way. Long story short: I first create a detached ...
2
votes
0answers
42 views

Redirect all keyboard input to a detached screen session

I'm trying to build a headless system using a Raspberry Pi; I have two programs runnning on it, one to catch all the input from a barcode reader (a simple keyboard emulation device) and one to display ...
1
vote
0answers
24 views

How to clear DISPLAY variable in GNU screen

Basically, i need to unset DISPLAY variable in screen if I run multiple commands like: screen -dmS name bash -c 'kodi; unset DISPLAY; emulationstation' I'm writing a little something that will ...
0
votes
1answer
18 views

running a terminal over PCMCIA serial port in unix

I'm currently doing a microcontroller project that requires a serial port, but for testing purposes, I require two serial ports and terminals working with both of them. My computer has one native ...
0
votes
0answers
412 views

Start a screen with minecraft server after restart?

I am trying to have a minecraft server auto start on a screen after the server reboot. Currently using CentOS 7. Here's my minecraft.service i put in systemd. [Unit] Description=Start Minecraft After=...
4
votes
2answers
336 views

sleep command using screen command is not displayed in ps

I'm running the sleep command in terminal using screen and in detached mode. Once the screen immediately returns, I'm running ps command to verify the sleep is running. $ screen -d -m 'sleep 2m' [raj@...
0
votes
1answer
39 views

Are processes within screen treated differently from foreground processes?

Assume I have a long running process, long_running_proc with a single TCP connection to host host.example.com. Is that process treated differently, by the OS or the shell, when it's run as a ...
21
votes
1answer
2k views

What does 'script /dev/null' do?

Every time I log into a VM with root, su into a user account, and try to use screen it throws an error: Cannot open your terminal '/dev/pts/0' - please check. A Stack Overflow post said I needed to ...
0
votes
1answer
21 views

^a etc when running screen

I'm used to keyboard shortcuts like ^a (go to the beginning of the line) in a terminal session. When I'm running GNU "screen" (so I can resume an ssh session after packing up my laptop), a bunch of ...
3
votes
1answer
92 views

Connected using screen over RS-232. How do I transfer a file to my local system?

I'm connected to a device over a serial cable and using screen I have full access to the remote system. How do I transfer an entire file(s) to my local system? Not just the contents of the file, I ...
1
vote
1answer
41 views

GNU Screen requires different permissions for chroot environment? /run/screen

I have my computer start secure shell in a chroot system at boot. (All the normal directories are bind mounted in the chroot system /run, /dev, /dev/pts, /sys, /proc). After logging in to the chroot ...
1
vote
1answer
42 views

Process ownership automatically changes to init process on GCP Ubuntu 18.04LTS

We recently moved our development infrastructure from our own old machines running Ubuntu 12.04 to Google Cloud instances running Ubuntu 18.04. Developers usually start some screens and run django ...
1
vote
0answers
92 views

How to Attach Screen Sessions that were Split

I am working with screen and I am having a hard time with reattaching sessions where I split the screen within one session. Is this even possible? I have tried searching for it on here and google ...
0
votes
0answers
25 views

How to create custom key binding for the paste command in GNU screen?

In screen, the keyboard shortcut ^a ^] runs the paste . command. I want to define an additional custom key binding for that command in .screenrc with the following line: bindkey "ñ" paste . In my ...
1
vote
1answer
37 views

Desktop environment that raises terminal with gnu-screen instead of starting new one

I want to start a gnu-screen session, in a terminal, from gnome. I wrote the following desktop file [Desktop Entry] Version=1.0 Name=Screen Comment=Use the command line Keywords=shell;prompt;command;...
0
votes
0answers
24 views

`screen` not creating log file when run inside tmux/byobu?

When we use screen command with -L option, it creates log files of the session with names like screelog.0, screenlog.1 and so on. These log files are created inside the directory in which the screen ...
0
votes
2answers
174 views

Screen session doesn't close after script has run

I write a bash file, which contains screen commands. This bash file is then called from a python script using subprocess. All works perfectly fine. However, the screen sessions don't close after the ...
1
vote
0answers
69 views

Detached GNU screen session unexpectedly killed upon terminal close

I am using GNU screen for years now on several servers with the same configuration and never ran into this strange problem: After connecting to the server via SSH I start screen (without options). ...
1
vote
1answer
69 views

Get a list of children process ids (PIDs) running in a screen session

How can I run a command that lists all PIDs of the processes running under a certain screen (suppose multiple bash processes are running, because I have opened multiple tabs)?. I found the following ...
0
votes
1answer
335 views

Can attaching to tmux sessions be password protected, similar to gnu screen?

I've been using gnu screen for many years, and I've been looking into switching to tmux. I can't figure out how to make tmux require a password when attaching to a session. In gnu screen, I use ...
1
vote
0answers
32 views

How to keep screen running after exiting the command that runs in it?

I have the task to start a detached screen session (e.g. when the system reboots) and then to be able to connect to it and interrupt/kill the running process without the screen to terminate. ...
11
votes
1answer
1k views

Prevent Logoff from Killing tmux Session

I have noticed that a logoff (log out) from my X user session will kill any tmux session I have initiated, even sessions I had run with sudo tmux and similar commands. I am sure that this formerly did ...
1
vote
1answer
77 views

Scripting “Screen” in Raspbian

I've read lot of different links such as: Run script in a screen https://askubuntu.com/questions/854721/creating-a-shell-script-for-use-with-screen which all seem to say the same thing. I've tried ...
1
vote
2answers
255 views

Disable Ctrl+C in GNU screen?

How can I disable the key combination Ctrl+C on GNU-screen? Actually I would have to get used to it, but I press Ctrl+C rather than Ctrl+A+D out of habit.
1
vote
1answer
71 views

Terminating a Screen session after running “screen -D -m”

I have a screen running with a number of sessions, and in one of them, I entered screen -D -m and now that session is just hung. I can't do an Escape, q, or Ctrl+C to terminate. Even after closing and ...
2
votes
1answer
76 views

Why doesn't `netstat` show Screen client but only Screen server process?

From https://unix.stackexchange.com/a/485290/674 Further down in the netstat output is UNIX sockets: Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State ...
0
votes
2answers
36 views

How can I find out the Screen server process?

Does GNU Screen have a server-client architecture model? Is each Screen session a Screen client process? Why can't I find out the Screen server process, but only its session processes i.e. ...
2
votes
0answers
707 views

How to have local echo on with `screen` command?

I tried screen /dev/ttyUSB1 9600,echo but I still don't see what I type.