<feed xmlns='http://www.w3.org/2005/Atom'>
<title>anaconda.git/data/systemd/anaconda-tmux@.service, branch firstboot-support</title>
<subtitle>Anaconda installer - personal development space, mostly the new TUI</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/msivak/public_git/anaconda.git/'/>
<entry>
<title>Run anaconda inside tmux</title>
<updated>2012-08-02T20:43:59+00:00</updated>
<author>
<name>Will Woods</name>
<email>wwoods@redhat.com</email>
</author>
<published>2012-07-17T19:58:42+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/msivak/public_git/anaconda.git/commit/?id=2ce721057958ba589bb79189fbe0cb4ec0dd14dd'/>
<id>2ce721057958ba589bb79189fbe0cb4ec0dd14dd</id>
<content type='text'>
Having a shell on tty2 or hvc1 is convenient.. if you have tty2 or hvc1.
But not everyone does - think s390, or POWER, or remote virt guests.

Instead, let's run anaconda inside a tmux session, with windows
pre-configured with a shell, anaconda.log, program.log, and storage.log.

We set this up by using two services: anaconda.service, and
anaconda-tmux@.service.

anaconda.service starts anaconda (and starts watching the logs) inside a
detached tmux session, on screen 1. It also starts a shell on screen 2,
and 'tail -F' on anaconda.log, storage.log, and program.log on screens
3, 4, and 5.

anaconda-tmux@.service will be instantiated on the default console
(tty1, hvc0, ttyS0, whatever) and connect to the running tmux session,
which will show screen 1 - and thus the text UI (if any) appears.

Exiting tmux just restarts anaconda-tmux@.service, which reconnects to
the existing session, so you can't accidentally kill the installer by
leaving tmux.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Having a shell on tty2 or hvc1 is convenient.. if you have tty2 or hvc1.
But not everyone does - think s390, or POWER, or remote virt guests.

Instead, let's run anaconda inside a tmux session, with windows
pre-configured with a shell, anaconda.log, program.log, and storage.log.

We set this up by using two services: anaconda.service, and
anaconda-tmux@.service.

anaconda.service starts anaconda (and starts watching the logs) inside a
detached tmux session, on screen 1. It also starts a shell on screen 2,
and 'tail -F' on anaconda.log, storage.log, and program.log on screens
3, 4, and 5.

anaconda-tmux@.service will be instantiated on the default console
(tty1, hvc0, ttyS0, whatever) and connect to the running tmux session,
which will show screen 1 - and thus the text UI (if any) appears.

Exiting tmux just restarts anaconda-tmux@.service, which reconnects to
the existing session, so you can't accidentally kill the installer by
leaving tmux.
</pre>
</div>
</content>
</entry>
</feed>
