screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). For computer monitors, see the tag /monitors.

learn more… | top users | synonyms (1)

10
votes
1answer
618 views

Redirect linux console on boot

Is it possible on boot to redirect the console output to a screen session? The server has no monitor attached, and I'd like to be able to see the primary console output. I've seen other posts about ...
3
votes
1answer
379 views

How to set up `screen` to modify the window title and xterm-window title?

I'd like to have my current $PS1 prompt (\u@\h:\w$(__git_ps1 "(%s)")\$ plus some coloring) to be also used as screen's window title (in the hardline) and as the xterm window title. How can this be ...
10
votes
1answer
318 views

Can a program detect it is running in a detached screen?

I am running an interactive curses program in a screen session on quite weak hardware. Most of the time, the screen is detached. Is there a way for this program to detect this situation, and basically ...
3
votes
0answers
858 views

How to efficiently use Console2 with screen/tmux/byobu?

I'm using Console 2 and msysgit's bash to SSH into my Linux machines. There, I'm using screen (but considering tmux and/or byobu), but currently simply with one single-terminal session per ...
6
votes
5answers
2k views

How to effectively use screen and SSH?

I'd like to configure SSH and screen such that a login will always reattach to a screen session. Ideally, that session would not quit but detach when I press C-d. How can this be achieved? And what ...
4
votes
1answer
2k views

Problems with automatically starting screen on SSH login

I'm looking at http://taint.org/wk/RemoteLoginAutoScreen to setup my server so it autostarts a screen session when I login via SSH. I have added the following to my .bashrc: # Auto-screen ...
10
votes
1answer
4k views

Prevent GNU screen from terminating session once executed script ends

I'm trying to force GNU screen to create a "virtual" terminal, without attaching to it, execute script inside and NOT terminate session once script ends. I tried many combinations, including: screen ...
4
votes
1answer
2k views

How to adjust brightness in Fedora 17 on Sony Vaio

I have a Sony E Series laptop with Fedora 17 and Windows 8 in dual boot. The brightness adjusts just fine on my Windows8 but not in Fedora. If I change it with the brightness slider in the power ...
4
votes
2answers
1k views

GNU screen freezes trying to reattach

I have several long-running GNU screen sessions. I ssh to the box they're running on and run screen -d -r foo to detach them if they're connected anywhere else, and then attach them in my current ...
6
votes
2answers
2k views

How to allow Page Up in GNU Screen?

I use Vim to edit text files on Linux. Commonly I connect to remote Linux machines using PuTTY from Windows. I use GNU Screen commonly as well. When using Vim inside Screen I am unable to use the ...
6
votes
2answers
386 views

Execute a process in the current pane, redirecting stdio to/from the pane

GNU Screen has a command called exec that will launch a subprocess and optionally let you do things with its file descriptors, including tying them in your window. I frequently use :exec !! sx -b ...
3
votes
2answers
594 views

How can I get the GNU screen command to automatically start with every BusyBox ash session?

On an embedded device with BusyBox installed I want to set it up so that the gnu screen command is automatically started when any BusyBox session is started. I have seen that I can add the screen ...
8
votes
1answer
457 views

Display screen caption on the first line of the terminal

When I start a new terminal, the prompt is on the first line. After working for a while (or running a command which produces some output), the prompt is on the last line. There it'll stay during the ...
2
votes
2answers
278 views

I would like to send commands and requests from a client side app to a Linux server

So I am planning/designing an app running on Mac that will send commands and make data requests to a linux server. Some of the things I would need to do will be send file manipulation commands, zip ...
4
votes
1answer
2k views

GNU Screen does not work when su'ing from root to a normal user

Is it normal, that when I am logged in as root, and the used su user, I can't access that users screen sessions? In this case, screen complains about it not having permissions on /dev/pts/x. I ...
1
vote
1answer
528 views

Combined su and screen at startup

I want to start a long running custom script at boot. The script must run under a specific username. So far I have successfully used the screen command and switched to the user in the custom script. ...
5
votes
1answer
2k views

How does 'screen' impact environment variables?

I noticed a difference in 'env' before and after a 'screen' call, is there any additional clarity on what gets called (for setting environment variables)? I couldn't see any clear explanation from ...
8
votes
1answer
2k views

Is there a way to make Screen scroll like a normal terminal?

I love screen, but it drives me nuts that I have to stop typing input, hit CTRL+A [, and then find what I need. Is there a way to make the scroll wheel function normally, rather than scrolling ...
1
vote
1answer
496 views

Detached screen on a remote host

I have a local script that runs a remote script via ssh. The local script is minecraft.php: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i {$this->pemkey} {$this->ssh_user} ...
2
votes
1answer
610 views

Garbage characters appear on screen when typing

When typing, garbage characters somehow appear on the screen for all the letters that I type. The garbage character is a small rectangle box, and this prevents me from executing any commands on the ...
9
votes
2answers
9k views

Scroll inside Screen, or Pause Output

I use screen for my command-line tasks while managing the servers where I work. I usually run small commands (mostly file-system tasks) but sometimes I run more extensive tasks (like DBA). The output ...
5
votes
1answer
1k views

dynamically generated logfile in screenrc shown in hardstatus

I want to use a combination of the date and time at startup as filename for GNU screen's logfile. In screenrc, if I put logfile '~/log/screen_%H_%m%d%Y_%0c-%t.%n' I get a dynamically generated ...
1
vote
1answer
570 views

Debian Server - Autostart two Servers in one Screen Session

I want to run a private Minecraft and Teamspeak server on my little vServer. When I start all manually, it works quite well but I want my servers to start automatically on server startup. As I run ...
5
votes
3answers
2k views

Why `> my.log 2>&1 &` causes the job to sustain log out?

I use myscript > my.log 2>&1 & to run a script and collect it's output - so that when I logout - the script will still be running. It I were to start it with myscript & - it will ...
7
votes
3answers
1k views

Does a terminal multiplexer have any benefit when used with a tiling window manager?

Both terminal multiplexers (screen, tmux) and keyboard-driven tiling window managers (ratpoison, dwm, xmonad) provide similar functionality. Is there any benefit in using both at the same time? What ...
1
vote
7answers
11k views

Linux Mint can't set brightness of screen

I'm on the latest Linux Mint release on an Acer Aspire S3. Unfortunately I can't set the screen brightness in the Screen preferences. It doesn't matter which position the slider has, it's always the ...
3
votes
2answers
411 views

Start a GNU screen window in the background/without focus

The following command screen -t 'fubar' cmd will create a new screen window with the command cmd running in it and will set the focus to this window. How can I keep the focus in the current screen ...
5
votes
1answer
1k views

Extend the scrollable content of gnu-screen?

Using the screen terminal environment, I ofen enter copy mode by using Ctrl-aEsc. However, the scrollable output is often too short for me to view the desired information. What do I modify to extend ...
21
votes
1answer
3k views

How do you make tmux count windows starting with 1 instead of 0?

I was able to make GNU Screen start counting windows with the number 1 instead of the default 0 with this code in my .screenrc: # Get rid of screen 0 bind c screen 1 bind ^c screen 1 bind 0 select 10 ...
3
votes
3answers
3k views

Cannot execute command at GNU screen startup

I want to do something similar to what's written here without using zsh (I use bash), but if I try to start screen with screen 'cd /home/cataldo/Programs' I get the following error: Cannot exec ...
6
votes
3answers
4k views

Attach multiple times to a single screen session

I've been using screen -dRaA -S x to open up a single session between different workstations as I move about. Handy. Is it possible to connect multiple times to a single session, though, without ...
1
vote
1answer
159 views

Is it possible to have a screen macro for this?

Here's my .screenrc: defscrollback 5000 vbell on vbell_msg " dierre!!! ---- Wuff!! " screen -t GRINDER ssh dierre@grinder.dierre.lan screen -t TRUNK attrcolor b ".I" termcap xterm ...
3
votes
1answer
425 views

Redirecting/grep'ing an existing shell's STDOUT

I run a lot of long running processes (simulations) that print progress to STDOUT. I occasionally forget to redirect to STDOUT to a file I can grep, and it's usually too far along to restart. ...
2
votes
1answer
171 views

How do i get screen to execute/load .zprofile when starting a new window?

How do i get screen to execute/load .zprofile when starting a new window?
4
votes
1answer
1k views

Cannot set up screen panning in Ubuntu with xRandR which states that it cannot find the modes

I am using a Samsung n150 netbook with a 10.1 inch screen and it has a maximum screen resolution of 1024x600. I am running Ubuntu 10.04 LTS and want to enable screen panning for a larger virtual ...
3
votes
2answers
542 views

Resuming screen with UTF8 enabled breaks character input

Overview of UTF8 screen re-attachment issues. Problem: Creating a screen that uses UTF8 works perfectly until re-attaching said screen session. Steps: ssh remothost screen -U -S ttytter [detach ...
3
votes
4answers
3k views

Leave remote command running storing output

Scenario; I have SSH'ed to a machine, opened a new screen session, and fired off a script. Some days later I SSH back to that machine, re-attach the screen session and look at the output that has ...
4
votes
1answer
361 views

How do you bypass or skip the intro message when starting screen?

When I start screen, I get a message giving the version, copyright, and bug-reporting email address. I don't want to see this every time I start screen. Searching the man page didn't seem to result ...
4
votes
1answer
1k views

byobu configuration menu is missing options

I've used byobu on servers in the past (with byobu version 3.4) but I recently installed CentOS 6.2 and installed byobu 5.15 from the tarball. Most byobu-config menus have options to change ...
6
votes
4answers
4k views

Is there a tmux equivalent of “screen -D -R”

I would like to know if there is a way to get tmux to behave like screen -D -R so I could say, have the command as a default command in Putty. These screen switches would force detach of an existing ...
4
votes
2answers
1k views

Buffer overrun on Fedora 16 serial

I got a brain smashing problem with Fedora 16 and my serial port. I use the serial to monitor an STB on which I'm developping. The STB runs on Linux and when booted, I launch the program I'm working ...
0
votes
1answer
429 views

Setting LS_COLORS and in a GNU Screen

Is there a way to set a GNU Screen LS_COLORS to that of the default non-screen terminal window? Is there .screenrc or .screen_profile, I don't understand what happens when a GNU Screen is ...
2
votes
2answers
313 views

GNU Screen and Emacs

I upgraded recently to OpenSuSE 12.1 from 11.3 and now when I open any files in emacs from inside a screen session, I get a blank buffer. Let's say I open it as: emacs myFile.txt it will open to an ...
0
votes
2answers
241 views

Why doesn't Alpine's viewer command work within GNU screen and how can I fix it?

The title pretty much says it all. When I run the viewer command in alpine from within GNU screen it tells me "viewer command completed" but it doesn't actually bring up Lynx (or any other viewer). I ...
1
vote
2answers
645 views

Move to the beginning of a line in screen [duplicate]

Possible Duplicate: Shell: how to go to the beginning of line when you are inside a screen? Normally to get to the beginning of a line in a terminal the command is Ctrl+a. While using GNU ...
2
votes
1answer
2k views

What's the difference between a screen being attached and detached?

[blah]$ screen -ls There are screens on: 16517.pts-0.blah (01/28/2012 01:55:32 PM) (Detached) 4345.pts-1.blah (01/27/2012 11:22:48 AM) (Attached) 2 Sockets in ...
5
votes
1answer
5k views

how to resize horizontally a screen region

I am using screen to split my terminals but I would like to be able to resize the horizontal dimension of the split screens. If I do C-a :resize 10 I only change the vertical dimension to 10 lines. ...
3
votes
0answers
141 views

What do you use to manage your shell history? [duplicate]

Possible Duplicate: Preserve bash history in multiple terminal windows Can I easily search my history across many screen windows? I rely on my shell history a lot, I use Ctrlr and arrow ...
28
votes
3answers
8k views

Shell: how to go to the beginning of line when you are inside a screen?

I am inside a screen (screen -Ra). I have a long command, and I am at the end. Instead of keeping the left arrow, how can you go to the beginning of the line? CTRL-A works when I am in a normal ...
2
votes
3answers
945 views

console vim in screen session: remap Ctrl-Shift-Left, Ctrl-Shift-Right to not delete lines

I have my gvim setup so that I can select word-wise with Ctrl-Shift-Right, Ctrl-Shift-Left etc. (yes, I know it's a bad habit, but it works for me..). Unfortunately, these key combinations delete ...