Gentoo Archives: gentoo-user

From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: [gentoo-user] re: setting up binhost [SOLVED]
Date: Sun, 19 Jan 2014 19:38:43
Message-Id: 52DC299A.2000306@gmail.com
In Reply to: [gentoo-user] re: setting up binhost by Alexander Kapshuk
1 -------- Original Message --------
2 Subject: re: setting up binhost
3 Date: Fri, 17 Jan 2014 18:45:03 +0200
4 From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
5 To: gentoo-user@l.g.o
6
7
8
9 I would like to set up one of my Gentoo systems as a binary host to
10 build and distribute packages that normally take longer to compile, like
11 libreoffice, firefox and thuderbird, to another Gentoo system of mine
12 with less RAM.
13
14 I've been following the instructions found here,
15 http://wiki.gentoo.org/wiki/Binary_package_guide.
16
17 What I've done so far on the binhost is:
18 (1). I've installed lighttpd and set 'server.document-root' to PKGDIR in
19 '/etc/lighttpd/lighttpd.conf'.
20 grep portage/packages /etc/lighttpd/lighttpd.conf
21 server.document-root = "/usr/portage/packages"
22 (2). I've built a libreoffice package using: 'quickpkg
23 app-office/libreoffice'.
24 ls /usr/portage/packages/
25 Packages app-office
26 (3). As I attempted to access http://127.0.0.1/Packages, I got a 403
27 HTTP error returned. I guess that's because of the access permissions
28 for PKGDIR.
29 ls -ld /usr/portage/packages/
30 drwx------ 3 root root 4096 Jan 16 18:38 /usr/portage/packages/
31
32 If I understand it correctly, I have to decide on which protocol to use,
33 ftp, http, or ssh. Which one do folk here prefer, or would recommend?
34 The wiki article suggests setting up a binpkguser and adding a
35 client-root.id.rsa.pub to the binpkguser's authorized_keys, right? Does
36 that mean that a dedicated user has to be set up, instead of using my
37 current user account on the binhost?
38 |root # ||useradd -m -r -G portage -s /bin/bash binpkguser
39 root # ||echo clientA-root.id_rsa.pub >>
40 /home/binpkguser/.ssh/authorized_keys|
41
42 On the client system, all I have to do is set up PORTAGE_BINHOST in
43 '/etc/portage.make.conf' and emerge the binary packages desired. Is that
44 right?
45
46 Any other advise, and/or suggestions would be much appreciated.
47 --------------------------------------------------------------------------------------
48
49 Just thought I'd report back on the progress I've been able to make
50 setting up a local binary package server.
51
52 I thought I'd stick to the protocol recommended in the wiki article,
53 i.e. ssh. So I put the 'client_sys-root.id_rsa.pub' into
54 '/root/.ssh/authorized_keys' on the binhost.
55
56 On the client host, I defined PORTAGE_BINHOST in
57 '/etc/portage/make.conf' as 'ssh://root@××××××××.ip/usr/portage/packages'.
58
59 And ran 'emerge -aG pkg_name' on the client host.
60
61 So far, I seem to have been able to successfully install libreoffice and
62 thunderbird this way.
63
64 As before, any further advice and/or suggestions would be much appreciated.
65
66 Alexander Kapshuk.

Replies

Subject Author
Re: [gentoo-user] re: setting up binhost [SOLVED] Thanasis <thanasis@××××××××××.org>