Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 18350 Details for
Bug 29649
x86 Quick Install Guide
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
HTML file so that it stays available :)
quickinstall.html (text/html), 17.79 KB, created by
Sven Vermeulen (RETIRED)
on 2003-09-26 00:58:11 UTC
(
hide
)
Description:
HTML file so that it stays available :)
Filename:
MIME Type:
Creator:
Sven Vermeulen (RETIRED)
Created:
2003-09-26 00:58:11 UTC
Size:
17.79 KB
patch
obsolete
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> ><html> ><head> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> > <link title="new" rel="stylesheet" href="/css/main.css" > type="text/css"> > <link rel="shortcut icon" href="http://www.gentoo.org/favicon.ico" > type="image/x-icon"> > <title>Gentoo Linux Documentation -- Gentoo Linux 1.4 Installation >Instructions</title> ></head> ><body style="margin-left: 0px; margin-top: 0px;" bgcolor="#ffffff"> ><table width="100%" border="0" cellspacing="0" cellpadding="0"> > <tbody> > <tr> > <td valign="top" align="right" colspan="1" bgcolor="#ffffff"> > <table border="0" cellspacing="0" cellpadding="0" width="100%"> > <tbody> > <tr> > <td width="99%" class="content" valign="top" align="left"> <br> > <p class="dochead">Gentoo Linux 1.4 Quick & Easy >Installation >Instructions</p> > <p>The 2-CD installation set is available on our <a > href="http://www.gentoo.org/main/en/mirrors.xml">mirrors</a>. To >see what 2-CD set is right for you, read the detailed descriptions of >each product in the <a href="http://store.gentoo.org">store</a>. CD1 >is a full bootable Gentoo Linux environment that can be used to install >the full Gentoo Linux on your machine. CD 1 >contains everything you need to install Gentoo Linux quickly and >without a connection to the Internet. Several >pre-compiled packages are also included on CD 1, such as the XFree86 X >server. CD2 is optional and isn't bootable. It has pre-compiled >packages such as KDE, GNOME, OpenOffice, >Mozilla, Evolution and more. <br> > </p> > <table class="ntable" width="100%" cellspacing="0" > cellpadding="0" border="0"> > <tbody> > <tr> > <td bgcolor="#ddddff"> > <pre><br>(Start by booting your Live CD1. You should see a fancy boot screen with the Gentoo Linux logo on it.)<br>(Hit <ENTER>. You would include dopcmcia or doataraid here. Hit F2-F3 if you have a RAID or PCMCIA laptop setup.)<br>(You will now see an even fancier boot screen.)<br>(Next you will see the root ("#") prompt on the console.)<br>(Here we go.)<br><br># date (To check if you date is correct.)<br># date 022709042003 (If date is wrong, set it with date MMDDhhmmCCYY )<br><br>(Optional, now is the time to load any network or scsi drivers using modprobe.)<br># modprobe aic7xxx (replace aic7xxx with your module)<br><br>(Check for network connectivity)<br># ping -c 3 www.yahoo.com <br><br>(If it didn't work you can use this utility, or visit the <a > href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap4">Optional Networking</a> section of the full install guide.)<br># net-setup eth0<br>or<br># dhcpcd eth0<br><br>(Disk Paritioning) (Here was assume you know the basics about drive paritioning. If not, see the full install <a > href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap6">Disk Partitioning</a> guide.)<br > style="font-weight: bold;">(Use fdisk, cfdisk, parted or partimage to partition your drive now. I recommend a 64 meg boot volume with ext3,<br> a swap partition twice the size of your available RAM (2 Gig limit), and the rest for your root partition using ReiserFS.)<br><br></pre> > </td> > </tr> > </tbody> > </table> > <table class="ncontent" width="100%" border="0" > cellspacing="0" cellpadding="0"> > <tbody> > <tr> > <td bgcolor="#ffffbb"> > <p class="note">Important: Note that you should not >save or make >any changes to a disk's >partition table if any of its partitions contain filesystems that are >in use or >contain important data. Doing so will generally cause data on the disk >to be >lost.</p> > </td> > </tr> > </tbody> > </table> > <table class="ntable" width="100%" cellspacing="0" > cellpadding="0" border="0"> > <tbody> > <tr> > <td bgcolor="#ddddff"> > <pre><br>(Initializing your partitions) (NOTE: Substitute in your proper parition numbers)<br># mkswap /dev/hdax (for making swap filesystems)<br># mke2fs /dev/hdax (for making ext2 filesystems)<br># mke2fs -j /dev/hdax (for making ext3 filesystems)<br># mkreiserfs /dev/hdax (for making reiserfs filesystems)<br># mkfs.xfs /dev/hdax (for making xfs filesystems)<br># mkfs.jfs /dev/hdax (for making jfs filesystems)<br><br>(Mount the partitions)<br># swapon /dev/hdax (substitute your swap partition here)<br># mount /dev/hdax /mnt/gentoo (substitute your root partition here)<br># mkdir /mnt/gentoo/boot<br># mount /dev/hdax /mnt/gentoo/boot (substitute your boot partition here)(mount with -o notail if reiserfs here)<br><br>(Unpacking files) <br > style="font-weight: bold;"># ls /mnt/cdrom/stages/ (to see what is available on your CD)<br># cd /mnt/gentoo ># tar -xvjpf /mnt/cdrom/stages/stage3-*.tar.bz2 (Change to the stage # you are using.)<br><br>(Copying packages off of CD1 that we will use later)<br># tar -xvjf /mnt/cdrom/snapshots/portage-yyyymmdd.tar.bz2 -C /mnt/gentoo/usr (Replace yyyymmdd with the actual filename.)<br># cp -R /mnt/cdrom/distfiles /mnt/gentoo/usr/portage/distfiles<br># cp -a /mnt/cdrom/packages /mnt/gentoo/usr/portage/packages<br><br>(Using mirrorselect) (Optional, can be skipped. Default config should work fine)<br># mirrorselect -a -s4 -o >> /mnt/gentoo/etc/make.conf (To select a mirror automatically)<br># mirrorselect -i -o >> /mnt/gentoo/etc/make.conf (To select a mirror interactively)<br><br>(Entering the chroot environment)<br># mount -t proc proc /mnt/gentoo/proc<br># cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf<br># chroot /mnt/gentoo /bin/bash<br># env-update<br># source /etc/profile<br><br>(Updating using sync) (Optional, can be skipped. Checks for updates on the files we already copied.)<br># emerge sync <br><br>(Stage 1 install only) (We highly recommend Stage 1 and 2 installs use the <a > href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap10">Full Instructions</a> from the full install guide.)<br># nano -w /etc/make.conf<br># cd /usr/portage<br># scripts/bootstrap.sh (Bootstrapping, take long time.)<br><br>(Now Stage 2 only, stage 1 continued)<br># emerge system (Take long time.)<br><br>(Note: Advanced users: To bring your system inline with the latest updates and fixes.)<br># cp /etc/make.conf /etc/make.conf.backup (Backup your make.conf first)<br># CONFIG_PROTECT="-*" emerge -u system (This says its okay to overwrite files)<br># cp /etc/make.conf.backup /etc/make.conf (Restore the make.conf)<br><br>(Time zone configuration) <br>(Look for your time zone in /usr/share/zoneinfo and then use that for the following command.)<br># ln -sf /usr/share/zoneinfo/path/to/timezonefile /etc/localtime<br><br>(Setup your /etc/fstab)<br>#nano -w /etc/fstab<br><br></pre> > </td> > </tr> > </tbody> > </table> > <table class="ntable" width="100%" cellspacing="0" > cellpadding="0" border="0"> > <tbody> > <tr> > <td bgcolor="#ddddff"> > <pre style="background-color: rgb(255, 204, 255);"># example /etc/fstab: static file system information.<br># noatime turns off atimes for increased performance (atimes normally aren't<br># needed; notail increases performance of ReiserFS (at the expense of storage<br># efficiency). It's safe to drop the noatime options if you want and to<br># switch between notail and tail freely.<br> <br># <fs> <mountpoint> <type> <opts> <dump/pass><br> <br># NOTE: Be sure to set the block devices and the filesystem types correctly.<br># NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.<br>/dev/hdax /boot ext3 noauto,noatime 1 2<br>/dev/hdax / reiserfs noatime 0 1<br>/dev/hdax none swap sw 0 0<br>/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,user 0 0<br> <br># NOTE: The next line is critical for boot!<br>none /proc proc defaults 0 0<br># glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for<br>none /dev/shm tmpfs defaults 0 0<br><br>#Example windows configs<br>/dev/hdax /mnt/dosc ntfs ro,noatime,umask=0222 0 0<br>/dev/hdax /mnt/dosd vfat noatime 0 0<br> <br> </pre> > </td> > </tr> > </tbody> > </table> > <table class="ntable" width="100%" cellspacing="0" > cellpadding="0" border="0"> > <tbody> > <tr> > <td bgcolor="#ddddff"> > <p> </p> > <pre>(Configuring your kernel using genkernel)<br>(NOTE: Gentoo provides several kernel ebuilds; a list can be found <a > href="file:///doc/en/gentoo-kernel.xml">here</a>. We advise using gentoo-sources.)<br > style="font-weight: bold;"># emerge -k sys-kernel/gentoo-sources<br># emerge -k genkernel<br># genkernel<br>( Write down the names of the kernel and initrd that are given to you after its done. You will need it later.)<br><br>(OR manual kernel configuration) <br>(since a manual kernel build has many more details, please see the <a > href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap16">Kernel Section</a> of the full install guide.)<br > style="font-weight: bold;"># cd /usr/src/linux<br># make menuconfig<br>( A few things required for Gentoo are - Virtual memory file system support, /proc file system support, <br> /dev file system support * /dev file system Automatically mount at boot. )<br># make dep && make clean bzImage modules modules_install<br># cp /usr/src/linux/arch/i386/boot/bzImage /boot<br><br>(Finishing system install)<br > style="font-weight: bold;"># emerge -k app-admin/sysklogd (This is your System Logger. You can also use syslog-ng, metalog, or msyslog. See <a > href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap16">Full</a> instructions.)<br># rc-update add sysklogd default (rc-update makes it load at boot)<br># emerge -k sys-apps/vcron (This is your CRON Daemon. You can also use dcron or fcron if you like. See <a > href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap16">Full</a> instructions.)<br># rc-update add vcron default <br># emerge -k hotplug (This detects any hardware that initrd does not detect)<br># rc-update add hotplug default<br><br># emerge -k reiserfsprogs (do this if you are going to use reiserfs.)<br># emerge -k xfsprogs (do this if you are using xfs)<br># emerge -k jfsutils (do this if you are going to use jfs.)<br># emerge -k lvm-user (do this if you are going to use lvm) <br><br>(Emerge ebuilds for any additional hardware that is on your system. Here is a list of kernel-related ebuilds that you could emerge:)<br><br># emerge -k nvidia-kernel (Accelerated NVIDIA graphics for XFree86)<br># emerge nforce-net (On-board ethernet controller on NVIDIA NForce(2) motherboards)<br># emerge nforce-audio (On-board audio on NVIDIA NForce(2) motherboards)<br># emerge -k sys-apps/pcmcia-cs (This is for laptop users who need PCMCIA.)<br># emerge -K rp-pppoe (For PPPoE, but you still have to do adsl-setup after you boot your system the first time.)<br># emerge e100 (Intel e100 Fast Ethernet Adapters)<br># emerge e1000 (Intel e1000 Gigabit Ethernet Adapters)<br># emerge emu10k1 (Creative Sound Blaster Live!/Audigy support)<br># emerge ati-drivers (Accelerated ATI Radeon 8500+/FireGL graphics for XFree86)<br># VIDEO_CARDS="yourcard" emerge xfree-drm (Accelerated graphics for ATI Radeon up to 9200, Rage128, Matrox, Voodoo and other cards)<br><br>(Add the names of any modules you need to load after boot to /etc/modules.autoload.d/kernel-2.4 file)<br># nano -w /etc/modules.autoload.d/kernel-2.4 (Only needed if you had to modprobe earlier.)<br><br>(User Management)<br># passwd (Set the root password.)<br># useradd your_user -m -G users,wheel,audio -s /bin/bash (Now create your own user.)<br># passwd your_user (& set the password.)<br><br># echo mymachine > /etc/hostname (substitute your hostname)<br># echo mydomain.com > /etc/dnsdomainname (substitute your domainname, or skip)<br># nano -w /etc/hosts (Add your actual hostname to /etc/hosts so GNOME doesn't complain)<br># nano -w /etc/conf.d/net (Don't skip this DHCP usersppen at boot.)<br># rc-update add net.eth0 default (Only for non-PCMCIA network cards.)<br><br>(Optional, use this code for adding additional network adapters)<br># ln -s /etc/init.d/net.eth0 /etc/init.d/net.ethx<br># rc-update add net.ethx default (Only for non-PCMCIA network cards.)<br><br>(Optional for laptops, have a quick look into /etc/init.d/pcmcia to verify that things seem all right.)<br># rc-update add pcmcia boot (This takes care of any PCMCIA cards and network starting for PCMCIA network cards.)<br><br>(Basic configuration)<br># nano -w /etc/rc.conf (Follow the directions in this file to configure basic settings.)<br><br>(Install your GRUB bootloader) (Use the <a > href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap23">Boot Loader</a> section of the full install guide if you would like LILO.)<br > style="font-weight: bold;">(NOTE: GRUB counts hard drives from zero rather than "a" and partitions start at zero rather than one. <br>Only hard drives are counted, not atapi-ide devices. So the syntax is first integer indicates the drive number, <br>while the second integer indicates the partition number. Once again, please note that the partition numbers <br>are counted from zero, not from one. Your Linux partition /dev/hda1 is called (hd0,0) under GRUB.<br>Grub also has TAB completion)<br><br># emerge -k grub<br># grub<br><br>(Install the GRUB boot record on to your hard drive's MBR (master boot record))<br>grub> root (hd0,0) (Tells GRUB the location of your boot boot partition. /dev/hda1 is used here)<br>grub> setup (hd0) (Install grub onto your MBR)<br>grub> quit <br><br>(for ATA RAID setups, you also need this commmand)<br>grub> setup --stage2=/boot/grub/stage2 (hd0)<br><br>(Create the grub.conf file)<br># nano -w /boot/grub/grub.conf<br><br></pre> > </td> > </tr> > </tbody> > </table> > <table class="ntable" width="100%" cellspacing="0" > cellpadding="0" border="0"> > <tbody> > <tr> > <td bgcolor="#ddddff"> > <pre style="background-color: rgb(255, 204, 255);"># example grub.conf<br># (Here is where you use the output from genkernel that you wrote down earlier.<br># Sustitute it where is says KV. Also, (hd0,0) should point to your boot partition<br># which is /dev/hda1 in our example and /dev/hda3 should point to your root filesystem.<br># (hd0,5) contains the NT bootloader for windows users.<br># NOTE: The path to the kernel image is relative to the boot partition.<br><br>default 0<br>timeout 30<br>fallback 1<br>splashimage=(hd0,0)/grub/splash.xpm.gz<br><br>title=My example Gentoo Linux (genkernel)<br>root (hd0,0)<br>kernel (hd0,0)/kernel-KV root=/dev/hda3<br>initrd (hd0,0)/initrd-KV<br><br># Below needed only for people who dual-boot >title=Windows XP >root (hd0,5) >chainloader (hd0,5)+1<br><br># Below is an example for RAID setups<br>title=Gentoo Linux on RAID<br>root (hd0,0)<br>kernel (hd0,0)/boot/bzImage root=/dev/ataraid/dXpY <br><br></pre> > </td> > </tr> > </tbody> > </table> > <table class="ntable" width="100%" cellspacing="0" > cellpadding="0" border="0"> > <tbody> > <tr> > <td bgcolor="#ddddff"> > <pre><br># etc-update<br># exit <br># cd / <br># umount /mnt/gentoo/boot<br># umount /mnt/gentoo/proc<br># umount /mnt/gentoo<br># reboot (Don't forget to remove the bootable CD)<br><br>(Wait for system to come back up)<br>(Optional, Load binary packages from CD2)<br > style="font-weight: bold;"># mount /dev/cdrom /mnt/cdrom<br># cp -a /mnt/cdrom/packages/* /usr/portage/packages/<br><br># emerge -k xfree (XFree was copied off of CD1 earlier if you were wondering)<br># emerge -k kde<br>or<br># emerge -k gnome <br><br># /usr/X11R6/bin/xf86config <br>(It is now recommend that you go onto the <a > href="http://www.gentoo.org/doc/en/desktop.xml">Desktop Configuration guide</a> for additional info.)<br><br></pre> > </td> > </tr> > </tbody> > </table> > <p> </p> > <a name="doc_chap25_pre2"></a><br> > <p>Now go onto the <a > href="http://www.gentoo.org/doc/en/desktop.xml">Desktop configuration >guide</a> that will help you to continue configuring your new Gentoo >Linux system.<br> >Check out the <a href="http://www.gentoo.org/doc/en/portage-user.xml">Portage >user guide</a> >to help familiarize you with Portage basics. <br> >For more information on starting programs and daemons at startup, see >the <a href="file:///doc/en/rc-scripts.xml">rc-script guide</a>.<br> >If you have any other questions involving installation or anything for >that matter, please check the Gentoo Linux <a > href="http://www.gentoo.org/doc/en/faq.xml">FAQ</a>. <br> >You can find the rest of the Gentoo Documentation <a > href="http://www.gentoo.org/main/en/docs.xml">here</a>. <br> > </p> > </td> > </tr> > </tbody> > </table> > </td> > </tr> > </tbody> ></table> ><br> ></body> ></html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link title="new" rel="stylesheet" href="/css/main.css" type="text/css"> <link rel="shortcut icon" href="http://www.gentoo.org/favicon.ico" type="image/x-icon"> <title>Gentoo Linux Documentation -- Gentoo Linux 1.4 Installation Instructions</title> </head> <body style="margin-left: 0px; margin-top: 0px;" bgcolor="#ffffff"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td valign="top" align="right" colspan="1" bgcolor="#ffffff"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr> <td width="99%" class="content" valign="top" align="left"> <br> <p class="dochead">Gentoo Linux 1.4 Quick & Easy Installation Instructions</p> <p>The 2-CD installation set is available on our <a href="http://www.gentoo.org/main/en/mirrors.xml">mirrors</a>. To see what 2-CD set is right for you, read the detailed descriptions of each product in the <a href="http://store.gentoo.org">store</a>. CD1 is a full bootable Gentoo Linux environment that can be used to install the full Gentoo Linux on your machine. CD 1 contains everything you need to install Gentoo Linux quickly and without a connection to the Internet. Several pre-compiled packages are also included on CD 1, such as the XFree86 X server. CD2 is optional and isn't bootable. It has pre-compiled packages such as KDE, GNOME, OpenOffice, Mozilla, Evolution and more. <br> </p> <table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td bgcolor="#ddddff"> <pre><br>(Start by booting your Live CD1. You should see a fancy boot screen with the Gentoo Linux logo on it.)<br>(Hit <ENTER>. You would include dopcmcia or doataraid here. Hit F2-F3 if you have a RAID or PCMCIA laptop setup.)<br>(You will now see an even fancier boot screen.)<br>(Next you will see the root ("#") prompt on the console.)<br>(Here we go.)<br><br># date (To check if you date is correct.)<br># date 022709042003 (If date is wrong, set it with date MMDDhhmmCCYY )<br><br>(Optional, now is the time to load any network or scsi drivers using modprobe.)<br># modprobe aic7xxx (replace aic7xxx with your module)<br><br>(Check for network connectivity)<br># ping -c 3 www.yahoo.com <br><br>(If it didn't work you can use this utility, or visit the <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap4">Optional Networking</a> section of the full install guide.)<br># net-setup eth0<br>or<br># dhcpcd eth0<br><br>(Disk Paritioning) (Here was assume you know the basics about drive paritioning. If not, see the full install <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap6">Disk Partitioning</a> guide.)<br style="font-weight: bold;">(Use fdisk, cfdisk, parted or partimage to partition your drive now. I recommend a 64 meg boot volume with ext3,<br> a swap partition twice the size of your available RAM (2 Gig limit), and the rest for your root partition using ReiserFS.)<br><br></pre> </td> </tr> </tbody> </table> <table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td bgcolor="#ffffbb"> <p class="note">Important: Note that you should not save or make any changes to a disk's partition table if any of its partitions contain filesystems that are in use or contain important data. Doing so will generally cause data on the disk to be lost.</p> </td> </tr> </tbody> </table> <table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td bgcolor="#ddddff"> <pre><br>(Initializing your partitions) (NOTE: Substitute in your proper parition numbers)<br># mkswap /dev/hdax (for making swap filesystems)<br># mke2fs /dev/hdax (for making ext2 filesystems)<br># mke2fs -j /dev/hdax (for making ext3 filesystems)<br># mkreiserfs /dev/hdax (for making reiserfs filesystems)<br># mkfs.xfs /dev/hdax (for making xfs filesystems)<br># mkfs.jfs /dev/hdax (for making jfs filesystems)<br><br>(Mount the partitions)<br># swapon /dev/hdax (substitute your swap partition here)<br># mount /dev/hdax /mnt/gentoo (substitute your root partition here)<br># mkdir /mnt/gentoo/boot<br># mount /dev/hdax /mnt/gentoo/boot (substitute your boot partition here)(mount with -o notail if reiserfs here)<br><br>(Unpacking files) <br style="font-weight: bold;"># ls /mnt/cdrom/stages/ (to see what is available on your CD)<br># cd /mnt/gentoo # tar -xvjpf /mnt/cdrom/stages/stage3-*.tar.bz2 (Change to the stage # you are using.)<br><br>(Copying packages off of CD1 that we will use later)<br># tar -xvjf /mnt/cdrom/snapshots/portage-yyyymmdd.tar.bz2 -C /mnt/gentoo/usr (Replace yyyymmdd with the actual filename.)<br># cp -R /mnt/cdrom/distfiles /mnt/gentoo/usr/portage/distfiles<br># cp -a /mnt/cdrom/packages /mnt/gentoo/usr/portage/packages<br><br>(Using mirrorselect) (Optional, can be skipped. Default config should work fine)<br># mirrorselect -a -s4 -o >> /mnt/gentoo/etc/make.conf (To select a mirror automatically)<br># mirrorselect -i -o >> /mnt/gentoo/etc/make.conf (To select a mirror interactively)<br><br>(Entering the chroot environment)<br># mount -t proc proc /mnt/gentoo/proc<br># cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf<br># chroot /mnt/gentoo /bin/bash<br># env-update<br># source /etc/profile<br><br>(Updating using sync) (Optional, can be skipped. Checks for updates on the files we already copied.)<br># emerge sync <br><br>(Stage 1 install only) (We highly recommend Stage 1 and 2 installs use the <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap10">Full Instructions</a> from the full install guide.)<br># nano -w /etc/make.conf<br># cd /usr/portage<br># scripts/bootstrap.sh (Bootstrapping, take long time.)<br><br>(Now Stage 2 only, stage 1 continued)<br># emerge system (Take long time.)<br><br>(Note: Advanced users: To bring your system inline with the latest updates and fixes.)<br># cp /etc/make.conf /etc/make.conf.backup (Backup your make.conf first)<br># CONFIG_PROTECT="-*" emerge -u system (This says its okay to overwrite files)<br># cp /etc/make.conf.backup /etc/make.conf (Restore the make.conf)<br><br>(Time zone configuration) <br>(Look for your time zone in /usr/share/zoneinfo and then use that for the following command.)<br># ln -sf /usr/share/zoneinfo/path/to/timezonefile /etc/localtime<br><br>(Setup your /etc/fstab)<br>#nano -w /etc/fstab<br><br></pre> </td> </tr> </tbody> </table> <table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td bgcolor="#ddddff"> <pre style="background-color: rgb(255, 204, 255);"># example /etc/fstab: static file system information.<br># noatime turns off atimes for increased performance (atimes normally aren't<br># needed; notail increases performance of ReiserFS (at the expense of storage<br># efficiency). It's safe to drop the noatime options if you want and to<br># switch between notail and tail freely.<br> <br># <fs> <mountpoint> <type> <opts> <dump/pass><br> <br># NOTE: Be sure to set the block devices and the filesystem types correctly.<br># NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.<br>/dev/hdax /boot ext3 noauto,noatime 1 2<br>/dev/hdax / reiserfs noatime 0 1<br>/dev/hdax none swap sw 0 0<br>/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,user 0 0<br> <br># NOTE: The next line is critical for boot!<br>none /proc proc defaults 0 0<br># glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for<br>none /dev/shm tmpfs defaults 0 0<br><br>#Example windows configs<br>/dev/hdax /mnt/dosc ntfs ro,noatime,umask=0222 0 0<br>/dev/hdax /mnt/dosd vfat noatime 0 0<br> <br> </pre> </td> </tr> </tbody> </table> <table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td bgcolor="#ddddff"> <p> </p> <pre>(Configuring your kernel using genkernel)<br>(NOTE: Gentoo provides several kernel ebuilds; a list can be found <a href="file:///doc/en/gentoo-kernel.xml">here</a>. We advise using gentoo-sources.)<br style="font-weight: bold;"># emerge -k sys-kernel/gentoo-sources<br># emerge -k genkernel<br># genkernel<br>( Write down the names of the kernel and initrd that are given to you after its done. You will need it later.)<br><br>(OR manual kernel configuration) <br>(since a manual kernel build has many more details, please see the <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap16">Kernel Section</a> of the full install guide.)<br style="font-weight: bold;"># cd /usr/src/linux<br># make menuconfig<br>( A few things required for Gentoo are - Virtual memory file system support, /proc file system support, <br> /dev file system support * /dev file system Automatically mount at boot. )<br># make dep && make clean bzImage modules modules_install<br># cp /usr/src/linux/arch/i386/boot/bzImage /boot<br><br>(Finishing system install)<br style="font-weight: bold;"># emerge -k app-admin/sysklogd (This is your System Logger. You can also use syslog-ng, metalog, or msyslog. See <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap16">Full</a> instructions.)<br># rc-update add sysklogd default (rc-update makes it load at boot)<br># emerge -k sys-apps/vcron (This is your CRON Daemon. You can also use dcron or fcron if you like. See <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap16">Full</a> instructions.)<br># rc-update add vcron default <br># emerge -k hotplug (This detects any hardware that initrd does not detect)<br># rc-update add hotplug default<br><br># emerge -k reiserfsprogs (do this if you are going to use reiserfs.)<br># emerge -k xfsprogs (do this if you are using xfs)<br># emerge -k jfsutils (do this if you are going to use jfs.)<br># emerge -k lvm-user (do this if you are going to use lvm) <br><br>(Emerge ebuilds for any additional hardware that is on your system. Here is a list of kernel-related ebuilds that you could emerge:)<br><br># emerge -k nvidia-kernel (Accelerated NVIDIA graphics for XFree86)<br># emerge nforce-net (On-board ethernet controller on NVIDIA NForce(2) motherboards)<br># emerge nforce-audio (On-board audio on NVIDIA NForce(2) motherboards)<br># emerge -k sys-apps/pcmcia-cs (This is for laptop users who need PCMCIA.)<br># emerge -K rp-pppoe (For PPPoE, but you still have to do adsl-setup after you boot your system the first time.)<br># emerge e100 (Intel e100 Fast Ethernet Adapters)<br># emerge e1000 (Intel e1000 Gigabit Ethernet Adapters)<br># emerge emu10k1 (Creative Sound Blaster Live!/Audigy support)<br># emerge ati-drivers (Accelerated ATI Radeon 8500+/FireGL graphics for XFree86)<br># VIDEO_CARDS="yourcard" emerge xfree-drm (Accelerated graphics for ATI Radeon up to 9200, Rage128, Matrox, Voodoo and other cards)<br><br>(Add the names of any modules you need to load after boot to /etc/modules.autoload.d/kernel-2.4 file)<br># nano -w /etc/modules.autoload.d/kernel-2.4 (Only needed if you had to modprobe earlier.)<br><br>(User Management)<br># passwd (Set the root password.)<br># useradd your_user -m -G users,wheel,audio -s /bin/bash (Now create your own user.)<br># passwd your_user (& set the password.)<br><br># echo mymachine > /etc/hostname (substitute your hostname)<br># echo mydomain.com > /etc/dnsdomainname (substitute your domainname, or skip)<br># nano -w /etc/hosts (Add your actual hostname to /etc/hosts so GNOME doesn't complain)<br># nano -w /etc/conf.d/net (Don't skip this DHCP usersppen at boot.)<br># rc-update add net.eth0 default (Only for non-PCMCIA network cards.)<br><br>(Optional, use this code for adding additional network adapters)<br># ln -s /etc/init.d/net.eth0 /etc/init.d/net.ethx<br># rc-update add net.ethx default (Only for non-PCMCIA network cards.)<br><br>(Optional for laptops, have a quick look into /etc/init.d/pcmcia to verify that things seem all right.)<br># rc-update add pcmcia boot (This takes care of any PCMCIA cards and network starting for PCMCIA network cards.)<br><br>(Basic configuration)<br># nano -w /etc/rc.conf (Follow the directions in this file to configure basic settings.)<br><br>(Install your GRUB bootloader) (Use the <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap23">Boot Loader</a> section of the full install guide if you would like LILO.)<br style="font-weight: bold;">(NOTE: GRUB counts hard drives from zero rather than "a" and partitions start at zero rather than one. <br>Only hard drives are counted, not atapi-ide devices. So the syntax is first integer indicates the drive number, <br>while the second integer indicates the partition number. Once again, please note that the partition numbers <br>are counted from zero, not from one. Your Linux partition /dev/hda1 is called (hd0,0) under GRUB.<br>Grub also has TAB completion)<br><br># emerge -k grub<br># grub<br><br>(Install the GRUB boot record on to your hard drive's MBR (master boot record))<br>grub> root (hd0,0) (Tells GRUB the location of your boot boot partition. /dev/hda1 is used here)<br>grub> setup (hd0) (Install grub onto your MBR)<br>grub> quit <br><br>(for ATA RAID setups, you also need this commmand)<br>grub> setup --stage2=/boot/grub/stage2 (hd0)<br><br>(Create the grub.conf file)<br># nano -w /boot/grub/grub.conf<br><br></pre> </td> </tr> </tbody> </table> <table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td bgcolor="#ddddff"> <pre style="background-color: rgb(255, 204, 255);"># example grub.conf<br># (Here is where you use the output from genkernel that you wrote down earlier.<br># Sustitute it where is says KV. Also, (hd0,0) should point to your boot partition<br># which is /dev/hda1 in our example and /dev/hda3 should point to your root filesystem.<br># (hd0,5) contains the NT bootloader for windows users.<br># NOTE: The path to the kernel image is relative to the boot partition.<br><br>default 0<br>timeout 30<br>fallback 1<br>splashimage=(hd0,0)/grub/splash.xpm.gz<br><br>title=My example Gentoo Linux (genkernel)<br>root (hd0,0)<br>kernel (hd0,0)/kernel-KV root=/dev/hda3<br>initrd (hd0,0)/initrd-KV<br><br># Below needed only for people who dual-boot title=Windows XP root (hd0,5) chainloader (hd0,5)+1<br><br># Below is an example for RAID setups<br>title=Gentoo Linux on RAID<br>root (hd0,0)<br>kernel (hd0,0)/boot/bzImage root=/dev/ataraid/dXpY <br><br></pre> </td> </tr> </tbody> </table> <table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td bgcolor="#ddddff"> <pre><br># etc-update<br># exit <br># cd / <br># umount /mnt/gentoo/boot<br># umount /mnt/gentoo/proc<br># umount /mnt/gentoo<br># reboot (Don't forget to remove the bootable CD)<br><br>(Wait for system to come back up)<br>(Optional, Load binary packages from CD2)<br style="font-weight: bold;"># mount /dev/cdrom /mnt/cdrom<br># cp -a /mnt/cdrom/packages/* /usr/portage/packages/<br><br># emerge -k xfree (XFree was copied off of CD1 earlier if you were wondering)<br># emerge -k kde<br>or<br># emerge -k gnome <br><br># /usr/X11R6/bin/xf86config <br>(It is now recommend that you go onto the <a href="http://www.gentoo.org/doc/en/desktop.xml">Desktop Configuration guide</a> for additional info.)<br><br></pre> </td> </tr> </tbody> </table> <p> </p> <a name="doc_chap25_pre2"></a><br> <p>Now go onto the <a href="http://www.gentoo.org/doc/en/desktop.xml">Desktop configuration guide</a> that will help you to continue configuring your new Gentoo Linux system.<br> Check out the <a href="http://www.gentoo.org/doc/en/portage-user.xml">Portage user guide</a> to help familiarize you with Portage basics. <br> For more information on starting programs and daemons at startup, see the <a href="file:///doc/en/rc-scripts.xml">rc-script guide</a>.<br> If you have any other questions involving installation or anything for that matter, please check the Gentoo Linux <a href="http://www.gentoo.org/doc/en/faq.xml">FAQ</a>. <br> You can find the rest of the Gentoo Documentation <a href="http://www.gentoo.org/main/en/docs.xml">here</a>. <br> </p> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <br> </body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 29649
:
18350
|
18407
|
18408
|
18657
|
18658
|
18748
|
19001