Sabayon completo, personalizado e portátil, em pendrive de boot

Este artigo descreve como preparar e obter um Sabayon totalmente personalizado e portátil, em um pendrive de boot, modificável e persistente.

[ Hits: 22.546 ]

Por: Alberto Federman Neto. em 25/07/2014 | Blog: https://ciencialivre.blog/


Modificando os arquivos de configuração



Como é um pendrive muito personalizado, alterei vários arquivos de configuração.

B.6. Modificações de configurações:

B.6.1. Para usar os repositórios brasileiros como padrão, substituí os arquivos de repositórios no diretório /etc/entropy/repositories.conf.d, por estes:

Arquivo entropy_sabayonlinux.org, atualizado:

# Entropy Repository configuration file. New Version
# By Fabio Erculiani and Sabayon Team
# Modified for use mainly the Brazilian Mirrors, by Albfneto, Brazil, 2014.
#
#  This is an example of the new syntax (with a complete listing
#  of the supported arguments):
#
#  [repository-id]
#  desc = Sabayon Linux Official Testing Repository
#  repo = http://pkg.sabayon.org
#  repo = http://pkg.repo.sabayon.org
#  pkg = http://pkg.sabayon.org
#  pkg = http://dl.sabayon.org/entropy
#  enabled = <true/false>
#
#  [repository-id]
#  desc = This statement will be ignored.
#  repo = This url will be ignored.
#  pkg = http://some.more.mirror.org/entropy
#  pkg = http://some.more.mirror.net/entropy
#
#  As you can see, multiple statements for the same repository
#  are allowed. However, only the first desc = statement will be
#  considered, while there can be as many pkg = and repo = as you
#  want.
#
#  Statements description:
#  - "desc": stands for description, the repository name description.
#  - "repo": the repository database URL string, plus other parameters
#            as supported in the previous configuration file syntax:
#            <db url prefix>[#<compression>].
#  - "pkg": the repository packages URL string. This must be a valid URL.
#           The supported protocols are those supported by entropy.fetchers.
#  - "enabled": if set, its value can be either "true" or "false". The default
#               value is "true". It indicates if a repository is configured
#               but currently disabled or enabled. Please take into account
#               that config files in /etc/entropy/repositories.conf.d/ starting
#               with "_" are considered to contain disabled repositories. This
#               is just provided for convienence.

[sabayonlinux.org]
desc = Sabayon Linux Official Repository
repo = http://sabayon.c3sl.ufpr.br#bz2
repo = http://pkg.sabayon.org#bz2
# This is used as fallback if pkg.sabayon.org is not available
repo = http://pkg.repo.sabayon.org#bz2
enabled = true

# Sabayon Packages Continent-based Load Balancer. (Balanceamento por Continente)
# pkg = http://dl.sabayon.org/entropy

# Repositórios oficiais, Sabayon Linux. Os 2 últimos são os Brasileiros. De baixo para cima,
# pela ordem de uso, do 1 ao 18, o principal atuante é o último, (1).
# Brasil, Argentina, Itália Oficial, EUA, Portugal, França, Bélgica, espelhos rápidos da Holanda, Dinamarca e República
# Tcheca, depois: Alemanha, Áustria, Suécia, Hungria, Grécia, Rússia, África do Sul, Austrália, Japão
# O primeiro, acima é o redirecionador Oficial, porém o time recomenda que se use Espelhos.
# No momento, os repos da Polônia estão offline, por isso,foram retirados;
# Atualizado em 18 de Julho de 2014.

# Geral:
pkg = http://pkg.sabayon.org

# 18 Japao:
pkg = http://ftp.tsukuba.wide.ad.jp/Linux/sabayon/entropy
pkg = ftp://ftp.kddilabs.jp/Linux/packages/sabayonlinux/entropy
pkg = http://ftp.riken.jp/Linux/sabayon/entropy
pkg = ftp://ftp.riken.jp/Linux/sabayon/entropy

# 17 Australia
pkg = http://mirror.internode.on.net/pub/sabayon/entropy
pkg = http://mirror.optusnet.com.au/sabayon/entropy
pkg = ftp://mirror.optusnet.com.au/sabayon/entropy


# 16 Africa do Sul:
pkg = http://sabayon.mirror.ac.za/entropy
pkg = ftp://sabayon.mirror.ac.za/entropy

# 15 Russia:
pkg = http://mirror.agooga.ru/Linux/sabayonlinux/entropy
pkg = http://mirror.yandex.ru/sabayon/entropy
pkg = ftp://mirror.yandex.ru/sabayon/entropy

# 14 Grecia:
pkg = http://ftp.cc.uoc.gr/mirrors/linux/SabayonLinux/entropy
pkg = ftp://ftp.cc.uoc.gr/mirrors/linux/SabayonLinux/entropy

# 13 Hungria:
pkg = http://ftp.fsn.hu/pub/linux/distributions/sabayon/entropy
pkg = ftp://ftp.fsn.hu/pub/linux/distributions/sabayon/entropy


# 12 Suecia:
pkg = http://ftp.portlane.com/pub/os/linux/sabayon/entropy
pkg = ftp://ftp.portlane.com/pub/os/linux/sabayon/entropy

# 11 Austria:
pkg = http://gd.tuwien.ac.at/linux/sabayonlinux/entropy
pkg = ftp://gd.tuwien.ac.at/linux/sabayonlinux/entropy

# 10 Alemanha:
pkg = http://mirror.de.sabayon.org/entropy

# 9 Republica Tcheca:
pkg = http://ftp.sh.cvut.cz/MIRRORS/sabayon/entropy
pkg = http://ftp2.cz.freebsd.org/pub/sabayon/entropy
pkg = http://debian.mirror.dkm.cz/sabayon/entropy
pkg = ftp://mirror.dkm.cz/pub/sabayon/entropy
pkg = http://mirror.dkm.cz/pub/sabayon/entropy

# 8 Dinamarca:
pkg = http://ftp.klid.dk/sabayonlinux/entropy
pkg = ftp://ftp.klid.dk/sabayonlinux/entropy

# 7 Holanda:

pkg = http://ftp.nluug.nl/pub/os/Linux/distr/sabayonlinux/entropy
pkg = ftp://ftp.nluug.nl/pub/os/Linux/distr/sabayonlinux/entropy
pkg = http://ftp.surfnet.nl/pub/os/Linux/distr/sabayonlinux/entropy
pkg = ftp://ftp.surfnet.nl/pub/os/Linux/distr/sabayonlinux/entropy


# Belgica
pkg = http://ftp.belnet.be/sabayonlinux/entropy
ftp://ftp.belnet.be/mirror/sabayonlinux/entropy

# 6 França:
pgk = http://mirror.freelydifferent.com/sabayon/entropy

# 5 Portugal:
pkg = http://ftp.rnl.ist.utl.pt/pub/sabayon/entropy
pkg = http://cesium.di.uminho.pt/pub/sabayon/entropy

# 4 EUA:
pkg = http://mirror.umoss.org/sabayonlinux/entropy
pkg = http://cross-lfs.sabayonlinux.org/entropy
pkg = http://mirrors-usa.go-parts.com/sabayon/entropy
pkg = ftp://mirrors-usa.go-parts.com/sabayon/entropy
pkg = http://mirror.umd.edu/sabayonlinux/entropy
pkg = http://mirror.clarkson.edu/sabayon/entropy
pkg = http://mirror.cs.vt.edu/pub/SabayonLinux/entropy
pkg = ftp://mirror.cs.vt.edu/pub/SabayonLinux/entropy

# 3 Italia Oficial:
pkg = http://mirror2.mirror.garr.it/mirrors/sabayonlinux/entropy
pkg = http://mirror.it.sabayon.org/entropy/
pkg = http://na.mirror.garr.it/mirrors/sabayonlinux/entropy
pkg = ftp://na.mirror.garr.it/mirrors/sabayonlinux/entropy

# 2 Argentina:
pkg = http://mirrors.coopvgg.com.ar/sabayon/entropy
pkg = ftp://mirrors.coopvgg.com.ar/sabayon/entropy

# 1 Universidade Federal do Parana, Brazil
pkg = http://sabayon.c3sl.ufpr.br/sabayon/entropy
pkg = ftp://sabayon.c3sl.ufpr.br/entropy

Arquivo entropy_sabayon-limbo, atualizado:

# Entropy Repository configuration file.
# By Fabio Erculiani and the Sabayon Team.
# Modified by Albfneto, 2014.
#
#  This is an example of the new syntax (with a complete listing
#  of the supported arguments):
#
#  [repository-id]
#  desc = Sabayon Linux Official Testing Repository
#  repo = http://pkg.sabayon.org
#  repo = http://pkg.repo.sabayon.org
#  pkg = http://pkg.sabayon.org
#  pkg = http://dl.sabayon.org/entropy
#  enabled = <true/false>
#
#  [repository-id]
#  desc = This statement will be ignored.
#  repo = This url will be ignored.
#  pkg = http://some.more.mirror.org/entropy
#  pkg = http://some.more.mirror.net/entropy
#
#  As you can see, multiple statements for the same repository
#  are allowed. However, only the first desc = statement will be
#  considered, while there can be as many pkg = and repo = as you
#  want.
#
#  Statements description:
#  - "desc": stands for description, the repository name description.
#  - "repo": the repository database URL string, plus other parameters
#            as supported in the previous configuration file syntax:
#            <db url prefix>[#<compression>].
#  - "pkg": the repository packages URL string. This must be a valid URL.
#           The supported protocols are those supported by entropy.fetchers.
#  - "enabled": if set, its value can be either "true" or "false". The default
#               value is "true". It indicates if a repository is configured
#               but currently disabled or enabled. Please take into account
#               that config files in /etc/entropy/repositories.conf.d/ starting
#               with "_" are considered to contain disabled repositories. This
#               is just provided for convienence.

# Experimental Sabayon repository "sabayon-limbo"
# Here you can find in-testing packages that will be merged to
# the mainline repository soon.
# You can use any mirror listed for "sabayonlinux.org"

# repositorios Sabayon Limbo, comente se nao usar. Brasil e Argentina como principais:

[sabayon-limbo]
desc = Sabayon Limbo Testing Repository
repo = http://sabayon.c3sl.ufpr.br
repo = http://pkg.sabayon.org
# This is used as fallback if pkg.sabayon.org is not available
repo = http://pkg.repo.sabayon.org
enabled = true

pkg = http://dl.sabayon.org/entropy
pkg = http://mirror.internode.on.net/pub/sabayon/entropy
pkg = http://ftp.rnl.ist.utl.pt/pub/sabayon ftp://ftp.rnl.ist.utl.pt/pub/sabayon
pkg = http://ftp.nluug.nl/pub/os/Linux/distr/sabayonlinux/entropy
pkg = http://cross-lfs.sabayonlinux.org/entropy
pkg = http://mirror2.mirror.garr.it/mirrors/sabayonlinux/entropy
pkg = http://na.mirror.garr.it/mirrors/sabayonlinux/entropy
pkg = http://mirrors.coopvgg.com.ar/sabayon/entropy
pkg = http://sabayon.c3sl.ufpr.br/entropy

B.6.2. Costumo usar Entropy junto com Portage.

Para isso, foi preciso editar o arquivo /etc/entropy/client.conf. Editado e atualizado, usei este:

# Project Entropy 1.0 Equo configuration file

# Collision protection
# 0: No protection
# 1: Removal protection (recommended)
# 2: Installation/Removal protection
collision-protect = 1

# Configuration files protection
# This works in the same way of Portage CONFIG_PROTECT but it's Entropy related
#
#  syntax for CONFIG_PROTECT:
#  config-protect = /path/to/dir1 /path/to/dir2 /path/to/dir3
#
#  default: unset, internal variable will be used (this is stored into
#           the repository database)
#
# 2: Installation/Removal protection
config-protect = /etc/conf.d /etc/hosts /etc/X11/xorg.conf /etc/X11 /etc/entropy

# Configuration files protection
# This works in the same way of Portage CONFIG_PROTECT_MASK but it's
# Entropy related
#
#  syntax for CONFIG_PROTECT_MASK:
#  config-protect-mask = /path/to/dir1 /path/to/dir2 /path/to/dir3
#
#  default: unset, internal variable will be used (this is stored into the
#           repository database)
#
# 2: Installation/Removal protection mask
config-protect-mask = /etc/pam.d

# Configuration files protection
# List of files that should be kept as they are: whose updated config files
# will be rejected
#
#  syntax for CONFIG_PROTECT_SKIP:
#  config-protect-skip = /path/to/dir1 /path/to/dir2 /path/to/dir3
#
#  default: unset, internal variable will be used (this is stored into the
#           repository database)
#
# 2: Installation/Removal protection skip
config-protect-skip = /etc/conf.d/hostname /etc/sudoers /etc/exports

# Configuration files backup
# Option to enable/disable automatic backup of files merged by "equo conf update"
# Valid parameters: disable, enable, true, false, disabled, enabled, 0, 1
# Default parameter if unset: enable
files-backup = false

# Extra package hash check modules
# Option to selectively choose what extra package hash checks to execute
# when installing a package. Modules avaiable are sha1, sha256, sha512 and gpg.
# Default parameter if unset: sha1 sha256 sha512 gpg
# PLEASE NOTE: to fully disable GPG feature, please have a look at the
# "gpg" option below.
package-hashes = sha1 gpg

# GnuPG repository and packages verification feature.
# Valid parameters: disable, enable, true, false, disabled, enabled, 0, 1
# Default parameter if unsed: enable
# It is strongly suggested to keep gpg feature enabled.
# gpg = enable

# Force critical updates first
# Option to enable/disable forced critical updates installation.
# Valid parameters: disable, enable, true, false, disabled, enabled, 0, 1
# Default parameter if unset: enable
# forced-updates = enable

# Number of days that should pass before package files
# get removed from cache automatically.
# Note that this feature should be disabled in server-environments where
# storing packages cache is subject to different policies.
# The daemon in charge of this is client-updates-daemon available via
# entropy-client-services package. You may consider cleaning up packages cache
# manually by calling "equo cleanup" either inside a cronjob or by hand.
# Valid parameters: <integer, representing number of days>
# Default parameter if unset: <feature disabled>
# NOTE: values <0 or >365 are not tolerated.
packages-autoprune-days = 60

# Enable/disable simultaneous download of packages by Entropy Client
# Valid parameters: disable, enable, true, false, disabled, enabled
# By default, if multifetch is enabled, only 3 simultaneous downloads
# are allocated. To change this, just set multifetch to a value between
# 1 and 10.
# Default parameter if unset: disable
# Use 4 para uma rede relativamente lenta. 3 não é eficiente e 5 fica lento demais emrede de 2M, como a minha

multifetch = 4

# Enable Entropy package delta download (when delta packages are available).
# Running on limited bandwidth? Do you have monthly bandwidth limits?
# Enable this feature and further package updates will be downloaded through
# their .edelta files, saving a lot of bandwidth.
# Default parameter if unset: disable

# Ative Sistema Delta, Gentoos usam muito:

packages-delta = enable

# Ignore SPM (Portage) pseudo-downgrades
# USE AT YOUR OWN RISK, IF YOU DON'T KNOW WHAT'S THIS OPTION
# !!!!!!!!!!!!!!!!!!        SKIP IT       !!!!!!!!!!!!!!!!!!
# !!!!!!!!!!!!!!!!!!        SKIP IT       !!!!!!!!!!!!!!!!!!
# !!!!!!!!!!!!!!!!!!        SKIP IT       !!!!!!!!!!!!!!!!!!
# !!!!!!!!!!!!!!!!!!        SKIP IT       !!!!!!!!!!!!!!!!!!
# This option permits to skip packages with Entropy revision 9999
# from being treaten as downgrades. This usually happens when
# migrating from Portage to Entropy
# Valid parameters: disable, enable, true, false, disabled, enabled, 0, 1
# Default parameter if unset: disable

#Para usar Portage e Entropy, precisa alterar assim:

ignore-spm-downgrades = enable

# Enable the installation of debug files
# Also known as "splitdebug" support
# Valid parameters: disable, enable, true, false, disabled, enabled, 0, 1
# Default parameter if unset: disable
# splitdebug = disable
# HOW SPLITDEBUG WORKS with Entropy
# Once you enable the "splitdebug" feature
# you just need to (re)install packages in order to
# get /usr/lib/debug metadata files installed. That's it.
# You can safely remove /usr/lib/debug without affecting
# Operating System functionality, at any time.

B.6.3. Eu também uso sincronização de tempo, de Hora (NTP com comando ntpd ou ntpdate):
Para isso, uso este arquivo /etc/ntp.conf, com servidores de tempo da USP como principal:

# Based on known related files. Modified by Alberto Federman Neto,
# 2014.

# NOTES:

# DHCP clients can append or replace NTP configuration files.
# You should consult your DHCP client documentation about its
# default behaviour and how to change it.

# Desejando pegar servidores automatico para sua maquina,
# descomente:
# netselect -s 3 pool.ntp.org

# If you want to deny all machines (including your own)
# from accessing the NTP server, uncomment:
#restrict default ignore

# To deny other machines from changing the
# configuration but allow localhost:
# configurações de restrição de acesso

# Restrições de acesso
restrict nomodify nopeer notrap
restrict 127.0.0.1
# restrict default kod notrap nomodify nopeer


# To allow machines within your network to synchronize
# their clocks with your server, but ensure they are
# not allowed to configure the server or used as peers
# to synchronize against, uncomment this line.
#restrict 192.168.0.0 mask 255.255.255.0 nomodify nopeer notrap

# CONFIG
# "memoria" para o escorregamento de frequência do micro
# pode ser necessário criar esse arquivo manualmente com
# o comando touch ntp.drift
driftfile /etc/ntp.drift

# estatísticas do ntp que permitem verificar o histórico
# de funcionamento e gerar gráficos
statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

# servidores gerais principais e pools:

# Servidor NTP da USP, São Paulo, SP, Stratum 2
server ntp.usp.br iburst

# Servidor Stratum 2 em Valinhos, SP
server ntp.hiway.com.br iburst

# servidores públicos do projeto ntp.br
# Se quiser, deixe como principais

server a.st1.ntp.br iburst
server b.st1.ntp.br iburst
server c.st1.ntp.br iburst
server d.st1.ntp.br iburst
server a.ntp.br iburst
server b.ntp.br iburst
server c.ntp.br iburst
server gps.ntp.br iburst

# Pool de Servidores Brasileiros

server br.pool.ntp.org iburst

# Pool de servidores Sul-Americanos

server south-america.pool.ntp.org iburst

# Pool Geral

server pool.ntp.br iburst

# se todos falharem:

# servidor da PUC do Rio
server ntp.puc-rio.br iburst

# Servidor da RNP, Brasília, DF
server ntp.cais.rnp.br iburst

# Público, Stratum 1 do Observatório Nacional
server ntp.on.br iburst
server ntp2.on.br iburst

# outros servidores, descomente e adicione aqui
# server outro-servidor.dominio.br iburst

B.6.4. Outro arquivo, necessário para usar Portage em Sabayon, é o /etc/portage/make.conf.

Usei este, feito recentemente, combinando o default nos Sabayons novos, com minhas antigas configurações:

# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
# Modificado a partir do original do Sabayon, por Albfneto, Brasil (2014) <albfneto@fcfrp.usp.br>

# Compiler stuff
# -ftree-vectorize ${GRAPHITE}"
GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block"
# Only enable Graphite via package.env

# CFLAGS="-O2 -march=x86-64 -pipe"

# Compila para o Micro onde o Pendrive foi espetado:
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"

CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"

# Use o número máximo de núcleos do seu processador, mais um:

MAKEOPTS="-j9 -s"

# licenças aceitas automáticamente:

ACCEPT_LICENSE="*"

# Portage stuff
ACCEPT_KEYWORDS="~amd64"
FEATURES="parallel-fetch protect-owned collision-protect compressdebug splitdebug"
CCACHE_SIZE="2G"
CCACHE_DIR="/var/ccache"

# Para Português do Brasil e Europeu:

LINGUAS="pt_BR.UTF-8 pt_BR.ISO8859-1 pt_BR.iso8859-1 pt_BR pt-BR pt"


# Deixe completo, se  tiver muitos Hardwares diferentes  e usar muitos pacotes:
## USE ##
SAB_BAD="-kdeprefix -arts -qt3 -beagle -gnome -evo -mono -eds -apm -oss -branding -esd"
SAB_MEDIA="musicbrainz sdl pulseaudio wmf fame cdr dvi mp3rtp xine cddb alsa dvb dvd bluray network dvdread ipod audiofile artswrappersuid dvdr jack dri cdda mjpeg mmx joystick xvmc cpudetection v4l v4l2"
SAB_CODECS="x264 gsm lame dv mp3 stream live openal theora ogg a52 win32codecs matroska xvid flac ffmpeg aac speex real dts musepack"
SAB_SYSTEM="cjk unicode nls gnutls ntpd nptl gcj udev systemd logind -consolekit kerberos acl dbus bash-completion lzo rar policykit xcb bzip2 bidi wifi lm_sensors acpi usb pcmcia bluetooth irda ieee1394 perl python"
SAB_FILESYS="fat hfs jfs xfs ntfs reiserfs sysfs inotify"
SAB_PRINT="cups ppds foomatic-db gimpprint freetype xprint scanner"
SAB_XSYS="cairo X opengl png gif gtk qt4 qt3support xpm tiff xinerama aiglx svg gphoto2 dga lcd openexr"
SAB_DESKTOP="kdehiddenvisibility gmp libnotify rdesktop pda zeroconf kdeenablefinal visualization avahi startup-notification accessibility"
SAB_BROWSER="nsplugin firefox mozdevelop xulrunner"
SAB_COMMS="jabber msn yahoo icq irc aim rss slp mail imap"

USE="${SAB_BAD} ${SAB_MEDIA} ${SAB_CODECS} ${SAB_SYSTEM} ${SAB_FILESYS} ${SAB_PRINT} ${SAB_XSYS} ${SAB_DESKTOP} ${SAB_BROWSER} ${SAB_COMMS}"

## DEVICES ##
INPUT_DEVICES="evdev void"

# Para as várias possíveis placas dos micros onde o pendrive for usado:

VIDEO_CARDS="fbdev vesa radeonsi intel radeon nv nvidia ati"

LIRC_DEVICES="audio audio_alsa serial pctv"
ALSA_CARDS="emu10k1x darla20 darla24 emu10k1 gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla20 layla24 mia mixart mona pcxhr rme32 rme96 sb16 sbawe sscape usbusx2y vx222 usb-usx2y"
CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11 adc65 aox barbie canon clicksmart310 digigr8 digita directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 konica largan lg_gsm mars mustek pccam300 pccam600 ptp2 ricoh samsung sierra smal sonix soundvision spca50x sq905 stv0674 stv0680 sx330z template"

# Comente se não usar LibreOffice:
## OFFICE ##
# LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport wiki-publisher"

# Comente, se não usar QEMU:
## QEMU ##
# QEMU_USER_TARGETS="alpha arm armeb cris i386 m68k microblaze mips mipsel ppc ppc64 ppc64abi32 sh4 sh4eb sparc sparc32plus sparc64 x86_64"
# QEMU_SOFTMMU_TARGETS="x86_64 arm cris i386 m68k microblaze mips mips64 mips64el mipsel ppc ppc64 ppcemb sh4 sh4eb sparc sparc64"

## PORTAGE CONFIG ##
PORTDIR_OVERLAY="/usr/local/portage"
source /var/lib/layman/make.conf
CONFIG_PROTECT="/usr/share/config/kdm /etc /etc/conf.d /etc/init.d"
# /lib/modules mask is useful for our internal tinderbox
CONFIG_PROTECT_MASK="/etc/skel /lib/modules"
APACHE2_MPMS="prefork"
EMERGE_DEFAULT_OPTS="--autounmask=y"

# RSYNCs, Sincronização. Comente se não quiser usar (para usar só espelhos).
# O primeiro é da América Latina, depois Brasil, gerais e locais, e Gentoo geral, mas use apenas um e comente os outros:

SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
# SYNC="rsync://rsync.br.gentoo.org/gentoo-portage"
# SYNC="rsync://rsync1.br.gentoo.org/gentoo-portage/"
# SYNC="rsync://rsync2.br.gentoo.org/gentoo-portage"
# SYNC="rsync://gentoo.c3sl.ufpr.br/gentoo/gentoo-portage"
# SYNC="rsync://gentoo.lcc.ufmg.br/gentoo-sources"
# SYNC="rsync://rsync.gentoo.org/gentoo-portage"

# Espelhos do Gentoo Atualizados. Pela ordem de uso preferencial: Brasil,
# Argentina,depois Ibiblio Internacional e Ibiblio EUA. Se preferir
# outros espelhos, modifique ou comente  (com #) caso queira
# apenas usar o RSYNC.
# Também pode selecionar os espelhos com o comando "mirrorselect":

GENTOO_MIRRORS="ftp://ftp.las.ic.unicamp.br/pub/gentoo/
http://www.las.ic.unicamp.br/pub/gentoo/
ftp://gentoo.c3sl.ufpr.br/gentoo/
http://gentoo.c3sl.ufpr.br/
http://gentoo.lcc.ufmg.br/
ftp://mirrors.localhost.net.ar/pub/mirrors/gentoo
http://gentoo.localhost.net.ar/
http://ibiblio.org/pub/Linux/MIRRORS.html
ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://distro.ibiblio.org/pub/linux/distributions/gentoo/"

USE_PYTHON="2.7"
PYTHON_TARGETS="python2_7 python3_3"

# Some more forced targets
PHP_TARGETS="php5-4"
RUBY_TARGETS="ruby19"

# Apache suEXEC default UMASK
# See bug 3544
SUEXEC_UMASK=022

# Setup GRUB platforms
GRUB_PLATFORMS="efi-32 efi-64 pc"

# Support both 64bit and 32bit
ABI_X86="64 32"

# Set PORTDIR for backward compatibility with various tools:
#   gentoo-bashcomp - bug #478444
#   euse - bug #474574
#   euses and ufed - bug #478318
PORTDIR="/usr/portage"

B.6.5. Arquivos para línguas e locais. Editados para Português do Brasil:

Salvar como /etc/locale.conf:

LANG="pt_BR.UTF-8"

Salvar como /etc/locale.gen:

en_US.UTF-8 UTF-8
en_US ISO-8859-1
pt.UTF-8 UTF-8
pt ISO-8859-1
pt_BR.UTF-8 UTF-8
pt_BR ISO-8859-1

Esses são os principais, mas dependendo dos aplicativos que instalar, pode ter que editar outros.

B.6.6. Um exemplo, o Ligador/Regulador do Compiz-Fusion, o Fusion-Icon. Veja página 4, item B.5.6.

Como vimos, o gerenciador de janelas Marco não aparecerá no Fusion-Icon. Para que apareça, coloque as linhas a seguir, logo abaixo da sessão do Metacity no arquivo /usr/lib64/python2.7/site-packages/FusionIcon/data.py:

'marco':
        ('marco', ['marco', '--replace'],
         'Marco', 'mate', None, None,),

Veja o porque disso na página 4, item B.5.6.

Editado por mim, mas adaptado do procedimento para Debian de Edmond, Itália:
B.6.7. Outro exemplo. Meu bash é personalizado.

Portanto, se quiser pode usar meu arquivo de configuração do bash (~/.bashrc), ou modificá-lo:

# Arquivo de Configuração para Bash.
#
# Grave em ~/.bashrc
#
# Atualização de:
#
# http://www.vivaolinux.com.br/etc/bashrc-2
#
# Por Albfneto <albfneto@fcfrp.usp.br>, VOL, 2014. Versão 9.
#
# Baseado numa modificação do Arquivo Default do Sabayon Linux 13 e no Arquivo publicado por Giga Tesla Boy:
# http://www.vivaolinux.com.br/etc/bashrc-1
#
# Cores diferentes para diretórios, arquivos etc...:

# Boas Vindas no Terminal:

echo '   _ '
echo '  *v* *** BEM VINDO AO '`hostname`' ***'
echo ' /(_)\ '
echo '  ^ ^ ' `date`
echo ' '

#Sistema
echo '    '
echo '  *** Sistema: '`uname -a`' ***'
echo '   '
echo '  *** Usuario: '`who -m`' ***'
echo '   _ '

# Testa o NTP, Checa a Hora Local e lista os servidores NTP usados e depois  ajusta Teclado:

echo '   _ '
echo '  *** Hora do Brasil e Servidores: ***'
echo '   _ '
ntpq -p
echo '   _ '
setxkbmap -model abnt2 -layout br -variant abnt2
echo '   _ '
echo '*** PRONTO, OK, EIS SEU TERMINAL, DIGITE SEU COMANDO: ***'
date

# Teste de Shell, default no Sabayon:

# Test for an interactive shell.  There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
    # Shell is non-interactive.  Be done now!
    return
fi

# Para Sabayon:

alias lstudo='ls -a'
alias lscomp='ls -agotpUXh'
alias lsnormal='ls -a -X'
alias dir='ls -1'
alias ls='ls --color=auto -F' # colorido
alias lsdir='ls -ld *(-/DN)' # somente diretorios
alias lsarq='ls -ld .*'      # somente arquivos
alias terminal='mrxvt'
alias arquivos='caja'
alias xinit='xinit &'
alias desliga='sudo poweroff'
alias reinicia='sudo reboot'
alias repositorios='sudo equo up'
alias autorepos='sudo emerge --sync && sudo layman -S && sudo eix-update'
alias tenta-atualizar='sudo equo u --pretend'
alias atualizar='sudo equo u'
alias editar='gksu gedit'
alias internet='seamonkey %u'


# Caso não queira Itens repetidos no bash_history.
# edite o .bashrc e adicione a linha:
export HISTCONTROL=ignoreboth

# Tem muitos comandos uteis e quer um historico maior das coisas?, Aumente aqui
export HISTSIZE=1000


# Côres Gerais:
export LS_OPTIONS='--color=auto'
eval `dircolors`
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'

#Formato das saídas:

export LC_COLLATE=C

# Côres Básicas do Prompt Inicial Simples, se quiser usar, descomente
# PS1='\[\e[0;39m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[0;94m\]\$ \[\e[m\]\[\e[0;32m\]'

# Outro Prompt, mais sofisticado, cores diferentes, etc.
# detalhes para editar veja:
# https://wiki.archlinux.org/index.php/Color_Bash_Prompt#.2Fetc.2FDIR_COLORS

PS1="\n\[\033[1;33m\]\342\224\214($(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]\h'; else echo '\[\033[01;31m\]\u@\h'; fi)\[\033[1;33m\])\342\224\200(\$(if [[ \$? == 0 ]]; then echo \"\[\033[01;34m\]\342\234\223\"; else echo \"\[\033[01;31m\]\342\234\227\"; fi)\[\033[1;33m\])\342\224\200(\[\033[1;32m\]\t \d\[\033[1;33m\])\[\033[1;33m\]\n\342\224\224\342\224\200(\[\033[1;34m\]\w\[\033[1;33m\])\342\224\200(\[\033[1;34m\]\$(ls -1 | wc -l | sed 's: ::g') files, \$(ls -lah | grep -m 1 total | sed 's/total //')b\[\033[1;33m\])\342\224\200> \[\033[0m\]"

Página anterior     Próxima página

Páginas do artigo
   1. Introdução e ponto de partida
   2. Instalando Sabayon no pendrive
   3. Personalizando os ambientes gráficos
   4. Instalando pacotes
   5. Modificando os arquivos de configuração
   6. Salvando o trabalho feito
   7. Conclusão
Outros artigos deste autor

As características de personalidade dos usuários de Linux

Gentoo: Interfaces gráficas para Portage/Emerge - substitutos do Kuroo

Associando teclas a comandos, tarefas ou aplicativos... com toda facilidade

Linux pode ser usado por todo mundo! Escolhendo o seu primeiro Linux. Duas Filosofias fundamentais

Como usar o Bugzilla do Sabayon

Leitura recomendada

Desenhar com o mouse na tela do desktop

Arch Linux - Passo a passo pós-instalação

Apresentando Cinnamon

Iniciando no Linux

Pesquisa com slocate, locate e updatedb

  
Comentários
[1] Comentário enviado por xerxeslins em 25/07/2014 - 09:33h

Deu até vontade de instalar Sabayon. Rsrsrs

10 favoritado

[2] Comentário enviado por albfneto em 25/07/2014 - 12:21h

COMPLEMENTOS DO ARTIGO:

1. No Artigo, esquecí de dizer mais uma coisa.

Claro está que os procedimentos também vão funcionar em uma instalação de Sabayon feita no Disco Rígido.

Instale normalmente, particionando o disco rígido, no lugar do pendrive.

Portanto, os procedimentos ooderão servir como uma personalização, uma "Pós-Instalação" de Sabayon.

2. Com mais um ambiente gráfico instalado no pendrive (XFCE), ele ficou assim:

http://www.vivaolinux.com.br/screenshot/Xfce-Sabayon-Novo-no-Pendrive/

2. Outro screenshot do Window Maker desse pendrive:

http://www.vivaolinux.com.br/screenshot/Window-Maker-Sabayon-com-Window-Maker/







Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts