Questions tagged [gnu-screen]

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

GNU Screen

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

Alternatives

  • - Alternative to GNU Screen that includes most of its features

  • - Wikipedia article on Byobu (software):

    Byobu is an enhancement for the terminal multiplexers GNU Screen or tmux that can be used to provide on screen notification or status as well as tabbed multi window management. It is aimed at providing a better user experience for terminal sessions when connecting to remote servers.

130 questions
249
votes
5 answers

How do I detach a screen session from a terminal?

I know how to start a screen, and how to list different screens: screen -ls or to attach: There are screens on: 2477.pts-0.server1 (Detached) 2522.pts-0.server1 (Detached) 2 Sockets in /var/run/screen/S-root. $ screen -r…
maniat1k
  • 8,340
232
votes
14 answers

kill a screen session

I'm trying to kill a screen session. I noticed a lot of other related questions, but none of those answers are working for me. I am trying to kill the following session: screen -ls There is a screen on: 23520.pts-6.porkypig (09/30/2013…
JohnMerlino
  • 7,829
146
votes
6 answers

Reattaching to an existing screen session

I have a program running under screen. In fact, when I detach from the session and check netstat, I can see the program is still running (which is what I want): udp 0 0 127.0.0.1:1720 0.0.0.0:* …
JohnMerlino
  • 7,829
36
votes
7 answers

X11 Forwarding over Gnu Screen, is it possible?

I use GNU Screen constantly. But, I've been trying to figure out if there is someway to get X11 apps to forward over screen when I am ssh-ing (Is that a word?). Currently if I try to run 'gedit' through screen, it opens on my 'server' computer and…
Sandro
  • 577
29
votes
2 answers

Run a program with GNU screen and immediately detach after

I am trying to figure out how to write a script which would start program(s) in GNU Screen sessions(s) at system boot. I am trying this: #!/bin/bash screen -S test -d -m -X $HOME/folder/folder/.program \ screen -S test2 -d -m -X…
TbMa
  • 535
27
votes
6 answers

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 disussion about pros and cons of the behavious but no…
WoJ
  • 1,345
23
votes
4 answers

Is there any user friendly alternative to screen?

I am running Ubuntu Server and want to have multiple terminals. Screen works fine but..it is not user friendly. I mean..after pressing Ctrl+A you get no notification of you being in command mode, in order to display terminals you have to enter "…
18
votes
2 answers

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 part should run tail -n 1 -f…
Videonauth
  • 33,815
17
votes
2 answers

Using GNU Screen with 256 colors

I recently installed GNU screen on a machine I ssh into. How do I get GNU screen to use 256 colors? So far, I've tried adding the following to my .screenrc: term screen-256color and attrcolor b ".I" # allow bold colors - necessary for some…
Scott
  • 271
17
votes
6 answers

Retaining bash prompt colors when starting a screen session

When I ssh into a Ubuntu Lucid box the prompt is all pretty, with colors. Everything is the default, as far as I know. Here's my $PS1 outside screen: \[\e]0;\u@\h:…
chmullig
  • 273
14
votes
4 answers

How do I copy text from the program "screen" to my clipboard?

I want to copy some text from screen to my clipboard. I know how to get into copy and paste mode in screen, but I want that text to go to my clipboard so I can paste it on the browser, for example. How do I do this? Thanks!
12
votes
4 answers

Run a screen session on boot from rc.local

I am trying to run a detached screen under a specific user in rc.local on boot. The code below is what I have so far, but it is not working for me. The su part seems to be giving me an error. su - username -c /usr/bin/screen -dmS test bash -c…
ATLChris
  • 395
12
votes
2 answers

Setting Default Byobu screens

I've just installed Quantal as a fresh install, and want to set up Byobu as it was on my old system. In a previous version of byobu there was an option in byobu-config (via the F9 key) to create new windows which had a checkbox option to select if…
10
votes
1 answer

How can I start GNU Screen automatically when I open a new terminal window?

I'm running Ubuntu 14.04 (Cinnamon Mint 17.1) with Bash. Every time I open a new terminal window, I enter screen to start the screen window manager, but I would like the shell to do this for me. I believe I need to modify .bashrc instead of…
9
votes
3 answers

"[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 with Bash on Ubuntu on Windows, but since it was a…
1
2 3
8 9