Questions tagged [gnu-screen]

screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells).

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

GNU/Screen shortcut behavior after detaching

Very simple but annoying observation in my new install of Screen version 4.08.00 (GNU) 05-Feb-20. Asking here becase I'm very lost after trying to troubleshoot on my own. I create a screen session ...
0
votes
0answers
9 views

start a screen session on /dev/ttyUSBn, then kill with ^ak, the next “screen /dev/ttyUSBn” results in [screen is terminating]

I assume /dev/USBn must be busy due to last session but I do not know how to clear it. If I reset the host connected to /dev/USBn I can again initiate a session. What is the proper way without ...
0
votes
1answer
33 views

Keep the content of SSH sessions

Let's say I have this python script on my VPS: # test.py import time while True: print('tick...') time.sleep(10) If I log into my VPS using SSH and run this script, I can see tick... ...
1
vote
0answers
16 views

How can I keep screen session alive after LightDM restart?

When I start a screen session from terminal emulator (PTS), it vanishes after I restart LightDM (sudo service lightdm restart). However sessions started from TTY are preserved. How can I keep screen ...
0
votes
0answers
13 views

Hibernate a detached screen socket

I have an Ubuntu cloud server and it has been doing some very long calculations for me via a screen socket, for some reason, I want to pause its current calculation and do something much more ...
1
vote
1answer
991 views

working minecraft server can't be started with systemd (“no screen session found”)

I'm running ubuntu 20.04 server on a home server, and I have a self-hosted minecraft instance, located at /opt/minecraft/server, owned by the user minecraft. I can activate the server manually just ...
0
votes
0answers
36 views

How can I get screen -d -m to work on Ubuntu 20.10?

What I'm trying to do is run a script locally to boot up a rom in retropie but output the game to the server. I've gotten this script to work perfectly on PI3 b+ running the Raspi OS, I've also gotten ...
0
votes
0answers
28 views

screen terminates after a day

I use screen on the command line to launch programs and keep them running after I detach and log out. In the past the screen session would stay open until I kill it, even when the program has ...
0
votes
1answer
81 views

Communicating between a screen and a script

I would like to write a script that starts a process in a screen, letting it continue to run, but extracts a certain part of the output for use in the main process of the script. My first idea was to ...
0
votes
1answer
94 views

GNU GRUB fast boot on bios and can’t access bios now

OK so basically I have fast boot on and I went to Ubuntu Linux and I have a windows and operating system and now because I had fast boot on no USB port works now because this one is in the GNU GRUB ...
0
votes
0answers
22 views

How to access R workspace within GNU screen

I ran an R script on a Linux Workstation using screen. First, I created a screen - screen and then ran my R script, myRscript.R. My R script did not including save.image(), though, the command that ...
0
votes
2answers
88 views

GNU grub instead of grub 2

I recently uninstalled kali Linux from a triple boot laptop (othres being windows 10 and ubuntu 20.04) now instead of grub 2 which shows windows and ubuntu during booting all I can see is a GNU grub ...
0
votes
1answer
682 views

How to get command result out of minecraft server screen session?

I'm running a minecraft server inside a screen session. I want to send a command to that screen session and get the command result back (and print it back). Can I do that without using the screen -L ...
0
votes
1answer
329 views

Detach from screen without Ctrl+a d in SSH

I'm running a set of processes using the screen command on my Ubuntu server. The idea is that the process should ideally not be cancelled or be under the risk of being cancelled by mistake I find ...
0
votes
1answer
335 views

How do I set up a MC server to restart and backup at 6am every day?

So I have a mineraft server and I want to set it up so that it restarts at 6am and backs up itself too. I run the server in screen and to stop the server I have to open the screen (with screen -r) and ...
0
votes
0answers
11 views

Problems with the grub

Please bear with me, I'm new with this Ubuntu18.4 just installed it a month ago. It was working fine (a little slow but I just asume it id because its a 10 year old laptop). But now when I start it, ...
1
vote
0answers
363 views

Linux screen command not accepting keyboard input

I am trying to connect to a JTAG device using screen. I type the command sudo screen /dev/ttyUSB1 115200,cs8 I am able to see all of the output from the board, but I am unable to type anything into ...
0
votes
0answers
73 views

Crontab doesn't seem to work

I run my minecraft server in a screen and I have a script set up to restart the server via crontab every night at 3 am. restart.sh: #!/bin/sh echo "Letting people know that the server is going to ...
1
vote
1answer
124 views

How to log serial data immediately?

I am currently working on an electronics project with a microcontroller that sends information over USB to a computer, where it is read from a serial port. I can read the data with screen and log it ...
1
vote
0answers
199 views

Terminal line overwritten in a screen session

I have this problem while working on a screen session that the terminal line gets overwritten. If I detach from the screen session then I don't run into this problem. Here are some of the ...
1
vote
1answer
468 views

Is there a way to send commands to screened process?

I have a process, that automatically starts up with server using this command - screen -dmSL myserver sudo bash /myserver/start I can stop the process if I connect to the screen with screen -x ...
0
votes
1answer
610 views

Linux - Closing screen session terminates process

I am new to this so I apologize if I am using the wrong terms. I am using Linux and am connected to my school workstation using the ssh function. If I run a program and I close the terminal the ...
0
votes
0answers
328 views

Linux screen tool - Run command on session created in cron

In crontab (edited via command crontab -e on me user), I have written: @reboot /usr/bin/screen -mdS test */6 * * * * /home/me/RunDFB.sh I'm using RunDFB.sh to check, is my console app (which is ...
0
votes
1answer
701 views

Simple modifications of the default /etc/screenrc

One of the first thing I install on a new host is GNU-screen. The next thing right after that is to Google for the lines I need to edit in my ~/.screenrc to activate the hard-status line so I will see ...
0
votes
1answer
187 views

How do I clear the screen command history scroll-back?

How do I clear the screen command history scroll-back? For instance, delete this -> ctrl-a : at "#" stuff "something.dumb" I'm not talking about BASH history either. Things I have tried-> ...
0
votes
0answers
393 views

How to reduce the border size of terminal

I am using screen to split terminal.But am not able to reduce the border size.
0
votes
0answers
265 views

Screen script doesn't work

I've created the following bash script, which restarts my parse server: pkill screen screen cd /datadrive/parse-server-example/ sudo npm start The thing is, it seems that the script doesn't execute ...
0
votes
0answers
21 views

Run two commands in two “virtual consoles” in the same detached screen [duplicate]

I am running ubuntu 16.04 server. I'm basically making a script to do the following when the system boots: Open a new screen in detached mode Run a command in this screen Open a new "window / ...
1
vote
1answer
61 views

Run second screen process after first screen process complete?

Is it possible to start a screen process, but let it wait for another running screen process to complete? Basically creating two screen processes like so: screen -S myfirstprocess screen -S ...
0
votes
2answers
164 views

Cannot log in alts in consoleclient

So I am on a minecraft server, I want alt-accounts afking via a console client. So instead of running this 35 times. screen -d -m mono MinecraftClient.exe (username) (password) (Server-IP) I came ...
0
votes
0answers
61 views

Running “screen” in terminal VS running “screen” as keybind?

If I'm in a screen session and I run screen from the terminal, a new window opens up in the same directory as the previous window. However if I bind the screen command to a keybind, like this bindkey "...
-1
votes
1answer
85 views

'screen' app & video output

I am using 'screen' app so that I can view a running process via SSH remotely, the PC with the process has lightdm disabled. If I switch on the monitor (from Dsub output) I see a command line like ...
3
votes
1answer
9k views

Start a screen session and run a script without attaching to it?

I'm trying to write a script to: Start a new screen session Run some program or script within that new screen session Detach from the screen session, while the program from step 2 may still be ...
13
votes
2answers
7k views

How do I start screen with multiple splits directly from the command line?

I'm using screen after I have logged in with ssh to my server. As of now I set up the splits in my screen window by hand and run the commands by hand as shown in the following screen-shot: The top ...
1
vote
1answer
913 views

Terminate GNU Parallel in Screen Session letting jobs finish

I'm running a GNU Parallel command on a screen session. Unfortunately, I did not put an "&" at the end of the command to push it to the background. Hence I do not have access to the command line ...
3
votes
2answers
744 views

Detach from screen with C-z

I start screen like this $ screen I run tests in screen like this $ bundle exec rake. # takes ten minutes to complete Now I want to detach from screen, $ C-a d But I'm more used (muscle memory) ...
1
vote
1answer
4k views

How can I clear screen command history? [duplicate]

I'm using screen command after ssh to a public remote machine with Ubuntu 14.04 so that I could continue my sessions whenever I want. I've found that some admins are tracking my command history and ...
0
votes
0answers
42 views

Screen command cuts off mouse at 95 columns

I'm using the 'screen' command for a persistent shell session. It seems to work pretty good, with a couple of caveats. Mouse clicks only register as 95 columns or less. The bottom line sometimes ...
0
votes
1answer
335 views

Get linux 'screen' to recognize xterm mouse-click cols > 95

I have a Web-based terminal using xterm.js and ssh2 from node.js. When I click, xterm.js sends mouse-click coords via xterm escape sequences. This works fine. When using the 'screen' cli utility, ...
0
votes
1answer
174 views

How to log into running terminal/shell with ssh

so I am running a Minecraft server currently, and I'm logging into my server (Ubuntu Server, 16.04 on HP Proliant dl580 G5) through ssh. the only problem I've run into is that when my connection is ...
0
votes
2answers
465 views

Screen session used to run python PFA on server dies after a few days

I am running a python based PFA script which basically writes spreadsheets after every hour. It is working well. I use SSH on Putty to access my server and hence I used a screen session to run the ...
0
votes
1answer
911 views

Segmentation fault on Ubuntu 16.04

I have a problem using screen command on Ubuntu 16.04. I am working on a C++ project, and using servers with Ubuntu to simulate my code. Segmentation faults started to appear after updating from ...
3
votes
0answers
1k views

What is wrong with my Systemd service file?

I've been trying to get a systemd service to work for a while now, but with no luck. What I am trying to do is create a startup script that will start a java program for a modded-Minecraft server. ...
1
vote
1answer
423 views

How can l resume a detached screen after switching off my laptop?

I want to launch a program on a remote server (Amazon AWS), but the calculation takes about 50h. So I would like to launch my program, switch off my computer then come back to see the results once ...
0
votes
1answer
424 views

emacs + screen not properly handling keys

I'm sshing to an ubuntu server: cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=17.04 DISTRIB_CODENAME=zesty DISTRIB_DESCRIPTION="Ubuntu 17.04" I run screen, and then emacs. $ screen --...
0
votes
0answers
238 views

How to increase “screen buffer” when connected to the machine via SSH?

TLDR: I want to see a lot more of my screen via scrolling back when the command/script (e.g. ls -la /etc) displays results that doesn't fit in 1 screen. If you check the screenshot below, it doesn't ...
1
vote
1answer
4k views

`watch`, `tail`, `grep` combination in `byobu`'s `windows.tmux`

I am (re)writing my windows.tmux for my frequently used byobu sessions. Below is my precise requirement: I would like to have a tab (or window?) with a root prompt. (On start, it waits for the sudo ...
0
votes
0answers
48 views

Latest modification of text files (in a path)

I am not an expert in this whole scripting stuff but I really need help creating the following bash file: The bash script should open a screen: screen -d -m /home/cs2d/cs2d_dedicated & The ...
12
votes
3answers
15k views

How to kill a byobu session?

byobu allows users to create multiple sessions. Once there are multiple sessions, how to kill an entire session? If there is a session foo with 3 windows and bar with 4 windows, to kill session foo, ...
1
vote
0answers
197 views

Is there a way to use a GNU-Screen in a portable-like way?

I have website on shared hosting, and I haven't (and never had) permission to install software here. Just full access to my /home/<username>/ folder. But before the hoster moved my sites to the ...