Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing a Gentoo server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
monk
n00b
n00b


Joined: 25 Jul 2002
Posts: 6

PostPosted: Sun Sep 08, 2002 1:20 pm    Post subject: Installing a Gentoo server Reply with quote

Hi! I am about to install Gentoo on one of my servers, but there is some issues i want to ask about before i start. Firt of all. I have a Pentium 166 Mhz processor. Is it right to edit make.conf like this then?:

# Pentium/Pentium MMX+ exclusive (requires a Pentium Classic or K6 or beyond)
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=i586 -O3 -pipe"
CXXFLAGS="-march=i586 -O3 -pipe"

--
and since this will be a server i dont want X is it possible to set:
USE="-X" or something? what other flags should i use? what flags are you using on your servers (and desktops) and what hardware do you have?

Thanks
- Anders
Back to top
View user's profile Send private message
kirill
Apprentice
Apprentice


Joined: 01 Aug 2002
Posts: 183
Location: Finland

PostPosted: Sun Sep 08, 2002 2:34 pm    Post subject: Reply with quote

Hi

I have a server running on similar hardware to yours. It's true that it's best to turn off xfree support for a server :)

first a couple of links:


and here are mine (P166 MMX):
Code:
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=pentium-mmx -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium-mmx -O3 -pipe -fomit-frame-pointer"


Important: -march=pentium-mmx is for >1.3 tarballs. Use -march=i586 if you are setting up a Gentoo 1.2 server :!: :!:

Code:
USE="-3dnow afs -arts -avi -cups -gif -gpm -gtk -imlib -java -jpeg -kde -gnome
imap ipv6 kerberos libg++ mbox  -mikmod -motif -mpeg -mysql -nls odbc -oggvorbis
-opengl pcmcia -pdflib perl -png -qt -qtmt -quicktime samba sasl snmp -sdl -slan
g -spell -svga -truetype -X -xml2 -xmms -xv"

_________________
--kirill
Back to top
View user's profile Send private message
stimpy
n00b
n00b


Joined: 18 Apr 2002
Posts: 49
Location: NZ

PostPosted: Mon Sep 09, 2002 5:49 am    Post subject: same high-performance hardware... Reply with quote

I built some old Pentium 166's up last month - probably at a 1.2 equivalent tarball stage. (We bootstrapped from a toms rescue disk and then rsync'd from my other desktop installs. We had problems we the aged cdrom hardware and network booting - sigh)

At the time I decided that it was simpler to actually set up a server profile in the /usr/portages/profiles directory and start from a base of USE setting *I* wanted, instead of negating from the standard profile sets. It just appeared cleaner.

Then the differences between my servers was more obvious in the make.conf when one had different uses (and thus applications) than the other.

If you've got a pool of these servers I can recommend using the package building part of portage as you don't want to be waiting around compiling the same base components on each box all the time.

(Actually, to start off with we built one then did a raw disk copy across on to the other.... The only problem this seemed to have (apart from different partition sizes on the first attempt :-)) was that ssh doesn't work on one of the boxes.... there was a problem - still unresolved if you can help us - relating to the openpty stuff. "session_pty_req: session 0 alloc failed")
Back to top
View user's profile Send private message
SecMon
n00b
n00b


Joined: 01 Apr 2003
Posts: 12
Location: California

PostPosted: Tue Jul 08, 2003 5:13 pm    Post subject: devfs problem Reply with quote

The problem is with the way you backed up and restored the new system.
When doing this you tar'd the /dev and the devfs /dev filesystems. Now
the system has both running at the same mount point. I am having this
same issue and will post when I have figured a way to to remove or
rebuild the /dev and allow devfs /dev to manage it's items.

--- A few mins later ----

ok, the fix is easy.

1) boot the org system from cd / disk
a) mount your root to something
mkdir /mnt/root; mount /dev/hda2 /mnt/root;cd /mnt/root

2) tar -zcpvf dev.tgz dev
alt: (if you are in a bad way and have no access to the org system I have one here for you http://www.snlinc.com/gentoo/dev.tgz )

3) boot new system from cd / disk
a) mount your root to something
mkdir /mnt/root; mount /dev/hda2 /mnt/root;cd /mnt/root

4) mv dev dev.hosed

5) tar -zxpvf dev.tgz

-- unmount it and reboot... all the goo should be back in the correct
spots and you should have no more problems.

this will fix the
openpty stuff. "session_pty_req: session 0 alloc failed" issue
and loads of other things waiting in the wings

-- Keath
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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