Skip to main content

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
232 votes
5 answers
669k 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,150
211 votes
13 answers
898k views

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 ...
JohnMerlino's user avatar
  • 7,429
137 votes
6 answers
488k views

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 ...
JohnMerlino's user avatar
  • 7,429
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
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
26 votes
6 answers
23k 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 ...
WoJ's user avatar
  • 1,315
20 votes
4 answers
42k 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
17 votes
2 answers
11k 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.5k
17 votes
2 answers
23k views

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 "....
Scott's user avatar
  • 271
15 votes
6 answers
17k views

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: \w\a\]${debian_chroot:+($...
chmullig's user avatar
  • 253
14 votes
4 answers
21k 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
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
12 votes
2 answers
8k views

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 ...
sheepeatingtaz's user avatar
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
9 votes
3 answers
3k views

How to define AutoKey shortcut which sends the same keystroke to the window with certain title

How to define a global shortcut Ctrl+a 1 with AutoKey which sends the same keystroke Ctrl+a 1 to the window with title 'gnu screen' ? If there is no such titled window it should show a popup message "...
zuba's user avatar
  • 2,403
8 votes
1 answer
4k 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 ...
big_plums's user avatar
8 votes
1 answer
7k views

Default environment for screen is /bin/sh when it should be /bin/bash?

I'm trying to invoke a program to run on startup in /etc/rc.local which runs two commands: Start a detatched screen using screen -dmS name Send a command to that screen using screen -S name -X stuff ...
monkeymatrix's user avatar
8 votes
5 answers
728 views

Is there a terminal logout that does something like what GNU Screen does?

As most of you know GNU Screen is a nice tool that enables you to do something like: One other good use for the detach and reattach is as a console-mode "remote desktop" feature. You can detach ...
NoSenseEtAl's user avatar
7 votes
3 answers
1k views

Editable annotations on terminal like sticky notes

I use screen, which lets me use many terminals. However, because there are so many terminals sometimes I forget what I am doing. Is there any terminal application that can draw over a section of the ...
user1138184's user avatar
7 votes
4 answers
3k views

byobu and ssh-agent

byobu cannot connect to ssh-agent socket well. actually I can make just one connection via ssh-agent but if I try to establish another ssh connection using the agent, it doesn't work. I've tried ...
ubik's user avatar
  • 71
7 votes
1 answer
1k views

What is the status of GNU screen?

Two answers in this question state that screen is unmaintained. However, the GNU repository of screen shows an upload this year after 6 years, and 14.04 has two newer versions than the earlier Ubuntu ...
muru's user avatar
  • 200k
7 votes
3 answers
62k 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 ...
Metomorphose's user avatar
6 votes
2 answers
6k 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
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
4 answers
14k views

Session freezes when using the screen command

This happens to me once every couple of hours. When I use the screen command and attempt to switch between windows by pressing ctrl+shift+a twice in succession, my session freezes. This has happened ...
user784637's user avatar
  • 11.1k
5 votes
2 answers
797 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
5 votes
2 answers
5k views

How can I create a cron command that will execute a command inside a detached screen?

I have created a screen, but can I now somehow execute a command that will run commands in the detached screen? I do not even know if this is possible, but if it is, it will probably be something ...
user avatar
5 votes
1 answer
832 views

Reset or recover GNU screen password

I have a server where I wish to run a process using screen. I start a screen using: screen -S <screen_name> Detach using ctrl+a+d. But when try to reattach the screen using, screen -r <...
salmanwahed's user avatar
5 votes
1 answer
692 views

Byobu screen default for all users

I have installed byobu in my ubuntu 12.04 server installation and set as backend to use screen. What i am trying to do without success is to have all users on my system to use byobu having also ...
kostasp's user avatar
  • 155
5 votes
0 answers
1k views

How to share byobu with multiple users?

The best way to learn and troubleshoot is to pair up with someone else on the internet via text based screensharing. Love the ergonomics of byobu for a single user at a single time. However when I ...
rjt's user avatar
  • 426
4 votes
1 answer
18k 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
4 votes
1 answer
19k 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. ...
S3ntri's user avatar
  • 43
4 votes
2 answers
8k 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 ...
tjespe's user avatar
  • 1,338
4 votes
1 answer
1k views

How do I get colors and a correct character set with screen through PuTTY?

Screen session over putty connections from windows are colorless and have a character set problem (shows in curses applications like aptitude). A screen session on a proper terminal works just fine. ...
John's user avatar
  • 143
4 votes
1 answer
12k views

How to create screen session on startup with command that doesn't end when command finishes

I want to edit my rc.local file to start up a few server sessions each in it's own GNU screen. However, whenever I stop a server, the screen terminates. Currently I have: screen -dmS test ~/tmp/...
QuinnBaetz's user avatar
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
0 answers
139 views

Forwarding GNU Screen notification to Ubuntu desktop

GNU Screen has utility of monitoring window activity. Is it possible to forward the notification of GNU Screen to Ubuntu desktop environment? For example, when GNU Screen generates a notification, ...
Kadir's user avatar
  • 453
3 votes
2 answers
14k 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 "...
Hazzdood's user avatar
3 votes
3 answers
4k views

How to disable window caption bar in GNU Screen?

I usually split my GNU Screen into four regions, and I don't really need the status bars for each of those windows. Is there an option to disable GNU Screen window status bars? I could only find ...
Stann's user avatar
  • 15.2k
3 votes
2 answers
993 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:...
Sergiy Kolodyazhnyy's user avatar
3 votes
2 answers
858 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) ...
american-ninja-warrior's user avatar
3 votes
1 answer
2k views

How do I get Guake(terminal) to report the correct terminal?

I've been using Guake on my laptop and my desktop and everything has been fine until I recently bought a new HD and did a fresh install of Ubuntu 10.10. I installed Guake and it works fine except for ...
Wayne Werner's user avatar
  • 6,762
3 votes
1 answer
1k 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 ...
Derek's user avatar
  • 153
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. ...
brdagr's user avatar
  • 31
3 votes
1 answer
949 views

Scrollwheel in GNU screen in xfce4-terminal

I apologize that this is pretty much a duplicate of Using the scrollwheel in GNU screen -- Trusty specific difference but I don't have enough reputation to comment on that and I can provide much more ...
JonB's user avatar
  • 131
3 votes
0 answers
977 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
3 votes
0 answers
1k views

How do I 'workon' a Python virtualenv in Byobu windows configuration?

I'm trying to configure Byobu that it will start with a few windows ready in my Python virtualenvwrapper project directory. The only thing that needs to be run is the command workon myvirtualenvname. ...
gertvdijk's user avatar
  • 68.4k
3 votes
1 answer
4k views

How do I open screen with many tabs to execute some commands within each one

How to open screen with many tabs? How can I execute some commands within each tab, plus giving the main screen window a name to call it again later to execute other commands? For example, I have a ...
Ahmed Zain El Dein's user avatar
2 votes
2 answers
6k 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 ...
user1506145's user avatar
2 votes
1 answer
219 views

Non-deterministic behaviour in bash script for screen window opening and naming

I have the following bash script to set up a screen session with four windows from the command line in 13.10. Comments indicate what I think it ought to do. screen -dmS mysession # start screen, name ...
iftheshoefritz's user avatar