§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
...
>>> Installing (3 of 3) app-text/xmlto-0.0.28-r11::gentoo
>>> Completed (3 of 3) app-text/xmlto-0.0.28-r11::gentoo
* Messages for package dev-lang/rust-bin-1.71.1:
* Rust installs a helper script for calling GDB now,
* for your convenience it is installed under /usr/bin/rust-gdb-bin-1.71.1.
* GNU info directory index is up-to-date.
* IMPORTANT: 14 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
* After world updates, it is important to remove obsolete packages with
* emerge --depclean. Refer to `man emerge` for more information.
¶ 4. emerge --ask gnome
# emerge --ask gnome
* IMPORTANT: 14 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 43.75 s.
The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by media-video/cheese-44.1::gentoo
# required by gnome-base/gnome-extra-apps-41.0::gentoo
# required by gnome-base/gnome-40.0-r1::gentoo[extras]
# required by gnome (argument)
>=media-libs/gst-plugins-base-1.20.6 theora
# required by gnome-base/gnome-shell-44.3::gentoo
# required by x11-terms/gnome-terminal-3.48.2::gentoo[gnome-shell]
# required by gnome-base/gnome-core-apps-41.3::gentoo
# required by gnome-base/gnome-40.0-r1::gentoo
# required by gnome (argument)
>=gnome-base/gnome-control-center-44.3 networkmanager
# required by gnome-base/gnome-control-center-44.3::gentoo
# required by gnome-base/gnome-core-apps-41.3::gentoo
# required by gnome-base/gnome-40.0-r1::gentoo
# required by gnome (argument)
>=media-libs/libcanberra-0.30-r7 pulseaudio
Would you like to add these changes to your config files? [Yes/No] Yes
Autounmask changes successfully written.
* IMPORTANT: config file '/etc/portage/package.use/zz-autounmask' needs updating.
* See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files.
!!! The ebuild selected to satisfy "media-libs/libmediaart:2.0" has unmet requirements.
- media-libs/libmediaart-1.9.6-r1::gentoo USE="gtk introspection qt5 -gtk-doc -test -vala"
The following REQUIRED_USE flag constraints are unsatisfied:
exactly-one-of ( gtk qt5 )
The above constraints are a subset of the following complete expression:
exactly-one-of ( gtk qt5 ) vala? ( introspection )
(dependency required by "media-plugins/grilo-plugins-0.3.16::gentoo" [ebuild])
(dependency required by "media-video/totem-43.0::gentoo" [ebuild])
(dependency required by "gnome-base/gnome-core-apps-41.3::gentoo" [ebuild])
(dependency required by "gnome-base/gnome-40.0-r1::gentoo" [ebuild])
(dependency required by "gnome" [argument])
# echo "media-libs/libmediaart gtk qt5 -vala" >> /etc/portage/package.use/custom
# emerge --ask gnome
# echo "media-libs/libmediaart gtk qt5 -vala" >> /etc/portage/package.use/custom
localhost /home/alexlai # emerge --ask gnome
* IMPORTANT: 14 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
* IMPORTANT: config file '/etc/portage/package.use/zz-autounmask' needs updating.
* See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files.
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 43.06 s.
The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by media-video/cheese-44.1::gentoo
# required by gnome-base/gnome-extra-apps-41.0::gentoo
# required by gnome-base/gnome-40.0-r1::gentoo[extras]
# required by gnome (argument)
>=media-libs/gst-plugins-base-1.20.6 theora
# required by gnome-base/gnome-shell-44.3::gentoo
# required by x11-terms/gnome-terminal-3.48.2::gentoo[gnome-shell]
# required by gnome-base/gnome-core-apps-41.3::gentoo
# required by gnome-base/gnome-40.0-r1::gentoo
# required by gnome (argument)
>=gnome-base/gnome-control-center-44.3 networkmanager
# required by gnome-base/gnome-control-center-44.3::gentoo
# required by gnome-base/gnome-core-apps-41.3::gentoo
# required by gnome-base/gnome-40.0-r1::gentoo
# required by gnome (argument)
>=media-libs/libcanberra-0.30-r7 pulseaudio
Would you like to add these changes to your config files? [Yes/No]
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