Changes between Version 10 and Version 11 of Installation

Show
Ignore:
Timestamp:
12/03/06 18:15:50 (6 years ago)
Author:
max (IP: 203.45.59.92)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Installation

    v10 v11  
    22To install Shepherd: 
    33 
    4  1. Download http://www.whuffy.com/shepherd/tv_grab_au 
    5  1. Make it executable 
    6  1. Run it. The script will attempt to install and configure itself. 
     4 1. Download Shepherd: 
     5{{{ 
     6wget http://www.whuffy.com/shepherd/shepherd 
     7}}} 
     8 1. Run it: 
     9{{{ 
     10perl shepherd 
     11}}} 
     12 1. If Shepherd complains about missing Perl modules, install these. See "Dependencies" below. 
     13 1. Shepherd will attempt to download the latest versions of itself and its components into ''~/.shepherd/'' (or ''/opt/shepherd/''). You may notice that one or more components may fail to install properly, due to missing Perl modules. For maximum functionality, you should attempt to install missing Perl modules later (see "Dependencies"). 
     14 1. Answer the configuration questions to select your region and desired channels 
     15 1. When configuration is complete, symlink ''/usr/bin/tv_grab_au'' to Shepherd: 
     16{{{ 
     17sudo ln -s ~/.shepherd/shepherd /usr/bin/tv_grab_au 
     18}}} 
     19 Shepherd should then be automatically called by mythfilldatabase, according to the settings for that program. 
    720 
    8 These can be accomplished via: 
     21== Dependencies == 
    922 
     23Shepherd uses numerous 3rd-party modules and software. Some of these are mandatory, and some are optional, meaning that certain components (including grabbers) may not work without them, but the overall program will. 
     24 
     25A list of Required and Optional modules is below. 
     26 
     27The general way to install a Perl module is to do the following (as root): 
    1028{{{ 
    11 wget http://www.whuffy.com/shepherd/tv_grab_au 
    12 chmod +x tv_grab_au 
    13 ./tv_grab_au 
     29cpan <module> 
     30}}} 
     31For example: 
     32{{{ 
     33cpan List::Compare 
    1434}}} 
    1535 
    16 If you're manually upgrading from a previous version because we broke auto-update, it may be necessary to delete your ~/.shepherd/ directory. 
     36Your Linux distribution may offer an alternative way to install module packages -- if so, it's often better to use that. 
    1737 
    18 We recommended you run Shepherd as a standard user and never as ''root'' (super-user). 
    19  
    20 When run for the first time, Shepherd will install itself in ''~/.shepherd/'' or ''/opt/shepherd/''.  You should symlink ''/usr/bin/tv_grab_au'' to the ''tv_grab_au'' script in the shepherd directory.  In most installations, this is accomplished via: 
    21  
    22 {{{ 
    23 ln -s ~/.shepherd/tv_grab_au /usr/bin/tv_grab_au 
    24 }}} 
    25  
    26 = Dependencies = 
    27  
    28 Shepherd has numerous dependencies on 3rd party modules and software.  Some of these are mandatory, some are optional depending on whether you wish Shepherd to run with its full suite of ''plugin modules'' or not. 
    29  
    30 If you run Linux and your distribution has packages for Shepherd's dependencies, it is generally better to use them than to install modules through CPAN, as described below.  The first subsection below gives distribution-specific instructions; if you follow the instructions for your linux distribution, you do not need to read the rest of this wiki page.  If you use a different distribution, or a different operating system, you will need to install the dependencies as described in the sections on XMLTV and the perl dependencies. 
    31  
    32 == Linux Distribution-Specific Dependencies == 
    33  
    34 === Debian-Based Distributions === 
     38==== Debian-Based Distributions ==== 
    3539 
    3640The following command should install the necessary packages: 
     
    4246}}} 
    4347 
    44 == XMLTV == 
     48==== Gentoo ==== 
     49Some (but not all) required modules can be installed with: 
     50{{{ 
     51sudo emerge -av xmltv Algorithm-Diff  
     52}}} 
    4553 
    46 XMLTV needs to be installed.  The latest version can be downloaded from http://files.xmltv.org/ [[BR]] 
    47 If you are unsure about whether you have XMLTV installed, run the command ''perldoc XMLTV'' and see if there is any documentation on your system.  If there is, then it is already installed. 
     54=== Required Modules === 
    4855 
    49 XMLTV version 0.5.44 or later is recommended as it supports HDTV flags. 
    50  
    51  
    52 == Tor == 
    53  
    54 Many grabbers work faster/better if they can operate using The Onion Router (tor) from http://tor.eff.org/.[[BR]] 
    55 Tor is available in RPM form from as http://tor.eff.org/dist/rpm/tor-0.1.1.25-tor.0.rh4_4.i386.rpm and http://dag.wieers.com/packages/libevent/libevent-1.2-1.fc3.rf.i386.rpm 
    56  
    57 Once Tor is installed, shepherd will automatically find it and start using it. No configuration of Tor is necessary. 
    58  
    59  
    60 == Mandatory Perl modules == 
    61  
    62 The following Perl modules are mandatory for Shepherd to be able to run: 
     56Shepherd cannot run without the following Perl modules: 
    6357 * Algorithm::Diff 
    6458 * Compress::Zlib 
     
    7064 * LWP::!UserAgent 
    7165 
    72 If these aren't installed on your system, you may be able to install them automtically via CPAN (note: you will probably have to do this while logged in as ''root'' or via ''sudo''): 
    73  
    7466{{{ 
    7567cpan Algorithm::Diff Compress::Zlib Cwd Data::Dumper Date::Manip Getopt::Long List::Compare LWP::UserAgent 
    7668}}} 
    77 (it shouldn't cause any issues to just run this command; if everything is up-to-date, it'll tell you and finish) 
    7869 
    79 == Optional Perl modules == 
     70==== Required Module: XMLTV ==== 
     71 
     72XMLTV needs to be installed.  The latest version can be downloaded from http://files.xmltv.org/ [[BR]] 
     73If you are unsure about whether you have XMLTV installed, run the command ''perldoc XMLTV'' and see if there is any documentation on your system.  If there is, then it is already installed. 
     74 
     75XMLTV version 0.5.44 or later is recommended as it supports HDTV flags. 
     76 
     77=== Optional Perl modules === 
    8078 
    8179Various grabbers and postprocessors require additional Perl/CPAN dependencies.  These include: 
     
    9290 * XML::DOM 
    9391 
    94 To install any missing CPAN modules, you can ask CPAN to install/update/check them all using the following (note: you will probably have to do this while logged in as ''root'' or via ''sudo''): 
    95  
    9692{{{ 
    9793cpan DateTime::Format::Strptime File::Basename File::Path HTML::Entities HTML::TokeParser 
     
    10096(it shouldn't cause any issues to just run this command; if everything is up-to-date, it'll tell you and finish) 
    10197 
    102 == Optional Javascript modules == 
     98==== Optional Module: Javascript ==== 
    10399 
    104100Some grabbers ''parse'' web pages that have Javascript embedded in them. These grabbers make use of a system-wide Javascript library, typically provided by ''js'' and ''js-devel'' packages from your Unix/Linux installation. 
     
    121117cpan Javascript 
    122118}}} 
     119 
     120==== Optional Software: Tor ==== 
     121 
     122Many grabbers work faster/better if they can operate using The Onion Router (tor) from http://tor.eff.org/.[[BR]] 
     123Tor is available in RPM form from as http://tor.eff.org/dist/rpm/tor-0.1.1.25-tor.0.rh4_4.i386.rpm and http://dag.wieers.com/packages/libevent/libevent-1.2-1.fc3.rf.i386.rpm 
     124 
     125Once Tor is installed, shepherd will automatically find it and start using it. No configuration of Tor is necessary. 
     126 
     127== Security == 
     128 
     129Shepherd automatically checks for new versions of itself and its components, downloads, and executes these. 
     130 
     131We therefore recommended you run Shepherd as a standard user and never as ''root'' (super-user). For maximum safety, you can create a special Shepherd user (instructions, anybody?). 
     132 
     133== Troubleshooting == 
     134 
     135If you're manually upgrading from a previous version because we broke auto-update, it may be necessary to delete your ~/.shepherd/ directory. 
     136