Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gnu-screen]

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

0
votes
0answers
11 views

First 15 lines of output are empty when reattaching

I'm trying to setup a neo-cli node in RPC mode in Docker with Ubuntu 16.04. It is launched like that: dotnet /opt/neo-cli/neo-cli.dll /rpc When you do this, the program waits for user input: neo>...
0
votes
1answer
117 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
63 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
197 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
69 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
15 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
25 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
97 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
38 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 "...
0
votes
0answers
44 views

How to start gnu-screen from .profile without the disclaimer / welcome message

I added screen to my .profile, in order to always be able to restore a ssh session. This works great but for evey login I see the disclaimer / welcome message of gnu-screen and need to press the space ...
-1
votes
1answer
82 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 ...
0
votes
1answer
3k 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 ...
10
votes
2answers
2k 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
315 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
525 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
3k 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
27 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
178 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
96 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
0answers
345 views

Run a program with screen then detach [duplicate]

When server starts I want it to run these commands in order: cd /root/games/mb/mbnw1/ screen -d -m -S mbnw1 screen -r mbnw1 wineconsole --backend=curses mb_warband_dedicated.exe -r 57Antrenman.txt -...
0
votes
2answers
247 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
519 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
684 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
164 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
164 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
77 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
2k 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
46 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 ...
5
votes
3answers
5k 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
84 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 ...
1
vote
0answers
38 views

Two generic versions in GNU grub

I'm new to Ubuntu . System seems to be crash. As I got black screen when I switch on laptop . I got two versions in advanced options for Ubuntu from GNU grub version 2.02beta Why I have two ? And Is ...
0
votes
0answers
27 views

Black window without login screen [duplicate]

I'm in this problem all the day searching for a solution . I'm new to Ubuntu . I'm using 14.04 . When I open the system I got black window. How can I solve this ? Google-talkplugin.list Google-...
0
votes
0answers
96 views

Gnu grub problem

I'm new to Ubuntu . I'm on Ubuntu 14.04 LTS .. I couldn't open the system as I got GNU GRUB version 2.02 window I couldn't copy what in the window beacuse I'm writing this post from my mobile . So if ...
2
votes
1answer
2k views

Auto-login user to TTY on boot, and then auto-run command within GNU screen

Ubuntu 14.04.5 LTS Desired functionality: Remote Ubuntu server boots and automatically starts an ongoing process as a specified user. I can then log in remotely at a later time and view the past and ...
2
votes
2answers
1k views

Will my screen process continue after i log out?

I opened a screen as root user by typing sudo su - and then screen. I then ran a command to start my Minecraft server. After that I detached the screen by pressing Ctrl-A and d. Will the process (my ...
1
vote
1answer
66 views

Sage notebook server error when not logged in to host

I have a Sage notebook server that runs in a screen session on Ubuntu Server 14.04 (32-bit). When I'm ssh'd to the machine, I can use my notebook in my browser as expected. If I'm not ssh'd to the ...
2
votes
1answer
6k views

Creating a shell script for use with 'screen'?

I have been working on creating a shell script for a while, browsing various forums including this one, and using all sorts of search terms with no luck. I hope I am not creating a duplicate question. ...
3
votes
2answers
962 views

Attach, Detach and Kill a process in Screen with a bash script

I know you can run a program in a detached screen, but I would log into an existing screen, kill the currently running process, restart it and then detach. Is it possible to do that with a bash ...
0
votes
1answer
1k views

Screen Shortcuts Not Working In Terminal

I have screen installed on my Ubuntu 16.04 server but when trying to press down on the keys "Ctrl + a + v" or any commands with "Ctrl+a" it doesn't bother to do anything when I am connected to the ...
0
votes
2answers
4k views

How to check if screen session is running?

Is there any way to check if a screen session is running in bash? For example: if [screen is running] then screen -r #if session is running then resume the session else screen "...
1
vote
1answer
708 views

Shell script with screen launching multiple commands

I wrote a simple script to launch two minecraft servers through screen. I can run it fine, but the issue is it hits the first command and runs that line fine, but it then enters the screen it creates ...
1
vote
3answers
14k views

“[screen is terminating]” Immediately, Never Creates Screen Instance

A friend of mine just showed me a neat built-in utility called screen that, long story short, allows you to create instances of the terminal. I am running Windows 10 and trying to use this utility ...
0
votes
2answers
2k views

Issues with using Screen to split terminal on WSL - Ubuntu 14.04.5, Screen 4.1.0

I am trying to split the screen to view VIM and the terminal at the same time and I am unsure if I am doing something wrong. The directions I've seen say to install screen (was already installed for ...
1
vote
2answers
638 views

How to connect to a “Private” screen session

I have a couple of machines starting screen sessions for individual users. I do this by running su news -c "screen -d -m -S news /usr/local/bin/newstask" Normally, I can attach to such screen using ...
15
votes
5answers
10k views

How to run tmux/screen with systemd > 230?

I run 16.04 and systemd now kills tmux when the user disconnects (summary of the change). Is there a way to run tmux or screen (or any similar program) with systemd 230? I read all the heated ...
3
votes
2answers
466 views

How to connect screen/tmux/byobu to dbus?

Sometimes in GUI I use byobu , but I get the following error with qdbus Could not connect to D-Bus server: org.freedesktop.DBus.Error.NoServer: Failed to connect to socket /tmp/dbus-1rnudRVZOD:...
3
votes
1answer
1k views

Binding arrow keys in GNU Screen

I'm a newcomer to GNU Screen and so far I'm liking it. However there is something I can't quite get to work the way I could in tmux. I want to make it so that Ctrl-a "arrow key" changes focus between ...
2
votes
0answers
20 views

Why does Ubuntu send log info into GNU Screen?

I have several Terminal windows open. Inside one of those terminals, I'm running GNU Screen with multiple "tabs". Inside one of those tabs (the one that's active), sometimes logging info appears, e.g. ...
1
vote
1answer
461 views

tmux: opening new shell in pane?

I've been using GNU Screen for some time and have become accustomed to the following workflow, where I will: Split a region into two windows (C-a " or C-a |) Open new shells up in these two windows ...
0
votes
1answer
2k views

How we can detach from screen?

I am new in linux. I used to work on windows(performance testing, load testing, smoke testing and so on ). I am doing a job which requires to perform some tests.