Instalar Gentoo a partir do Mepis. Quase lá. Help dos Gurus needed.

Metro

Benevolent Dictator For Life
Staff
Mais uma vez e só para gosto do pessoal que usa Gentoo estou a tentar usar o portage no Mepis.
A explicação está aqui: http://www.mepislovers.org/modules/...=2795&forum=8&viewmode=flat&order=ASC&start=0

Faço aqueles passos (mais ou menos claro) e paro aqui.

portage initialization: your system doesn't have a 'wheel' group.
Please fix this as it is a normal system requirement. 'wheel' is GID 10
'emerge baselayout' and an 'etc-update' should remedy this problem.

Como é que faço isto então seus Gentoo lovers..
Faço emerge baselayout e tudo bem.
Depois faço etc-update e dá isto:

root@5[~]# etc-update
portage initialization: your system doesn't have a 'wheel' group.
Please fix this as it is a normal system requirement. 'wheel' is GID 10
'emerge baselayout' and an 'etc-update' should remedy this problem.
portage initialization: your system doesn't have a 'wheel' group.
Please fix this as it is a normal system requirement. 'wheel' is GID 10
'emerge baselayout' and an 'etc-update' should remedy this problem.
portage initialization: your system doesn't have a 'wheel' group.
Please fix this as it is a normal system requirement. 'wheel' is GID 10
'emerge baselayout' and an 'etc-update' should remedy this problem.
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/dispatch-conf.conf
/etc/._cfg0000_dispatch-conf.conf
Please select a file to edit by entering the corresponding number.
(don't use -3 or -5 if you're unsure what to do)
(-1 to exit) (-3 to auto merge all remaining files)
(-5 to auto-merge AND not use 'mv -i'):

Escolho 1 e enter e vai para uma cena tipo man. Se escolho 3 tb não dá nada.

Penso que devo ter o portage a semi funcionar porque se faço emerge mplayer --pretend tenho isto.

root@6[~]# emerge mplayer --pretend
portage initialization: your system doesn't have a 'wheel' group.
Please fix this as it is a normal system requirement. 'wheel' is GID 10
'emerge baselayout' and an 'etc-update' should remedy this problem.

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild N ] sys-libs/zlib-1.2.1-r3
[ebuild N ] media-libs/libpng-1.2.7-r1
[ebuild N ] sys-devel/gettext-0.12.1-r2
[ebuild N ] sys-apps/sed-4.0.9
[ebuild N ] sys-libs/ncurses-5.4-r5
[ebuild N ] sys-apps/texinfo-4.7-r1
[ebuild N ] sys-libs/db-4.1.25_p1-r4
[ebuild N ] sys-apps/groff-1.19.1-r2
[ebuild N ] sys-apps/cronbase-0.3.1
[ebuild N ] sys-apps/man-1.5m-r2
[ebuild N ] sys-libs/db-1.85-r1
[ebuild N ] sys-libs/gdbm-1.8.3-r1
[ebuild N ] sys-devel/libperl-5.8.5
[ebuild N ] dev-lang/perl-5.8.5-r2
[ebuild N ] sys-devel/m4-1.4.1
[ebuild N ] sys-devel/autoconf-2.59-r5
[ebuild N ] dev-libs/glib-1.2.10-r5
[ebuild N ] sys-devel/flex-2.5.4a-r5
[ebuild N ] sys-apps/miscfiles-1.3-r1
[ebuild N ] sys-devel/gcc-config-1.3.8-r4
[ebuild N ] sys-libs/cracklib-2.7-r10
[ebuild N ] sys-devel/automake-1.8.5-r1
[ebuild N ] sys-libs/pam-0.77-r1
[ebuild N ] sys-apps/pam-login-3.14
[ebuild N ] sys-fs/e2fsprogs-1.35-r1
[ebuild N ] sys-apps/grep-2.5.1-r6
[ebuild N ] sys-apps/gawk-3.1.3-r1
[ebuild N ] app-crypt/hashalot-0.3
[ebuild N ] sys-apps/util-linux-2.12i-r1
[ebuild N ] dev-libs/expat-1.95.8
[ebuild N ] sys-devel/libtool-1.5.2-r7
[ebuild N ] media-libs/freetype-2.1.5-r1
[ebuild N ] x11-misc/ttmkfdir-3.0.9-r2
[ebuild N ] media-libs/fontconfig-2.2.3
[ebuild N ] app-arch/bzip2-1.0.2-r3
[ebuild N ] x11-base/opengl-update-1.8.2
[ebuild N ] x11-base/xorg-x11-6.8.0-r3
[ebuild N ] media-libs/libungif-4.1.0.1b
[ebuild N ] dev-python/python-fchksum-1.7.1
[ebuild N ] app-shells/bash-2.05b-r9
[ebuild N ] sys-libs/readline-4.3-r5
[ebuild N ] sys-devel/bc-1.06-r5
[ebuild N ] sys-apps/diffutils-2.8.7
[ebuild N ] dev-libs/openssl-0.9.7d-r2
[ebuild N ] dev-lang/python-2.3.4
[ebuild N ] sys-apps/file-4.12
[ebuild N ] sys-apps/which-2.16
[ebuild N ] app-arch/cpio-2.5
[ebuild N ] app-arch/rpm2targz-9.0-r2
[ebuild N ] sys-apps/utempter-0.5.5.5-r1
[ebuild N ] x11-terms/xterm-196
[ebuild N ] app-arch/unzip-5.50-r2
[ebuild N ] media-libs/libogg-1.1.2
[ebuild N ] media-libs/libvorbis-1.1.0
[ebuild N ] media-libs/audiofile-0.2.6-r1
[ebuild N ] media-libs/libmikmod-3.1.11-r1
[ebuild N ] dev-perl/XML-Parser-2.34
[ebuild N ] dev-util/intltool-0.31.2
[ebuild N ] x11-libs/gtk+-1.2.10-r11
[ebuild N ] media-sound/xmms-1.2.10-r5
[ebuild N ] media-libs/id3lib-3.8.3-r3
[ebuild N ] media-libs/faad2-2.0-r3
[ebuild N ] media-libs/libmad-0.15.1b
[ebuild N ] dev-util/pkgconfig-0.15.0
[ebuild N ] dev-libs/glib-2.4.8
[ebuild N ] sys-devel/make-3.80-r1
[ebuild N ] kde-base/kde-env-3-r3
[ebuild N ] media-libs/libid3tag-0.15.1b
[ebuild N ] media-libs/jpeg-6b-r4
[ebuild N ] media-libs/lcms-1.13
[ebuild N ] media-libs/libmng-1.0.4
[ebuild N ] media-libs/giflib-4.1.0-r3
[ebuild N ] media-libs/tiff-3.7.1-r1
[ebuild N ] net-print/cups-1.1.23_rc1
[ebuild N ] x11-libs/qt-3.3.3
[ebuild N ] kde-base/arts-1.3.2
[ebuild N ] media-libs/svgalib-1.9.19-r1
[ebuild N ] dev-lang/nasm-0.98.38-r1
[ebuild N ] media-libs/libsdl-1.2.7-r3
[ebuild N ] media-sound/lame-3.96.1
[ebuild N ] dev-libs/popt-1.7-r1
[ebuild N ] media-libs/libdv-0.99-r1
[ebuild N ] media-libs/win32codecs-20040916-r1
[ebuild N ] media-video/mplayer-1.0_pre5-r5

root@6[~]#


Fica aqui tudo o que fiz caso alguma alma caridosa (não se sintam precionados:D quiser instalar o Mepis e de seguida fazer os passos todos para termos um tutorial na lingua de camões.

1º Instalei o Mepis.
2º Numa consola como root fiz apt-get update
3º Numa consola como root fiz apt-get nvidia-glx (serve para instalar os drivers para a grafica)
Seleccionei no MEPIS system center no tab NVIDIA - official nvidia driver.
Fiz reboot. Fica a aparecer antes do KDM o ecra conhecido da NVIDIA.

De seguida:

Download da ultima snapshot do portage.
Descompactei com o Ark. Fiz copy e paste da pasta que resultou com o nome de portage para /usr/.
Ficou portanto /usr/portage/
Fiz copy para um editor de texto deste texto:

#!/bin/bash
#
# call with one argument "again" or call it with no arguments at all
# call it with no arguments first time.
# call it again with "again" to bypass some operations.
#

if [ "$#" == "1" ];then
again=$1
else
again=""
fi

if [ "`id -u`" != "0" ]; then
echo ""
echo "Su as root and try again."
echo ""
fi

pythonV=`python -V 2>&1`
if [ "$pythonV" \< "Python 2.2.0" ];then
echo ""
echo "Install python 2.2 and then try again"
echo ""
exit 1
fi

if [ "$again" == "" ];then
mkdir -p /usr/lib/portage/bin
mkdir -p /usr/lib/portage/pym
mkdir -p /usr/portage/profiles
mkdir /etc/env.d

wget ftp://gentoo.mirrors.pair.com/distfiles/portage-2.0.50-r6.tar.bz2 -O /tmp/portage-2.0.50-r6.tar.bz2
cd /tmp
if [ ! -f portage-2.0.50-r6.tar.bz2 ];then
echo ""
echo "Mirror error. Try this script again after a while without any args".
echo ""
exit 1
fi
tar jxf portage-2.0.50-r6.tar.bz2

cd portage-2.0.50-r6/bin
cp * /usr/lib/portage/bin
export PATH=/usr/lib/portage/bin:$PATH
cd ../pym ; cp * /usr/lib/portage/pym/
cd ../man ;cp *.1 /usr/man/man1 ;cp *.5 /usr/man/man5
cd ../src/python-missingos
./setup.py install
cd ../sandbox-1.1
make && make install
cd ../../cnf; cp * /etc

if [ "`id portage`" == "" ]; then
groupadd -g 250 portage
useradd -d /var/tmp/portage -g portage -u 250 portage
fi

cd /usr/sbin
ln -s ../lib/portage/bin/regenworld .
ln -s ../lib/portage/bin/pkgmerge .
ln -s ../lib/portage/bin/fixpackages .
ln -s ../lib/portage/bin/etc-update .
ln -s ../lib/portage/bin/env-update .
ln -s ../lib/portage/bin/emerge-webrsync .
ln -s ../lib/portage/bin/ebuild.sh .
ln -s ../lib/portage/bin/ebuild .
ln -s ../lib/portage/bin/dispatch-conf .
ln -s ../lib/portage/bin/archive-conf .

cd /usr/bin
ln -s ../lib/portage/bin/xpak .
ln -s ../lib/portage/bin/repoman .
ln -s ../lib/portage/bin/quickpkg .
ln -s ../lib/portage/bin/portageq .
ln -s ../lib/portage/bin/g-cpan.pl .
ln -s ../lib/portage/bin/emerge .
fi

export PATH=/usr/lib/portage/bin:$PATH
echo "CC=gcc;CXX=g++" > /etc/env.d/compilers.sh
echo "LDPATH=\"/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib:/usr/kerberos/lib\"" > /etc/env.d/10ldpath
. /etc/env.d/compilers.sh
emerge sync
#
# emerge sync should get /usr/portage/profiles
#
if [ -d /usr/portage/profiles/default-x86-1.4 ];then
ln -s /usr/portage/profiles/default-x86-1.4 /etc/make.profile
else
echo ""
echo "Something wrong. Get /usr/portage/profiles dir from a working"
echo "Gentoo system and try again."
echo ""
exit 1
fi

# inject the "dangerous" packages first.
glibcP=`emerge -p -O glibc|grep ebuild|cut -d" " -f8`
emerge inject $glibcP
gccP=`emerge -p -O gcc|grep ebuild|cut -d" " -f8`
emerge inject $gccP
binP=`emerge -p -O binutils|grep ebuild|cut -d" " -f8`
emerge inject $binP

# fetch the baselayout.
emerge -f -O baselayout

# now inject it too.
baseP=`emerge -p -O baselayout|grep ebuild|cut -d" " -f8`
emerge inject $baseP

#was inject success
ret=`emerge -p baselayout|grep "ebuild R"`

if [ "$ret" == "" ] ;then
echo "Inject has failed. Please verify and continue with cut & paste of rest of the steps"
echo "ERROR."
exit 1
fi

# if it fails with some errors, its fine.
emerge -O portage

cd /tmp
cp /usr/portage/distfiles/rc-scripts*.tar.bz2 .
tar xjpf rc-scripts*.tar.bz2
cd rc-scripts*/sbin
cp depscan.sh /sbin; cp functions.sh /sbin
mkdir -p /lib/rcscripts/awk
cd ../src/awk
cp *.awk /lib/rcscripts/awk/
cd /etc/init.d
ln -s /sbin/depscan.sh .
ln -s /sbin/functions.sh .

emerge -O gawk

# FOLLOWING SHOULD NOT GIVE ANY ERRORS HERE. You screwed up if it did.
emerge -O portage

if ! fgrep -q "/etc/profile.env" /etc/profile ; then
echo ". /etc/profile.env" >> /etc/profile
fi

echo ""
echo "#############################################################"
echo "You are now free to enjoy portage. Make sure you tune"
echo "/etc/make.conf and other portage configuration files to take"
echo "advantage of portage. If you screwed up, its OK. Pick yourself"
echo "up and give it another go."
echo "#############################################################"
echo ""

Gravei e depois cliquei em propriedades e só deixei ficar o formato .sh (ninguem que pergunto o que é isso que não sei)
A seguir cliquei com o botão direito do rato neme fui a propriedades e metio como executável.

Fiz rename do ficheiro para foo (para ser igual ao exemplo) e então numa consola como root executei bicho ./foo (sim sou um assassino:))

A seguir na consola podia fazer
emerge
ou
emerge grubconfig --pretend
Acagacei-me e fiz o segundo.
A partir daqui estou no ponto que está encima.

Alguem faz um tutorial como deve ser e me deixa ver como é o Gentoo :x2:

Alph:
Já sei o que estás a pensar.
Curte:)

E agora vou de volta para o outro disco pq já estou à umas horas sem foldar:)
 
HEHEHE Cool!

Não li tudo pois tou com um cadito de pressa, mas para resolveres o problema wheel, tens de criar o grupo wheel (grupo de users que podem fazer su):

Código:
mkgroup wheel
 
o problema com o wheel é resolvido criando o grupo (como o Alph disse) ou à lá pata em /etc/groups e adicionando o teu user ao grupo wheel (vê o /etc/groups)
 
Ok.
Mas depois digam-me como é que devo fazer mesmo. Preciso dos passinhos todos senão nada feito. Tenho essa instalação noutro disco depois já lhe pego quando tiver mais tempo.
O Alph vai-me matar mas já me esqueci como faço para sacar só de um mirror em Portugal.
Pedia que me colocassem a info aqui sff.

Já agora pelo que me parece já tenho o portage a funcionar ou não tenho?
Ontem depois de colocar o post aonda fiz emerge mozilla-firefox. Ele aparentemente fez isso mas não sei onde ele foi parar.
Gentoo é mesmo um mundo à parte:P
 
isso é no make.conf k tens k meter axo k é
Código:
GENTOO-MIRROR=ftp://ftp.rnl.ist.utl.pt/gentoo

Mas já foi ah uns tempos e já na tenho a certeza se é assim ... o fap ou o TAF podem dar mais certezas :D
 
Back
Topo