Questions tagged [gnu-screen]

GNU Screen is a command line utility which allows the user to create multiple shell sessions on one connection. These sessions are decoupled from the primary connection and so maintain state for the user, even if the connection is dropped.

Filter by
Sorted by
Tagged with
0
votes
1answer
13 views

How to use tmux between local laptop and remote server

I am currently in a VPN using RStudio which is installed on my local desktop to do some analysis. However, to do analysis, I extract data from my database which is installed on a remote server. What I ...
0
votes
1answer
23 views

Start detached screen over SSH with bash command

I am attempting to start a screen session in detached mode over SSH that executes a bash command inside screen... #!/bin/bash set -e ssh jlroberts@10.0.0.202 "screen -wipe" sleep 1 ssh ...
0
votes
1answer
20 views

“Maximizing” a pane in gnu-screen

Similar to "Maximizing" a pane in tmux is there a way to maximize a pane using screen?
0
votes
1answer
10 views

How can I stop or interrupt an accidental gnu screen paste “ctrl-a ]”

I am using gnu screen (byobu really but it seems the keybinding was from screen) and was trying to enter scrollback mode with "ctrl-a [" but I accidentally did "ctrl-a ]" which ...
1
vote
0answers
69 views

Incorrect cyrillic symbols representation in the GNU screen program

I use screen program to run a game server on a VDS. Sometimes I need to see what happens in the game and open SSH session via Putty and then run screen -x ... as usual. Recently I faced with weird ...
0
votes
0answers
30 views

Run multiple commands on linux at once

I need to screen and node (in the screen session) multiple scripts (each script - 1 screen session) The thing is each time I have to do it manually, for example: screen -S screen1 node script1.js ctrl+...
0
votes
0answers
18 views

Linux WSL GNU-`screen -dmS` dies when attached and detached

I use a script ~/host-init.sh which is run by cron on boot. It doesn't matter what, how, when or where I run it, (sudo / export SCREENDIR=$HOME/.screen;). The screen process works fine. It doesn't ...
0
votes
0answers
18 views

Freezing of GNU screen when using backtick - proper setting up of backtick times

I'm using GNU Screen and its backtick command. I have set up a bash script, which queries the CPU usage and echoes it back. This is done by: a=$(top -bn 1 | sed -n 3p | tr -s ' ' | cut -d ' ' -f 8) ...
1
vote
0answers
25 views

Key caching in SSH forwarding

What I want to achieve is to connect to server A and execute a script that connects to multiple other servers (serially) and perform a task on each. While I can perform that task using ssh -A, the ...
0
votes
1answer
18 views

How to map the escape sequence of Gnu-screen to an arbitary key remapped with xmodmap?

so i remapped some keys using xmodmap, specifically i remapped one key to the ±-sign. I want to have this key as my escape for GNU screen. I tried adding the following lines in my .screenrc: escape ± ...
2
votes
0answers
15 views

GNU Screen 'ctrl+a w' doesn't show any information

I am using GNU screen and used Ctrl+a c to instantiate multiple windows. However, when I press Ctrl+a w to list the windows at the bottom of the screen, nothing happens. (I am logged into a Linux ...
0
votes
1answer
19 views

Saving Screen Region Configuration

I was wondering, as I couldn't find it in the man page, if there is a way for the linux screen command to remember the configuration of regions when you disconnect and reconnect. Basically if I run 4 ...
1
vote
1answer
89 views

Make ssh LocalCommand set GNU-screen window title only when used interactively?

Setup I run screen on a local machine and use different screen windows to connect to different hosts. It would be nice to change window names to the host names automatically during the ssh process. ...
0
votes
0answers
31 views

Reattaching a screen in a crontab to wait until the screen closes returns “Must be connected to a terminal.”

I use a bash script to backup a minecraft world, which is called from a crontab every day. Though the backups are made just fine, I've found an error message in the output: Must be connected to a ...
0
votes
0answers
73 views

quit qemu … inside screen inside tmux

I used too many levels of indirection and now I can't get out. I used Tmux from my jump host to get into the dev host. Then I used screen to keep track of what I'm doing on the dev host. Finally I ...
0
votes
0answers
52 views

Execute a command on screen termination

I have been using screen for a while, but the process I am running seems to terminate at times, closing the screen out. So I have to reopen the screen again. I was wondering if it was possible to ...
1
vote
1answer
55 views

Is there a way to see all output in PuTTy using screen?

I have a linux server that is connected to my ec2 instance and I'm trying to do some debugging when I'm in screen. The issue I'm facing is that sometimes I get big long error messages that fill up ...
0
votes
0answers
26 views

Linux Screen command passed to wrong screen

I have two screen session(eg: A & B ) for GSM modem, However, I am facing a problem where I sent AT commandscreen -S A -X stuff 'AT\r' to both screens(same port) but I have no idea why the command ...
0
votes
0answers
40 views

how to login to the console on an Arista switch from a MacBook?

A friend of mine very generously sent me a 10GB Arista switch for my home lab. It's a DCS-7148S. Out of the box, it's incredibly noisy. The fans are going flat out. Hopefully, it won't be that noisy ...
0
votes
0answers
11 views

GNU Screen how do I clear the stdout buffer while receiving?

if I cat a large file (or otherwise generate a lot of output, such as tail -f) it can take ages for it to complete the file on my screen. hitting ctrl-c to cancel doesn't have an immediate response; ...
1
vote
0answers
314 views

screen issue. Getpwuid can't identify your account

this is the result of the strace /screen I am trying to launch screen static binary. I have created /etc/passwd and /etc/group. When I did ls -la /etc/passwd /etc/group I didn't get any errors, but ...
1
vote
0answers
32 views

How to add colours to GNU Screen

This might seem like an odd/silly question(and I'm not entirely sure this is the right place to ask?), but I have some server programs running on a machine and I'd like multiple terminals to monitor ...
0
votes
1answer
43 views

Disable any non-user changes to screen window titles with zsh

I upgraded my shell to ZSH recently on OS X and one behavior is driving me nuts. I've tried a few suggested fixes and haven't figured it out yet, so I figured I'd try here. When I start a GNU screen ...
1
vote
1answer
39 views

screen - move cursor to beginning of line *in tcsh*

I am a screen noob. I also prefer to use tcsh. I cannot figure out the shortcut for getting to the beginning of the line (e.g. control-a). When I try to suggestion here: screen - move cursor to ...
0
votes
0answers
17 views

Replace a (GNU) screen with another process, like bash “exec”?

I love (GNU) screen. I always operate from within a screen. I launch it automatically from my .bashrc. Sometimes I need to SSH into one host to then jump from there to another (not directly ...
0
votes
1answer
109 views

Trying to run a game server as a service

I'm trying to use monit to check my game server and restart it if it fails. The monit part is fairly simple to check port 28960 but I'm struggling to run the start script (cod4.sh) if monit detects a ...
0
votes
1answer
71 views

Linux Screen window title keeps changing

Screen window titles keep getting changed to hostname: everytime I go to a new directory. Need to preserve the manual name changes of the windows. Here is all of the /etc/screenrc config. Please note ...
0
votes
0answers
38 views

Take output from a detached screen running a server application

I wish to fetch output from a screen running a Minecraft bedrock server, after executing list command to list online people on the server using screen -X stuff 'list\n' I wish to gain the output of ...
0
votes
1answer
778 views

Cannot run startx from GNU screen session

I would like to run startx from a screen session. This used to work until a few years back. It seems to have been disabled to prevent people from running their X servers via ssh. Errors: /usr/lib/...
0
votes
1answer
374 views

Load terminal from another window into current split pane in tmux

In GNU Screen, I can switch to any window number within a given split. For example: Enter screen to launch it. Press Ctrl + a c to create a new window. Now there are two windows: window 0 and window ...
0
votes
2answers
80 views

“for” loop inside a screen

I need to run the same command say 10k times and I don't need it to run in foreground. screen -dmS "ScreenName" for i in {1..10000}; do <command> arg$i; done doesn't work for me. How do I ...
1
vote
0answers
64 views

Some key bindings in `screen` do not work as expected

I recently installed screen for Raspbian Buster using bash and it doesn't seem to work completely. I am able to create a new window using Ctrl+a c and flip between the windows. I can see the windows ...
0
votes
1answer
34 views

Save screen state before rebooting my laptop

I love using gnu-screen and I'm always opening loads of windows inside it. The problem is that when I need to shutdown my laptop for whatever reason, I have to loose these windows and when I turn on ...
0
votes
1answer
173 views

How to configure .screenrc to bind backspace to ctrl-h?

I'm working with a device console that maps Control+H to delete a character, but would like to preserve my normal workflow of using the Delete key. Is there a configuration I can add to my ~/....
0
votes
1answer
377 views

Starting a command in a new screen session doesn't work

I want to execute a command in a new screen session (and detach from it) but I don't get it to work. I tried to start a process in a new screen session and detach from it with this: screen -d -m ...
1
vote
0answers
11 views

How to make gnu-screen String Escape “W” use my special format?

The default %W will get this format windowtitle windowname For example 0 zsh 1 zsh But i want to use this instead [0][zsh]
2
votes
1answer
206 views

Terminal escape sequences in GNU Screen

So I'm quite confused with the concept of escape sequences in a terminal (or terminal emulator to be more precise) and how they relate to the screen bindkey command. I was looking at some sample ....
4
votes
1answer
282 views

No scrollbar after starting a `gnu-screen` session in WSL

I am using Ubuntu 18.04 (WSL) on Windows 10. I can use the scrollbar with mouse or touchpad before starting a screen session. But, once I start a screen, I lose the scrollbar (gray out). What I did: ...
0
votes
0answers
19 views

How do I create a seperate user login management from a single user in linux?

I work in a company. My team has 15 members. All of share a single server. This is managed by our IT team. All of us have one login id/pw. We can do sudo operations on it. Since, people use screen/...
0
votes
1answer
29 views

Screen as a Service on Ubuntu 18.04

I have an application that occasionally closes due to some runtime error or DDOS attack. The application runs inside a section of the Screen, so I need to access the server and type the command screen ...
2
votes
1answer
1k views

How to get the “screen” utility to work on MobaXterm?

I got this error when I first tried to use the screen utility: $ screen Directory /tmp/uscreens/S-Wildcard must have mode 700. Oddly enough, I don't seem to get this error again; I get this ...
0
votes
1answer
49 views

“screen” is losing umask setting

I am using the screen tool quite a bit. Recently I discovered that the umask within screen is different from what I am setting in my .bashrc. $ screen -v Screen version 4.00.03 (FAU) 23-Oct-06 $ ...
0
votes
2answers
47 views

How can I create, using one command, a GNU session with 4 windows, each running different command?

I'm trying to make screen start in background every time I boot. I need to have at least 4 windows, each running different command automatically. How can I do that?
1
vote
1answer
324 views

How to create a screen and execute a sudo command

I need a script to create a screen session and run a command inside, then detach and proceed with other screens. So I need something like screen -S vault -d -m $HOME/vault/v.sh. However, v.sh requires ...
0
votes
1answer
54 views

How can I use the bind command for remapping keybindings for screen?

I am trying to use the bind command to remap C-a keybinding in screen, as I use C-a for getting to the beginning of a line. According to the screen documentation I should use the bind command for ...
0
votes
1answer
65 views

GNU Screen capturing <esc> key?

GNU screen is capturing my ESC key causing problems with vim. Is there any way to change that behaviour in screen? I believe it enters the command mode however I can do that do that with C-a: This ...
1
vote
0answers
191 views

How to cancel a Ctrl-A in screen

Sometimes when I'm using my screen session I prematurely type Ctrl-A and then decide I want to remain in the current window and type something in the terminal, but anything I type next will be ...
0
votes
1answer
202 views

How to display images in hterm + screen

I am using the SSH extension on CrOS to connect to another machine. I would like to use the hterm-show-file script to display images directly in the terminal. This works fine in a normal shell, but ...
0
votes
1answer
52 views

user dissapered after connection to GNU Screen

After the user logged in and before he ran the GNU Screen, [root@15inch ~]# w 11:45:17 up 3:44, 2 users, load average: 0,00, 0,02, 0,00 USER TTY LOGIN@ IDLE JCPU PCPU WHAT user ...
0
votes
0answers
297 views

Remote screen command through ssh, unable to see active sessions

Let's say i'm running a comand using: ssh user@ip screen -dm cat file or a command like: ssh user@ip screen -dm -S sessionname cat file Why, in both cases I can't see active screen sessions and so, ...

1
2 3 4 5
13