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)

2
votes
2answers
4k views

Send file by xmodem or kermit protocol with GNU screen

I work with an RS-232 device via GNU screen. $ screen /dev/ttyUSB0 115200 At some point I need to send a local file to the device using either the xmodem or kermit protocol. On Windows I use ...
13
votes
8answers
618 views

Suggested setup for an ultra-lightweight text-based programming environment in linux

I am looking for suggestions for a setup for my particular needs. I haven't done much linux since college and want to get back into it as a hobby. I have some not-too-powerful hardware (512 MB ram, ...
6
votes
3answers
758 views

How to screen'ize already running session? [duplicate]

Possible Duplicate: How can I disown a running process and associate it to a new screen shell? It is a good practice to run long processes in screen session, to protect them from session ...
1
vote
2answers
290 views

How to run linux process and come back to it later?

I'm trying to run a minecraft server on linux. Running the server starts an important interactive session. I can run the server in the background by appending & at the end of the command and log ...
3
votes
0answers
30 views

Permanently fixed screen titles [duplicate]

Possible Duplicate: Force title on GNU screen I know how to set a title in screen (Ctrl-A A). However, every time I do so, if I change directories or run a command, the window title ...
2
votes
2answers
82 views

`cd` all screens to the PWD of the current screen

Suppose that I am running screen on a remote server with four open screens. Is there a quick way to cd all the screens to the working directory of the currently-open screen?
1
vote
2answers
294 views

Unable to 'stuff' commands into a created 'screen' immediately after creating it [duplicate]

Possible Duplicate: sending text input to a detached screen With reference to the answered question: Sending input to a screen session from outside I am trying to write a script that will ...
3
votes
0answers
66 views

gnu screen: automatic session on split

Inactive region appears after 'split' command in gnu screen now. You must go to the new region and type :screen. Only after that shell session appears in this region. Is it possible to make new ...
1
vote
1answer
144 views

Is it possible to disconnect a GUI program launched within vifm from vifm?

One can launch GUI programs, for example, gv or xpdf from vifm in background in vifm's command line: :!gv %f & However, if gv is launched by pressing Enter on a file like aPSfile.ps in vifm, ...
6
votes
2answers
676 views

emacs colors based on $TERM environment variable

I want to know if it is possible to make emacs, when running in a gnu screen or tmux session, use the same colors as when TERM=xterm. In a gnu screen or tmux session, TERM=screen and emacs uses a ...
9
votes
2answers
5k views

How do I cycle through panes inside a window in tmux like in screen?

I thought Tmux - move window to pane was the same question but it doesn't seem to be. Coming from using GNU screen regularly, I'm looking for tmux to do the same things. On of the things I do ...
3
votes
3answers
227 views

systemd service that needs .ssh/id_dsa password

I have a systemctl service that starts a process smd-loop in a screen session. This process requires acces to remote SSH sources (for syncing purposes) and thus needs to be able to access my id_dsa ...
10
votes
1answer
550 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
323 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 ...
9
votes
1answer
293 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
755 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 ...
5
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 ...
3
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
1answer
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
347 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
524 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 ...
7
votes
1answer
427 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
255 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
454 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 ...
6
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
471 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
572 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 ...
8
votes
2answers
7k 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 ...
4
votes
1answer
974 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
517 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 ...
0
votes
5answers
9k 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
364 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 ...
19
votes
1answer
2k 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
2k 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
3k 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
147 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
408 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
165 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
507 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
274 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 ...