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
42 views
+150

How to scroll screen within screen with the outer screen keybindings?

I run a screen session locally on my laptop. Within that screen session, I connect via ssh to a server on which I do most of my work. Since that connection gets reset sometimes (e.g. VPN timing out),...
0
votes
2answers
43 views

How to open Minecraft systemd service server console on CentOS 8?

I'm pretty new to Linux and because of that this might be a stupid question but anyways: I've made a CentOS 8 virtual machine on my computer to run a Minecraft server for me and my friends using this ...
0
votes
0answers
8 views

How to dynamically launch a screen session, open a gnome terminal and then run a script in that terminal?

currently I have the following gnome-terminal --window -e /tmp/script1 --tab -e /tmp/script2 --tab -e /tmp/script3 this allows me to open a gnome-terminal window with multiple tabs, each running ...
0
votes
1answer
38 views

The screen and tmux programs have suddenly stopped mouse scrolling in KDE Konsole

Some new behaviour in Konsole has prevented both screen and tmux from scrolling the window. I mostly use screen and when using the mouse wheel to scroll it would spin through the command line history. ...
0
votes
1answer
36 views

Set multiple environment variables for existing screen session

I have an existing screen session and now I need to set some (more than one) environment variables to that session. These environment variables should not be visible to other screen sessions. I tried ...
0
votes
0answers
23 views

GNU Screen - terminal size - scroll left-right (wrapping disabled)

I use GNU Screen on Suckless st or xterm. One of the reasons is for scrollback, using copy mode, c-a esc. I need to examine some very long and wide logs and also some interactive Oracle SQL*Plus wide ...
2
votes
0answers
16 views

Is there a way to get the last n lines of screen output programmatically?

I'm working with a detached screen session, and I'd like to be able to check what the last lines of output on the screen session are (for example, to determine if a password prompt is being displayed)....
1
vote
0answers
22 views

Show GNU screen session name as Cygwin window title

I use Cygwin with a xterm terminal to ssh into a server that gives me a csh prompt. I then do screen -S new_session. The window title of Cygwin then shows "[screen 0: csh]", which suggests ...
1
vote
0answers
42 views

Configure a screen session to behave exactly like a xterm terminal [closed]

I want to be able to configure a screen session through screenrc or within a session to behave just like an xterm terminal. Currently I have a c# app that uses ssh.net libraries to ssh to a Linux box ...
1
vote
1answer
31 views

no alsa-sound in systemd-service (using screen)

I just set up a systemd.service in order to run cmus (a console-music-player) detached to a screen at startup. i don't get sound, when starting via remote with no user logged in to the machine. i do ...
1
vote
1answer
33 views

Installed 'gnu-screen' and now files looked at with 'less' appear in stdout terminal

Hello I am working on a raspberry pi with Raspian version 10 (buster), and I recently installed GNU Screen version 4.06.02. When I used to look at files with less, the contents would appear on what ...
1
vote
0answers
14 views

How to pass code to attached screen

I am running an R script using a Linux Workstation. I am new to Linux - thanks for your patience! I first ran screen before running my R script, Rscript myRscript.R After checking in on my script ...
0
votes
0answers
16 views

Run a set of functions in a detached screen

Is it possible to call a bunch of functions within a detached screen that are defined elsewhere in the script? For example: #!/bin/bash Method1() { ... } Method2() { ... } Method3() { ... } Method4() ...
0
votes
1answer
19 views

Could not start bash session after GNU screen window split command

I am new to GNU screen and was wondering how to split window appropriately. Start a session with screen command. Split window with C-a S. And I get the results of the terminal as shown in the image ...
0
votes
0answers
14 views

Is there a way to display which files are open in each screen window?

When doing Ctrl^A Shift-", displaying the list of windows like: 0 user@hostname:/path/to/directory 1 user@hostname:/path/to/directory 2 user@hostname:/path/to/other Is there a way to display the ...
0
votes
2answers
29 views

Login to ssh session and afterwards automatically look for and access existing screen session?

I would like to connect to a server using ssh and after logging in I would like to automatically execute screen -R My script looks as follows: sshpass -p password ssh -t name@server.cheese 'screen -R;...
0
votes
0answers
12 views

How to invoke any OSC escape sequence in GNU/screen? [duplicate]

I'm using rxvt (urxvt) terminal with gnu/screen and I experienced that some escape sequences does not get through screen. eg. I issue echo -e '\033]777;qwerty\007' on bare rxvt, it gets through, but ...
0
votes
2answers
56 views

How to see full terminal output using `screen`?

I'm using screen to leave processes running on a server through ssh. When I do screen -r, I do properly get back the terminal I left running previously, but I only see as much output as fits on my ...
0
votes
0answers
21 views

Expose Linux screen session via SSH

I have a box with multiple serial consoles attached, which are listed under /dev/ttyUSB*. I'm currently accessing these locally using screen. e.g. screen -c ~/.screenrc -m -d -S "USB0" -t &...
2
votes
3answers
86 views

How to control systemd service using screen?

I've set up a systemd service to run my Minecraft server. Now, I need it to repeat the start script when the server crashes. Here's my code so far: #!/bin/bash while true; do cd /home/mcserver/...
0
votes
1answer
536 views

How to scale the resolution/display of the desktop and/or applications?

While using Xorg X11, on KDE/Gnome/XFCE how can we scale the display/resolution for the whole desktop and/or per application? (when this is not available on the settings GUI) The purpose is to keep ...
1
vote
1answer
82 views

Is X DPI (dot per inch) setting just meant for text scaling?

On Linux the DPI (dot per inch) is set to 96 per default, it can be changed globally on the X start up parameter for instance X -dpi 120 This seem to mainly impact text/font scaling. In comparison ...
0
votes
0answers
16 views

How can I start the service file on the screen?

[Unit] Description=Gunicorn service After=network.target [Service] User=root Group=www-data WorkingDirectory=/root/flaskapp ExecStart=/usr/bin/screen -S gunicorn3 /usr/bin/gunicorn3 --workers 3 --...
0
votes
1answer
21 views

How to pause and resume Screen for specified time range (schedule)

I use linux screen command to execute a background script on my server. The script needs to run everyday but within a certain time range (7 am to 9 pm). As of now, I am manually exiting the screen (by ...
1
vote
1answer
22 views

R Version in screen different than expected

Invoking R in a new terminal session loads R version 4.0.0, but if I go into a screen and invoke R, version 3.4.3 is loaded. How can I set the version of R invoked in screen to always be the version ...
0
votes
1answer
19 views

GNU screen: move window to other region

Say I have created two windows and only then created a second region. How do I move one of the windows (which are both part of the first region) to the second region? Well actually I just wanted both ...
0
votes
0answers
7 views

GNU Screen: How could I show all active session names on the bottom bar?

This is my GNU Screen config for the status bar: $ cat ~/.screenrc # 2.2) hardstatus = navigation bar @ bottom hardstatus alwayslastline "RouterBoard - %H: %1` | %-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%&...
0
votes
0answers
39 views

GNU Screen ssh session timeout

I'm using GNU screen under Centos to SSH to devices. I'm experiencing an issue where the device (firewall) has a hard timeout for ssh session for 8 hours, so if there is no interaction with it, ssh ...
1
vote
2answers
33 views

screen session loses contact to AFS file system

Our $HOME file system is an openAFS system. I log on to my desktop machine from my laptop at home and want to run a long job. Thus to protect it from a broken session, I open up screen -S ...
0
votes
2answers
84 views

Raspberry pi autorun with cron not working

I have tried a few different solutions, but non of them worked. I have mounted a USB-storage-device on my Raspberry Pi 4, 4gb in the USB3 port. The mount directory is /media/usbstick/. In this ...
0
votes
1answer
28 views

Using GNU screen to run commands consecutively (next one runs only after previous one finishes)

I'm trying to use a screen command to stack multiple commands one after another. First I run a python script and then I connect to an ssh host like this. $HOSTNAME is slave-node-1 $arg is arg2 ...
0
votes
0answers
15 views

Gnome Terminal: Resetting Terminal title while retaining GNU Screen displays

Generally on my Gnome Terminal if I start an Screen the window title is displayed at the top in the place of the Terminal title and if I want to find out the name of the screen I do ctrl-A and then ...
0
votes
1answer
21 views

GNU Screen behavior when the program running on it terminates

I was going through the GNU Screen manual and it says When a program terminates, screen (per default) kills the window that contained it. If this window was in the foreground, the display ...
1
vote
1answer
24 views

How to bufferize a PTS?

I'm building a system using LXC containers trough libvirt, and I'm trying to record/forward the container's stdout. When creating a new domain, a pseudo-TTY is created in /dev/pts/* and I'm able to ...
1
vote
1answer
59 views

How can I run and monitor multiple commands, preferably with gnome-terminal?

I have tried the following: [matt@arch-desktop ~]$ gnome-terminal --window -e 'echo foo' --tab -e 'echo bar' # Option “-e” is deprecated and might be removed in a later version of gnome-terminal. # ...
1
vote
1answer
38 views

How to start screen on reboot with an interactive TERM/TTY

I have a machine configured (via cron) to start a screen session on reboot. The session opens up a few screens and starts a server in one of them. All of this works fine. However, when I login and ...
0
votes
0answers
36 views

Updating of GNU screen's hardstatus hostname

According to the Gnu screen user's manual, one can set the "hostname of the system" with hardstatus string "%H". Changing via ssh into another system while in a screen session, the hostname is not ...
0
votes
1answer
50 views

Auto-connect to a tmux or screen during ssh connection and how to set unique SESSION_NAME

I want to use tmux or screen automatically after ssh. I wrote some code in .ss/config which helps me with this. # ~/.ssh/config Match exec "[[ $(ps h o args p $PPID | wc -w) -eq 2 ]]" ...
0
votes
1answer
57 views

Capture log output for a systemd service running in a screen session

I'm running a Minecraft server as a systemd service. The service's ExecStart is the path to a script whose contents are: screen -L -DmS minecraft java -Xmx4096M -Xms1024M -jar server.jar nogui That ...
0
votes
0answers
26 views

Make LocalCommand set 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
1answer
83 views

How exactly to use screen in linux / SSH shell?

I read the manual and online help, but still cannot grasp the idea of the screen command. Lets say I SSH to my linux shell. Inside it I want to run a program that will run for 8 hours: I create a "...
1
vote
1answer
23 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 #...
1
vote
1answer
179 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
152 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
10 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
42 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
2answers
22 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
594 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
1answer
33 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
129 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 ...

1
2 3 4 5
17