web/index.html
changeset 91 af6b072bb025
parent 81 baf70c6a4116
child 93 7d9b7a6da507
equal deleted inserted replaced
90:f172b95795d8 91:af6b072bb025
    24 are only allowed to read, or they can also contribute on input.</p>
    24 are only allowed to read, or they can also contribute on input.</p>
    25 
    25 
    26 <h2>Download</h2>
    26 <h2>Download</h2>
    27 
    27 
    28 <p>Download the latest version (GPL 1.2+ licensed):
    28 <p>Download the latest version (GPL 1.2+ licensed):
    29 <a href="tm-0.4.tar.gz">tm-0.4.tar.gz</a> - v0.4 - <a
    29 <a href="tm-0.4.1.tar.gz">tm-0.4.1.tar.gz</a> - v0.4.1 - <a
    30 href="http://vicerveza.homeunix.net/~viric/cgi-bin/hgwebdir.cgi/tm?f=5dc7cfe2f14b;file=ChangeLog">ChangeLog</a></p>
    30 href="ChangeLog">ChangeLog</a></p>
    31 
    31 
    32 <p>Look at the
    32 <p>Look at the
    33 <a href="/~viric/cgi-bin/hgwebdir.cgi/tm">version repository</a> if you are
    33 <a href="/~viric/cgi-bin/hgwebdir.cgi/tm">version repository</a> if you are
    34 interested in its development. If you can send any bug report, please
    34 interested in its development. If you can send any bug report, please
    35 do that at the mail address at the bottom of the page. I'd like this
    35 do that at the mail address at the bottom of the page. I'd like this
    36 program to have as few bugs as possible, sure!</p>
    36 program to have as few bugs as possible, sure!</p>
    37 
    37 
    38 <h2>What can you do with it? Examples of use</h2>
    38 <h2>What can you do with it? Examples of use</h2>
    39 
    39 
    40 <h3>Share a terminal remotely</h3>
    40 <ul>
       
    41 <li><a href="#share">Share a terminal remotely</a>
       
    42 <li><a href="#ether">Have an assured way of accessing a host, even if it has no IP address</a>
       
    43 <li><a href="#mplayer">Remote control for mplayer</a>
       
    44 <li><a href="#telnet">Transfer files through telnet</a>
       
    45 <li><a href="#log">Access to a part of an execution log, on demand</a>
       
    46 </ul>
       
    47 
       
    48 <h3><a name="share"></a>Share a terminal remotely</h3>
    41 Start <em>vim</em> cooperatively, using:
    49 Start <em>vim</em> cooperatively, using:
    42 <pre>
    50 <pre>
    43 tm -N 2 -p 3000 -t -x -w vim
    51 tm -N 2 -p 3000 -t -x -w vim
    44 </pre>
    52 </pre>
    45 <p>Two [-N 2] users will be able to telnet to the port 3000 [-p 3000], and get
    53 <p>Two [-N 2] users will be able to telnet to the port 3000 [-p 3000], and get
    46 the same <em>vim</em> terminal [-t] interface as you. They will be able
    54 the same <em>vim</em> terminal [-t] interface as you. They will be able
    47 to use vim [-w], not only look at it.
    55 to use vim [-w], not only look at it.
    48 The size of their xterms [-x] will be set accordingly to the size of your
    56 The size of their xterms [-x] will be set accordingly to the size of your
    49 terminal. A nice feature of xterm!</p>
    57 terminal. A nice feature of xterm!</p>
    50 <h3>Have an assured way of accessing a host, even if it has no IP address</h3>
    58 
       
    59 <blockquote>Attention! <em>vim</em> programs the vt100/xterm input/output codes at start.
       
    60 If the clients don't receive those codes, they won't be able to use the Cursor
       
    61 Keys effectively, for example. In that case, you may start a bash in tm, and
       
    62 when the clients are connected, start vim.</blockquote>
       
    63 <h3><a name="ether"></a>Have an assured way of accessing a host, even if it has no IP address</h3>
    51 <p>Start a remote <em>bash</em> putting this in your start scripts:</p>
    64 <p>Start a remote <em>bash</em> putting this in your start scripts:</p>
    52 <pre>
    65 <pre>
    53 ifconfig eth0 up
    66 ifconfig eth0 up
    54 tm -e eth0 -n -w bash &amp;
    67 tm -e eth0 -n -w bash &amp;
    55 </pre>
    68 </pre>
    58 <pre>
    71 <pre>
    59 tm -e eth0 -c 00:14:85:16:B2:32
    72 tm -e eth0 -c 00:14:85:16:B2:32
    60 </pre>
    73 </pre>
    61 <p>And you will have a non-terminal bash answering your requests. Don't
    74 <p>And you will have a non-terminal bash answering your requests. Don't
    62 <em>exit</em> from it, because the <em>tm</em> server will end.</p>
    75 <em>exit</em> from it, because the <em>tm</em> server will end.</p>
    63 <h3>Remote control for mplayer</h3>
    76 <h3><a name="mplayer"></a>Remote control for mplayer</h3>
    64 <p>Start a <a href="http://www.mplayerhq.hu/">mplayer</a> allowing remote
    77 <p>Start a <a href="http://www.mplayerhq.hu/">mplayer</a> allowing remote
    65 commands with:</p>
    78 commands with:</p>
    66 <pre>
    79 <pre>
    67 tm -w mplayer -slave voice_recording.mp3
    80 tm -w mplayer -slave voice_recording.mp3
    68 </pre>
    81 </pre>
    72 </pre>
    85 </pre>
    73 <p>Make your xbindkeys to map to these commands, and you can have a good
    86 <p>Make your xbindkeys to map to these commands, and you can have a good
    74 control of your music playing.
    87 control of your music playing.
    75 In fact I mapped <em>pause</em> to F1, and <em>go backwards 5 seconds</em>
    88 In fact I mapped <em>pause</em> to F1, and <em>go backwards 5 seconds</em>
    76 to F2, and I use this for transcription of voice recordings.</p>
    89 to F2, and I use this for transcription of voice recordings.</p>
    77 <h3>Transfer files through telnet</h3>
    90 <h3><a name="telnet"></a>Transfer files through telnet</h3>
    78 <p>If you run a telnet client inside <em>tm</em>, you can use a <em>tm</em> client
    91 <p>If you run a telnet client inside <em>tm</em>, you can use a <em>tm</em> client
    79 to send uuencoded streams. You can look at a
    92 to send uuencoded streams. You can look at a
    80 <a href="http://www.youterm.com/?view=Player&video=tools/tm-telnetfile">Youterm
    93 <a href="http://www.youterm.com/?view=Player&video=tools/tm-telnetfile">Youterm
    81 podcast</a> for that.</p>
    94 podcast</a> for that.</p>
       
    95 <h3><a name="log"></a>Access to a part of an execution log, on demand</h3>
       
    96 <p>Imagine you want to run the program XXX, which does a lot of debug
       
    97 output in stdout. Even without running it through tm,
       
    98 you will be able to access the logs <strong>only</strong> when
       
    99 you connect to it.</p>
       
   100 <pre>
       
   101 XXX | tm cat &gt; /tmp/total_log.txt
       
   102 </pre>
       
   103 <p>You can redirect to /dev/null or use <em>tm</em>'s -n [nohup] if you
       
   104 don't want
       
   105 to store all the debug info. In any case, you can run a simple
       
   106 <kbd>tm</kbd> command with no parameters, and you will be seeing
       
   107 the debug info since the connection. Close <em>tm</em> (Control-C) and
       
   108 you will not see the info until a new connection is made.</p>
       
   109 
    82 
   110 
    83 <h2>Manual</h2>
   111 <h2>Manual</h2>
    84 <p>Here you have a copy of the help for v0.4:</p>
   112 <p>Here you have a copy of the help for v0.4:</p>
    85 <pre>
   113 <pre>
    86 tm v0.4 - terminal mixer,  Copyright (C) 2007  Lluis Batlle i Rossell
   114 tm v0.4 - terminal mixer,  Copyright (C) 2007  Lluis Batlle i Rossell