Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Running a network server? What USE/C flags are you using?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Sat Nov 27, 2004 12:40 am    Post subject: Running a network server? What USE/C flags are you using? Reply with quote

And what USE/C flags are overkill, what is safe/recommanded? Right now running AthlonXP 2400+, and ~x86.
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta


Last edited by petrjanda on Sat Nov 27, 2004 12:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
frippz
Guru
Guru


Joined: 22 Aug 2002
Posts: 460
Location: Sweden

PostPosted: Sat Nov 27, 2004 2:01 am    Post subject: Reply with quote

Surely you must mean something other than USE flags. What flags you use depends entirely on what your system looks like and what software you want to use.
Back to top
View user's profile Send private message
HydroSan
l33t
l33t


Joined: 04 Mar 2004
Posts: 764
Location: The Kremlin (aka Canada)

PostPosted: Sat Nov 27, 2004 2:18 am    Post subject: Reply with quote

Code:
USE="vhosts maildir memlimit apache2 mysql nptl -X -Xaw3d -3dfx -3dnow aalib acl acpi -adns -afs -aim -alsa -altivec -apm -arts -audiofile -avi berkdb -bidi -bonobo -canna caps cdr -cjk crypt -cups -curl -debug -dedicated -dga -directfb -divx4linux -doc -dvb -dvd dvdr -emacs -encode -esd ethereal -evo fbcon -flac -firebird -flash -gb -gd -gdbm -ggi gif -gnome -gphoto2 -gpm -gps -gstreamer -gtk -gtk2 -gtkhtml hardened -icq -imagemagick imap -ipv6 -jabber -jack -java -jikes -joystick jpeg -kde -ldap libwww -lirc -mad -matrox -mcal -mikmod mmx motif -mozilla -mpeg -mpi -msn -mssql ncurses -nas nls odbc -oggvorbis -opengl -oscar -oss pam -pcmcia -pda -pdflib perl pic pie -plotutils png -pnp prelude python -qt -quicktime readline ruby samba sasl -scanner -sdl slp snmp -speex -spell -sse ssl -svga -tcltk tcpd -tetex -theora tiff -truetype -unicode -usb -videos -wxwindows -xinerama -xml xml2 -xmms -xosd -xvid -yahoo zlib x86 bzlib -calendar ftp"


Word. This hard 'hardened' and 'pic pie' specified for the HARDENED toolchain.
_________________
I was a Gangster for Capitalism, by Major General Smedley Butler.

Server status: Currently down, being replaced with fresh install - 20% completed.
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Sat Nov 27, 2004 12:35 pm    Post subject: Reply with quote

*Levi* wrote:
Surely you must mean something other than USE flags. What flags you use depends entirely on what your system looks like and what software you want to use.

Yeah, youre right. I meant C and USE flags both.
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
Boris27
Guru
Guru


Joined: 05 Nov 2003
Posts: 562
Location: Almelo, The Netherlands

PostPosted: Sat Nov 27, 2004 12:53 pm    Post subject: Reply with quote

USE="-X -gtk -gnome -alsa -qt -kde -cups apache2 nptl pic sse mmx"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"

For my home WWW/DNS/DHCP/SQUID/FTP/RSYNC/SMB/NTP server.

Replace pentium3 with athlon-xp, in your case.
_________________
we are microsoft, lower your firewalls and surrender your pc's. we will add your biological and technological distinctiveness to our own. your culture will adapt and service us. resistance is futile.
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Sat Nov 27, 2004 4:44 pm    Post subject: Reply with quote

USE="-* 3dnow acpi apache2 crypt cups ftp imap libwww maildir mmx mod_php mysql nls nptl pam pam-mysql samba sasl spell ssl tcpd"

CFLAGS="-O3 -march=athlon -m3dnow -mmmx -ffast-math -fomit-frame-pointer -fexpensive-optimizations -finline-functions -fmerge-constants -floop-optimize -pipe"

For a web, mail, ftp, database server, with some local samba shares...

Frank
_________________
http://techfield.org
Back to top
View user's profile Send private message
frippz
Guru
Guru


Joined: 22 Aug 2002
Posts: 460
Location: Sweden

PostPosted: Sat Nov 27, 2004 5:00 pm    Post subject: Reply with quote

petrjanda wrote:
Yeah, youre right. I meant C and USE flags both.

Very well then! :D

Code:
USE="apache2 chroot dedicated md5sum opens php sse vhosts -oss -arts -cups \
     -foomaticdb -gif -gpm -gtk -jpeg -kde -gnome -mikmod -mpeg -oggvorbis \
     -opengl -pdflib -png -qt -quicktime -spell -svga -truetype -X -xmms \
     -xv -fortran"
Code:
CFLAGS="-O2 -march=athlon-xp -pipe"

This is for my file server / web server.
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Thu Dec 02, 2004 1:32 pm    Post subject: Reply with quote

@hydrosan and others:

Your USE variable would be much easier to handle if you wrote it like this:

USE ="-* vhosts maildir memlimit apache2 mysql nptl aalib acl acpi berkdb caps cdr crypt dvdr ethereal fbcon gif hardened imap jpeg libwww mmx motif ncurses nls odbc pam perl pic pie png prelude python readline ruby samba sasl slp snmp ssl tcpd tiff zlib x86 bzlib ftp"

-* will first exclude everything, and then you just specifiy only what you really want. Makes it a lot easier to handle!

Tom
Back to top
View user's profile Send private message
revertex
l33t
l33t


Joined: 23 Apr 2003
Posts: 806

PostPosted: Tue Dec 07, 2004 2:34 pm    Post subject: Reply with quote

elektrohirn,

Thank's, very nice tip!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum