Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
3
votes
1answer
32 views

Copy a file over serial connection

So what I am trying to achieve seems quite simple, but I can not seem to find a way to do it without using external utilities or not pre-installed libraries. I have an embedded system running Linux (...
3
votes
2answers
32 views

Save past GNU screen output to a file

I have had a GNU screen session running for days. I find myself in the situation that I need to save the terminal contents (which I can scroll up to see) into a file. Is this possible? I estimate it ...
1
vote
0answers
21 views

New LCD screen with random black screen

I bought a new LCD screen and my computer's screen goes black for 1 second randomly while using Linux distributions. I was using dual boot having windows 8.1 and Ubuntu. Windows 8.1 worked without any ...
0
votes
0answers
19 views

How to scale two displays differently and rotate one of them?

I have two screens: 4K, HDMI-0 1680x1050, DVI-1 HDMI-0 is left of DVI-1. DVI-1 is rotated physically 90 degrees clockwise ( --rotate left will make it rotate correctly to fit the physical rotation)....
2
votes
1answer
54 views

Restart shell script if not printing

I have a shell script that just calls a Python file in loop e.g.: for i in $(seq $start_index $end_index) do python my_script.py done The Python process halts when it is not able to generate ...
0
votes
0answers
5 views

Tracking attached windows on GNU screen

Is there a concise way to see which windows are attached in GNU screen? I'm using screen to handle my terminals on a single session so I can easily switch between all open windows. Hence, I want my ...
0
votes
0answers
23 views

Display full command on GNU screen with bash in title

There are multiple questions about this sprinkled around the network, but what I could find has one of two things in common: They give the manual solution, which only prints the current running ...
1
vote
1answer
27 views

How can I execute an alias from a shell defined in .screenrc?

I have some aliases setup in ~/.bash_aliases that I want to execute in .screenrc chdir ~/projects/profullstack/edcast/edc-web screen -t SHELL 0 edc-web-local chdir ~/projects/profullstack/...
0
votes
1answer
53 views

Read output from screen

I want to build an Minecraft Webinterface using a NodeJs backend server which communicates with a Bash Shell Script on Debian 9. 1: I create a new Minecraft Server using screen -S server_name java -...
1
vote
1answer
21 views

Screen signal main terminal that it's finished and closed

Referring to here about running script in screen session in the background and closes itself. screen -dmS myscreen bash -c 'command1; command2;' How can we signal the main terminal that the screen ...
-3
votes
1answer
192 views

kali linux stuck on gnome display manager [closed]

Everytime I start Kali linux, it boots nominally, until it reaches "[ OK ] Started GNOME Display Manager" where the Konsole gets stuck How to fix ?
0
votes
1answer
14 views

Send very long commands to detached screen results in “ERROR remote control too long”

I have long commands to send to a detached screen. I used : screen -x screen-name -p 1 -X stuff 'mycommand\n' As inspired by this related post. It works, but if mycommand is very long I get the ...
1
vote
0answers
23 views

How does gnu screen re-index the window id after the kill window, ensuring that the window id is always incremented continuously?

After gnu screen kills a window, the id of the following window is discontinuous. Chrome's tabs use Ctrl + 1 through Ctrl + 8 to switch, digit is the current actual order of the tabs, not affected by ...
2
votes
0answers
50 views

Python open screen and execute inside screen

I have a py script S1 that I would need to execute inside a screen. On an end-user point of view, I would like them to just execute another python script S2, which will open a screen and execute the ...
2
votes
1answer
29 views

Setting up a screen session on system startup

I have a raspberry pi on which I'm running some services. I need to be able to ssh into the machine and monitor those services. Currently, what I do is I log in, run screen, then create three windows ...
5
votes
1answer
599 views

Using GNU screen, I get raw prompt with backslashes

When I use the screen program, the prompt doesn't get interpreted and is just the following: \u@\h:\w$ How can I correct this?
0
votes
1answer
30 views

Automatically paste commands in multiple processes of a screen session

I have several bunch of commands writen in bash contained in a text file, separated by \n\n and I would like to automatically paste each in given screen processes. For the sake of clarity, let's say ...
2
votes
2answers
47 views

How to 'repair' a GNU Screen session's terminal after spilling binary data onto stdout?

I suspect we've all done something similar to this: > gpg -d oops.tar.gz.gpg �@�����÷b�ʘ�K����L:EX��w�)܇�՘����5� ���#[�7��ﻳ@�Ǎ �n�Kr��Kyb��3�X���E�_?*A�wp��������DH���gМ�n�(�4- resulting in ...
0
votes
2answers
43 views

Is it possible to copy directories from a remote session, to the local machine?

I have been running my code within a screen session on a remote server. I want to move the output directories generated within this session on the remote server to my local server using SCP but I am ...
0
votes
1answer
28 views

In GNU Screen, what are benefits of using new windows under sessions than new sessions themselves?

As an example, let's say I want to run 3 projects, each having 2 scripts. Option 1: Create 3 sessions in GNU Screen and open 2 windows under each session to run the scripts. Option 2: Create 6 ...
0
votes
0answers
31 views

Why are rapid Ctrl-Space sequences sometimes handled differently by GNU screen than slow Ctrl-Space?

I have GNU screen configured to use Ctrl+Space as the escape character. This means that Ctrl+SpaceSpace will send a literal Ctrl+Space to the process in the window. Also, Ctrl+Space Ctrl+Space is the ...
0
votes
0answers
41 views

White screen after waking up from suspend - Ubuntu 18.04LTS

I have AMD CPU and AMD Radeon graphics. The screen remains white after waking up from suspend however processes in the background work like I can still log-in by keyboard and shut down the system by ...
1
vote
1answer
47 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
82 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
25 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 ...
4
votes
1answer
76 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
107 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
53 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
60 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
18 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
41 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 ...
0
votes
0answers
80 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
12 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
235 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
29 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
120 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
14 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
33 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
48 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
93 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
54 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
42 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
48 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
46 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
28 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
20 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
749 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
368 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 ...