Difference between revisions of "HowTo Install rTorrent"

From AwkwardTV
Jump to: navigation, search
(New page: ==rTorrent== What you will need: # Copy of rTorrent compiled for Intel OS X. # Copies of <code>tar</code>, <code>bzip2</code> and <code>bunzip2</code> from Darwin x86 ISO. (Located in <cod...)
(Redirecting to How To Install rTorrent)
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
#REDIRECT [[How_To_Install_rTorrent]]
What you will need:
# Copy of rTorrent compiled for Intel OS X.
# Copies of <code>tar</code>, <code>bzip2</code> and <code>bunzip2</code> from Darwin x86 ISO. (Located in <code>/usr/bin</code>&nbsp;)
#* Having <code>nano</code> helps a lot, too.
# An AppleTV set up with SSH access.
==Here is how to install!==
First, gather the necessary files together in a single folder for ease of organization (not necessary though), and use scp (or your favorite ftp or sftp client, such as [http://cyberduck.ch/ Cyberduck] on OS X or [http://filezilla.sourceforge.net/ FileZilla] on Windows - see their instructions) to transfer them to your AppleTV. In the following examples, replace <code></code> with whatever your AppleTV's address is. Open up Terminal.app and do:
<pre>scp tar frontrow@
scp bunzip2 frontrow@</pre>
Or, if all your files are in the same folder, open up Terminal.app, go to that folder, and do:
<pre>cd myfoldername
scp * frontrow@</pre>
Now, log in to your AppleTV with SSH:
<pre>ssh frontrow@</pre>
Once you're in, do:
<pre>./bunzip2 rtorrent-0.7.4-osx.tar.bz2
./tar xvf rtorrent-0.7.4-osx.tar</pre>
Alternately, you can copy tar, bzip2 and bunzip2 to your /usr/bin directory (see next step!) This will make your root filesystem writable, so be careful.
<pre>sudo mount -uw /</pre>
(This step is optional!)
<pre>sudo cp -n tar /usr/bin
sudo cp -n bzip2 /usr/bin
sudo cp -n bunzip2 /usr/bin
sudo cp -n nano /usr/bin</pre>
And then you don't need to type "./" in front of executing these commands anymore. Note that these must be correctly chmodded with<br><code>chmod +x &lt;filename&gt;</code><br>before you copy or<br>sudo chmod +x /usr/bin/&lt;filename&gt;<br>afterward.
Since the root filesystem is still writable, we need to &mdash; if they do not already exist &mdash; create the following directories:
<pre>sudo mkdir -p /usr/local/bin
sudo mkdir /usr/local/lib</pre>
Then move our files into place!
<pre>sudo cp rtorrent-0.7.4-osx/rtorrent /usr/local/bin
sudo cp rtorrent-0.7.4-osx/libtorrent.* /usr/local/lib
sudo mount -ur /</pre>
Now you may create a file called <code>.profile</code> in your home directory, either by using <code>nano</code> and pasting the following, or just do:
<pre>echo export PATH="/bin:/sbin:/usr/local/bin:/usr/bin:/usr/sbin" > ~/.profile</pre>
There is also a more global way of doing this, if you set up your path in the file <code>/etc/profile</code>
Now just run <code>rtorrent</code>, or better yet, <code>screen rtorrent</code> and you have a text-mode BitTorrent client on your AppleTV! What's more convenient than that! The basics of using screen is to type Ctrl+A then Ctrl+D and you can exit out of things, but leave rTorrent running. Next time you need to access it, SSH back in to your AppleTV and type <code>screen -rd</code> and boom!

Latest revision as of 13:23, 1 June 2007