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
1answer
16 views

vim is showing strange behavior in bashscript

#!/bin/sh action() { screen -X stuff "xdotool key Ctrl+a $1"$(echo '\015') } action bar screen action 0 action Tab action 1 action S screen action Tab action 2 action Tab vim #action Tab #...
0
votes
1answer
39 views

Using terminal escape-sequences within GNU screen

I have a ruby terminal script that I would like to print out hyperlinks. I achieve that like so: puts("\e]8;;https://example.com\aThis is a link\e]8;;\a") This works perfectly fine in a "normal" ...
0
votes
2answers
37 views

How to safely escape a variable string (user input) in bash?

I have a very simple chat-like tool that runs within a GNU screen session. The screen window is split, the top part is running tail -f file.txt and the bottom part is running a script with the ...
0
votes
0answers
9 views

screen -md bash -c'python3.6' : it does not work. why?

screen -md bash -c'python3.6' : it does not work. why? no sockets found inj /var/run/screen/S-root. one time I did it and it worked. when I cleared it because there were two sockets and it disrupted ...
0
votes
0answers
20 views

GNU screen is very slow when it opens new window

I'm using Ubuntu 18.04.4 LTS and GNU screen version 4.06.02 Whenever the GNU screen opens a new window, it takes 5~6 seconds which is really annoying. I have cleared .screenrc, but it still has same ...
0
votes
1answer
15 views

Miss-use of screen parameter -X with two values

What does 'stuff' means in the example in answer from How to run a program in a screen, redirect all output to a file and detach, because the command is after in the $'' area. screen -S workspace -X ...
0
votes
0answers
40 views

Pop OS gray screen after reboot

I installed pop os on my intel i5 8300h cpu and nvidia gtx 1050 4g gpu laptop. After I installed it and did the first reboot it worked fine. I then proceeded to download and install JDK 1.8 and after ...
0
votes
0answers
22 views

Determine the shell from which screen reattach was called

I'm trying to determine whether a command I'm running is within an SSH session. Usually this works fine by checking for $SSH_CONNECTION or walking the process tree and looking for sshd. However, if I ...
1
vote
1answer
34 views

How to force ssh agent forwarding to continue in screen after you disconnect?

I want to connect to a host from which I will run ansible playbook using screen. Using screen allows me to have the playbook finish in case my ssh connection gets interrupted or terminated. So far no ...
0
votes
1answer
33 views

Ctrl+A, c doesn't create a new window

It just won't work or create a new window. I do Ctrl+A, c in a screen session. Is that it? It just doesn't do anything. All other commands work...
0
votes
0answers
24 views

Ways to avoid accidental Scroll-Lock

I am running R overnight computations on linux machine and what happens from time to time is that I came in the morning only to find out that the computation was stuck on Scroll-Lock (it probably ...
0
votes
0answers
40 views

Automatically login my account with root access [duplicate]

Hello I want to auto login my root account at the start of GNU debian 10 buster is it possible? without asking for login and password? Debian 10 Login
0
votes
1answer
21 views

Work in a remote terminal with Terminator

I have Windows Subsystem for Linux and I would like to be able to keep some commands running even if my computer is sleeping. I have been told that one way is to work in a remote terminal. I have been ...
0
votes
1answer
16 views

In GNU Screen, how to tell how many “multi display mode” connections you have?

screen -ls does not seem to indicate how many connections I have using screen -x (multi display mode). Example: screen # create first screen screen -ls screen -x # attach to first screen from a ...
0
votes
1answer
20 views

cannot find screen session I detached from

I am running a program on Unix server and I am mindful that I detached the screen and logged out of the server. Later I ssh'd back in and tried to reattach but I just cannot find my screen. In fact ...
0
votes
2answers
110 views

Problem setting up systemd service to run screen at reboot

I have a remote server running CentOS 7 I can only access by SSH. I want two java servers running on them at all times, even after ISP does reboots etc. S So I have tried to make a systemd service ...
0
votes
0answers
21 views

screen doesn't work in MobaXTerm but works in Cygwin

I have Cygwin installed. MobaXTerm, which has it's own (separate) custom version of cygwin, in Cygwin native screen works just fine. But in MobaXTerm I have the same problem as in this question: GNU ...
0
votes
1answer
104 views

Attaching from inside of screen? in screen session

I had a couple of session running on a screen session There are screens on: 5073 (Attached) 1865 (Attached) 2 Sockets in /run/screen/S-user I have tried to use 1865 by using screen -x 1865 The ...
2
votes
0answers
25 views

bash edit-and-execute-command shortcut under screen

How can I reconfigure screen's keybinding C-x (lock the screen, useless for me) so it doesn't mask bash's edit-and-execute-command bound to C-x C-e?
0
votes
0answers
31 views

Is it possible to hide the $ (dollar) in screen's hardstatus?

This is my hardstatus line: hardstatus alwayslastline "%{=}%{b rw}%{-b gW}%u %-Lw%{= Gk}%50> %n %t %{-}%+Lw%<" Which results in the following when not the active window: Or the following when ...
0
votes
0answers
14 views

Linux screen send command to wrong screen session

I have two screen session(eg: A & B ) for GSM modem, However, I am facing a problem where I sent AT command to both screens but I have no idea why the command that was supposed to appear in A did ...
0
votes
0answers
28 views

Debian 10 Live remove gnu start-up beep

When I select the USB in the boot selection I get a really loud beep sound and I couldn't find how to remove it. I've tried looking for the ^G in menu.cfg but at least in my version I couldn't find ...
0
votes
0answers
27 views

Make GNU Screen auto-detach if ssh session dies

I generally train machine learning models on remote servers in a GNU screen session living in an ssh session. Sometimes, usually when I unplug my computer from ethernet and it switches to wireless, I ...
0
votes
0answers
81 views

linux mint screen freeze on Oracle VM Virtualbox

First of all, I am a complete beginner in Linux. I installed Oracle VM Virtualbox on Windows 10 then Linux Mint 19.3 using Cinnamon to run a postgresql server and loaded a 3 million lines database. ...
0
votes
1answer
29 views

How do we terminate screen sessions based on their attached or detached properties or their IDs?

The problem: We accidentally created close to 80 screens while running an experiment. We could terminate them one by one using their IDs. But, is there a way to end them all using a script or a ...
0
votes
0answers
18 views

setup screen session as IDE on shell

I would like to write a script that uses screen to automatically create a few windows within which particular commands will be executed. Think of it like an IDE on the shell. Now I know that I can ...
2
votes
0answers
47 views

screen inside systemd wants 777 permissions on /run/screen but 775 outside

I am trying to run an application as a systemd service inside a screen container. When trying to start the service it fails with the error message: screen[11648]: Directory '/run/screen' must have ...
0
votes
2answers
71 views

how to implement a wait until prompt appears before exection of cmds?

How can I wait until a shell prompt appears before further commands get executed (in a bash script e.g?) on some hosts I can do ssh user@host echo "test"; and it would login, and when ready execute ...
2
votes
1answer
118 views

How do I find what process is running in a particular GNU screen window?

Problem I need to find what process is running on a particular window in screen (in a reasonable amount of time). Scenario I need to use the Session Name and Window Title to find the process ...
2
votes
1answer
78 views

Will the command `script /dev/null` stop or affect the running applications and server? [duplicate]

I can login to the server terminal with username and password. But I can't run the screen command. It says Must be connected to a terminal while I ran this screen -R newNodeServer. I found an answer ...
0
votes
1answer
36 views

screen -ls no longer displays session start date/time?

This is how the output of screen -ls looks like for many years on one older Debian machine: artax:~> screen -ls There are screens on: 46785.pts-6.artax (08/26/2019 04:41:05 AM) ...
1
vote
1answer
60 views

Can you run vim (or another editor) in two shells at once on a single file, in a coordinated way?

I am interested in having a single file open with vim in two shells at once. The use case I have in mind is two windows of gnu screen running on a tty. The catch is that I would like the instances of ...
1
vote
0answers
325 views

How do you unsplit all split panes in tmux?

In short, I'm looking for the tmux equivalent to the gnu screen 'only' command (Controla, Q). In gnu screen I will often split the window any number of times, then when I'm done and want to go back ...
2
votes
1answer
105 views

How to write scripts that create multiple terminal panes, like tmux?

I'd like to write some scripts that would open multiple terminal panes in a single window, much like tmux or screen. I personally am well versed in tmux, and have used it for years, but other ...
0
votes
1answer
39 views

screen -D -R … If necessary detach and logout remotely - what is the purpose of “logout remotely” here?

My current use case passed to me on the job of screen usage is ssh to server, su to technical user account, then screen -RD. When ssh session is automatically lost due to timeout, I repeat the steps ...
3
votes
2answers
215 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
279 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
35 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 ...
1
vote
0answers
57 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
66 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
12 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
1answer
59 views

Display full command on GNU screen with bash in title, and interact properly with Vim buffers

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
43 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
144 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
29 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
999 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
17 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
25 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
329 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
75 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 ...

1
2 3 4 5
17