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
1 vote
1 answer
193 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 ...
hepcat72's user avatar
  • 155
0 votes
1 answer
460 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 ...
Alec Barnes's user avatar
0 votes
1 answer
775 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 ...
sheikh's user avatar
  • 11
0 votes
0 answers
229 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 ...
Blaine's user avatar
  • 172
2 votes
1 answer
9k 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/...
0range's user avatar
  • 810
2 votes
1 answer
2k 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 ...
Lone Learner's user avatar
0 votes
2 answers
1k 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 ...
sotona's user avatar
  • 103
1 vote
0 answers
354 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 ...
whatIsLife's user avatar
0 votes
1 answer
40 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 ...
bilou's user avatar
  • 101
2 votes
1 answer
887 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 ~/....
tarabyte's user avatar
  • 2,323
0 votes
1 answer
4k 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 ...
Tim Kluge's user avatar
1 vote
0 answers
17 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]
Obsessive's user avatar
2 votes
1 answer
933 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 ....
eciii's user avatar
  • 131
5 votes
1 answer
1k 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: ...
otterb's user avatar
  • 193
0 votes
0 answers
62 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/...
canonball's user avatar
  • 101
0 votes
1 answer
286 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 ...
Marcelo Santos's user avatar
3 votes
1 answer
6k 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 ...
Wildcard's user avatar
  • 580
0 votes
1 answer
119 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 $ ...
Roman Zenka's user avatar
0 votes
2 answers
326 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?
MarioPL98's user avatar
2 votes
1 answer
2k 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 ...
ulu's user avatar
  • 121
0 votes
1 answer
184 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 ...
Vidya's user avatar
  • 103
1 vote
3 answers
452 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 with C-a: anyway. This ...
Nishant's user avatar
  • 745
2 votes
1 answer
645 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 ...
Melandru's Square's user avatar
0 votes
1 answer
466 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 ...
Neal Fultz's user avatar
0 votes
1 answer
65 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 ...
user1244932's user avatar
0 votes
0 answers
461 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, ...
dvdvhs's user avatar
  • 1
1 vote
1 answer
402 views

Use .bashrc in a detached screen

So, I've got a bunch of export ... environment variable lines in my .bashrc, and I would like to call some programs (specifically Jupyter notebook) that need access from those notebooks from screen, ...
linkhyrule5's user avatar
1 vote
1 answer
2k views

Set terminal width in screen using PuTTY connection

I'm connecting from PuTTY on a Windows box to a RHEL server. I like to do my work in screen, and I like a terminal window that's wider than 80 characters. I have my PuTTY terminal set to be 120 ...
Matthew's user avatar
  • 11
1 vote
2 answers
1k views

unset PROMPT_COMMAND with screen

Recently, for seemingly no reason, I've been getting the same issue as this thread: bash how to remove "__bp_precmd_invoke_cmd" error? However it only happens when I enter a screen session....
Joe Healey's user avatar
1 vote
1 answer
324 views

GNU screen won't send control character from config file but will when set manually

My .screenrc has the following line: escape ^Jj However, I can't manage to send a literal ^J in a screen session based on this! Version: Screen version 4.06.02 (GNU) 23-Oct-17 Host: Debian-based ...
Realraptor's user avatar
0 votes
1 answer
397 views

What single command in screen, can show a preview of all currently active windows?

Am actively using screen, but wonder, as I've not seen anywhere, hint of a single command to do the above. Can anyone else using screen here, suggest something? Am thinking of a feature similar to ...
JWL's user avatar
  • 3,761
20 votes
6 answers
52k views

How to detach ssh session without killing a running process?

I started a test filesystem resize on a server through ssh, but totally forgot to do that on a screen session. Now it is running, and my laptop has very slow internet. Is there any way that I can keep ...
xcorat's user avatar
  • 361
1 vote
1 answer
52 views

What should i do if i want to run C-a " upon starting screen?

I'm currently starting screen as part of my .bashrc, but i want the first thing that shows up to be the same thing as when you run C-a " when screen is already running. I know i could run screen -ls ...
Olian04's user avatar
  • 115
0 votes
2 answers
61 views

Watch (rotating) log in screen

I'm running a mailserver which I connect to using SSH. My .bash_profile is configured to attatch a SSH session to a certain screen session. Now I'd like to have a log (e.g. the syslog) printed to one ...
tr01's user avatar
  • 153
0 votes
2 answers
619 views

ssh + screen : how to ?

I am trying to launch a software through ssh : I can do : ssh -t [email protected] screen -S datanode -d -m ~/hadoop/bin/hdfs datanode But ssh -t [email protected] screen -S datanode -d -m ~/...
Romain Jouin's user avatar
1 vote
1 answer
557 views

How to detach instead of terminate a GNU Screen session inside xterm when pressing C-c?

On X startup the following is ran automatically: xterm -e screen -rS app1 This opens up an xterm session and attaches the screen of app1, which was already running in a detached state. What I'd ...
joueffy's user avatar
  • 11
11 votes
1 answer
13k views

Systemd service - Python script inside Screen on boot

Im currently running a python script inside a Screen session through this script in rc.local: screen -L -dmS pi python /home/pi/truck/main2.py & But I would like it to run through systemd so I ...
TwinToe's user avatar
  • 113
0 votes
0 answers
404 views

GNU Screen + Putty + Windows 10 constantly gets glitchy

I'm using Putty on Windows 10 to connect to a Linux machine and attaching to a GNU Screen session. Using all the same settings (exactly) on Windows 7 worked without any issues, but on Windows 10, I ...
Trel's user avatar
  • 329
0 votes
1 answer
3k views

Why does Ctrl-C terminates screen when ran in detached mode?

If I use Ctrl-C in a screen I ran the "normal way" using screen -S screen_name, it behaves as expected meaning it will interrupt whatever command the screen is running but won't terminate the screen ...
Cyrlop's user avatar
  • 125
0 votes
0 answers
91 views

screen command called from within a script, within a "su -c" command creates files on root directory

I'm executing this script from user root in directory "/": su -c "sh /home/bob/start_server.sh" bob and "start_server.sh" contains screen -d -m -S serverscreen mono startserver.exe However all the ...
NaturalBornCamper's user avatar
3 votes
2 answers
5k views

How to detach from a screen session from within a tmux session?

How to detach from a screen session from within a tmux session? I've seen posts of how to detach from screen within screen and from tmux within tmux, but none of them worked for me.
sergey's user avatar
  • 31
0 votes
1 answer
283 views

How to put screen in a sequence of commands?

Hello I'm trying to merge a group of commands in a single line using semicolon ; pkill screen ; screen ; cd directory ; sudo xx So basically what I'm trying to do is to kill all open screens then ...
Helme's user avatar
  • 37
0 votes
1 answer
3k views

Where do I find the default baud rate for screen (on Mac)?

This command works fine: screen /dev/ttyS I don't need to set a specific baud rate. Do you know what the default baud rate is, or where I can find the default baud rate that is used?
JobHunter69's user avatar
0 votes
0 answers
366 views

screen always clear screen upon exit - how to disable it

Seems that unlike less that can switch off clearing screen -- 'less' command clearing screen upon exit - how to switch it off? the screen always clear screen upon exit. That's very ...
xpt's user avatar
  • 8,651
1 vote
1 answer
427 views

Running split command in GNU screen conflicts with split Unix utility

I am trying to run the command split from within GNU screen in order to create a new horizontal region. This command is instead interpreted as a call to the Unix split utility at /usr/bin/split for ...
user avatar
2 votes
1 answer
78 views

GNU screen starts a new session with root, but not with a normal user

So, my problem is simply that I can't get screen started on my user account. When I invoke it as superuser it works, under any circumstance, like a charm, but until now (that is, in the about last ...
Acsor's user avatar
  • 123
1 vote
0 answers
215 views

Fonts are different in vim under byobu compared to vim under screen and normal terminal

The font shows different in vim under normal bash and vim under byobu. Attached is a screenshot. This is the default byobu setting as soon as I do an apt install byobu. However, the font looks normal ...
krish7919's user avatar
  • 111
2 votes
1 answer
712 views

GNU screen sessions taking very high virtual memory

My GNU screens are taking up a lot of virtual memory. What could be the reason behind this? I have confirmed that none of them have more than 5 tabs in them. I noticed this when i got 'fork: Cannot ...
Jedi's user avatar
  • 63
3 votes
2 answers
2k views

Nesting byobu sessions

Is there a working solution for having a nested byobu, or byobu-screen sessions? It would need to have a way to specify different keybindings for the outer and the inner windows.
Maxim Imakaev's user avatar
1 vote
0 answers
492 views

How do I prevent all terminals crashing in Mac OS Sierra?

I usually have multiple terminal windows open, with most of them either ssh'ed into an Ubuntu session or running emacs. In one of the ssh sessions, I was reattaching a screen (the screen was running ...
Max Candocia's user avatar

1
2
3 4 5
14