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
28 votes
2 answers
97k views

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/....
TbMa's user avatar
  • 525
19 votes
3 answers
39k views

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 ...
user2358943's user avatar
230 votes
5 answers
649k views

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) ...
maniat1k's user avatar
  • 8,130
17 votes
2 answers
10k 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 ...
Videonauth's user avatar
  • 33.3k
12 votes
4 answers
29k views

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 - ...
ATLChris's user avatar
  • 395
14 votes
4 answers
20k views

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. ...
Ramon Tayag's user avatar
6 votes
1 answer
4k views

How do I integrate Byobu's copy-buffer with the X clipboard?

I want to be able to copy and paste between Byobu and Firefox without having to use a mouse. I could write the copy buffer to a file and open that file with Gedit but I was wondering if there was a ...
daithib8's user avatar
  • 3,351
5 votes
2 answers
763 views

Default GNU screen "screens"

As the title says, I would like to set up GNU screen on my headless box such that when it starts up with some screens already running. My .bashrc file runs screen on the first login with screen -xRR ...
robjtede's user avatar
  • 153
2 votes
1 answer
1k views

GNU screen: Running commands in different window when screen is started

The .screenrc file allows the user to specify that they want multiple windows open when screen is first run. Eg. screen -t myWindowA 0 "" screen -t myWindowB 1 "-${SHELL}" screen -t myWindowC 2 "-$...
Robert Gowland's user avatar
36 votes
7 answers
33k views

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' ...
Sandro's user avatar
  • 577
10 votes
1 answer
5k views

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 ...
Huw Walters's user avatar
6 votes
2 answers
5k views

Start a screen session inside LXD-managed container

I'd like to start a screen session inside an LXD-managed container so that I could detach running processes and maybe re-attach in the future when I want to check on their status. I tried to attach ...
Jonathan Y.'s user avatar
  • 1,044
4 votes
1 answer
2k views

Execute command on Gnu Screen attachment

Is it possible for GNU Screen to detect when a session has been attached and to run a command? (The command will be a shell script that I wrote) Thanks.
Sandro's user avatar
  • 577
4 votes
1 answer
17k 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 ...
RocketNuts's user avatar
3 votes
0 answers
961 views

Using the scrollwheel in GNU screen -- Trusty specific difference

I'd like to setup GNU screen to allow the mouse's scrollwheel to scroll around in the scrollback buffer, same question as here: https://stackoverflow.com/questions/359109/using-the-scrollwheel-in-gnu-...
Kellen Donohue's user avatar
1 vote
1 answer
1k views

Working with screen sessions in LXD-managed containers

I have been trying to attach and detach screen sessions in LXD-managed containers; initially, I wasn't able to even start one, but that problem was answered here. However, being able to start a ...
Jonathan Y.'s user avatar
  • 1,044
1 vote
1 answer
9k 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 ...
Mike V.D.C.'s user avatar
0 votes
1 answer
645 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, ...
jdmayfield's user avatar