How-To:: Mate Desktop 1.18.0 + Kernel 4.18.8 no Gentoo


E mais uma vez retorno ao uso do MATE Desktop em meu Gentoo, aproveitando agora a versão 1.18 recém-admitida no ramo stable.

Observem o baixíssimo consumo de RAM desta versão do MATE Desktop, junto a versão mais recente do Kernel Linux, a 4.18.8 num Gentoo Stable atualizado quando comparado ao meu (quase) inseparável OpenBox!

Agora que vimos as diferenças, veremos como instalar o MATE no Gentoo e as configurações que utilizo:

/etc/portage/make.conf.

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=native -fomit-frame-pointer -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-s -j6 -l7"
EMERGE_DEFAULT_OPTS="--ask --jobs=6 --load-average=7 --autounmask-write=y --with-bdeps=y --keep-going=y --quiet-build=y"
FEATURES="ccache parallel-fetch parallel-install sandbox clean-logs fail-clean"
CCACHE_DIR="/var/tmp/ccache"
CCACHE_SIZE="10G"
AUTOCLEAN="yes"
PORTAGE_TMPDIR=/var/tmp
PORTAGE_NICENESS=10
PORT_LOGDIR=/var/log/portage
PAX_MARKINGS="none"
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
DEFAULT="X"
EXCLUDE="-bluetooth -doc -eds -gnome -joystick -kde -midi -networkmanager -phonon -qt5 -systemd -upower"
USE="${CPU_FLAGS_X86} ${DEFAULT} ${EXCLUDE}"
ALSA_CARDS="hda-intel"
INPUT_DEVICES="evdev keyboard mouse"
VIDEO_CARDS="intel i965"
L10N="pt-BR"
GENTOO_MIRRORS="http://gentoo.c3sl.ufpr.br/ \ 
		ftp://gentoo.c3sl.ufpr.br/gentoo/ \ 
                rsync://gentoo.c3sl.ufpr.br/gentoo/ \ 
                http://distfiles.gentoo.org/" 

/etc/portage/package.accept_keywords/zz-autounmask

#required by obmenu-generator (argument)
=x11-misc/obmenu-generator-0.66 ~amd64
#required by lxappearance-obconf (argument)
=lxde-base/lxappearance-obconf-0.2.3 ~amd64
#required by gnome-mpv (argument)
=media-video/gnome-mpv-0.14 ~amd64
#required by iosevka (argument)
=media-fonts/iosevka-1.14.1 ~amd64
#required by arc-theme (argument)
=x11-themes/arc-theme-20170302 ~amd64
#required by media-video/mpv-0.27.2::gentoo
#required by media-video/smplayer-18.3.0::gentoo
#required by @selected #required by @world (argument)
=media-video/ffmpeg-3.4.2-r1 ~amd64
#required by handbrake (argument)
=media-video/handbrake-1.1.0-r1 ~amd64
#required by soundkonverter (argument)
=media-sound/soundkonverter-3.0.1-r1 ~amd64
#required by x11-apps/intel-gpu-tools-1.22::gentoo
#required by x11-apps/intel-gpu-tools (argument)
=dev-util/peg-0.1.18 ~amd64
#required by media-libs/vulkan-loader (argument)
=media-libs/vulkan-loader-1.1.70.0-r1 ~amd64
#required by x11-apps/intel-gpu-tools (argument)
=x11-apps/intel-gpu-tools-1.22 ~amd64
#required by inxi (argument)
=sys-apps/inxi-2.3.56 ~amd64

# USER Configuration.
# Kernel gentoo-sources
>=sys-kernel/gentoo-sources-4.17.14 ~amd64

/etc/portage/package.use/zz-autounmask

# package.use
# required by sys-boot/os-prober-1.76-r1::gentoo 
# required by os-prober (argument) 
>=sys-boot/grub-2.02-r1 mount 
# required by sys-auth/consolekit-1.2.0::gentoo 
# required by sys-auth/consolekit (argument) 
>=dev-libs/glib-2.52.3 dbus 
# required by sys-auth/polkit-0.113-r4::gentoo[-elogind,-systemd] 
# required by sys-fs/udisks-2.7.4-r1::gentoo 
# required by sys-fs/udiskie-1.1.1::gentoo 
# required by udiskie (argument) 
>=sys-auth/consolekit-1.2.0 policykit 
# required by dev-util/itstool-2.0.2::gentoo 
# required by gnome-extra/yelp-xsl-3.20.1::gentoo 
# required by app-text/yelp-tools-3.18.0::gentoo 
# required by dev-util/gtk-doc-1.25-r1::gentoo 
# required by sys-fs/udisks-2.7.4-r1::gentoo 
# required by sys-fs/udiskie-1.1.1::gentoo 
# required by udiskie (argument) 
>=dev-libs/libxml2-2.9.8 python 
# required by xfce-extra/thunar-volman-0.8.1-r1::gentoo 
# required by thunar-volman (argument) 
>=xfce-base/thunar-1.6.14 udisks 
# required by xfce-base/thunar-1.6.14::gentoo[udisks] 
# required by xfce-extra/thunar-archive-plugin-0.3.1-r3::gentoo 
# required by thunar-archive-plugin (argument) 
>=gnome-base/gvfs-1.32.2 udisks 
# required by x11-misc/tint2-0.12.12::gentoo 
# required by tint2 (argument) 
>=media-libs/imlib2-1.4.9 png 
# required by x11-misc/xdg-utils-1.1.1-r1::gentoo 
# required by www-client/opera-12.16_p1860-r1::gentoo 
# required by opera (argument) 
>=app-text/xmlto-0.0.26-r1 text 
# required by dev-qt/qtcore-5.9.4-r2::gentoo 
# required by dev-qt/qtsingleapplication-2.6.1_p20171024::gentoo 
# required by media-video/smplayer-18.3.0::gentoo 
# required by smplayer (argument) 
>=dev-libs/libpcre2-10.30 pcre16 
# required by app-text/evince-3.24.2-r1::gentoo 
# required by evince (argument) 
>=app-text/poppler-0.62.0-r1 cairo 
# required by net-print/cups-filters-1.17.9::gentoo[postscript] 
# required by net-print/cups-2.2.7::gentoo 
# required by app-office/libreoffice-bin-6.0.3.2::gentoo 
# required by libreoffice-bin (argument) 
>=app-text/ghostscript-gpl-9.21 cups 
# required by sys-apps/bleachbit-2.0::gentoo[python_targets_python2_7] 
# required by bleachbit (argument) 
>=dev-lang/python-2.7.14-r1:2.7 sqlite 
# required by dev-qt/qtgui-5.9.4-r3::gentoo[xcb] 
# required by dev-qt/qtsingleapplication-2.6.1_p20171024::gentoo[X] 
# required by media-video/smplayer-18.3.0::gentoo 
# required by smplayer (argument) 
>=x11-libs/libxcb-1.13 xkb 
# required by app-office/libreoffice-bin-6.0.3.2::gentoo 
# required by libreoffice-bin (argument) 
>=media-libs/harfbuzz-1.7.6 icu 
# required by media-video/gnome-mpv-0.14::gentoo 
# required by gnome-mpv (argument) 
>=media-video/mpv-0.27.2 libmpv 
# required by app-misc/neofetch-3.4.0::gentoo[X] 
# required by neofetch (argument) 
>=www-client/w3m-0.5.3_p20180125 imlib 
# required by media-video/handbrake-1.1.0-r1::gentoo[-libav] 
# required by handbrake (argument) 
>=media-video/ffmpeg-3.4.2-r1 fdk 
# required by media-video/vlc-3.0.2-r1::gentoo 
# required by media-libs/phonon-vlc-0.10.1::gentoo 
# required by media-libs/phonon-4.10.1::gentoo[vlc] 
# required by media-sound/soundkonverter-3.0.1-r1::gentoo 
# required by soundkonverter (argument) 
>=sys-libs/zlib-1.2.11-r1 minizip 
# required by media-libs/phonon-vlc-0.10.1::gentoo 
# required by media-libs/phonon-4.10.1::gentoo[vlc] 
# required by media-sound/soundkonverter-3.0.1-r1::gentoo 
# required by soundkonverter (argument) 
>=media-video/vlc-3.0.2-r1 vorbis ogg dbus 
# required by kde-frameworks/kcoreaddons-5.46.0::gentoo 
# required by kde-frameworks/kjobwidgets-5.46.0::gentoo 
# required by kde-frameworks/kparts-5.46.0::gentoo 
# required by kde-frameworks/kdelibs4support-5.46.0::gentoo 
# required by media-sound/soundkonverter-3.0.1-r1::gentoo 
# required by soundkonverter (argument) 
>=dev-qt/qtcore-5.9.4-r2 icu 
# required by app-office/libreoffice-6.0.3.2::gentoo 
# required by @selected 
# required by @world (argument) >=dev-libs/xmlsec-1.2.26 nss 
# required by gnome-base/gnome-keyring-3.20.1::gentoo 
# required by app-crypt/libsecret-0.18.6-r1::gentoo 
# required by app-crypt/pinentry-1.0.0-r2::gentoo[gnome-keyring] 
# required by app-crypt/gnupg-2.2.8::gentoo 
# required by dev-vcs/git-2.16.4::gentoo[gpg] 
# required by @selected # required by @world (argument) 
>=app-crypt/gcr-3.20.0 gtk 
# required by gnome-base/gnome-keyring-3.20.1::gentoo 
# required by app-crypt/libsecret-0.18.6-r1::gentoo 
# required by sys-apps/gnome-disk-utility-3.24.1::gentoo 
# required by mate-base/mate-1.18::gentoo[extras] 
# required by mate-base/mate (argument) 
>=app-crypt/pinentry-1.0.0-r2 gnome-keyring 
# required by x11-misc/mozo-1.18.0::gentoo 
# required by mate-base/mate-1.18::gentoo[base] 
# required by mate-base/mate (argument) 
>=mate-base/mate-menus-1.18.1 python 

# # USER Configuration. # 

# CONKY.
>=app-admin/conky-1.10.8 X curl hddtemp imlib iostats lua-cairo lua-imlib lua-rsvg moc nano-syntax truetype
# GVFS.
>=gnome-base/gvfs-1.32.2 fuse mtp
# MOC.
>=media-sound/moc-2.5.2 alsa flac mad vorbis
# SUDO.
>=app-admin/sudo-1.8.22-r2 -sendmail
# Portage.
>=sys-apps/portage-2.3.40 -rsync-verify
# Transmission.
>=net-p2p/transmission-2.93 gtk
# Handbrake GTK.
>=media-video/handbrake-1.1.0-r1 gstreamer gtk x265
# JPEG support.
>=x11-libs/gdk-pixbuf-2.36.12 jpeg
# Compton.
>=x11-misc/compton-0.1_beta2 drm pcre dbus opengl xinerama
# Mate Desktop >= 1.18.0.
>=mate-base/mate-desktop-1.18.0 startup-notification
>=app-arch/engrampa-1.18.3 caja
>=x11-misc/xdg-user-dirs-0.17 gtk
>=media-gfx/eom-1.18.3 jpeg svg
>=app-text/atril-1.18.3 caja
>=x11-wm/marco-1.18.2 startup-notification
>=sys-apps/gnome-disk-utility-3.24.1 fat
>=mate-extra/caja-extensions-1.18.2 -mail gksu image-converter
>=mate-base/mate-1.18 base extras notification themes -bluetooth -help

Com isso, bastou-me:

# eix-sync
ou
# emerge --sync
# emerge -av mate-base/mate
# emerge -av app-arch/p7zip app-arch/unace app-arch/arj app-arch/cpio app-arch/dpkg app-cdr/cdrtools app-arch/zip app-arch/unzip app-arch/lha app-arch/xz-utils app-arch/lzop app-arch/unrar app-arch/rpm app-arch/zoo
# eselect pinentry set pinentry-gnome3 

E para acelerar a captura de tela, troquei o Mate Screenshot pelo scrot:

$ gsettings set org.mate.Marco.keybinding-commands command-screenshot 'scrot'

~/.xinitrc

Para alterar o ambiente padrão, troquei meu quirido OpenBox pelo Mate, apenas editando o arquivo ~/.xinitrc:

#!/bin/sh
if
[ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then exec ck-launch-session dbus-launch mate-session     else exec mate-session
fi

Kernel

Nada mais simples que:

$ wget -nv https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.18.8.tar.xz
$ su -l
# tar xvf /home/edps/Desktop/linux-4.18.8.tar.xz -C /usr/src/
# cd /usr/src/
# eselect kernel list
# eselect kernel set 2
# ls -al # apenas para confirmar se o link "linux" aponta para o novo kernel
# cd linux
# make localmodconfig # kernel enxuto, apenas módulos necessários para este PC
# make menuconfig
# make -j6 bzImage modules
# make modules_install
# make install
# grub-mkconfig -o /boot/grub/grub.cfg
# reboot

IntÉ!

How-To:: Mate Desktop 1.18.0 + Kernel 4.18.8 no Gentoo

Um comentário sobre “How-To:: Mate Desktop 1.18.0 + Kernel 4.18.8 no Gentoo

  1. tambem uso mate, mas uso parabola/arch no momento, estou trabalhando em um projeto que inclui navegador webkitgtk+, que e’ basicamente especifico para o mate, logo vou disponibilizar o codigo no meu blog. parabens pelo teu blog.

    Curtir

Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair /  Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair /  Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair /  Alterar )

Conectando a %s