Filed under: Computer, Internet | Tags: apple, apple box, apple tv, atv, b4rt, filesharing, installing, torrent, torrentflux, torrentflux-b4rt, tv
I welcome you hacking guys, so now i will tell you how to install Torrentflux-b4rt on your ATV (1.0/1.1). Please if you dunno how to do something your invited to ask me everything you want!
I assume you already installed ssh on your ATV, if not visit this page for more Information about how to install it on your ATV.
The first thing we want to do is to get several commands for our ATV since it has not everything installed already. You can download the ISO of an Patch CD from this page (you may need to register first). When you got it burn it on an CD. the .gz can be extracted by WINRAR.
The next thing we do is to transfer the Applications/Commands to the ATV.
You need the following commands
- nohup
- which
- uptime
- wget (dunno if it is on the cd but you can get it here)
- bunzip2
- du
the commands are located on the cd in the folder “CDROM:\usr\bin\”.
So you now want to upload them to your ATV box, i would suggest you to use WINSCP to upload files to your frontrow home Directory (the first directory you see if you log onto your atv using winscp). So use WINSCP to upload them then move them by typing
sudo mv nohup /usr/bin sudo mv which /usr/bin sudo mv uptime /usr/bin sudo mv wget /usr/bin sudo mv bunzip2 /usr/bin sudo mv du /usr/bin
so now you moved them to the standard directory for binaries on your ATV but you need to tell the ATV that other users can use them too! to do that you need to set the right for these programms by typing
cd /usr/bin sudo chmod 755 nohup which uptime wget bunzip2 du sudo chown root:wheel nohup which uptime wget bunzip2 du
Will continue the writing tomorrow! Now we need some more programms…
Ahhh yeah lets continue!
So now we need even more programms from the cd we burned before. The Files we need can be found in “CDROM:\System\Installation\Packages_i386″.
We need the following files:
bzip2-9.root.tar.bz2 curl-28.root.tar.bz2 gnuzip-19.root.tar.bz2 top-15.root.tar.bz2 vim-13.root.tar.bz2 zip-6.root.tar.bz2
We again copy them to our ATV by using WINSCP. After they are in your home Directory you can unpack them by typing
tar cfvj bzip2-9.root.tar.bz2 tar cfvj curl-28.root.tar.bz2 tar cfvj gnuzip-19.root.tar.bz2 tar cfvj top-15.root.tar.bz2 tar cfvj vim-13.root.tar.bz2 tar cfvj zip-6.root.tar.bz2
Now we want to copy our newly unpacked files to their right position in the filesystem, at first we have to tell the ATV to let us copy everywhere we want by typing:
sudo mount -uw /
now we copy the extracted files to their right location we copy a directory by typing
mv -r ./[directory_name_without_the_bracers] /[directory_name_without_the_bracers]
now we change something the sshd_config by typing
vim /etc/sshd_config
and add those two lines to it
PermitPasswordLogin: no ChallengeResponseAuthentication: no
now we reboot the ATV by typing
sudo reboot
now we need to install xampp for this reason please visit this site
after you did that we need to configure something on xampp so type
/Applications/xampp/xamppfiles/mampp stop mv /Applications /mnt/Scratch ln -s /mnt/Scratch/Applications /Applications mkdir ~/htdocs /Applications/xampp/xamppfiles/mampp StopFTP /Applications/xampp/xamppfiles/mampp StopSSL
now we need to edit the httpd.conf by typing
sudo vim /Applications/xampp/xamppfiles/etc/httpd.conf
now remove all Alias Mappings (most of the time they are just one line and about 3 lines in the whole config)
also set your Document Root Path to your “~/htdocs”, so your users home directory (yeah you can look up the path with winscp!
now start xampp again by typing
/Applications/xampp/xamppfiles/mampp start
Now we want to install torrentflux-b4rt on the ATV so we first need to download it, you can get it here, get the beta2 and extract it to the ~/htdocs directory.
Now you need the Programm to transmission data you get it here
Extract it and remember the path where you did that.
So now you just need one more step you need to update the config file of torrentflux-b4rt so please type
sudo vim ~/htdocs/inc/functions/functions.core.netstat.php
there you please change the second case in the netstatPortList()function like this:
case 2: // bsd
//$processUser = posix_getpwuid(posix_geteuid());
//$webserverUser = $processUser['name'];
//$retStr .= shell_exec($cfg['bin_sockstat']." -4 -l -P tcp |
//".$cfg['bin_awk']." '/(python|transmissi|wget|nzbperl|java).+\*:[0-9]/
//{split(\$6, a, \":\");print a[2]}'");
$retStr .= shell_exec("ps ax | grep transmissioncli | grep -v grep | awk '{print \$11}'");
break;
so you can now start your torrentflux-b4rt the first time! You will have to set a few paths but i guess you know where they are ! If not just comment here and i will answer in some hours!
Good Luck and happy sharing!









