wiki:HeadlessUsage/Gentoo

Version 1 (modified by Waldorf, 12 years ago) (diff)

--

Running Transmission on a headless machine (Gentoo) BETA

(for other distributions see the Headless Usage article)

Installation

Using emerge

The usual command line is used, but we add a couple of environment options to get exactly what we want:

ACCEPT_KEYWORDS="~amd64" USE="-gtk" emerge -av transmission

or

ACCEPT_KEYWORDS="~x86"   USE="-gtk" emerge -av transmission

Let's dissect the above line:

  • 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.

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.

  • 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.
  • 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.

Local ebuild

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.

From Source

Read the Building From Source page for more in-depth information.

Configuration

Note: We're not going to touch, or use, the script left by the Gentoo installation: /etc/init.d/transmission-daemon. Currently it has a couple of errors so it doesn't even work right. You can find an init.d script here.

Follow the General Headless Guide.

Old Guide

[HeadlessUsageGentoo]