View previous topic :: View next topic |
Author |
Message |
mrhodes Guru
Joined: 01 May 2002 Posts: 310 Location: Halifax, NS
|
Posted: Sun Oct 31, 2004 5:01 pm Post subject: Need some guidance in setting up a new system |
|
|
Hey everyone...
I'm preparing to setup a new linux system, but this time I want to set it up really good right from the start.
For example... I'd like to use reiser4, udev, NPTL, and whatever else I can to make a really fast system. I'm planning on using the latest GCC version (at least 3.4) and ~x86 packages.
How can I do this right from the start. The livecds from gentoo don't allow this, afaik.
Any advice?
Also, what would you consider for a nicely tuned, but safe CFLAGS setting?
Thanks guys.... _________________ Michael Rhodes
Tiger Studios Entertainment
http://www.tigerstudios.net |
|
Back to top |
|
|
IainCE Tux's lil' helper
Joined: 23 Mar 2004 Posts: 129
|
Posted: Sun Oct 31, 2004 6:38 pm Post subject: |
|
|
I used a reiser4-enabled LiveCD to install Reiser4 as my root partition filessytem. The one I used is available from: http://lxnay.dnsalias.org/livecd-iso/index.php
You can try putting nptl in your USE flags during install, I tried this but it got confused with linux-headers so I just did it after the installation.
Hope this was of help. |
|
Back to top |
|
|
mrhodes Guru
Joined: 01 May 2002 Posts: 310 Location: Halifax, NS
|
Posted: Sun Oct 31, 2004 7:03 pm Post subject: |
|
|
thanks for the link...
I'll go download that right now...
As for the other options.. one thing I would really like to install from the begining is udev. I don't want to install devfs, and then replace it with udev... I just want to install udev in the first place.... anyone know how? _________________ Michael Rhodes
Tiger Studios Entertainment
http://www.tigerstudios.net |
|
Back to top |
|
|
30726 Veteran
Joined: 24 Sep 2003 Posts: 1501
|
Posted: Sun Oct 31, 2004 7:14 pm Post subject: |
|
|
Just continue installing like normal until you have emerged the base system (right after "emerge system"), and then follow the udev guide. |
|
Back to top |
|
|
HydroSan l33t
Joined: 04 Mar 2004 Posts: 764 Location: The Kremlin (aka Canada)
|
Posted: Sun Oct 31, 2004 7:26 pm Post subject: |
|
|
Things to do:
Get a Reiser4 LiveCD. There are at least three on this forum.
fdisk your disk, and then just:
mkfs.reiser4 /dev/hd##
And mount.
When you've chroot'd into your new environment, do the following:
a. emerge patch (VERY IMPORTANT)
b. emerge -C linux-headers
c. emerge linux26-headers
d. Change the line in /usr/portage/scripts/bootstrap.sh
Code: | emerge ${STRAP_EMERGE_OPTS} ${myOS_HEADERS} ${myTEXINFO} ${myGETTEXT} ${myBINUTILS} |
To:
Code: | emerge ${STRAP_EMERGE_OPTS} =sys-kernel/linux26-headers-2.6.8.1-r1 ${myTEXINFO} ${myGETTEXT} ${myBINUTILS} |
Then run the script. Make sure 'nptl' is in your USE in make.conf.
DevFSd is still the standard in 2004.2. But to get UDEV, just:
a. emerge -C devfsd
b. emerge udev
c. Don't build /dev support into the kernel.
It'll be like DevFSd was never installed.
For CFLAGS, do whichever you want. Ones I use are:
Code: | CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -ffast-math" |
-O3 is a waste of time and you'll notice no speed enhancement from it. And actually, -O3 has been shown to be significantly slower on Intel systems, so don't use it anyways. -ffast-math, to the best of my knowledge, gives good latency on graphics-driven programs. So if you're going to use XOrg, use -ffast-math.
For ~x86, just do: ACCEPT_KEYWORDS="~x86" right in your make.conf.
And finally, to get GCC3.4, do the following.
Code: | rm -r /etc/make.profile
ln -sf /usr/portage/profiles/gcc34-x86-2004.2 /etc/make.profile |
This is what I've done to get a fast, stable system. Currently on two weeks uptime doing many, many things.
EDIT: Fix stupid typo. _________________ I was a Gangster for Capitalism, by Major General Smedley Butler.
Server status: Currently down, being replaced with fresh install - 20% completed.
Last edited by HydroSan on Mon Nov 01, 2004 12:30 am; edited 1 time in total |
|
Back to top |
|
|
BlackEdder Advocate
Joined: 26 Apr 2004 Posts: 2588 Location: Dutch enclave in Egham, UK
|
Posted: Sun Oct 31, 2004 10:39 pm Post subject: |
|
|
HydroSan wrote: | Code: | rm -r /etc/make.profile
ln -sf /usr/portage/profiles/gcc34-x86-2004.2 /etc/make.conf |
|
should probably be:
ln -sf /usr/portage/profiles/gcc34-x86-2004.2 /etc/make.profile |
|
Back to top |
|
|
HydroSan l33t
Joined: 04 Mar 2004 Posts: 764 Location: The Kremlin (aka Canada)
|
Posted: Mon Nov 01, 2004 12:29 am Post subject: |
|
|
BlackEdder wrote: | HydroSan wrote: | Code: | rm -r /etc/make.profile
ln -sf /usr/portage/profiles/gcc34-x86-2004.2 /etc/make.conf |
|
should probably be:
ln -sf /usr/portage/profiles/gcc34-x86-2004.2 /etc/make.profile |
Err, right. _________________ 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 |
|
|
Archangel1 Veteran
Joined: 21 Apr 2004 Posts: 1212 Location: Work
|
Posted: Mon Nov 01, 2004 1:37 am Post subject: |
|
|
There's a thread somewhere about "stage 1 with nptl - the developer's method" or something - that's very similar to what HydroSan posted though.
HydroSan: I heard -ffast-math was a bit on the less-than-stable side - works okay for you? |
|
Back to top |
|
|
HydroSan l33t
Joined: 04 Mar 2004 Posts: 764 Location: The Kremlin (aka Canada)
|
Posted: Mon Nov 01, 2004 2:47 am Post subject: |
|
|
Archangel1 wrote: | There's a thread somewhere about "stage 1 with nptl - the developer's method" or something - that's very similar to what HydroSan posted though.
HydroSan: I heard -ffast-math was a bit on the less-than-stable side - works okay for you? |
Week and a half uptime of:
a) Playing UT at least three hours a day.
b) Using GNOME, GIMP, Firefox, XINE, and Crossover Office.
c) Syncing and updating software.
No problems at all. _________________ 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 |
|
|
soldreth n00b
Joined: 14 Aug 2004 Posts: 20
|
Posted: Mon Nov 15, 2004 6:46 am Post subject: |
|
|
HydroSan wrote: | This is what I've done to get a fast, stable system. Currently on two weeks uptime doing many, many things. |
Out of curiosity, what kernel are you running with all of this? |
|
Back to top |
|
|
|