Questions tagged [gnu-screen]
screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells.
131
questions
0
votes
1
answer
20
views
ubuntu 20.04 Desktop: screen terminates after logoff
afair
$ screen -v
Screen version 4.08.00 (GNU) 05-Feb-20
is method to run commands continuously after logout. But on my 20.04 this doesn't work.
user@laptop:$ ssh user@machine
user@machine:$ ...
0
votes
0
answers
16
views
How can i resolve GNU GRUB version 2.06 starting error [duplicate]
My lenovo laptop didn't open after trying restarting. Am not well enough to use laptop, so i know nothing about it. So anyone know about it please help me to resolve the problem enter image ...
0
votes
0
answers
34
views
How to fix screen glitching when trying to "try or install ubuntu" in grub?
Screen glitch:
I have an old lenovo g450 laptop. I am trying to install ubuntu in it using a bootable usb drive. There is no windows in it. I entered grub and clicked "try or install ubuntu"...
0
votes
0
answers
14
views
How can I know which GNU screen I'm currently looking at
I'm connected to an Ubuntu machine and I just ran screen -ls which shows me the following result
There are screens on:
1146.cmd (02/09/2023 05:44:21 PM) (Detached)
21093....
1
vote
1
answer
62
views
Running a command inside a gnu screen from a bash script
I'm currently trying to run a command in a detached gnu screen from bash, but simply using
screen -r myscreen
mycommand
doesn't work. Detaching from the screen after executing the command isn't ...
0
votes
0
answers
51
views
SSH connections in screen
Is there a way to put all SSH connections in a screen instance on the server side? My plan is to do this so I can use e.g. screen -x to view the terminal of the SSH user in real time.
0
votes
0
answers
417
views
Linux says the screen is dead but it doesn't close it
I'm trying to learn how to work with "screen" tool.
I have 2 additional screens.
ixnomad@NomadMachine:~$ screen -ls
There are screens on:
1037111.SYS_INFO (06/03/22 17:09:38) ...
0
votes
1
answer
2k
views
How to run java command inside bash script in specific directory
So, I host multiple Minecraft servers on my Ubuntu VM and I've setup a script to start all of them at once. The servers are running in screen sessions and basically what the script does is send the ...
-1
votes
1
answer
77
views
How to fix screen resume or list commands on Ubuntu system?
Screen or GNU Screen is a terminal multiplexer.See this for more information.
Somehow the screen command has been messed up accessing a remote server. I'm still able to start a new screen (screen <&...
0
votes
2
answers
976
views
How to create an sh script to run another sh script with Screen session or Tmux session
All I want is create a bash script that runs another bash script in a different folder, but with a detached screen session. Also it should be executed as non-root user. Here's what I've done:
#!/bin/...
0
votes
1
answer
556
views
How do I clear the GNU screen command screen?
Running "screen" for example with:
screen /dev/ttyUSB0 115200
How do I clear the screen once in a while?
0
votes
1
answer
154
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
0
answers
71
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 ...
2
votes
1
answer
4k
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
1
answer
185
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
1
answer
474
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
2
answers
302
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
1
answer
2k
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
1
answer
3k
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
1
answer
2k
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
0
answers
15
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, ...
2
votes
0
answers
914
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
0
answers
130
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
1
answer
530
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
0
answers
327
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
1
answer
688
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
1
answer
937
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
0
answers
523
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
1
answer
1k
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
1
answer
392
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
0
answers
619
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
0
answers
546
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
0
answers
22
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
1
answer
163
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
2
answers
174
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
0
answers
67
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
vote
1
answer
3k
views
How do I split a terminal into two "views" (or two parts) so I don't have to scroll up / down?
Nginx log is being generated real time with
watch -n 1 "tail -n 1000 nginx.log"
I want it to appear on the right side of the terminal. How can I make 2 or 3 screens? I have a very wide screen (...
-1
votes
1
answer
90
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 ...
4
votes
1
answer
15k
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 ...
16
votes
2
answers
9k
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
1
answer
1k
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
2
answers
837
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
1
answer
5k
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
0
answers
49
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
1
answer
613
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
1
answer
216
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
2
answers
740
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
1
answer
1k
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
0
answers
2k
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
1
answer
627
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 ...