QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1266|回复: 16

kuye, 你在哪里啊?

[复制链接]
发表于 2004-10-29 23:29:05 | 显示全部楼层 |阅读模式
别睡觉了, 指导我装gentoo吧.  
发表于 2004-10-30 00:14:12 | 显示全部楼层
http://gentoo.linuxsir.org/doc/cn/handbook/
http://ghpct.go.3322.org/
回复

使用道具 举报

 楼主| 发表于 2004-10-30 00:18:40 | 显示全部楼层
cnhnln, 你装gentoo的时候, USE里用了什么选项?
回复

使用道具 举报

 楼主| 发表于 2004-10-30 00:20:51 | 显示全部楼层
handbook我自己在官方网站上也会看啊. 还要到linuxsir那里去?
回复

使用道具 举报

发表于 2004-10-30 12:11:33 | 显示全部楼层
Athlon(雷鸟核心)

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer -frerun-cse-after-loop -frerun-loop-opt -fexpensive-optimizations -falign-functions=4
CXXFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer  -frerun-cse-after-loop -frerun-loop-opt -fexpensive-optimizations -falign-functions=4


AthlonXP:

CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"


NEW Athlon 2500+:

CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -ftracer -fno-crossjumping -falign-functions=16 -falign-loops=16 -falign-jumps=16 -fno-align-labels  -maccumulate-outgoing-args -fmove-all-movables"


Athlon64:

CFLAGS="-O2 -march=athlon64 -ftracer -fprefetch-loop-arrays -pipe"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"


Pentium-m:

CFLAGS="-O3 -march=pentium-m -mtune=pentium-m -pipe -ftracer -fomit-frame-pointer"


Pentium1 233:

CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=pentium-mmx -march=pentium-mmx -O2 -pipe -fomit-frame-pointer -frerun-cse-after-loop -frerun-loop-opt -fexpensive-optimizations -falign-functions=4"
USE="-gtk -gnome -X -qt -kde alsa cdr"


Pentium2:

CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium2 -pipe -fomit-frame-pointer -funroll-loops -mmmx -fforce-addr"
CXXFLAGS="${CFLAGS}"


Pentium4:

CFLAGS="-march=pentium4 -O3  -ftracer -fprefetch-loop-arrays -funroll-loops -fomit-frame-pointer -pipe"
回复

使用道具 举报

发表于 2004-10-30 12:36:41 | 显示全部楼层
sunmoon1997@sunmoon ~ $ emerge  info
Portage 2.0.51-r2 (gcc34-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.9-nitro1 i686)
=================================================================
System uname: 2.6.9-nitro1 i686 Intel(R) Celeron(R) CPU 1.70GHz
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="no"
CFLAGS="-O3 -pipe  -march=pentium4 -ftracer -mfpmath=sse,387"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config/var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe  -march=pentium4 -ftracer -mfpmath=sse,387"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs distlocks keepwork sandbox"
GENTOO_MIRRORS="http://gentoo.gg3.net http://gentoo.ccccom.com ftp://mirror.averse.net/pub/gentoo http://mymirror.asiaosc.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-gnome-current /usr/local/bmg-main /usr/local/portages/xfce4-cvs"
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
USE="X Xaw3d aac aalib acpi acpi4linux alsa apache2 arts audiofile avi berkdb bitmap-fonts bonobo cdr chroot cjk crypt cups curl dga directfb dnsdb dvd dvdread encode esd evo f77 faad fbcon fbdev flac flash foomaticdb freetts freetype fs gcj gd gdbm gif gimp glc glut glx gmp gnome gpm gstreamer gtkgtk2 gtkhtml hal imagemagick imlib immqt-bc java javascript jpeg kde kerberos lcms ldap libcaca libg++ libwww live lzw-tiff mad mikmod mmap mmx mng motif mozilla mozsvg mpeg mpeg4 mplayer msn mysql ncurses network nls nobcel nptl nptlonly nvidia oggvorbis ooo-kde openal opengl oss pam pango pdflib perl pic png python qt quicktime readline samba sdl slang socks5 sse ssl svg svga tcltk tcpd theora threads tiff timidity truetype truetype-fonts type1-fonts usb videos wmf wxwin wxwindows x86 xine xinerama xml xml2 xmms xosd xprint xrandr xscreensaver xv xvid zlib video_cards_fb video_cards_vesa video_cards_nv video_cards_svga"
回复

使用道具 举报

发表于 2004-10-30 23:39:15 | 显示全部楼层
USE="nptl nls cjk mmx sse truetype unicode"
回复

使用道具 举报

 楼主| 发表于 2004-10-30 23:41:40 | 显示全部楼层
居然emerge make failed, 这是什么原因?
回复

使用道具 举报

发表于 2004-10-31 00:08:03 | 显示全部楼层
[quote:44bf6e35bf="HOUSCOUS"]居然emerge make failed, 这是什么原因?[/quote]
执行了啥命令阿?
回复

使用道具 举报

 楼主| 发表于 2004-10-31 01:09:18 | 显示全部楼层
emerge system.  
回复

使用道具 举报

发表于 2004-10-31 01:27:10 | 显示全部楼层
[quote:5159ee3a47="HOUSCOUS"]handbook我自己在官方网站上也会看啊. 还要到linuxsir那里去?[/quote]
那边的gentoo版比这边热闹的多。
回复

使用道具 举报

发表于 2004-10-31 10:55:09 | 显示全部楼层
第一次安装的人建议stage3安装。
回复

使用道具 举报

 楼主| 发表于 2004-10-31 11:56:59 | 显示全部楼层
樱家冢, 看不起我吗? 我偏要用stage1安装, 直到成功为止.

  


最多开个ssh, 让kuye远程帮我装.  
回复

使用道具 举报

发表于 2004-10-31 12:55:20 | 显示全部楼层
[quote:3006c7525f="HOUSCOUS"] 我偏要用stage1安装, 直到成功为止. [/quote]
建议试试这两个script,按自己的情况修改一下,script 1:
[code:1] #!/bin/bash

###################################################
# autoo - a script that automates many of the     #
# commands required to install a gentoo system.   #
# This script does require editing by the user    #
# before execution. Stage 1 NPTL installs only.   #
###################################################
   
###################################################

cd /
   
##################################
# PRE INSTALLATION CONFIGURATION #
##################################
   
# All of these settings should be altered to
# reflect the state of your system (except STAGE, no other stage is supported).
   
STAGE="1"
ARCH="athlon-xp"
RELEASE="2004.2"
PRIMARY_MIRROR="ftp://mirror.pacific.net.au/linux/Gentoo"
GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo"
TIMEZONE="Australia/Sydney"
DEVGENTOO="/dev/hda"
DEVGENTOOROOT="/dev/hda3"
MNTGENTOOROOT="/mnt/gentoo"
DEVGENTOOBOOT="/dev/hda1"
MNTGENTOOBOOT="/mnt/gentoo/boot"
DEVGENTOOSWAP="/dev/hda2"
ROOTBOOTFS="ext3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
CXXFLAGS='${CFLAGS}'
MAKEOPTS="-j2"

#######################
# PREPARING THE DISKS #
#######################
   
#use sfdisk for a more unattended install, otherwise use cfdisk or fdisk (safer when there is another OS already installed - ie dual boot systems)
#cfdisk $DEVGENTOO &&

sfdisk $DEVGENTOO -uM << EOF
,64,L
,512,S
,,L
;
EOF

mkfs.$ROOTBOOTFS $DEVGENTOOBOOT &&
mkfs.$ROOTBOOTFS $DEVGENTOOROOT &&
mkswap $DEVGENTOOSWAP &&
swapon $DEVGENTOOSWAP &&
   
mount $DEVGENTOOROOT $MNTGENTOOROOT &&
mkdir $MNTGENTOOBOOT &&
mount $DEVGENTOOBOOT $MNTGENTOOBOOT &&
   
########################################
# INSTALLING GENTOO INSTALLATION FILES #
########################################
   
cd $MNTGENTOOROOT
   
cp /mnt/floppy/chrooted ./
   
wget "$PRIMARY_MIRROR/releases/x86/$RELEASE/stages/$ARCH/stage$STAGE-$ARCH-$RELEASE.tar.bz2" &&
wget "$PRIMARY_MIRROR/releases/x86/$RELEASE/stages/$ARCH/stage$STAGE-$ARCH-$RELEASE.tar.bz2.md5" &&
md5sum -c "stage$STAGE-$ARCH-$RELEASE.tar.bz2.md5" &&
   
tar -xvjpf "stage$STAGE-$ARCH-$RELEASE.tar.bz2" &&
   
sed '/CHOST="/d; /CFLAGS="/d; /CXXFLAGS="/d; /MAKEOPTS="/d' $MNTGENTOOROOT/etc/make.conf > $MNTGENTOOROOT/etc/make.conf.dan
   
cat >> $MNTGENTOOROOT/etc/make.conf.dan << EOF
   
## Added By Dan's autoo script ##
CHOST="$CHOST"
CFLAGS="$CFLAGS"
CXXFLAGS="$CXXFLAGS"
MAKEOPTS="$MAKEOPTS"
GENTOO_MIRRORS="$GENTOO_MIRRORS"
## End autoo ##
EOF
   
mv /etc/make.conf.dan /etc/make.conf
   
####################################
# INSTALLING GENTOO BASE SYSTEM    #
####################################
   
cp -L /etc/resolv.conf $MNTGENTOOROOT/etc/resolv.conf &&
   
mount -t proc none $MNTGENTOOROOT/proc &&
   
chroot $MNTGENTOOROOT /chrooted
   
#See what happens in "chrooted" script
   
#Optional: Rebooting after install
#cd
#umount $MNTGENTOOBOOT $MNTGENTOOROOT/proc $MNTGENTOOROOT
#reboot [/code:1]
chroot后执行script 2:
[code:1]#!/bin/bash

env-uptdate &&
source /etc/profile &&  

TIMEZONE="Australia/Sydney"
HOSTNAME="tux"
DNSDOMAINNAME="homenetwork"
DEVGENTOO="/dev/hda"
DEVGENTOOROOT="/dev/hda4"
MNTGENTOOROOT="/mnt/gentoo"
DEVGENTOOBOOT="/dev/hda2"
MNTGENTOOBOOT="/mnt/gentoo/boot"
DEVGENTOOSWAP="/dev/hda3"
USE="3dnow X acpi alsa arts cdr cups dvb dvd dvdr gif gpm gtk2 jack java jpeg kde mmx mpeg nptl oggvorbis opengl pam png python qt quicktime sdl slang spell sse ssl svga tcltk tcpd tiff truetype xml2 xmms xv zlib"
SOURCES="gentoo-dev-sources"

emerge sync &&

sed '/USE="/d' /etc/make.conf > /etc/make.conf.dan &&
echo "USE=$USE" >> /etc/make.conf.dan &&

mv /etc/make.conf.dan /etc/make.conf &&

#Courtesy of ali3nx and a very helpful forum howto/thread. UPDATED 30/10/04 for unified bootstrap.
env-update &&
source /etc/profile &&
emerge -C linux-headers &&
USE="-* build bootstrap" emerge linux26-headers &&
cd /usr/portage &&
scripts/bootstrap.sh &&
emerge system &&
emerge syslog-ng xinetd grub hotplug coldplug vixie-cron reiserfsprogs reiser4progs sysfsutils udev &&
emerge --nodeps acpid ntp &&
rc-update add syslog-ng default &&
rc-update add net.eth0 default &&
rc-update add vixie-cron default &&
rc-update add xinetd default &&
rc-update add sshd default &&
rc-update add hotplug default &&
rc-update add coldplug default &&
rc-update add acpid default &&


##########################
# CONFIGURING THE KERNEL #
##########################

rc-update add ntp-client default &&
ntpdate -Q -b pool.ntp.org &&
rm /etc/localtime &&
ln -sf /usr/share/zoneinfo/$TIMEZONE /etc/localtime &&

emerge $SOURCES

cd /usr/src/linux &&
make menuconfig && make && make modules_install &&
cp arch/i386/boot/bzImage /boot/kernel-autoo &&
cp System.map /boot/System.map-autoo &&
cp .config /boot/config-autoo &&

# put additional modules here
emerge nvidia-kernel &&

echo nvidia >> /etc/modules.autoload.d/kernel-2.6 &&
#end additional modules

modules-update &&

###########################
# CONFIGURING YOUR SYSTEM #
###########################

cat > /etc/fstab << EOF &&

# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs>                  <mountpoint>    <type>          <opts>                  <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
$DEVGENTOOBOOT          /boot           ext3            noauto,noatime          1 2
$DEVGENTOOROOT          /               ext3            noatime                 0 1
$DEVGENTOOSWAP          none            swap            sw                      0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro,users         0 0
/dev/fd0                /mnt/floppy     auto            noauto                  0 0

# Compact Flash Reader
/dev/sdb1               /mnt/cf         vfat            noauto,users            0 0

# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults                0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none                    /dev/shm        tmpfs           defaults                0 0

EOF

echo $HOSTNAME > /etc/hostname &&
echo $DNSDOMAINNAME > /etc/dnsdomainname &&

rc-update add domainname default &&

# Configuring Your Network

# Point of user intervention. I think there would be too many problems if this part were automatic. Eg. The layout of this file is different for x86 and ~x86 systems.
   
echo "Editing /etc/conf.d/net (press enter)"
read ok
nano -w /etc/conf.d/net &&

rc-update add net.eth0 default

cat > /etc/hosts << EOF
127.0.0.1     localhost
192.168.0.5   jenny.homenetwork jenny
192.168.0.6   benny.homenetwork benny
192.168.0.7   tux.homenetwork tux
EOF

# System Information

passwd
#echo "tts/0" >> /etc/securetty

echo "Editing /etc/rc.conf (press enter)"
read ok
nano -w /etc/rc.conf

#####################################
# INSTALLING NECESSARY SYSTEM TOOLS #
#####################################

# Most tools are already installed

emerge slocate &&

# Filesystem Tools
#emerge xfsprogs
#emerge reiserfsprogs
#emerge jfsutils

emerge dhcpcd &&

#USE="-X" emerge rp-pppoe

##############################
# CONFIGURING THE BOOTLOADER #
##############################

emerge grub &&

cat > /boot/grub/grub.conf << EOF

default 0
timeout 30

# Comment out if you don't have a graphics card installed
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux Autoo
root (hd0,1)
kernel /kernel-autoo root=$DEVGENTOOROOT

# The next four lines are only if you dualboot with a Windows system.
# In this case, Windows is hosted on /dev/hda1.
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1

EOF


cp /proc/mounts /etc/mtab &&
grub-install --root-directory=/boot $DEVGENTOO

# Rebooting the System: You may not want to at this point, hence it is commented out.

#exit
#Look at rest of "autoo" script for what happens next
[/code:1]
回复

使用道具 举报

发表于 2004-10-31 15:58:52 | 显示全部楼层
有人偏要折磨自己,我也没意见,但是,我可是为你好啊。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-5 06:27 , Processed in 0.040801 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表