View previous topic :: View next topic |
Author |
Message |
asph l33t
Joined: 25 Aug 2003 Posts: 741 Location: Barcelona, Spain
|
Posted: Mon Sep 20, 2004 9:35 am Post subject: |
|
|
actualización scripts inicio, hdparm, use's y nuevas secciones deltup, nptl, gcc, filesystems! (aunque las iré ampliando)
saludos
*edit*
añadida seccion scripts utiles, podeis recomendar otros para añadirlos si usais algunos diferentes
*/edit* _________________ gentoo sex is updatedb; locate; talk; date; cd; strip; look; touch; finger; unzip; uptime; gawk; head; emerge --oneshot condom; mount; fsck; gasp; more; yes; yes; yes; more; umount; emerge -C condom; make clean; sleep |
|
Back to top |
|
|
asph l33t
Joined: 25 Aug 2003 Posts: 741 Location: Barcelona, Spain
|
Posted: Tue Sep 21, 2004 7:48 am Post subject: |
|
|
añadidas correciones y actualizaciones varias, la cosa ya empieza a tener pies y cabeza
alguien hecha en falta algun punto importante?
un saludo _________________ gentoo sex is updatedb; locate; talk; date; cd; strip; look; touch; finger; unzip; uptime; gawk; head; emerge --oneshot condom; mount; fsck; gasp; more; yes; yes; yes; more; umount; emerge -C condom; make clean; sleep |
|
Back to top |
|
|
asph l33t
Joined: 25 Aug 2003 Posts: 741 Location: Barcelona, Spain
|
Posted: Thu Sep 23, 2004 11:20 am Post subject: |
|
|
he añadido tambien las ldflags junto a las cflags
edit-
28/04/2004 - adición nota en seccion nptl
-edit _________________ gentoo sex is updatedb; locate; talk; date; cd; strip; look; touch; finger; unzip; uptime; gawk; head; emerge --oneshot condom; mount; fsck; gasp; more; yes; yes; yes; more; umount; emerge -C condom; make clean; sleep |
|
Back to top |
|
|
asph l33t
Joined: 25 Aug 2003 Posts: 741 Location: Barcelona, Spain
|
Posted: Fri Oct 01, 2004 3:19 pm Post subject: |
|
|
he traducido este post al ingles y lo he posteado en "documentation, tips & tricks".. la ultima version de este documento estará siempre disponible aqui:
https://forums.gentoo.org/viewtopic.php?t=231170 _________________ gentoo sex is updatedb; locate; talk; date; cd; strip; look; touch; finger; unzip; uptime; gawk; head; emerge --oneshot condom; mount; fsck; gasp; more; yes; yes; yes; more; umount; emerge -C condom; make clean; sleep |
|
Back to top |
|
|
vcetina n00b
Joined: 27 Sep 2004 Posts: 16
|
Posted: Fri Oct 01, 2004 8:05 pm Post subject: |
|
|
Esta guía esta geial nastassja. Gracias por el tiempo invertido en ella!!!
He estado intentando levantar las X al inicio poniendolas en el nivel boot, pero sin exito, siguen cargandose al final. Te enxo mi rc-update show para que veas como esta (uso solo boot y default), que me sugieres para cargar las X al inicio y acelerar la carga de los servicios.
acpid | default
alsasound | boot
apmd |
bootmisc | boot
bootsplash |
checkfs | boot
checkroot | boot
clock | boot
consolefont | boot
cpufreqd | default
crypto-loop |
cupsd | default
domainname | default
esound |
famd | default
gpm | default
hdparm | default
hostname | boot
i8k | default
keymaps | boot
local | default nonetwork
localmount | boot
metalog | default
modules | boot
mysql |
net.eth0 | default
net.lo | boot
net.ppp0 |
netmount | default
nscd |
numlock |
portmap |
rmnologin | boot
rsyncd |
samba |
serial | boot
slapd |
slurpd |
splash |
sshd |
urandom | boot
utelnetd |
xdm | boot
xfs |
xprint |
Gracias por tu tiempo |
|
Back to top |
|
|
lunatc Guru
Joined: 18 Apr 2002 Posts: 409 Location: Canary Islands. Spain
|
Posted: Mon Oct 11, 2004 11:34 pm Post subject: |
|
|
Excelente doc.
Pero un par de puntualizaciones:
1.- No se por qué razon pero estoy/he estado con kernels de la serie 2.6.9[mm|nitro|love] y he tenido que quitar lo de "RC_PARALLEL_STARTUP" (se cuelga el arranque al llegar a la zona pci/usb-hotplug).
2.- Para la gente que use "mono" de momento lo del nptl es inviable por lo que he podido "experimentar" en mis carnes (aplicados parches que sugieren en este hilo parecen solucionar algo pero al ejecutar algo grande como "monodevelop" me llega incluso a colgar las X): https://bugs.gentoo.org/show_bug.cgi?id=63734
(es una pena, porque "subjetivamente" con nptl el sistema me parecía como mas suave/ligero)
Es mi experiencia. Por lo demás el howto es de lo mejor que he visto
Salu2 |
|
Back to top |
|
|
asph l33t
Joined: 25 Aug 2003 Posts: 741 Location: Barcelona, Spain
|
Posted: Tue Oct 12, 2004 2:14 pm Post subject: |
|
|
no eres el primero que comenta los problemas al usar el parallel con los kernels inestables con patchsets..
yo no tengo esos problemas (2.6.9-rc3-nitro1), pero es dificil arreglarlos o buscar una solucion ya que al ser un kernel inestable y ademas con parches para acelerarlo pues no muchos quieren perder tiempo investigandolo, sino es un kernel estable.
he puesto una nota avisando, por si acaso.
gracias _________________ gentoo sex is updatedb; locate; talk; date; cd; strip; look; touch; finger; unzip; uptime; gawk; head; emerge --oneshot condom; mount; fsck; gasp; more; yes; yes; yes; more; umount; emerge -C condom; make clean; sleep |
|
Back to top |
|
|
vcetina n00b
Joined: 27 Sep 2004 Posts: 16
|
Posted: Tue Oct 12, 2004 7:11 pm Post subject: Omisión de paquetes en la nueva versión de portage |
|
|
Que tal, esta es mi pequeña cooperación a esta excelente guia.
La nueva manera de omitir paquetes es la siguiente:
Por ejemplo para omitir el paquete Epiphany se hace lo siguiente:
Code: | echo 'net-www/epiphany-1.4.0' >> /etc/portage/profile/package.provided |
Ahora ya no es necesario utilizar inject ni editar el ebuild, ya que las omisiones ahora son manejadas en el archivo package.provided.
Ahora por favor, si alguien me ayuda a cargar las X desde el incio le estaré muy agradecido (ya hice el rc-update add xdm boot, un poco mas arriba pueden ver mi rc-update show) ya que quiero tratar de hacer como hace Fedora (no lo he visto, pero me han dicho que se ve muy bien cargando X desde el inicio), y agregar un splash X windows al inicio (si es que esto es posible).
Saludos a toda la comunidad Gentoo de habla hispana. |
|
Back to top |
|
|
luisfeser Guru
Joined: 22 May 2004 Posts: 543 Location: /España/Toledo
|
Posted: Sun Nov 28, 2004 1:46 pm Post subject: |
|
|
Solo queria comentar k las cxxflags con -frepo, me peta casi cualquier compilacion con gcc 3.4.3 (k es la k tengo ahora).
El tema de las ldflags:
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s
va muy bien
Por cierto mvila, ponle las comillas al final, k para los k hacemos "copy & paste" nos da sorpresitas
Saludos. _________________ AMD Athlon XP-M 2500+ @2200MhHz|1GB DDR @400MHz Dual-Chanel|NVIDIA GeForce4 MX 420|SB Live 5.1|ADSL 512/128 Arsys
gentoo ~x86 |
|
Back to top |
|
|
navegante l33t
Joined: 21 Jul 2004 Posts: 702
|
Posted: Thu Dec 16, 2004 8:48 pm Post subject: |
|
|
Una pequeña corrección las Cflags que indicas son poquito redundantes, en especifico la de -mtune, ya que con usar -march implica el usar -mtune para la aruitectura que estableces en -march. Otro detalle es que al parecer se requiere para que funcione prelink que los binarios esten compilados con la cflag -fPIC. Por otro lado puedes linkear este howto para el deltup, y tambien laopción inject esta siendo deprecated por el fichero package.provided, Saludos. _________________ "El hombre es libre desde que nace, aún para decidir no ser libre"
KDE registered user: #2655 | Linux registered user: #404918 |
|
Back to top |
|
|
vgl n00b
Joined: 08 Feb 2004 Posts: 45 Location: Murcia
|
Posted: Mon Jan 03, 2005 8:50 pm Post subject: Propuesta para añadir |
|
|
Para todos los que tengan un kernel >= 2.6.10, tenemos el panificador de disco cfq, que según los benchmarks http://lwn.net/Articles/113869/ da un buen rendimiento para el usuario de escritorio. Para activarlo podemos hacer:
Code: | echo cfq > /sys/block/hda/queue/scheduler |
O si vamos a compilarnos nosotros el kernel, directamente en Device Drivers -> Block Devices -> I/O Schedulers.
Podeis añadir esta información con el resto de los consejos para que nos beneficiemos todos. |
|
Back to top |
|
|
amon-ra n00b
Joined: 21 Apr 2003 Posts: 59 Location: Albacete
|
Posted: Sat Jan 08, 2005 1:15 pm Post subject: |
|
|
Yo tengo el mismo problema con los CXXFLAGS y -frepo. Lo que hago es que la aplicacion que no compila le cambia los CXXFLAGS, me gustaria saber como establecer unos CXXFLAGS distintos para esta aplicaciones como se hacen con los use para no tener que hacerlo a mano.
CFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -mfpmath=sse -msse -m3dnow -fomit-frame-pointer -pipe -fPIC"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden -frepo"
LDFLAGS="-Wl,-z,combreloc -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s" |
|
Back to top |
|
|
jajirov n00b
Joined: 06 Mar 2004 Posts: 51 Location: Santiago, Chile
|
Posted: Wed Jan 26, 2005 2:00 am Post subject: |
|
|
Excelente How-to! Esta muy claro y conciso.
Una sola nota, guitoo esta *descontinuado*, el desarrollo continua bajo el nombre de kuroo y pronto deberia estar la nueva version (segun el desarrollador) en portage.
Saludos! _________________ try it |
|
Back to top |
|
|
asph l33t
Joined: 25 Aug 2003 Posts: 741 Location: Barcelona, Spain
|
Posted: Sun Feb 13, 2005 12:12 pm Post subject: |
|
|
gracias por el apunte, ya he actualizado la guia
https://forums.gentoo.org/viewtopic-t-231170.html _________________ gentoo sex is updatedb; locate; talk; date; cd; strip; look; touch; finger; unzip; uptime; gawk; head; emerge --oneshot condom; mount; fsck; gasp; more; yes; yes; yes; more; umount; emerge -C condom; make clean; sleep |
|
Back to top |
|
|
DarkMind Guru
Joined: 18 Dec 2003 Posts: 525 Location: Santiago, Chile
|
Posted: Fri Apr 01, 2005 7:30 pm Post subject: |
|
|
active nptl en el USE para recompilar glibc, mis use ahora dan:
Code: | alculating dependencies ...done!
[ebuild R ] sys-libs/glibc-2.3.4.20041102-r1 -build -debug -erandom -hardened (-multilib) +nls -nomalloccheck +nptl* -nptlonly -pic -userlocales 0 kB
|
al tratar de recompilar glibc me arroja
Code: | Calculating dependencies ...done!
>>> emerge (1 of 1) sys-libs/glibc-2.3.4.20041102-r1 to /
>>> md5 src_uri ;-) glibc-2.3.3.tar.bz2
>>> md5 src_uri ;-) glibc-manpages-2.3.4.tar.bz2
>>> md5 src_uri ;-) glibc-infopages-2.3.4.tar.bz2
>>> md5 src_uri ;-) glibc-2.3.4-branch-update-20041102.patch.bz2
* Warning! Gentoo's GLIBC with NPTL enabled now behaves like the
* glibc from almost every other distribution out there. This means
* that glibc is compiled -twice-, once with linuxthreads and once
* with nptl. The NPTL version is installed to lib/tls and is still
* used by default. If you do not need nor want the linuxthreads
* fallback, you can disable this behavior by adding nptlonly to
* USE to save yourself some compile time.
|
esta bien eso? no entiendo bien lo que quiere decir.. |
|
Back to top |
|
|
navegante l33t
Joined: 21 Jul 2004 Posts: 702
|
Posted: Sun Apr 03, 2005 9:03 pm Post subject: |
|
|
Solo te dice que glibc se compila la primera vez con linuxthreads y una segunda vez con NPTL, si solo deseas que compile con NPTL, si quieres compatibilidad hacia atras (ya que algunas apps no corren bien nptl) entonces continua así, si solo deseas nptl y ahorrar tiempo coloca la use nptlonly. Saludos. _________________ "El hombre es libre desde que nace, aún para decidir no ser libre"
KDE registered user: #2655 | Linux registered user: #404918 |
|
Back to top |
|
|
Eleazar Anzola Veteran
Joined: 17 Jul 2003 Posts: 1318 Location: Caracas / Venezuela
|
Posted: Mon Apr 04, 2005 3:24 pm Post subject: |
|
|
Hola a to2,
He intentado hacer en varias oportunidades colocar las nptl en mis USES pero cada vez que intenta emerger el glibc despues de un buen rato compilando me arroja este error Code: | checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for long double... yes
checking size of long double... 12
checking for economical random device... has been disabled
running configure fragment for sysdeps/i386/elf
checking for i386 TLS support... yes
running configure fragment for nptl/sysdeps/unix/sysv/linux
running configure fragment for nptl/sysdeps/pthread
checking for forced unwind support... no
configure: error: forced unwind support is required
!!! ERROR: sys-libs/glibc-2.3.4.20041102-r1 failed.
!!! Function glibc_do_configure, Line 707, Exitcode 1
!!! failed to configure glibc
!!! If you need support, post the topmost build error, NOT this status message.
| lo he buscado en varios foros pero no logro entender el por que de esto.
¿Alguna luz al error?
Agradecido de antemano a quien me pueda decir como solventarlos _________________ Salu2
Eleazar Anzola
Linux User : # 216232
__________________________________________
Por un foro ordenado y un buscador más útil:
[TEMA] Descripción problema (estado) |
|
Back to top |
|
|
navegante l33t
Joined: 21 Jul 2004 Posts: 702
|
Posted: Tue Apr 05, 2005 3:45 pm Post subject: |
|
|
Supongo que ya emergiste las linux26-headers, no?, si es así y te sigue dando el problema tal vez sea un bug pasate por bugzilla para verficarlo, tambien el el wiki en ingles esta un howto, aunque la verdad no tiene mucho problema. _________________ "El hombre es libre desde que nace, aún para decidir no ser libre"
KDE registered user: #2655 | Linux registered user: #404918 |
|
Back to top |
|
|
Eleazar Anzola Veteran
Joined: 17 Jul 2003 Posts: 1318 Location: Caracas / Venezuela
|
Posted: Tue Apr 05, 2005 6:26 pm Post subject: |
|
|
Ummm he visto lo de Code: | emerge --oneshot linux26-headers
Calculating dependencies
emerge: there are no ebuilds to satisfy "linux26-headers".
| pero el portage dice nani nanai con ese paquete (No existe) _________________ Salu2
Eleazar Anzola
Linux User : # 216232
__________________________________________
Por un foro ordenado y un buscador más útil:
[TEMA] Descripción problema (estado) |
|
Back to top |
|
|
Franco Gotusso Guru
Joined: 15 Apr 2004 Posts: 313 Location: Benidorm, Alicante, Spain
|
Posted: Tue Apr 05, 2005 7:09 pm Post subject: |
|
|
Ahora se llama linux-headers por eso de que en la rama 2005 el kernel 2.6 a pasado a predeterminado, pero ojo que las versiones del 2.6 estan en masked. Por cierto, tambien tienes la guia traducida en el wiki en castellano.
Salud. _________________ Los programadores están ocupados intentando mejorar los programas a prueba de idiotas. Mientras tanto el universo intenta mejorar a los idiotas. El universo va ganando. |
|
Back to top |
|
|
Eleazar Anzola Veteran
Joined: 17 Jul 2003 Posts: 1318 Location: Caracas / Venezuela
|
Posted: Wed Apr 06, 2005 5:32 pm Post subject: |
|
|
Ummmm ok,
ya estaban emergidas las linux-headers pero aun despues de todo eso nanai nanai, lo he echo como dicen algunos post que utilice la glibc inestable ~x86 pero me salta el mismo error.
Lo curioso es que con otro equipo más viejo si funciono al pelo.
El error al final es Code: | checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for long double... yes
checking size of long double... 12
checking for economical random device... has been disabled
running configure fragment for sysdeps/i386/elf
checking for i386 TLS support... yes
running configure fragment for nptl/sysdeps/unix/sysv/linux
running configure fragment for nptl/sysdeps/pthread
checking for forced unwind support... no
configure: error: forced unwind support is required
!!! ERROR: sys-libs/glibc-2.3.4.20041102-r1 failed.
!!! Function glibc_do_configure, Line 707, Exitcode 1
!!! failed to configure glibc
!!! If you need support, post the topmost build error, NOT this status message.
|
dice que falta soporte para unwind y necesita forzarlo, pero no puede hacerlo.
¿Donde se le da el soporte?
en las use no es ya la coloque para ver y nada ¿Alguien sabe?
Pues nada que cambie las CFLAGS y aun persiste el error y ya no se donde meter los dedos _________________ Salu2
Eleazar Anzola
Linux User : # 216232
__________________________________________
Por un foro ordenado y un buscador más útil:
[TEMA] Descripción problema (estado) |
|
Back to top |
|
|
Palmax Maverick Guru
Joined: 14 Oct 2004 Posts: 339
|
Posted: Wed May 11, 2005 1:59 pm Post subject: Para el prelink hace falta el USE PIC |
|
|
Arph pon arriba que para prelink hace falta el USE PIC. Por cierto lo del LDFLAGS como va? |
|
Back to top |
|
|
Palmax Maverick Guru
Joined: 14 Oct 2004 Posts: 339
|
Posted: Wed May 11, 2005 2:37 pm Post subject: CFLAGS! |
|
|
VIendo la página http://gcc.gnu.org/onlinedocs/gcc-3.3.5/gcc/Optimize-Options.html#Optimize-Options , podemos comprobar que el CFLAGS más agresivo para un pentium4, y cambiando -march=arquitectura el de tal arquitectura, será el siguiente:
Quote: |
CFLAGS="-march=pentium4 -O3 -pipe -fmove-all-movables -fforce-addr -fprefetch-loop-arrays"
|
Recuerdo que:
Quote: |
-O1
Optimize. Optimizing compilation takes somewhat more time, and a lot more memory for a large function.
With -O, the compiler tries to reduce code size and execution time, without performing any optimizations that take a great deal of compilation time.
-O turns on the following optimization flags:
-fdefer-pop
-fmerge-constants
-fthread-jumps
-floop-optimize
-fcrossjumping
-fif-conversion
-fif-conversion2
-fdelayed-branch
-fguess-branch-probability
-fcprop-registers
-O also turns on -fomit-frame-pointer on machines where doing so does not interfere with debugging.
-O2
Optimize even more. GCC performs nearly all supported optimizations that do not involve a space-speed tradeoff. The compiler does not perform loop unrolling or function inlining when you specify -O2. As compared to -O, this option increases both compilation time and the performance of the generated code.
-O2 turns on all optimization flags specified by -O. It also turns on the following optimization flags:
-fforce-mem
-foptimize-sibling-calls
-fstrength-reduce
-fcse-follow-jumps -fcse-skip-blocks
-frerun-cse-after-loop -frerun-loop-opt
-fgcse -fgcse-lm -fgcse-sm
-fdelete-null-pointer-checks
-fexpensive-optimizations
-fregmove
-fschedule-insns -fschedule-insns2
-fsched-interblock -fsched-spec
-fcaller-saves
-fpeephole2
-freorder-blocks -freorder-functions
-fstrict-aliasing
-falign-functions -falign-jumps
-falign-loops -falign-labels
Please note the warning under -fgcse about invoking -O2 on programs that use computed gotos.
-O3
Optimize yet more. -O3 turns on all optimizations specified by -O2 and also turns on the -finline-functions and -frename-registers options.
|
Luego buscaré algo de las LDFLAGS a ver si encuentro información.
Palmax Maverick
palmax@gmail.com
PD: USE = +PIC para usar prelinkado <- hace que se encuentren las funciones a librerías dinámicas al "instante" <- reduce el tiempo de búsqueda de funciones de librerías dinámica <- mayor rapidez en los programas que utilizen librerías dinámicas |
|
Back to top |
|
|
Palmax Maverick Guru
Joined: 14 Oct 2004 Posts: 339
|
Posted: Wed May 11, 2005 2:54 pm Post subject: NPTL vs Linux Threads |
|
|
Buenas:
Tengo el USE = NPTL pero no active NPTLOnly porque me daba un poco de miedo. Como sabría si mis pogramas tiran sobre NPTL o sobre Linux Threads?
Quote: | $ /lib/libc.so.6
GNU C Library 20041102 release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1).
Compiled on a Linux 2.6.8 system on 2005-05-10.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
linuxthreads-0.10 by Xavier Leroy
The C stubs add-on version 2.1.2.
GNU Libidn by Simon Josefsson
BIND-8.2.3-T5B
libthread_db work sponsored by Alpha Processor Inc
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
|
Añadido: He encontrado algo!!
Quote: | $ /lib/tls/libc.so.6
GNU C Library 20041102 release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1).
Compiled on a Linux 2.6.8 system on 2005-05-10.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
Native POSIX Threads Library by Ulrich Drepper et al
The C stubs add-on version 2.1.2.
GNU Libidn by Simon Josefsson
BIND-8.2.3-T5B
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
|
Como se si utiliza unas u otras?
Gracias por contestar
Palmax Maverick
palmax@gmail.com |
|
Back to top |
|
|
quelcom Guru
Joined: 16 Mar 2004 Posts: 306 Location: Catalonia
|
|
Back to top |
|
|
|