Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Distcc not working while installing [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
heliostic
n00b
n00b


Joined: 28 Nov 2022
Posts: 13

PostPosted: Mon Nov 28, 2022 8:48 am    Post subject: Distcc not working while installing [solved] Reply with quote

Hi, I've been installing gentoo on an older laptop and thought it would be a good idea to get distcc running with my newer computers so that compiling wouldn't take forever.
I'm currently at the point where the base system has been installed and portage works fine but I haven't compiled the kernel.

I have two other computers running distcc, both on arch, and I have switched to a testing build of gcc so that the versions match but the hosts still seem to be refusing connection.

The output of the output of the test on the wiki (https://wiki.gentoo.org/wiki/Distcc#Testing):
Code:
(chroot) root@localhost /tmp # distcc gcc -c main.c
distcc[2128] (dcc_trace_version) distcc 3.4 x86_64-pc-linux-gnu; built Nov 28 2022 04:38:03
distcc[2128] (dcc_recursion_safeguard) safeguard level=0
distcc[2128] (main) compiler name is "distcc"
distcc[2128] (dcc_scan_args) scanning arguments: gcc -c main.c
distcc[2128] (dcc_scan_args) found input file "main.c"
distcc[2128] (dcc_scan_args) no visible output file, going to add "-o main.o" at end
distcc[2128] compile from main.c to main.o
distcc[2128] (dcc_get_hostlist) not reading /root/.distcc/hosts: No such file or directory
distcc[2128] (dcc_parse_hosts_file) load hosts from /etc/distcc/hosts
distcc[2128] (dcc_parse_hosts) found tcp token "192.168.100.15/8"
distcc[2128] (dcc_parse_hosts) found tcp token "192.168.100.49/12"
distcc[2128] (dcc_lock_host) got cpu lock on 192.168.100.15/8 slot 0 as fd3
distcc[2128] (dcc_lock_host) got cpu lock on localhost slot 0 as fd4
distcc[2128] (dcc_note_state) note state 3, file "(NULL)", host "localhost"
distcc[2128] (dcc_strip_dasho) result: gcc -c main.c
distcc[2128] (dcc_spawn_child) forking to execute: gcc -E main.c
distcc[2128] (dcc_spawn_child) child started as pid2129
distcc[2128] (dcc_strip_local_args) result: gcc -c main.c -o main.o
distcc[2129] (dcc_new_pgrp) entered process group
distcc[2128] exec on 192.168.100.15/8: gcc -c main.c -o main.o
distcc[2129] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1
distcc[2128] (dcc_note_state) note state 2, file "main.c", host "192.168.100.15"
distcc[2128] (dcc_connect_by_name_real) connecting to 192.168.100.15 port 3632
distcc[2128] (dcc_connect_by_addr) started connecting to 192.168.100.15:3632
distcc[2128] (dcc_select_for_write) select for write on fd5
distcc[2128] (dcc_note_state) note state 4, file "(NULL)", host "(NULL)"
distcc[2128] (dcc_x_token_int) send DIST00000001
distcc[2128] (dcc_x_token_int) send ARGC00000005
distcc[2128] (dcc_x_token_int) send ARGV00000003
distcc[2128] (dcc_x_token_string) send string 'gcc'
distcc[2128] (dcc_x_token_int) send ARGV00000002
distcc[2128] (dcc_x_token_string) send string '-c'
distcc[2128] (dcc_x_token_int) send ARGV00000006
distcc[2128] (dcc_x_token_string) send string 'main.c'
distcc[2128] (dcc_x_token_int) send ARGV00000002
distcc[2128] (dcc_x_token_string) send string '-o'
distcc[2128] (dcc_x_token_int) send ARGV00000006
distcc[2128] (dcc_x_token_string) send string 'main.o'
distcc[2128] (dcc_note_state) note state 3, file "(NULL)", host "(NULL)"
distcc[2128] (dcc_collect_child) cpp child 2129 terminated with status 0
distcc[2128] (dcc_collect_child) cpp times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
distcc[2128] cpp main.c on localhost completed ok
distcc[2128] (dcc_unlock) release lock fd4
distcc[2128] (dcc_x_file) send 17146 byte file /tmp/distcc_6e618d05.i with token DOTI and compression 69
distcc[2128] (dcc_x_token_int) send DOTI000042fa
distcc[2128] (dcc_writex) ERROR: failed to write: Connection reset by peer
distcc[2128] (dcc_mark_timefile) mark /root/.distcc/lock/backoff_tcp_192.168.100.15_3632_0
distcc[2128] (dcc_unlock) release lock fd3
distcc[2128] (dcc_get_hostlist) not reading /root/.distcc/hosts: No such file or directory
distcc[2128] (dcc_parse_hosts_file) load hosts from /etc/distcc/hosts
distcc[2128] (dcc_parse_hosts) found tcp token "192.168.100.15/8"
distcc[2128] (dcc_parse_hosts) found tcp token "192.168.100.49/12"
distcc[2128] (dcc_check_backoff) still in backoff period for 192.168.100.15/8
distcc[2128] (dcc_remove_disliked) remove 192.168.100.15/8 from list
distcc[2128] (dcc_lock_host) got cpu lock on 192.168.100.49/12 slot 0 as fd3
distcc[2128] (dcc_lock_host) got cpu lock on localhost slot 0 as fd4
distcc[2128] (dcc_note_state) note state 3, file "(NULL)", host "localhost"
distcc[2128] (dcc_strip_dasho) result: gcc -c main.c
distcc[2128] (dcc_spawn_child) forking to execute: gcc -E main.c
distcc[2128] (dcc_spawn_child) child started as pid2131
distcc[2128] (dcc_strip_local_args) result: gcc -c main.c -o main.o
distcc[2131] (dcc_new_pgrp) entered process group
distcc[2131] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1
distcc[2128] exec on 192.168.100.49/12: gcc -c main.c -o main.o
distcc[2128] (dcc_note_state) note state 2, file "main.c", host "192.168.100.49"
distcc[2128] (dcc_connect_by_name_real) connecting to 192.168.100.49 port 3632
distcc[2128] (dcc_connect_by_addr) started connecting to 192.168.100.49:3632
distcc[2128] (dcc_select_for_write) select for write on fd5
distcc[2128] (dcc_note_state) note state 4, file "(NULL)", host "(NULL)"
distcc[2128] (dcc_x_token_int) send DIST00000001
distcc[2128] (dcc_x_token_int) send ARGC00000005
distcc[2128] (dcc_x_token_int) send ARGV00000003
distcc[2128] (dcc_x_token_string) send string 'gcc'
distcc[2128] (dcc_x_token_int) send ARGV00000002
distcc[2128] (dcc_writex) ERROR: failed to write: Connection reset by peer
distcc[2128] (dcc_unlock) release lock fd4
distcc[2128] (dcc_mark_timefile) mark /root/.distcc/lock/backoff_tcp_192.168.100.49_3632_0
distcc[2128] (dcc_unlock) release lock fd3
distcc[2128] (dcc_get_hostlist) not reading /root/.distcc/hosts: No such file or directory
distcc[2128] (dcc_parse_hosts_file) load hosts from /etc/distcc/hosts
distcc[2128] (dcc_parse_hosts) found tcp token "192.168.100.15/8"
distcc[2128] (dcc_parse_hosts) found tcp token "192.168.100.49/12"
distcc[2128] (dcc_check_backoff) still in backoff period for 192.168.100.15/8
distcc[2128] (dcc_remove_disliked) remove 192.168.100.15/8 from list
distcc[2128] (dcc_check_backoff) still in backoff period for 192.168.100.49/12
distcc[2128] (dcc_remove_disliked) remove 192.168.100.49/12 from list
distcc[2128] (dcc_mark_timefile) mark /root/.distcc/lock/backoff_tcp_192.168.100.49_3632_0
distcc[2128] Warning: failed to distribute main.c to 192.168.100.49/12, running locally instead
distcc[2128] (dcc_get_hostlist) not reading /root/.distcc/hosts: No such file or directory
distcc[2128] (dcc_parse_hosts_file) load hosts from /etc/distcc/hosts
distcc[2128] (dcc_parse_hosts) found tcp token "192.168.100.15/8"
distcc[2128] (dcc_parse_hosts) found tcp token "192.168.100.49/12"
distcc[2128] (dcc_lock_host) got cpu lock on localhost slot 0 as fd3
distcc[2128] exec on localhost: gcc -c main.c -o main.o
distcc[2128] (dcc_note_state) note state 5, file "main.c", host "localhost"
distcc[2128] (dcc_spawn_child) forking to execute: gcc -c main.c -o main.o
distcc[2128] (dcc_spawn_child) child started as pid2133
distcc[2133] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1
distcc[2128] (dcc_collect_child) cc child 2133 terminated with status 0
distcc[2128] (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
distcc[2128] compile main.c on localhost completed ok
distcc[2128] (dcc_unlock) release lock fd3
distcc[2128] elapsed compilation time 0.054444s
distcc[2128] (dcc_exit) exit: code 0; self: 0.000000 user 0.003490 sys; children: 0.044669 user 0.004016 sys
distcc[2128] (dcc_cleanup_tempfiles_inner) deleted 3 temporary files


The contents of /etc/distcc/hosts:
Code:
192.168.100.15/8
192.168.100.49/12


Trying to compile packages with emerge gives mostly errors like
Code:
distcc[134] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
distcc[135] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
distcc[99] (dcc_writex) ERROR: failed to write: Broken pipe
distcc[99] Warning: failed to distribute host/buildvm_asm.c to 192.168.100.49/12, running locally instead
CC        lj_str.o
distcc[103] (dcc_writex) ERROR: failed to write: Broken pipe
distcc[103] Warning: failed to distribute host/buildvm_peobj.c to 192.168.100.15/8, running locally instead
distcc[104] (dcc_writex) ERROR: failed to write: Broken pipe
distcc[104] Warning: failed to distribute host/buildvm_lib.c to 192.168.100.15/8, running locally instead
distcc[115] (dcc_writex) ERROR: failed to write: Broken pipe
distcc[115] Warning: failed to distribute host/buildvm_fold.c to 192.168.100.15/8, running locally instead


On both of the host machines I have put the ip of the gentoo machine in /etc/distcc/clients.allow.


Last edited by heliostic on Mon Nov 28, 2022 12:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1844
Location: Oranienburg/Germany

PostPosted: Mon Nov 28, 2022 9:13 am    Post subject: Reply with quote

Hi,

are you sure, distccd is running on the peer and is accepting connections?

Quote:

Code:
distcc[2128] (dcc_writex) ERROR: failed to write: Connection reset by peer



greeting Stefan
_________________
Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB
Back to top
View user's profile Send private message
heliostic
n00b
n00b


Joined: 28 Nov 2022
Posts: 13

PostPosted: Mon Nov 28, 2022 9:21 am    Post subject: Reply with quote

Hi Stefan

It should be. I can find the distccd process on both hosts easily and both have "--allow 192.168.100.17" (ip of the gentoo machine) as a parameter.
I couldn't find anything ese that would stop the connection as ssh and ping are working fine between all three machines.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Mon Nov 28, 2022 9:39 am    Post subject: Reply with quote

heliostic,

Code:
distcc[2128] (dcc_x_file) send 17146 byte file /tmp/distcc_6e618d05.i with token DOTI and compression 69
distcc[2128] (dcc_x_token_int) send DOTI000042fa
distcc[2128] (dcc_writex) ERROR: failed to write: Connection reset by peer
distcc[2128] (dcc_mark_timefile) mark /root/.distcc/lock/backoff_tcp_192.168.100.15_3632_0


The test failed, so distcc is not working either with or without emerge.

Is port 3632 permitted on the helpers?
That's where they will listen by default.

I've not seen /etc/distcc/clients.allow and I've not looked at the man page.
My /etc/conf.d/distccd contains
Code:
DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.100.0/24"


The comments say
Code:
# SECURITY NOTICE:
# It is HIGHLY recommended that you use the --listen option
# for increased security. You can specify an IP to permit connections
# from or a CIDR mask
# --listen accepts only a single IP
# --allow is now mandatory as of distcc-2.18.

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
heliostic
n00b
n00b


Joined: 28 Nov 2022
Posts: 13

PostPosted: Mon Nov 28, 2022 10:42 am    Post subject: Reply with quote

Thanks for the reply,

Seems like the main thing was that the port wasn't open on the helpers.
Opened the port and the test seems to be working fine.

Now there's still a problem with portage installations. Compiling packages only sees to use the resources of the client machine and the distcc processes don't use any cpu on the helpers.
The only thing in emerge's output that indicates that anything is wrong is an occasional error message
Code:
distcc[417] (dcc_connect_via_socks5) ERROR: proxy connection failed, reason=0x04
distcc[135] (dcc_connect_via_socks5) ERROR: proxy connection failed, reason=0x04
distcc[449] (dcc_connect_via_socks5) ERROR: proxy connection failed, reason=0x04
distcc[158] (dcc_connect_via_socks5) ERROR: proxy connection failed, reason=0x04
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Mon Nov 28, 2022 11:25 am    Post subject: Reply with quote

heliostic,

Please post your
Code:
emerge --info
output
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
heliostic
n00b
n00b


Joined: 28 Nov 2022
Posts: 13

PostPosted: Mon Nov 28, 2022 11:31 am    Post subject: Reply with quote

NeddySeagoon wrote:
heliostic,

Please post your
Code:
emerge --info
output


Here you go
Code:
Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.1/hardened, gcc-12.2.0, glibc-2.36-r5, 5.15.75-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.15.75-gentoo-x86_64-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-glibc2.36
KiB Mem:     3936880 total,   2767360 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Sun, 27 Nov 2022 23:00:01 +0000
Head commit of repository gentoo: 56efce0ab4bc8d710e1abe8aca25689c7667a765
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.38 p4) 2.38
distcc 3.4 x86_64-pc-linux-gnu [enabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-lang/perl:             5.34.1-r4::gentoo
dev-lang/python:           3.10.8_p3::gentoo, 3.11.0_p2::gentoo
dev-util/meson:            0.63.3::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r1::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             11.3.0::gentoo, 12.2.0::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=core2 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=core2 -O2 -pipe"
GENTOO_MIRRORS="https://mirrors.dotsrc.org/gentoo/ https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ https://ftp.snt.utwente.nl/pub/os/linux/gentoo https://www.mirrorservice.org/sites/distfiles.gentoo.org/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j37 -l2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl amd64 bzip2 cdr cli crypt dri dvd fortran gdbm hardened iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre pie readline seccomp split-usr ssl ssp test-rust unicode verify-sig xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US fi" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Mon Nov 28, 2022 12:00 pm    Post subject: Reply with quote

heliostic,

Code:
CFLAGS="-march=core2 -O2 -pipe"
That's good. distcc no longer distributes if
Code:
-march=native
is set. Helpers need not be the same arch, and it made quite a mess.

Code:
MAKEOPTS="-j37 -l2"
Run 37 instances of make but only allow a load average of 2 on the local host.
That's probably a bad thing.
The configure and link steps are still carried out on the localhost. Only C and C++ can be distributed too, so with only 4G RAM, as soon as something builds locally, distcc will stop.

WIth helpers like
Code:
192.168.100.15/8
192.168.100.49/12
(thats only 20 parallel make jobs tolal) -j37 is too high.

distcc is probably not what you want. A binhost would be a better approach.

On 192.168.100.49, make yourself a chroot. In that chroot, do the install you would like on the laptop, but set FEATURES=builkpkg before you start.
You can share the ::gentoo repo and distfiles from outside of the chroot to save space.
Now you have the install you want but in the wrong place, but you have all the binary packages ready for the laptop.

Share the ::gentoo repo and distfiles over NFS. Make the chroot packages available to the laptop. NFS works.

If you use NFS, emerge -k will install the binaries where it can. You can investigate why it can't or let it build.
If you use some other way to share, so that the binaries need to be fetched, its emerge -g.

You can still use distcc between 192.168.100.15 and 192.168.100.49.

A binhost looks like that 64 bit Raspberry Pi example.

I use a script
Code:
#!/bin/bash

# Mount the pesudo filesystem inside /usr/tuppenny
mount -o bind /dev /usr/tuppenny/dev
mount -t sysfs sysfs /usr/tuppenny/sys
mount -t proc  proc /usr/tuppenny/proc

# Share distfiles and the ::gentoo repo inside /usr/tuppenny
# Note that there are in the new default locations
mount -t ext4 /dev/mapper/storage-distfiles /usr/tuppenny/var/cache/distfiles
mount -t ext4 /dev/mapper/nvmestatic-portage /usr/tuppenny/var/db/repos/gentoo

# tmpfs is a very good thing
mount -t tmpfs tmpfs /usr/tuppenny/dev/shm

# and fix its permissions or build systems complain
chmod 1777 /usr/tuppenny/dev/shm

# Put our build space in RAM too. We don't want wear out the NVMe
mount -t tmpfs tmpfs /usr/tuppenny/var/tmp/portage

# Likewise, tmp in RAM too.
mount -t tmpfs tmpfs /usr/tuppenny/tmp

# fix the permissions to keep users separate
chmod 1777 /usr/tuppenny/tmp

# We need devpts in the chroot or we don't have any jobs
# Its picky about permissions too
mount -t devpts devpts /usr/tuppenny/dev/pts -o rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000

to set up the chroot for our media player based on a AMD E-350 APU.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
heliostic
n00b
n00b


Joined: 28 Nov 2022
Posts: 13

PostPosted: Mon Nov 28, 2022 12:14 pm    Post subject: Reply with quote

Hi Neddy,

That sounds about right. In the instances I did a bit of miscalculating on the instances :lol:. The binhost sounds like a good idea. I'll look into it more.
Thank you for your help in this whole project! I assume this thread can be set as solved now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum