Changes between Version 1 and Version 2 of HeadlessUsage/Gentoo

Jan 27, 2009, 7:21:35 PM (12 years ago)

Thank you, saintdev, for your feedback!


  • HeadlessUsage/Gentoo

    v1 v2  
    55== Installation ==
    66=== Using emerge ===
    7 The usual command line is used, but we add a couple of environment options to get exactly what we want:
     7Since we're going to run Transmission as a daemon, we're going to set the portage environment so that it better suits our needs.
     9==== Stable / Unstable ====
     10The Gentoo portage team marks all new versions of packages to unstable, and they'll only mark them as stable after a few months ''and'' when no bugs are filed against that version. However, in Transmission's case, we usually want the latest version. If you rather be cautious, skip this section.
     12To tell {{{emerge}}} that we want to check for ''unstable'' versions of Transmission, you simply add the line "net-p2p/transmission" to "/etc/portage/package.keywords". Although it's recommended to do this manually to avoid duplicate entries, you can use the following command line:
    9 ACCEPT_KEYWORDS="~amd64" USE="-gtk" emerge -av transmission
     14$ su
     15$ echo "net-p2p/transmission" >> /etc/portage/package.keywords
    11 or
     18==== Disable the GTK GUI ====
     19''On most headless systems, this is preferred. However, if you're also going to use the GTK GUI on the same machine, you may want to skip this section''
     22To tell {{{emerge}}} that we don't want it to build the GTK GUI, Simply add the line "net-p2p/transmission -gtk" to "/etc/portage/package.use". Although it's recommended to do this manually to avoid duplicate entries, you can use the following command line:
     23 {{{
     24$ su
     25$ echo "net-p2p/transmission -gtk" >> /etc/portage/package.use
     29==== Using environment variables ====
     30If you prefer, you can also set the above using environment variables. However, this is not advised, as it may also impact other packages you install through {{{emerge}}}.
     32To instruct {{{emerge}}} to look for unstable version:
     33 * For 32-bit systems:
    13 ACCEPT_KEYWORDS="~x86"   USE="-gtk" emerge -av transmission
     35$ ACCEPT_KEYWORDS="~ x86"
    15 Let's dissect the above line:
     37 * For 64-bit systems:
     39$ ACCEPT_KEYWORDS="~amd64"
    17  * ACCEPT_KEYWORDS is used to allow selection of "masked" packages for your processor (use amd64 for all 64-bit Intel or AMD processors, use x86 for Intel/AMD or compatible 32-bit processors).  It really means that we're accepting untested / unstable / non-working packages, so use carefully (also with the dependencies included, you could install the stable version of those first, then transmission); in transmission's case is just untested and this happens with all new versions of packages.
    18 With Transmission we usually need it to select the __very__ latest version; also, for those using 64-bit processors, most packages are left untested or at least takes longer.
    19  * USE adds an option, in fact subtracts it, meaning that we want to install all of Transmission except those parts that depend on gtk.  The Web client is not affected and we get the daemon and the command line tools; we don't get the desktop application.   Of course you can install both, daemon and GUI client, by not using this option.
    20  * emerge options just make it easy to check exactly what we are installing, it shows all the dependencies and the package with versions, stopping to ask if it is what we want.
     42To instruct {{{emerge}}} to not build the GTK GUI:
     44$ USE="-gtk"
    22 === Local ebuild ===
    23 The procedure is not difficult but involves more work: create a local emerge repository structure, copy the contents from the current transmission branch, inside your local copy duplicate the file transmission-1.33.ebuild into transmission-1.34.ebuild, change the configuration in /etc/make.conf adding 'PORTDIR_OVERLAY="/usr/local/portage"', rebuild the package (2 ebuild commands), and emerge will show it as an option.
     47==== Invoking emerge ====
     48Now you're ready to install Transmission using {{{emerge}}}.
     50To build Transmission, simply:
     52$ emerge transmission
     55Or if you prefer more control and verbosity:
     57$ emerge -av transmission
    2560=== From Source ===
    3368== Old Guide ==
    34 [HeadlessUsageGentoo]