Difference between revisions of "TorrentFlux-b4rt"

From AwkwardTV
Jump to: navigation, search
m (Make a safe(r) installation: - Added links, bit of cleanup)
(TorrentFlux-b4rt)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== TorrentFlux-b4rt ==
 
== TorrentFlux-b4rt ==
  
Wanted to directly download movies/series onto my AppleTV.  
+
Wanted to directly download movies/series onto my AppleTV. After trial and error, managed to get
Installed TorrentFlux, currently only using the wget method (as I don;t have a Mac to compile the transmissioncli).
+
TorrentFlux-b4rt working.
  
Can now download directly onto AppleTV using my preferred usenet supplier (easynews) web interface.
+
Can now download directly onto AppleTV using my preferred usenet supplier (easynews) web interface,
 +
as well als download torrents with transmissioncli
  
 
Below is the (first) dump of my notes during installation.  
 
Below is the (first) dump of my notes during installation.  
Line 47: Line 48:
 
====Install XAMPP (and disable most of it afterwards)====
 
====Install XAMPP (and disable most of it afterwards)====
 
* Downloaded XAMPP
 
* Downloaded XAMPP
* http://wiki.awkwardtv.org/wiki/XAMMP_-_Apache/MySQL/PHP5/Perl
+
* Follow the installation guide on http://wiki.awkwardtv.org/wiki/XAMMP_-_Apache/MySQL/PHP5/Perl
  
 +
After installation, move XAMPP files out of the system disk (not needed, but this allows you to boot with
 +
the system still mounted read-only):
 +
/Applications/xampp/xamppfiles/mampp stop
 
  mv /Applications /mnt/Scratch
 
  mv /Applications /mnt/Scratch
 
  ln -s /mnt/Scratch/Applications /Applications
 
  ln -s /mnt/Scratch/Applications /Applications
  
 
* mkdir ~/htdocs
 
* mkdir ~/htdocs
StopFTP
+
/Applications/xampp/xamppfiles/mampp StopFTP
StopSSL
+
/Applications/xampp/xamppfiles/mampp StopSSL
 
* edit httpd.conf, remove all AliasMappings and point DocumentRoot to your ~/htdocs
 
* edit httpd.conf, remove all AliasMappings and point DocumentRoot to your ~/htdocs
 +
/Applications/xampp/xamppfiles/mampp start
  
setHostName etc.
+
If everything works, make XAMPP autostart
 +
 
 +
If you want, do setHostName etc.
  
 
Set path and add xamppfiles/bin to it.
 
Set path and add xamppfiles/bin to it.
  
 
====Install torrentflux-b4rt====
 
====Install torrentflux-b4rt====
Download latest version (beta2) and install torrentflux-b4rt
+
Download latest version (beta2) and install torrentflux-b4rt [http://tf-b4rt.berlios.de/downloads]
 +
 
 +
* Set register_globals: off
 +
* Must set php path yourself
 +
* Set various other paths as well
 +
* Download a compiled version of transmissioncli 1.10 from http://www.kiobi.com/transmissioncli-1.10.tgz
  
Set register_globals: off
 
Must set php path yourself
 
  
In ClientHandler.wget.php - inject:
+
===== Missing sockstat binary on AppleTV: fix portlist function =====
Add $url = str_replace("http://downloads.members.easynews.com", "http://username:password@downloads.members.easynews.com", $url)  
+
In inc/functions/functions.core.netstat.php - function netstatPortList()
 +
replace case2 statement with:
 +
<code>
 +
                case 2: // bsd
 +
// JPD : Hardcoded AppleTV transmissioncli fix
 +
//                      $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;
 +
</code>
  
--[[User:Pier|Pier]] 16:58, 25 March 2008 (CET)
+
===== Tip: Authentication Patch =====
 +
In ClientHandler.wget.php - inject method:
 +
$url = str_replace(<nowiki>"http://downloads.members.easynews.com", "http://username:password@downloads.members.easynews.com"</nowiki>, $url)  
 +
This allows copy&pasting easynews URL's into the wget box.
 +
Can ofcourse be replaced by your favorite newsprovider

Latest revision as of 04:44, 12 April 2008

TorrentFlux-b4rt

Wanted to directly download movies/series onto my AppleTV. After trial and error, managed to get TorrentFlux-b4rt working.

Can now download directly onto AppleTV using my preferred usenet supplier (easynews) web interface, as well als download torrents with transmissioncli

Below is the (first) dump of my notes during installation.

My Installation Notes

Make a safe(r) installation

  • .ssh/authorized_keys : add public key [1]
  • Downloaded Darwin ISO darwinx86-801.iso.gz [2]

Upload following files from ISO:

nohup
which
uptime
wget (from http://wiki.awkwardtv.org/wiki/Apple_TV_Binaries )
bunzip2
du

And

chmod 755 nohup which uptime wget bunzip2 du
chown root:wheel nohup which uptime wget bunzip2 du

Upload following packages from ISO:

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

Now:

sudo mount -uw /

And copy/untar the files into correct locations (/usr/bin and untar with -C / option)

  • vi /etc/sshd_config:
PermitPasswordLogin: no
ChallengeResponseAuthentication: no
  • Make sure your public/private key login works (test it!) and:
reboot

Install XAMPP (and disable most of it afterwards)

After installation, move XAMPP files out of the system disk (not needed, but this allows you to boot with the system still mounted read-only):

/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
  • edit httpd.conf, remove all AliasMappings and point DocumentRoot to your ~/htdocs
/Applications/xampp/xamppfiles/mampp start

If everything works, make XAMPP autostart

If you want, do setHostName etc.

Set path and add xamppfiles/bin to it.

Install torrentflux-b4rt

Download latest version (beta2) and install torrentflux-b4rt [3]


Missing sockstat binary on AppleTV: fix portlist function

In inc/functions/functions.core.netstat.php - function netstatPortList() replace case2 statement with:

                case 2: // bsd
// JPD : Hardcoded AppleTV transmissioncli fix
//                      $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;

Tip: Authentication Patch

In ClientHandler.wget.php - inject method:

$url = str_replace("http://downloads.members.easynews.com", "http://username:password@downloads.members.easynews.com", $url) 

This allows copy&pasting easynews URL's into the wget box. Can ofcourse be replaced by your favorite newsprovider