§2023-09-15
# eselect profile list
Available profile symlink targets:
[1] default/linux/arm64/17.0 (stable)
[2] default/linux/arm64/17.0/hardened (exp)
[3] default/linux/arm64/17.0/hardened/selinux (dev)
[4] default/linux/arm64/17.0/desktop (stable) *
[5] default/linux/arm64/17.0/desktop/gnome (stable)
[6] default/linux/arm64/17.0/desktop/gnome/systemd (stable)
[7] default/linux/arm64/17.0/desktop/gnome/systemd/merged-usr (stable)
[8] default/linux/arm64/17.0/desktop/plasma (stable)
[9] default/linux/arm64/17.0/desktop/plasma/systemd (stable)
[10] default/linux/arm64/17.0/desktop/plasma/systemd/merged-usr (stable)
[11] default/linux/arm64/17.0/desktop/systemd (stable)
[12] default/linux/arm64/17.0/desktop/systemd/merged-usr (stable)
[13] default/linux/arm64/17.0/developer (exp)
[14] default/linux/arm64/17.0/systemd (stable)
[15] default/linux/arm64/17.0/systemd/merged-usr (stable)
[16] default/linux/arm64/17.0/systemd/selinux (exp)
[17] default/linux/arm64/17.0/systemd/selinux/merged-usr (exp)
[18] default/linux/arm64/17.0/llvm (exp)
[19] default/linux/arm64/17.0/systemd/llvm (exp)
[20] default/linux/arm64/17.0/systemd/llvm/merged-usr (exp)
[21] default/linux/arm64/17.0/big-endian (exp)
[22] default/linux/arm64/17.0/big-endian/systemd (exp)
[23] default/linux/arm64/17.0/big-endian/systemd/merged-usr (exp)
[24] default/linux/arm64/17.0/musl (dev)
[25] default/linux/arm64/17.0/musl/llvm (exp)
[26] default/linux/arm64/17.0/musl/hardened (exp)
[27] default/linux/arm64/17.0/musl/hardened/selinux (exp)
# eselect profile set 4
# eselect profile show
Current /etc/portage/make.profile symlink:
default/linux/arm64/17.0/desktop
# ls -l /etc/portage/make.profile/
total 20
-rw-r--r-- 1 root root 2 Oct 7 2017 eapi
drwxr-xr-x 3 root root 4096 Sep 11 08:40 gnome
-rw-r--r-- 1 root root 34 Oct 7 2017 parent
drwxr-xr-x 3 root root 4096 Sep 11 08:40 plasma
drwxr-xr-x 3 root root 4096 Sep 11 08:40 systemd
If you are running Gentoo stage3 with OpenRC and you want to install the "default/linux/arm64/17.0/desktop (stable)" profile, you can follow these steps:
¶ Step 1. emerge --sync
# emerge --sync
>>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
* Using keys from /usr/share/openpgp-keys/gentoo-release.asc
* Refreshing keys via WKD ... [ ok ]
>>> Starting rsync with rsync://89.238.71.6/gentoo-portage...
>>> Checking server timestamp ...
rsync: did not see server greeting
rsync error: error starting client-server protocol (code 5) at main.c(1859) [Receiver=3.2.7]
>>> Retrying...
>>> Starting retry 1 of 1 with rsync://[2a00:1828:a00d:ffff::6]/gentoo-portage
>>> Checking server timestamp ...
rsync: [Receiver] failed to connect to 2a00:1828:a00d:ffff::6 (2a00:1828:a00d:ffff::6): Network is unreachable (101)
rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.2.7]
>>> Retrying...
!!! Exhausted addresses for rsync.gentoo.org
* IMPORTANT: config file '/etc/ntp.conf' needs updating.
* See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files.
* IMPORTANT: 14 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
- I added
nameserver 8.8.8.8 nameserver 8.8.4.4
into /etc/resolv.conf`
# /usr/sbin/etc-update
Scanning Configuration files...
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
1) /etc/ntp.conf (1)
Please select a file to edit by entering the corresponding number.
(don't use -3, -5, -7 or -9 if you're unsure what to do)
(-1 to exit) (-3 to auto merge all files)
(-5 to auto-merge AND not use 'mv -i')
(-7 to discard all updates)
(-9 to discard all updates AND not use 'rm -i'): -5
Replacing /etc/ntp.conf with /etc/._cfg0000_ntp.conf
Exiting: Nothing left to do; exiting. :)
- rerun
rsync: did not see server greeting
rsync error: error starting client-server protocol (code 5) at main.c(1859) [Receiver=3.2.7]
>>> Retrying...
>>> Starting retry 1 of 1 with rsync://[2a00:1828:a00d:ffff::6]/gentoo-portage
>>> Checking server timestamp ...
rsync: [Receiver] failed to connect to 2a00:1828:a00d:ffff::6 (2a00:1828:a00d:ffff::6): Network is unreachable (101)
rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.2.7]
>>> Retrying...
!!! Exhausted addresses for rsync.gentoo.org
* IMPORTANT: 14 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
Action: sync for repo: gentoo, returned code = 1
- add `RSYNC_OPTS="--ipv4" into /etc/portgage/make.conf, reboot , rerun
¶2. nano /etc/portage/make.conf
- In the make.conf file, you might want to add or modify USE flags. For example:
- USE="X -kde -gnome -wayland -systemd"
# /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult https://wiki.gentoo.org/wiki/Changing_the_CHOST_variable before changing.
CHOST="aarch64-unknown-linux-gnu"
# NOTE: This stage was built with the bindist Use flag enabled
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8
#
RSYNC_OPTS="--ipv4"
# [4] default/linux/arm64/17.0/desktop (stable)
USE="X -kde -gnome -wayland -systemd"
¶ 3. emerge -auDN @world
or emerge --ask --update --deep --newuse @world
# emerge -auDN @world
Install any additional packages you want for your desktop environment. For example, if you want to install the GNOME desktop environment, you can do so like this:
css Copy code emerge --ask gnome Configure your system according to your needs, including setting up your desktop environment and configuring any services you require.
Finally, you may want to install a display manager (e.g., LightDM or SDDM) if your desktop environment doesn't include one by default, and enable it to start at boot.
Please note that these steps are a general guideline. The specific packages and configurations you choose will depend on your preferences and requirements. Be sure to consult the Gentoo documentation and relevant package documentation for more detailed instructions on configuring your specific desktop environment and any additional software you want to