Hi:
I found this guide in:
http://jetblackz.freewebpage.org/InstallingGentoo2004.html
I think that like good but i think that have errors, please confirm if you see that have errors (you will see my comments in bold).
This is the Guide:
Booting Live CD
Boot up the LiveCD in the first optical drive, and hit Enter at boot prompt. GPL'ed forcedeth and n-Force audio modules are included.
Configuring Digital Subscriber Line
If you are on DSL, set it up and start the service:
adsl-setup
adsl-start
Configuring Cable Modem and Router
If you are on cable modem or router connected to DSL, and your network isn't set up. Set it up:
net-setup eth0
dhcpcd eth0
Configuring Static Internet Protocol
If you have a static IP, set it up, replacing IP, broadcast, netmask and gateway with yours, while not breaking ifconfig line:
ifconfig eth0 192.168.1.100 broadcast 192.168.1.255 netmask
255.255.255.0 up
route add default gw 192.168.1.1
Configuring Resolver Configuration File
Each Internet account has two DNSes: primary and secondary. Correct them if they are wrong in resolv.conf:
nano /etc/resolv.conf
nameserver 192.168.1.253
nameserver 192.168.1.254
Testing Network
If you have Internet connection, test the network by pinging www.gentoo.org three times:
ping -c 3 www.gentoo.org
Configuring Date and Time
Check out the date and time of the system:
date
If they don't check out, set the current date and time in this format MMDDhhmmYYYY where hours is 24-hour:
date 123123592004
Partitioning Hard Disk
Create a 5 GB or bigger Linux partition and a swap partition, replacing hdx with hda for the first hard disk, or hdb for the second or slave one:
cfdisk /dev/hdx
Highlight a partition for Gentoo, [Type], enter "83", highlight a partition for swap, [Type], enter "82", [Write], enter "yes", [Quit].
Make the swap, turn it on, format the Gentoo partition as ext3 and mount it, replacing hdx?'s with swap and Gentoo partitions made in cfdisk:
mkswap /dev/hdx?
swapon /dev/hdx?
mke2fs -j /dev/hdx?
mount -t ext3 /dev/hdx? /mnt/gentoo
What happend with BOOT partition?
Decompressing Stage 3 Tarball and Portage
My PC is AMD Athlon XP. Decompress the stage 3 tarball and Portage in their respective directories, replacing the stage 3 filename if need be, while not breaking the 2nd tar command line, make distfiles directory, and copy distfiles and packages from Live CD to hard disk:
cd /mnt/gentoo
tar -xvjpf /mnt/cdrom/stages/stage3-athlon-xp-20040218.tar.bz2
tar -xvjf /mnt/cdrom/snapshots/portage-20040223.tar.bz2 -C
/mnt/gentoo/usr
mkdir usr/portage/distfiles
cp -R /mnt/cdrom/distfiles usr/portage
Chrooting into Gentoo
Mount the process information pseudo filesystem, copy the resolver file to Gentoo partition, change root directory to Gentoo, and update environment settings:
mount -t proc none proc
cp /etc/resolv.conf etc
chroot /mnt/gentoo /bin/bash -l
env-update
What happend with mount /dev/hda1 /mnt/gentoo/boot ?
Configuring Timezone
List all the available time zones, choose one, and link it to localtime:
ls /usr/share/zoneinfo
ln -sf /usr/share/zoneinfo/US/Eastern /etc/localtime
Configuring Filesystem Table
Edit fstab, replacing hdx?'s with Gentoo and swap partitions:
nano /etc/fstab
#/dev/BOOT /boot ext2 noauto,noatime 1 1
/dev/hdx? / ext3 noatime 0 1
/dev/hdx? none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,users,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,users 0 0
proc /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
Why BOOT is in comment (#)?
Emerging Kernel Source and Hotplug
Kernel source is used for compiling kernel. Hotplug auto-detects hardware. Emerge the kernel source, genkernel and hotplug, make hotplug start at boot-up, and generate the kernel with all available modules:
emerge -k sys-kernel/gentoo-sources
emerge -k genkernel
emerge -k hotplug
rc-update add hotplug default
genkernel all
Emerging Logging Daemon
syslog-ng, by Balazs Scheidler, is a next generation system logging daemon. Emerge syslog-ng, and make it start at boot-up:
emerge -k app-admin/syslog-ng
rc-update add syslog-ng default
Emerging Scheduler
vixie-cron, by Paul Vixie, is a secure and powerful version of cron. Emerge vixie-cron, and make it start at boot-up:
emerge -k sys-apps/vixie-cron
rc-update add vixie-cron default
Creating root Password and User Accounts
Create a root password:
passwd
Create as many user accounts and passwords as you want, replacing username with the name of a user:
useradd username -m -G users,wheel,audio -s /bin/bash
passwd username
Configuring Network
List the eth0 IP, broadcast and netmask of your NIC:
ifconfig
eth0 Link encap:Ethernet HWaddr 00:0B:6D:24:31:69
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1024 (1024.0 b) TX bytes:854 (854.0 b)
Interrupt:11 Base address:0x1000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Get the default gateway from route command:
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
loopback localhost 255.0.0.0 UG 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Uncomment gateway and put the numbers in the net file, and while not breaking up the iface line:
nano -w /etc/conf.d/net
iface_eth0="192.168.1.100 broadcast 192.168.1.255 netmask
255.255.255.0"
gateway="eth0/192.168.1.1"
Make eth0 start at boot-up:
rc-update add net.eth0 default
Configuring Hostname, DNS Domain Name and Hosts
hostname is system's host name. dnsdomainname is the system's DNS domain name. hosts contains a client access control list. Set them up as follows:
echo gentoo > /etc/hostname
echo gentoo.org > /etc/dnsdomainname
rc-update add domainname default
nano /etc/hosts
127.0.0.1 localhost gentoo
Configuring Local Clock
Set up your clock as your computer's local time in rc.conf:
nano -w /etc/rc.conf
CLOCK="local"
Fixing Boot Error: Can't synthesize input events
You may get this error at boot-up with some USB device. Uncomment the PROCDIR variable, and create a new one in input.rc:
nano -w /etc/hotplug/input.rc
#PROCDIR=/proc/bus/input
PROCDIR=/proc
Emerging GRand Unified Bootloader
Boot Gentoo with a boot manager of your choice on master boot record. Leave GRUB on the root sector of Gentoo partition. If the Gentoo partition is /dev/hda5, "x,x" will be 0,4. Emerge GRUB, set it up, and link the corresponding files to kernel and initrd:
emerge -k grub
grub
root (hdx,x)
setup (hdx,x)
quit
cd /boot
ln -sf kernel-2.4.22-gentoo-r7 kernel
ln -sf initrd-2.4.22-gentoo-r7 initrd
If i follow exaclty the instructions in this part say that can't find /boot is because it is not mounted in previous steps?
GRP install requires the root, init and real_root parameters in GRUB config file. vga=0x317 is for a resolution of 1024 by 768 at 16-bit colors. Gentoo will freeze at boot-up if the VGA mode is wrong. Use whatever resolution "emerge -k grub" tells you. splash=silent gives you a splashscreen with a progress bar. splash=verbose gives you old-fashioned boot-up messages.
Create grub.conf file as follows, replacing x's and hdx? with Gentoo partition, while not breaking up the kernel line:
nano grub/grub.conf
default 0
timeout 0
splashimage=(hdx,x)/boot/grub/splash.xpm.gz
title=Gentoo 2004
root (hdx,x)
kernel (hdx,x)/boot/kernel root=/dev/ram0 init=/linuxrc
real_root=/dev/hdx? vga=0x317 splash=silent
initrd (hdx,x)/boot/initrd
Finishing Up Install and Rebooting Computer
The install is over. Run etc-update, exit out of chroot, unmount proc and Gentoo partition, reboot the computer, and remove the CD:
etc-update
exit
cd /
umount /mnt/gentoo/proc /mnt/gentoo
reboot
In this section show /mnt/gentoo don't exist or /mnt/gentoo is busy
Finally the Gentoo Installation guide in http://www.gentoo.org is the same for Gentoo 1.4 and Gentoo 2004??
Mission accomplished! Your grade is satisfactory. As soon as Gentoo boots up in a graphical splash screen, it should be smooth sailing. The command line interface on a graphical background image, called a framebuffer console, should be working perfect.
Don't worry about the "Remounting remaining filesystems readonly" error at reboot or shut-down. It is a bug in genkernel. Leave it there for a while, and the computer will reboot or shut down.
END
_________________
Simon Zarate
I found this guide in:
http://jetblackz.freewebpage.org/InstallingGentoo2004.html
I think that like good but i think that have errors, please confirm if you see that have errors (you will see my comments in bold).
This is the Guide:
Booting Live CD
Boot up the LiveCD in the first optical drive, and hit Enter at boot prompt. GPL'ed forcedeth and n-Force audio modules are included.
Configuring Digital Subscriber Line
If you are on DSL, set it up and start the service:
adsl-setup
adsl-start
Configuring Cable Modem and Router
If you are on cable modem or router connected to DSL, and your network isn't set up. Set it up:
net-setup eth0
dhcpcd eth0
Configuring Static Internet Protocol
If you have a static IP, set it up, replacing IP, broadcast, netmask and gateway with yours, while not breaking ifconfig line:
ifconfig eth0 192.168.1.100 broadcast 192.168.1.255 netmask
255.255.255.0 up
route add default gw 192.168.1.1
Configuring Resolver Configuration File
Each Internet account has two DNSes: primary and secondary. Correct them if they are wrong in resolv.conf:
nano /etc/resolv.conf
nameserver 192.168.1.253
nameserver 192.168.1.254
Testing Network
If you have Internet connection, test the network by pinging www.gentoo.org three times:
ping -c 3 www.gentoo.org
Configuring Date and Time
Check out the date and time of the system:
date
If they don't check out, set the current date and time in this format MMDDhhmmYYYY where hours is 24-hour:
date 123123592004
Partitioning Hard Disk
Create a 5 GB or bigger Linux partition and a swap partition, replacing hdx with hda for the first hard disk, or hdb for the second or slave one:
cfdisk /dev/hdx
Highlight a partition for Gentoo, [Type], enter "83", highlight a partition for swap, [Type], enter "82", [Write], enter "yes", [Quit].
Make the swap, turn it on, format the Gentoo partition as ext3 and mount it, replacing hdx?'s with swap and Gentoo partitions made in cfdisk:
mkswap /dev/hdx?
swapon /dev/hdx?
mke2fs -j /dev/hdx?
mount -t ext3 /dev/hdx? /mnt/gentoo
What happend with BOOT partition?
Decompressing Stage 3 Tarball and Portage
My PC is AMD Athlon XP. Decompress the stage 3 tarball and Portage in their respective directories, replacing the stage 3 filename if need be, while not breaking the 2nd tar command line, make distfiles directory, and copy distfiles and packages from Live CD to hard disk:
cd /mnt/gentoo
tar -xvjpf /mnt/cdrom/stages/stage3-athlon-xp-20040218.tar.bz2
tar -xvjf /mnt/cdrom/snapshots/portage-20040223.tar.bz2 -C
/mnt/gentoo/usr
mkdir usr/portage/distfiles
cp -R /mnt/cdrom/distfiles usr/portage
Chrooting into Gentoo
Mount the process information pseudo filesystem, copy the resolver file to Gentoo partition, change root directory to Gentoo, and update environment settings:
mount -t proc none proc
cp /etc/resolv.conf etc
chroot /mnt/gentoo /bin/bash -l
env-update
What happend with mount /dev/hda1 /mnt/gentoo/boot ?
Configuring Timezone
List all the available time zones, choose one, and link it to localtime:
ls /usr/share/zoneinfo
ln -sf /usr/share/zoneinfo/US/Eastern /etc/localtime
Configuring Filesystem Table
Edit fstab, replacing hdx?'s with Gentoo and swap partitions:
nano /etc/fstab
#/dev/BOOT /boot ext2 noauto,noatime 1 1
/dev/hdx? / ext3 noatime 0 1
/dev/hdx? none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,users,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,users 0 0
proc /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
Why BOOT is in comment (#)?
Emerging Kernel Source and Hotplug
Kernel source is used for compiling kernel. Hotplug auto-detects hardware. Emerge the kernel source, genkernel and hotplug, make hotplug start at boot-up, and generate the kernel with all available modules:
emerge -k sys-kernel/gentoo-sources
emerge -k genkernel
emerge -k hotplug
rc-update add hotplug default
genkernel all
Emerging Logging Daemon
syslog-ng, by Balazs Scheidler, is a next generation system logging daemon. Emerge syslog-ng, and make it start at boot-up:
emerge -k app-admin/syslog-ng
rc-update add syslog-ng default
Emerging Scheduler
vixie-cron, by Paul Vixie, is a secure and powerful version of cron. Emerge vixie-cron, and make it start at boot-up:
emerge -k sys-apps/vixie-cron
rc-update add vixie-cron default
Creating root Password and User Accounts
Create a root password:
passwd
Create as many user accounts and passwords as you want, replacing username with the name of a user:
useradd username -m -G users,wheel,audio -s /bin/bash
passwd username
Configuring Network
List the eth0 IP, broadcast and netmask of your NIC:
ifconfig
eth0 Link encap:Ethernet HWaddr 00:0B:6D:24:31:69
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1024 (1024.0 b) TX bytes:854 (854.0 b)
Interrupt:11 Base address:0x1000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Get the default gateway from route command:
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
loopback localhost 255.0.0.0 UG 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Uncomment gateway and put the numbers in the net file, and while not breaking up the iface line:
nano -w /etc/conf.d/net
iface_eth0="192.168.1.100 broadcast 192.168.1.255 netmask
255.255.255.0"
gateway="eth0/192.168.1.1"
Make eth0 start at boot-up:
rc-update add net.eth0 default
Configuring Hostname, DNS Domain Name and Hosts
hostname is system's host name. dnsdomainname is the system's DNS domain name. hosts contains a client access control list. Set them up as follows:
echo gentoo > /etc/hostname
echo gentoo.org > /etc/dnsdomainname
rc-update add domainname default
nano /etc/hosts
127.0.0.1 localhost gentoo
Configuring Local Clock
Set up your clock as your computer's local time in rc.conf:
nano -w /etc/rc.conf
CLOCK="local"
Fixing Boot Error: Can't synthesize input events
You may get this error at boot-up with some USB device. Uncomment the PROCDIR variable, and create a new one in input.rc:
nano -w /etc/hotplug/input.rc
#PROCDIR=/proc/bus/input
PROCDIR=/proc
Emerging GRand Unified Bootloader
Boot Gentoo with a boot manager of your choice on master boot record. Leave GRUB on the root sector of Gentoo partition. If the Gentoo partition is /dev/hda5, "x,x" will be 0,4. Emerge GRUB, set it up, and link the corresponding files to kernel and initrd:
emerge -k grub
grub
root (hdx,x)
setup (hdx,x)
quit
cd /boot
ln -sf kernel-2.4.22-gentoo-r7 kernel
ln -sf initrd-2.4.22-gentoo-r7 initrd
If i follow exaclty the instructions in this part say that can't find /boot is because it is not mounted in previous steps?
GRP install requires the root, init and real_root parameters in GRUB config file. vga=0x317 is for a resolution of 1024 by 768 at 16-bit colors. Gentoo will freeze at boot-up if the VGA mode is wrong. Use whatever resolution "emerge -k grub" tells you. splash=silent gives you a splashscreen with a progress bar. splash=verbose gives you old-fashioned boot-up messages.
Create grub.conf file as follows, replacing x's and hdx? with Gentoo partition, while not breaking up the kernel line:
nano grub/grub.conf
default 0
timeout 0
splashimage=(hdx,x)/boot/grub/splash.xpm.gz
title=Gentoo 2004
root (hdx,x)
kernel (hdx,x)/boot/kernel root=/dev/ram0 init=/linuxrc
real_root=/dev/hdx? vga=0x317 splash=silent
initrd (hdx,x)/boot/initrd
Finishing Up Install and Rebooting Computer
The install is over. Run etc-update, exit out of chroot, unmount proc and Gentoo partition, reboot the computer, and remove the CD:
etc-update
exit
cd /
umount /mnt/gentoo/proc /mnt/gentoo
reboot
In this section show /mnt/gentoo don't exist or /mnt/gentoo is busy
Finally the Gentoo Installation guide in http://www.gentoo.org is the same for Gentoo 1.4 and Gentoo 2004??
Mission accomplished! Your grade is satisfactory. As soon as Gentoo boots up in a graphical splash screen, it should be smooth sailing. The command line interface on a graphical background image, called a framebuffer console, should be working perfect.
Don't worry about the "Remounting remaining filesystems readonly" error at reboot or shut-down. It is a bug in genkernel. Leave it there for a while, and the computer will reboot or shut down.
END
_________________
Simon Zarate
'StoreHouse > Server' 카테고리의 다른 글
RedHat SSH 2 설치 문서 (0) | 2004.12.10 |
---|---|
Gentoo Integrate Tomcat With Apache Using mod_jk (0) | 2004.12.10 |
RedHat HowTo - Awstats 웹로그 분석 설치 (0) | 2004.12.10 |
Windows XP 에서 MBR 이 날아갔을경우 복구하는방법 (0) | 2004.12.10 |
Windows2003 SERVER 시스템 종료 이벤트 추적기 표시 안함 (0) | 2004.12.10 |