<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://opensimulator.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://opensimulator.org/index.php?action=history&amp;feed=atom&amp;title=Tmux</id>
		<title>Tmux - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://opensimulator.org/index.php?action=history&amp;feed=atom&amp;title=Tmux"/>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Tmux&amp;action=history"/>
		<updated>2026-06-05T07:52:40Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.9</generator>

	<entry>
		<id>http://opensimulator.org/index.php?title=Tmux&amp;diff=49637&amp;oldid=prev</id>
		<title>Djphil: Add Quicklinks</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Tmux&amp;diff=49637&amp;oldid=prev"/>
				<updated>2020-10-19T16:09:01Z</updated>
		
		<summary type="html">&lt;p&gt;Add Quicklinks&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 16:09, 19 October 2020&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;{{Quicklinks}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{thirdparty}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{thirdparty}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://tmux.sourceforge.net/ Tmux] is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://tmux.sourceforge.net/ Tmux] is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Djphil</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/index.php?title=Tmux&amp;diff=47025&amp;oldid=prev</id>
		<title>CodyCooper at 18:00, 5 December 2018</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Tmux&amp;diff=47025&amp;oldid=prev"/>
				<updated>2018-12-05T18:00:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 18:00, 5 December 2018&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Quicklinks&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;thirdparty&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://tmux.sourceforge.net/ Tmux] is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://tmux.sourceforge.net/ Tmux] is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>CodyCooper</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/index.php?title=Tmux&amp;diff=30812&amp;oldid=prev</id>
		<title>Ssm2017: added quicklinks</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Tmux&amp;diff=30812&amp;oldid=prev"/>
				<updated>2012-09-18T00:29:21Z</updated>
		
		<summary type="html">&lt;p&gt;added quicklinks&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 00:29, 18 September 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;{{Quicklinks}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://tmux.sourceforge.net/ Tmux] is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[http://tmux.sourceforge.net/ Tmux] is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ssm2017</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/index.php?title=Tmux&amp;diff=30807&amp;oldid=prev</id>
		<title>Ssm2017: Created page with &quot;[http://tmux.sourceforge.net/ Tmux] is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and contro...&quot;</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/index.php?title=Tmux&amp;diff=30807&amp;oldid=prev"/>
				<updated>2012-09-17T21:33:40Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;[http://tmux.sourceforge.net/ Tmux] is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and contro...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[http://tmux.sourceforge.net/ Tmux] is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.&lt;br /&gt;
&lt;br /&gt;
A lot of people are using [http://www.gnu.org/software/screen/ GNU Screen] to run OpenSimulator but Tmux is offering some good tools to enhance the task.&lt;br /&gt;
&lt;br /&gt;
Tmux is mostly working like Screen except that the default shortcut to run commands is ctrl+b instead of ctrl+a.&lt;br /&gt;
&lt;br /&gt;
A quick crash course is [http://robots.thoughtbot.com/post/2641409235/a-tmux-crash-course available here].&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
=== Debian ===&lt;br /&gt;
 sudo aptitude install tmux&lt;br /&gt;
If you would like to use ctrl+a instead of ctrl+b and get some usefull shortcuts, you can use a ~/.tmux.conf file and add inside&lt;br /&gt;
 # remap prefix to Control + a&lt;br /&gt;
 set -g prefix C-a&lt;br /&gt;
 unbind C-b&lt;br /&gt;
 bind C-a send-prefix&lt;br /&gt;
&lt;br /&gt;
 # force a reload of the config file&lt;br /&gt;
 unbind r&lt;br /&gt;
 bind r source-file ~/.tmux.conf&lt;br /&gt;
&lt;br /&gt;
 # quick pane cycling&lt;br /&gt;
 unbind ^A&lt;br /&gt;
 bind ^A select-pane -t :.+&lt;br /&gt;
&lt;br /&gt;
== Running sessions ==&lt;br /&gt;
You can start sessions using the syntax :&lt;br /&gt;
 tmux new -s my_session_name&lt;br /&gt;
to detach the session, you can use the shortcut ctrl+b d&lt;br /&gt;
&lt;br /&gt;
Then, you can use the &amp;quot;-t&amp;quot; (target) switch to target a session for a command.&lt;br /&gt;
 tmux attach -t my_session_name&lt;br /&gt;
&lt;br /&gt;
== Windows and panes ==&lt;br /&gt;
=== Windows ===&lt;br /&gt;
Tmux has the ability to use &amp;quot;tabs&amp;quot; for the display.&lt;br /&gt;
Tabs are called &amp;quot;windows&amp;quot;.&lt;br /&gt;
You can create a &amp;quot;window&amp;quot; using the shortcut ctrl+b c&lt;br /&gt;
Then switch between windows with ctrl+b [0-9]&lt;br /&gt;
&lt;br /&gt;
=== Panes ===&lt;br /&gt;
Tmux has the ability to split a window in several &amp;quot;panes&amp;quot;.&lt;br /&gt;
To split vertically, use the shortcut ctrl+b &amp;quot;&lt;br /&gt;
To split horizontally, use the shortcut ctrl+b %&lt;br /&gt;
To move the cursor between panes, use the shortcut ctrl+b and arrows keys&lt;br /&gt;
If you use the 3 keys at the same time, you can resize the actual pane.&lt;br /&gt;
&lt;br /&gt;
== Sharing sessions ==&lt;br /&gt;
Here is the intersting part to use Tmux with OpenSimulator.&lt;br /&gt;
The session is shared using a &amp;quot;socket&amp;quot; and the users sharing the session have to be allowed to write in this socket.&lt;br /&gt;
&lt;br /&gt;
=== Prepare the place ===&lt;br /&gt;
We will create a group and add all the users sharing the session in this group.&lt;br /&gt;
We will create a folder in the /tmp folder to host the socket.&lt;br /&gt;
We will give the write authorization to the group on the socket folder.&lt;br /&gt;
&lt;br /&gt;
 groupadd tmux-share&lt;br /&gt;
 addgroup tmux-share myuser&lt;br /&gt;
 addgroup tmux-share myotheruser&lt;br /&gt;
 mkdir /tmp/tmux-share&lt;br /&gt;
 chgrp tmux-share /tmp/tmux-share&lt;br /&gt;
 chmod -R 2775 /tmp/tmux-share&lt;br /&gt;
&lt;br /&gt;
=== Create the session ===&lt;br /&gt;
 tmux -S /tmp/tmux-share/1 new-session -s mysession&lt;br /&gt;
&lt;br /&gt;
=== Join the session ===&lt;br /&gt;
 tmux -S /tmp/tmux-share/1 attach -t mysession&lt;br /&gt;
&lt;br /&gt;
== Send commands to the session ==&lt;br /&gt;
This can be usefull to send commands to the sessions using a batch script or anything else.&lt;br /&gt;
To do it, you can use a syntax like this :&lt;br /&gt;
 tmux send-keys -t mysession:1 &amp;quot;ls&amp;quot; C-m&lt;br /&gt;
so if you would like to send commands using the socket :&lt;br /&gt;
 tmux -S /tmp/tmux-share/1 send-keys -t mysession:1 &amp;quot;ls&amp;quot; C-m&lt;br /&gt;
&lt;br /&gt;
== log the output ==&lt;br /&gt;
To prevent you losing too much time looking for the answer, here is a working (at least) version of a command to log the output.&lt;br /&gt;
 tmux -S /tmp/tmux-share/test new -s test1&lt;br /&gt;
 tmux -S /tmp/tmux-share/test pipe-pane -o -t test1 'cat &amp;gt;&amp;gt; tmux.log'&lt;/div&gt;</summary>
		<author><name>Ssm2017</name></author>	</entry>

	</feed>