Tagged Questions

Links: GNU screen main site - for downloads and documentation. Nice introductory article from kuro5hin.org, GNU Screen: an introduction and beginner's tutorial Introduction to using the scrollback buffer for copy and paste within screen

learn more… | top users | synonyms

1
vote
1answer
15 views

How to get byobu to run screen instead of tmux?

With the recently added tmux support, byobu has started running tmux instead of screen. I did not change any settings. It just started using tmux. I would rather use screen. How can I change this?
1
vote
1answer
21 views

gnu screen: find which screen window has a given running process or variable?

I would like to find out which of my ~50 gnu screen windows has a process running with a specific variable defined in it. For example, about a week ago, I did this: id=ABC123456; ~/run_long_process ...
0
votes
1answer
42 views

installing git version of gnu screen on a rh6 linux with no root permissions

How I would go about installing git version of gnu screen on a centos with no root permissions? I tried this: mkdir ~/work cd ~/work git clone git://git.savannah.gnu.org/screen.git cd screen/src ...
1
vote
3answers
62 views

gnu screen: reordering windows like browser drag+drop tab reordering

I have 20 windows open in my screen session, and I would like to reorder the right-most window 20 to say, just between positions 9 and 10 like this: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 ...
3
votes
2answers
78 views

How can I run byobu from xterm at starting?

I set up byobu auto run with the command byobu-enable. It's great when I log in from terminal or ssh, but how can I make xterm attach to it automatically ? (mate-terminal from Linux mint especially)
1
vote
0answers
47 views

GNU screen and PID namespaces

I have GNU screen running in LXC container, thus having private PID namespace. I'm trying to attach to that screen from "outside" the namespace. Both screens share filesystem, thus are able to access ...
2
votes
4answers
83 views

Use gnu-screen and X instead of desktop environment?

I have a HTPC with Debian currently installed on. I would like to run applications which got a gui but without using a desktop environment such as gnome, kde etc. I was wondering if running X would ...
0
votes
2answers
68 views

Reopen screen session after connecting to server

Im working only in a screen session on my vps which runs all the time. When I connect to this server via ssh, I reattach this with a bash alias alias screenr='screen -r -d' What I want: Connecting ...
1
vote
1answer
35 views

Reattaching to screen - Linux

We run several screen instances from one box, eg. : 27185.pts-53.CentOS-57-64-minimal (Detached) 27209.pts-53.CentOS-57-64-minimal (Detached) 27281.pts-53.CentOS-57-64-minimal ...
1
vote
1answer
91 views

Rename screen session

Is it possible to change the name of a GNU screen session? Say I called started it with "screen -S foo" and I want to rename it to bar.
0
votes
1answer
22 views

Using a script to control a process already running in screen

Due to Gnu Screen being hard to Google for, I've been having trouble finding an answer to this one. As a concrete (what are you trying to do) example: Running a server process (under linux) starts up ...
1
vote
1answer
56 views

How to determine if the client on an ssh connection is using screen

I have an odd predicament. I want to detect on the remote end of an ssh connection if the client is running the terminal inside a screen session. I want to set my prompt based on this. So far I have ...
0
votes
3answers
110 views

Keep GNU screen window open after program terminates?

The GNU Screen manual says: When a program terminates, screen (per default) kills the window that contained it. The (per default) suggests that you can change this option, so that a program ...
0
votes
1answer
63 views

Scrolling in GNU Screen

I'm seeing something weird in GNU screen. When I use screen on my own Ubuntu 10.04 box, as I enter a bunch of lines in the shell, I can see my GNOME-terminal window gathering my scrollback, and I can ...
1
vote
0answers
33 views

GNU screen session dies when I open vim or vi

Sometimes it dies in the moment a file is opened. Sometimes it allows me to browse the same file and dies on tenth PageDown, for example. I set "term xterm" in .screenrc.
0
votes
2answers
105 views

How to list all users that have terminal sessions, including screen sessions?

I would like to have a list of all users that are active on my Linux system, including those who have running but detached screen sessions. The who command only shows me currently logged in users, but ...
0
votes
1answer
139 views

GNU Screen: Setting the default baud rate

Does anyone know how to set the default baud rate for GNU Screen? Currently I explicitly specify the baud rate when I open screen like so: $ screen /dev/ttyUSB0 115200 115200 is a magic number, and ...
1
vote
0answers
42 views

How to use cursor keys to switch buffers in GNU screen

I want to use cursor keys or cursor keys with a modifier like Ctrl to switch between screen buffers (e.g. C-a [arrow] or C-a C-[arrow]). So far I have tried settings like the ones below with no ...
1
vote
0answers
47 views

LINUX [UBUNTU]: screenlog.0 - modify path

I have a screen command like this: screen -A -h 1500 -m -dmS SKY-001 /home/SKY-users/SKY-001/./ ... I'd like to start the output logging and save the screenlog.0 file to /home/SKY-users/SKY-001. ...
3
votes
1answer
51 views

linux 'screen' command - lowers process priority if detached?

If I run a program within a screen session, and then detach the screen - does the program have lower scheduling priority?
2
votes
1answer
85 views

Write special chars in hardstatus of GNU Screen

I want write the next specials chars to hardstatus of GNU Screen: "↑" (up arrow) and "↓" (down arrow), but it shows strange chars. How can I do this? More info: This worked to me before but I have ...
2
votes
1answer
92 views

gnu-screen: Automatically run script when attach/detach session

I would like to have bash script run by screen every time when i attach (start.sh) or detach (end.sh) session. Is there any way to configure screen to do that?
1
vote
1answer
39 views

How to disable input translation for some keys in GNU Screen?

I have Ctrl-Left and Ctrl-Right bound for vim, and would like to be able to use these shortcuts when vim runs inside screen. However, because of Screen's input translation my key presses are mangled ...
5
votes
2answers
88 views

Can I name GNU screen sessions?

I use multiple sessions for different things. One for work, one for school work and one each project I'm working on. It gets really hard to keep track of the sessions when screen -ls returns ...
2
votes
2answers
100 views

Screen does not appear in list when using sudo

While under root user (printed by whoami), execution of sh -c "screen -d -m -S testscreen sh -c \"echo asd; echo qwe\"" creates a screen with two lines output, which can be reattached via screen -r ...
0
votes
1answer
46 views

Launch process in new window, whether GNU screen session exists or not

I'm having a bit of trouble with GNU's screen. What I want to do is this (from cron): If a screen session named cron exists, add a new window to the session and launch a process in it (but do not ...
1
vote
1answer
49 views

gnu screen - how to highlight searched text

While doing a reverse text search via " C-a[? search_string", I have to keep pressing 'n' to figure out occurrences of 'search_string'. Is there a configuration in GNU screen that can hihglight ...
0
votes
1answer
145 views

GNU screen, vim, and urxvt with 256 colours. gnu

I have defined urxvt*color0: #000000 urxvt*color8: #777777 in my $HOME/.Xdefault. Using vim (console not gvim), this gives me a light grey for strings in bash scripts when I use urxvt. ...
0
votes
1answer
37 views

Reattaching GNU Screen session name with a common prefix

I have 2 screens with session names test1 and test19. When I try to reattach to test1 by typing screen -r test1 Gnu Screen cannot tell the difference and pops up 27082.test19 (08/10/2011 ...
1
vote
2answers
55 views

screen -x ignore utf8

I use screen and I use utf8 with this in my ~/.screenrc # utf-8 encoding utf8 utf8 defencoding utf8 ok. But, when I reopen screen with screen -x screen don't show the utf8 characters EDIT I ...
0
votes
0answers
73 views

Launch program automatically with screen/byobu using an alias

My screen starup commands look like: screen alias1 screen alias2 alias1 is an alias pointing to command1 alias2 is an alias pointing to command2. alias1 and command1 share the same name. alias2 and ...
4
votes
2answers
48 views

A “view-only” mode in `screen`?

One of my favorite modes for screen is using the -x option, wherein multiple users can connect-to the same session (great for team troubleshooting and training purposes). However, it would be really ...
1
vote
2answers
184 views

Run 'screen -RD' automatically after connecting from PuTTY

I would like to have PuTTY automatically run screen -RD when I log in, however I would like if possible, for this to be either configured as part of PuTTY, or for the server to identify when a PuTTY ...
3
votes
1answer
115 views

Mac Gnu-Screen doesn't load default .bash_profile

I have a bunch of custom settings in my bash_profile. when I use gnu-screen, I realized that my screens do not execute source /Users/disappearedng/.bash_profile. I try to put source ...
1
vote
1answer
80 views

GNU Screen: Visual indication of copy mode

When I enable copy mode in a window, I see "Copy mode ..." in the bottom line of the terminal. I configure screen to show the list of windows on the bottom. Now, when I switch to another window and ...
2
votes
3answers
180 views

Running emacs inside screen

I have a screenrc file but I am finding some conflicts when I run emacs inside screen. For e.g, moving across buffers in emacs, Ctrl-right arrow/left arrow, instead of moving back and forth sends ...
0
votes
2answers
128 views

I would like to write a shell script/rc file that automates GNU Screen splits and starts programs within them

I would like to automate a scenario when I am working on a rails project, and I think screen is the perfect way to accomplish this without having to drag and drop multiple windows after every startup ...
1
vote
0answers
89 views

Running emacs in GNU Screen overrides .emacs settings for [home] key binding in FreeBSD 8.2

If I use the following .emacs file, I am able to go to the beginning/end of the current line using the home/end keys as I would expect. (keyboard-translate ?\C-h ?\C-?) (add-to-list 'load-path ...
2
votes
1answer
260 views

screenrc: How to map “alt+number” to “select a screen window” in gnome terminal

I found this online: bindkey "\261" select 1 bindkey "\262" select 2 bindkey "\263" select 3 .... Basically it maps alt+1 to "select 1"; alt+2 to "select 2". So when you press alt+1, it is ...
2
votes
3answers
71 views

putting screen away?

I've just installed screen, what a great tool! But i'm having some problems. CTRL-A K kills a screen CTRL-D detatches from a screen but what are the difference? both results in loosing the screen? ...
2
votes
3answers
88 views

In 'screen' (linux utility) windows, where is the .bash_history of individual windows?

I am using the linux-utility 'screen' (I mean the terminal multiplexer). In each "window" of screen, I am running bash. But these bashes do not seem to have any command history. For example, if I ...
0
votes
2answers
269 views

Using screenrc, how can I make `C-a c` open a new window at the current window's working directory?

Using screenrc, how can I make C-a c open a new window at the current window's working directory? By default it appears to open the new window at the working directory at the time the original screen ...
1
vote
2answers
80 views

Use screen to execute command from commandline

Is there a way wherein we can start a screen, execute a command and detach it without actually entering into the screen? something like screen -[some option] [command tobe executed] I need this ...
0
votes
1answer
101 views

Define a new “Ctrl-a <key>” shortcut in GNU screen?

I want to be able to hit Ctrl+a (or whatever my command sequence is) followed by a lowercase k rather than the uppercase one that screen defaults to. I've played around with the bindkey directive a ...
3
votes
1answer
105 views

Disconnect process from Linux console

I have a long-running process that was started in bash terminal on Debian. Unfortunately it wasn't started inside screen. Is there a way to disconnect this process from current console and connect to ...
3
votes
3answers
197 views

How to run a second command in same screen session

I'm starting the first command in screen like this: screen -d -m -S testen -t lalala watch df -h Now I have a screen session running in background and I can reconnect at a later time. But how can I ...
3
votes
1answer
105 views

How can I make window list in GNU Screen appear always ( C-a, C-w)

How can I make window list in GNU Screen appear always ( C-a, C-w) ( permanently )
7
votes
5answers
1k views

Reload a Linux user's group assignments without logging out

When assigning a user's secondary group list using: # usermod -G <grouplist> <user> is it possible to force this group assignment to take effect without logging out all running ...
1
vote
1answer
256 views

Run a command in GNU Screen when the window changes

Is it possible to execute a screen command when the user changes the window? I have my current working directory in my hardstatus by using zsh's precmd() feature to change screen's working directory ...
1
vote
1answer
66 views

Do each application need to support writing to /dev/stdout or /dev/fd1 or is that handled transparently by the OS?

I tried this command to print the buffer of an existing screen session to stdout but I don't know why it doesn't print anything. screen -x lftp -X hardcopy /dev/fd/1 screen -x lftp -X hardcopy ...

1 2 3 4