Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 18658 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]
New version. HTML
install.html (text/html), 19.06 KB, created by
Steven Wagner
on 2003-10-03 02:49:26 UTC
(
hide
)
Description:
New version. HTML
Filename:
MIME Type:
Creator:
Steven Wagner
Created:
2003-10-03 02:49:26 UTC
Size:
19.06 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 Install Reference</title> ></head> ><body style="margin-left:0px;margin-top:0px;" bgcolor="#ffffff"><table width="100%" border="0" cellspacing="0" cellpadding="0"> ><tr><td valign="top" height="125" bgcolor="#45347b"><table cellspacing="0" cellpadding="0" border="0" width="193"> ><tr><td class="logobg" valign="top" align="center" height="88"><a href="/"><img border="0" src="/images/gtop-s.jpg" alt="Gentoo Logo"></a></td></tr> ><tr><td class="logobg" valign="top" align="center" height="36"><a href="/"><img border="0" src="/images/gbot-s.gif" alt="Gentoo Logo Side"></a></td></tr> ></table></td></tr> ><tr><td valign="top" align="right" colspan="1" bgcolor="#ffffff"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr> ><td width="99%" class="content" valign="top" align="left"> ><br><p class="dochead">Gentoo Linux Install Reference</p> ><form name="contents" action="http://www.gentoo.org"> ><b>Contents</b>: > <select name="url" size="1" OnChange="location.href=form.url.options[form.url.selectedIndex].value" style="font-family:Arial,Helvetica, sans-serif; font-size:10"><option value="#doc_chap1">1. Quick Install Reference</option></select> ></form> ><p class="chaphead"> ><span class="chapnum"><a name="doc_chap1">1. </a></span>Quick Install Reference</p> >Install ISOs are on the <a href="http://www.gentoo.org/main/en/mirrors.xml">mirrors</a>. Detailed descriptions >of different disks are in the <a href="http://store.gentoo.org">store</a>. >CD1 is a full bootable Gentoo Linux environment. CD 1 contains >everything you need to install Gentoo Linux quickly and without a >connection to the Internet. CD2 is optional and has pre-compiled packages such as KDE, >GNOME, OpenOffice, Mozilla, Evolution and more. > ><a name="doc_chap1_pre1"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> ><tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> > Code listing 1.1: Beginning settings</p></td></tr> ><tr><td bgcolor="#ddddff"><pre> >(Start by booting your Live CD1. At the fancy boot w/ Gentoo Linux logo on it, push <ENTER>.) >(Hit F2-F3 if you have a RAID or PCMCIA laptop setup. You would now include dopcmcia or doataraid if you need it.) >(You will now see an even fancier boot screen, and then finally the root ("#") prompt on the console. Here we go.) ># <span class="input">date</span> (Make sure your time and date is correct. If wrong, set it with <span class="input">date MMDDhhmmCCYY</span> ) ># <span class="input">modprobe module_name</span> (Optional- Load any modules, ie, network or scsi) ># <span class="input">ping -c 3 www.yahoo.com</span> (Check for network connectivity) >(If test fails try the below commands, or read the <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap4">Networking</a> chapter of the full Install Manual.) ># <span class="input">net-setup eth0</span> or # <span class="input">dhcpcd eth0</span> ><table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#bbffbb"><p class="note"> ><b>Note: </b> >Now partition your drives. For more information read the <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap6">Disk Partitioning</a> chapter of the full Install Manual. >Use fdisk, cfdisk, parted or partimage. Recommended setup is a 64 meg boot volume with ext3, > a swap partition twice the size of your available RAM (2 Gig limit per swap file), and the rest for your root partition using ReiserFS. Don't wreck your data. ></p></td></tr></table></pre></td></tr> ></table> ><a name="doc_chap1_pre2"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> ><tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> > Code listing 1.2: File system, and basic system files</p></td></tr> ><tr><td bgcolor="#ddddff"><pre> >(Initialize your created partitions using the following applicable examples) ># <span class="input">mkswap /dev/hdax</span> (swap) # <span class="input">mke2fs /dev/hdax</span> (ext2) # <span class="input">mke2fs -j /dev/hdax</span> (ext3) ># <span class="input">mkreiserfs /dev/hdax</span> (reiserfs) # <span class="input">mkfs.xfs /dev/hdax</span> (xfs) # <span class="input">mkfs.jfs /dev/hdax</span> (jfs) >(Mount the partitions and unpack files) ># <span class="input">swapon /dev/hdax</span> (swap) ># <span class="input">mount /dev/hdax /mnt/gentoo</span> (root) ># <span class="input">mkdir /mnt/gentoo/boot</span> ># <span class="input">mount /dev/hdax /mnt/gentoo/boot</span> (boot) ># <span class="input">cd /mnt/gentoo</span> ># <span class="input">ls /mnt/cdrom/stages/</span> (to see what is available on your CD) ># <span class="input">tar -xvjpf /mnt/cdrom/stages/stage3-*.tar.bz2</span> (replace with whatever stage # you want to using) >(or you can download latest tarball online with <span class="input">lynx http://gentoo.oregonstate.edu/releases/x86/1.4/</span> ) ># <span class="input">tar -xvjf /mnt/cdrom/snapshots/portage-*.tar.bz2 -C /mnt/gentoo/usr</span> (unpacking the portage tree) ># <span class="input">cp -R /mnt/cdrom/distfiles /mnt/gentoo/usr/portage/distfiles</span> (copying files for later use) ># <span class="input">cp -a /mnt/cdrom/packages /mnt/gentoo/usr/portage/packages</span> >(Optional- Run <span class="input">mirrorselect</span> now to choose mirrors. Automatic mode only works with no firewall.) ># <span class="input">cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf</span> ># <span class="input">mount -t proc proc /mnt/gentoo/proc</span> ># <span class="input">chroot /mnt/gentoo /bin/bash</span> ># <span class="input">env-update; source /etc/profile</span> ># <span class="input">emerge sync</span> (Optional- Updates portage tree.) >(Stage 1 install only)(Stage 1 and 2 installs should use the <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap10">Stage</a> chapter of the full Install Manual.) ># <span class="input">nano -w /etc/make.conf</span> ># <span class="input">cd /usr/portage</span> ># <span class="input">scripts/bootstrap.sh</span> (Bootstrapping, takes long time.) >(Now stage 2 only, stage 1 continued) ># <span class="input">emerge system</span> (This takes a long time, which is why some prefer starting at stage3) >(Now stage 3 starts here) >(Optional- use the next 3 lines to backup and update your config files before we start changing things) > # <span class="input">cp /etc/make.conf /etc/make.conf.backup</span> > # <span class="input">CONFIG_PROTECT="-*" emerge -u system</span> > # <span class="input">cp /etc/make.conf.backup /etc/make.conf</span> ># <span class="input">ln -sf /usr/share/zoneinfo/path/to/timezonefile /etc/localtime</span> (set timezone file) ># <span class="input">nano -w /etc/fstab</span> (now we setup your file system information) ></pre></td></tr> ></table> ><a name="doc_chap1_pre3"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> ><tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> > Code listing 1.3: /etc/fstab</p></td></tr> ><tr><td bgcolor="#ddddff"><pre> ># <fs> <mountpoint> <type> <opts> <dump/pass> >/dev/hdax /boot ext3 noauto,noatime 1 2 >/dev/hdax / reiserfs noatime 0 1 >/dev/hdax none swap sw 0 0 >/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,user 0 0 >none /proc proc defaults 0 0 >none /dev/shm tmpfs defaults 0 0 >/dev/hdax /mnt/dosc ntfs ro,noatime,umask=0222 0 0 ></pre></td></tr> ></table> ><a name="doc_chap1_pre4"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> ><tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> > Code listing 1.4: Kernel and customizing system</p></td></tr> ><tr><td bgcolor="#ddddff"><pre> ># <span class="input">emerge -k sys-kernel/gentoo-sources</span> (Here is the <a href="http://www.gentoo.org/doc/en/gentoo-kernel.xml">list of</a> kernels.) ># <span class="input">emerge -k genkernel</span> (for genkernel) ># <span class="input">genkernel</span> (<span class="input">--config</span> for kernel options. Take note of kernel and initrd names when it finishes. You will need it later.) >(OR manual kernel build, also see the <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap16">Kernel</a> chapter of the full Install Manual.) > # <span class="input">cd /usr/src/linux</span> > # <span class="input">make menuconfig</span> (include VM fs, /proc fs, /dev fs, /dev fs auto mount at boot) > # <span class="input">make dep && make clean bzImage modules modules_install</span> > # <span class="input">cp /usr/src/linux/arch/i386/boot/bzImage /boot</span> ># <span class="input">emerge -k app-admin/syslog-ng </span> (This is your system logger. You can also use sysklogd, metalog, or msyslog. See <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap16">Full</a> instructions.) ># <span class="input">rc-update add syslog-ng default</span> (rc-update configures what daemons load at boot) ># <span class="input">emerge -k sys-apps/vcron</span> (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.) ># <span class="input">rc-update add vcron default</span> ># <span class="input">emerge -k hotplug</span> (This detects any hardware that initrd does not detect) ># <span class="input">rc-update add hotplug default</span> >(Optional- Get packages for file system tools and hardware) > # <span class="input">emerge -k reiserfsprogs</span> (or xfsprogs, jfsutils, lvm-user) > # <span class="input">emerge -k nvidia-kernel</span> (or pcmcia-cs, emu10k1, nforce-net, nforce-audio, e100, e1000, ati-drivers, rp-pppoe > # <span class="input">VIDEO_CARDS="yourcard" emerge xfree-drm</span> (for ATI Radeon up to 9200, Rage128, Matrox, Voodoo and other cards) ># <span class="input">passwd</span> (sets root password) ># <span class="input">useradd your_user -m -G users,wheel,audio -s /bin/bash</span> ># <span class="input">passwd your_user</span> ># <span class="input">echo mymachine > /etc/hostname</span> ># <span class="input">echo mydomain.com > /etc/dnsdomainname</span> (or skip this) ># <span class="input">nano -w /etc/hosts</span> (Add your actual hostname to /etc/hosts so GNOME doesn't complain) ># <span class="input">nano -w /etc/conf.d/net</span> (Don't skip this DHCP users. iface_eth0="dhcp") ># <span class="input">nano -w /etc/modules.autoload.d/kernel-2.4</span> (Add modules if you had to load any at boot, ie network and scsi) ># <span class="input">nano -w /etc/rc.conf</span> (Follow the directions in this file to configure important basic settings.) ># <span class="input">rc-update add net.eth0 default</span> (This starts your network at boot)(not pcmcia though) >(Optional, use this code if you have more then one network adapter) > # <span class="input">ln -s /etc/init.d/net.eth0 /etc/init.d/net.ethx</span> > # <span class="input">rc-update add net.ethx default</span> >(Optional- Laptop users make sure /etc/init.d/pcmcia looks correct) > # <span class="input">rc-update add pcmcia boot</span> (Loads any PCMCIA cards and starts networking.) >(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 Manual for LILO.) ><table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#bbffbb"><p class="note"> ><b>Note: </b>GRUB counts hard drives from zero rather than "a" and partitions start at zero rather than one. >Only hard drives are counted, not atapi-ide devices. So the syntax is first integer indicates the drive number, >while the second integer indicates the partition number. Once again, please note that the partition numbers >are counted from zero, not from one. Your Linux partition /dev/hda1 is called (hd0,0) under GRUB. >Grub also has TAB completion) ></p></td></tr></table># <span class="input">emerge -k grub</span> ># <span class="input">grub</span> (next we will install GRUB on to your hard drive's MBR (master boot record)) >grub> <span class="input">root (hd0,0)</span> (Tells GRUB the location of your boot boot partition. /dev/hda1 is used here) >grub> <span class="input">setup (hd0)</span> (Install grub onto your MBR) >grub> <span class="input">quit</span> >grub> <span class="input">setup --stage2=/boot/grub/stage2 (hd0)</span> (Optional- ATA RAID setups need the following) ># <span class="input">nano -w /boot/grub/grub.conf</span> (Create the grub.conf file) ></pre></td></tr> ></table> ><a name="doc_chap1_pre5"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> ><tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> > Code listing 1.5: grub.conf</p></td></tr> ><tr><td bgcolor="#ddddff"><pre> ># Use the info from genkernel, subsitute at KV.(hd0,0)=bootpartition /dev/hda3=rootpartition. Actual file should be on seperate lines. >default 0 >timeout 15 >fallback 1 >splashimage=(hd0,0)/grub/splash.xpm.gz >title=My example Gentoo Linux (genkernel) # Below is an example for RAID setups # Below needed only for people who dual-boot >root (hd0,0) title=Windows XP title=Gentoo Linux on RAID >kernel (hd0,0)/kernel-KV root=/dev/hda3 root (hd0,5) root (hd0,0) >initrd (hd0,0)/initrd-KV chainloader (hd0,5)+1 kernel (hd0,0)/boot/bzImage root=/dev/ataraid/dXpY ></pre></td></tr> ></table> ><a name="doc_chap1_pre6"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> ><tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> > Code listing 1.6: Finishing off and installing GUI</p></td></tr> ><tr><td bgcolor="#ddddff"><pre> ># <span class="input">etc-update</span> ># <span class="input">exit; cd /</span> ># <span class="input">umount /mnt/gentoo/boot; umount /mnt/gentoo/proc</span> ># <span class="input">umount /mnt/gentoo</span> ># <span class="input">reboot</span> (Don't forget to remove the bootable CD, and wait for the system to come back up.) > # <span class="input">adsl-setup</span> (Optional, setup for adsl users.) >(Optional- The rest is loading binary packages from CD2 and configuring X) ># <span class="input">mount /dev/cdrom /mnt/cdrom</span> ># <span class="input">cp -a /mnt/cdrom/packages/* /usr/portage/packages/</span> ># <span class="input">emerge -k xfree gnome kde</span> ># <span class="input">/usr/X11R6/bin/xf86config</span> (It is now recommend that you go onto the <a href="http://www.gentoo.org/doc/en/desktop.xml">Desktop Configuration</a> guide for additional info.) ></pre></td></tr> ></table> > ><p> >You can get more information with <a href="http://www.gentoo.org/main/en/docs.xml">Gentoo Documentation</a>. ></p> ><br><pre> > The contents of this document are licensed under the <a href="http://creativecommons.org/licenses/by-sa/1.0">Creative Commons - Attribution / Share Alike</a> license. ></pre> ><br> ></td> ><td width="1%" bgcolor="#dddaec" valign="top"><table border="0" cellspacing="5" cellpadding="0"> ><tr><td><img src="/images/line.gif" alt="line"></td></tr> ><tr><td align="center" class="alttext"> > Updated 27 Sep 2003</td></tr> ><tr><td><img src="/images/line.gif" alt="line"></td></tr> ><tr><td class="alttext">Steven Wagner<br><i>Chief Architect</i><br><br> ></td></tr> ><tr><td><img src="/images/line.gif" alt="line"></td></tr> ><tr><td class="alttext"> ><b>Summary:</b>Â Quick install reference covers all details of the install process in a non-verbose manner. Users should already have prior experience with installing gentoo linux.</td></tr> ><tr><td><img src="/images/line.gif" alt="line"></td></tr> ><tr><td align="center"> ><p class="alttext"> ><b>Donate</b> to support our development efforts. > </p> ><form action="https://www.paypal.com/cgi-bin/webscr" method="post"> ><input type="hidden" name="cmd" value="_xclick"><input type="hidden" name="business" value="drobbins@gentoo.org"><input type="hidden" name="item_name" value="Gentoo Linux Support"><input type="hidden" name="item_number" value="1000"><input type="hidden" name="image_url" value="/images/paypal.png"><input type="hidden" name="no_shipping" value="1"><input type="hidden" name="return" value="http://www.gentoo.org"><input type="hidden" name="cancel_return" value="http://www.gentoo.org"><input type="image" src="http://images.paypal.com/images/x-click-but21.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> ></form> ></td></tr> ><tr><td><img src="/images/line.gif" alt="line"></td></tr> ><tr><td align="center"><a href="http://store.gentoo.org"><img src="/images/store.png" alt="The Gentoo Linux Store" border="0"></a></td></tr> ><tr><td><img src="/images/line.gif" alt="line"></td></tr> ><tr><td align="center"> ><p class="alttext"> > Win4Lin from <b>NeTraverse</b> lets you run Windows applications under Gentoo Linux at native speeds. > </p> ><a href="http://www.netraverse.com/gentoo.htm" target="_top"><img src="/images/netraverse-gentoo.gif" width="125" height="102" alt="Win4Lin at NeTraverse" border="0"></a><p class="alttext"> ><a href="http://www.netraverse.com/gentoo.htm">Purchase Win4Lin "Gentoo Edition"</a> and you'll also get a special Gentoo discount. Every sale also helps support Gentoo Linux development :) > </p> ></td></tr> ><tr><td><img src="/images/line.gif" alt="line"></td></tr> ><tr><td align="center"> ><a href="http://www.qksrv.net/click-477620-5032687" target="_top"><img src="http://www.qksrv.net/image-477620-5032687" width="125" height="125" alt="DDR Memory at Crucial.com" border="0"></a><p class="alttext"> > Purchase RAM from <b>Crucial.com</b> and a percentage of your sale will go towards further Gentoo Linux development. > </p> ></td></tr> ><tr><td><img src="/images/line.gif" alt="line"></td></tr> ><tr><td align="center"> ><a href="http://www.tek.net" target="_top"><img src="/images/tek-gentoo.gif" width="125" height="125" alt="Tek Alchemy" border="0"></a><p class="alttext"> > Tek Alchemy offers dedicated servers and other hosting solutions running Gentoo Linux. > </p> ></td></tr> ><tr><td><img src="/images/line.gif" alt="line"></td></tr> ></table></td> ></tr></table></td></tr> ><tr><td colspan="2" align="right" class="infohead" width="100%" bgcolor="#7a5ada"> > Copyright 2001-2003 Gentoo Technologies, Inc. Questions, Comments, Corrections? Email <a class="highlight" href="mailto:www@gentoo.org">www@gentoo.org</a>. > </td></tr> ></table></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 Install Reference</title> </head> <body style="margin-left:0px;margin-top:0px;" bgcolor="#ffffff"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr><td valign="top" height="125" bgcolor="#45347b"><table cellspacing="0" cellpadding="0" border="0" width="193"> <tr><td class="logobg" valign="top" align="center" height="88"><a href="/"><img border="0" src="/images/gtop-s.jpg" alt="Gentoo Logo"></a></td></tr> <tr><td class="logobg" valign="top" align="center" height="36"><a href="/"><img border="0" src="/images/gbot-s.gif" alt="Gentoo Logo Side"></a></td></tr> </table></td></tr> <tr><td valign="top" align="right" colspan="1" bgcolor="#ffffff"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr> <td width="99%" class="content" valign="top" align="left"> <br><p class="dochead">Gentoo Linux Install Reference</p> <form name="contents" action="http://www.gentoo.org"> <b>Contents</b>: <select name="url" size="1" OnChange="location.href=form.url.options[form.url.selectedIndex].value" style="font-family:Arial,Helvetica, sans-serif; font-size:10"><option value="#doc_chap1">1. Quick Install Reference</option></select> </form> <p class="chaphead"> <span class="chapnum"><a name="doc_chap1">1. </a></span>Quick Install Reference</p> Install ISOs are on the <a href="http://www.gentoo.org/main/en/mirrors.xml">mirrors</a>. Detailed descriptions of different disks are in the <a href="http://store.gentoo.org">store</a>. CD1 is a full bootable Gentoo Linux environment. CD 1 contains everything you need to install Gentoo Linux quickly and without a connection to the Internet. CD2 is optional and has pre-compiled packages such as KDE, GNOME, OpenOffice, Mozilla, Evolution and more. <a name="doc_chap1_pre1"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> Code listing 1.1: Beginning settings</p></td></tr> <tr><td bgcolor="#ddddff"><pre> (Start by booting your Live CD1. At the fancy boot w/ Gentoo Linux logo on it, push <ENTER>.) (Hit F2-F3 if you have a RAID or PCMCIA laptop setup. You would now include dopcmcia or doataraid if you need it.) (You will now see an even fancier boot screen, and then finally the root ("#") prompt on the console. Here we go.) # <span class="input">date</span> (Make sure your time and date is correct. If wrong, set it with <span class="input">date MMDDhhmmCCYY</span> ) # <span class="input">modprobe module_name</span> (Optional- Load any modules, ie, network or scsi) # <span class="input">ping -c 3 www.yahoo.com</span> (Check for network connectivity) (If test fails try the below commands, or read the <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap4">Networking</a> chapter of the full Install Manual.) # <span class="input">net-setup eth0</span> or # <span class="input">dhcpcd eth0</span> <table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#bbffbb"><p class="note"> <b>Note: </b> Now partition your drives. For more information read the <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap6">Disk Partitioning</a> chapter of the full Install Manual. Use fdisk, cfdisk, parted or partimage. Recommended setup is a 64 meg boot volume with ext3, a swap partition twice the size of your available RAM (2 Gig limit per swap file), and the rest for your root partition using ReiserFS. Don't wreck your data. </p></td></tr></table></pre></td></tr> </table> <a name="doc_chap1_pre2"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> Code listing 1.2: File system, and basic system files</p></td></tr> <tr><td bgcolor="#ddddff"><pre> (Initialize your created partitions using the following applicable examples) # <span class="input">mkswap /dev/hdax</span> (swap) # <span class="input">mke2fs /dev/hdax</span> (ext2) # <span class="input">mke2fs -j /dev/hdax</span> (ext3) # <span class="input">mkreiserfs /dev/hdax</span> (reiserfs) # <span class="input">mkfs.xfs /dev/hdax</span> (xfs) # <span class="input">mkfs.jfs /dev/hdax</span> (jfs) (Mount the partitions and unpack files) # <span class="input">swapon /dev/hdax</span> (swap) # <span class="input">mount /dev/hdax /mnt/gentoo</span> (root) # <span class="input">mkdir /mnt/gentoo/boot</span> # <span class="input">mount /dev/hdax /mnt/gentoo/boot</span> (boot) # <span class="input">cd /mnt/gentoo</span> # <span class="input">ls /mnt/cdrom/stages/</span> (to see what is available on your CD) # <span class="input">tar -xvjpf /mnt/cdrom/stages/stage3-*.tar.bz2</span> (replace with whatever stage # you want to using) (or you can download latest tarball online with <span class="input">lynx http://gentoo.oregonstate.edu/releases/x86/1.4/</span> ) # <span class="input">tar -xvjf /mnt/cdrom/snapshots/portage-*.tar.bz2 -C /mnt/gentoo/usr</span> (unpacking the portage tree) # <span class="input">cp -R /mnt/cdrom/distfiles /mnt/gentoo/usr/portage/distfiles</span> (copying files for later use) # <span class="input">cp -a /mnt/cdrom/packages /mnt/gentoo/usr/portage/packages</span> (Optional- Run <span class="input">mirrorselect</span> now to choose mirrors. Automatic mode only works with no firewall.) # <span class="input">cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf</span> # <span class="input">mount -t proc proc /mnt/gentoo/proc</span> # <span class="input">chroot /mnt/gentoo /bin/bash</span> # <span class="input">env-update; source /etc/profile</span> # <span class="input">emerge sync</span> (Optional- Updates portage tree.) (Stage 1 install only)(Stage 1 and 2 installs should use the <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap10">Stage</a> chapter of the full Install Manual.) # <span class="input">nano -w /etc/make.conf</span> # <span class="input">cd /usr/portage</span> # <span class="input">scripts/bootstrap.sh</span> (Bootstrapping, takes long time.) (Now stage 2 only, stage 1 continued) # <span class="input">emerge system</span> (This takes a long time, which is why some prefer starting at stage3) (Now stage 3 starts here) (Optional- use the next 3 lines to backup and update your config files before we start changing things) # <span class="input">cp /etc/make.conf /etc/make.conf.backup</span> # <span class="input">CONFIG_PROTECT="-*" emerge -u system</span> # <span class="input">cp /etc/make.conf.backup /etc/make.conf</span> # <span class="input">ln -sf /usr/share/zoneinfo/path/to/timezonefile /etc/localtime</span> (set timezone file) # <span class="input">nano -w /etc/fstab</span> (now we setup your file system information) </pre></td></tr> </table> <a name="doc_chap1_pre3"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> Code listing 1.3: /etc/fstab</p></td></tr> <tr><td bgcolor="#ddddff"><pre> # <fs> <mountpoint> <type> <opts> <dump/pass> /dev/hdax /boot ext3 noauto,noatime 1 2 /dev/hdax / reiserfs noatime 0 1 /dev/hdax none swap sw 0 0 /dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,user 0 0 none /proc proc defaults 0 0 none /dev/shm tmpfs defaults 0 0 /dev/hdax /mnt/dosc ntfs ro,noatime,umask=0222 0 0 </pre></td></tr> </table> <a name="doc_chap1_pre4"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> Code listing 1.4: Kernel and customizing system</p></td></tr> <tr><td bgcolor="#ddddff"><pre> # <span class="input">emerge -k sys-kernel/gentoo-sources</span> (Here is the <a href="http://www.gentoo.org/doc/en/gentoo-kernel.xml">list of</a> kernels.) # <span class="input">emerge -k genkernel</span> (for genkernel) # <span class="input">genkernel</span> (<span class="input">--config</span> for kernel options. Take note of kernel and initrd names when it finishes. You will need it later.) (OR manual kernel build, also see the <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap16">Kernel</a> chapter of the full Install Manual.) # <span class="input">cd /usr/src/linux</span> # <span class="input">make menuconfig</span> (include VM fs, /proc fs, /dev fs, /dev fs auto mount at boot) # <span class="input">make dep && make clean bzImage modules modules_install</span> # <span class="input">cp /usr/src/linux/arch/i386/boot/bzImage /boot</span> # <span class="input">emerge -k app-admin/syslog-ng </span> (This is your system logger. You can also use sysklogd, metalog, or msyslog. See <a href="http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap16">Full</a> instructions.) # <span class="input">rc-update add syslog-ng default</span> (rc-update configures what daemons load at boot) # <span class="input">emerge -k sys-apps/vcron</span> (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.) # <span class="input">rc-update add vcron default</span> # <span class="input">emerge -k hotplug</span> (This detects any hardware that initrd does not detect) # <span class="input">rc-update add hotplug default</span> (Optional- Get packages for file system tools and hardware) # <span class="input">emerge -k reiserfsprogs</span> (or xfsprogs, jfsutils, lvm-user) # <span class="input">emerge -k nvidia-kernel</span> (or pcmcia-cs, emu10k1, nforce-net, nforce-audio, e100, e1000, ati-drivers, rp-pppoe # <span class="input">VIDEO_CARDS="yourcard" emerge xfree-drm</span> (for ATI Radeon up to 9200, Rage128, Matrox, Voodoo and other cards) # <span class="input">passwd</span> (sets root password) # <span class="input">useradd your_user -m -G users,wheel,audio -s /bin/bash</span> # <span class="input">passwd your_user</span> # <span class="input">echo mymachine > /etc/hostname</span> # <span class="input">echo mydomain.com > /etc/dnsdomainname</span> (or skip this) # <span class="input">nano -w /etc/hosts</span> (Add your actual hostname to /etc/hosts so GNOME doesn't complain) # <span class="input">nano -w /etc/conf.d/net</span> (Don't skip this DHCP users. iface_eth0="dhcp") # <span class="input">nano -w /etc/modules.autoload.d/kernel-2.4</span> (Add modules if you had to load any at boot, ie network and scsi) # <span class="input">nano -w /etc/rc.conf</span> (Follow the directions in this file to configure important basic settings.) # <span class="input">rc-update add net.eth0 default</span> (This starts your network at boot)(not pcmcia though) (Optional, use this code if you have more then one network adapter) # <span class="input">ln -s /etc/init.d/net.eth0 /etc/init.d/net.ethx</span> # <span class="input">rc-update add net.ethx default</span> (Optional- Laptop users make sure /etc/init.d/pcmcia looks correct) # <span class="input">rc-update add pcmcia boot</span> (Loads any PCMCIA cards and starts networking.) (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 Manual for LILO.) <table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#bbffbb"><p class="note"> <b>Note: </b>GRUB counts hard drives from zero rather than "a" and partitions start at zero rather than one. Only hard drives are counted, not atapi-ide devices. So the syntax is first integer indicates the drive number, while the second integer indicates the partition number. Once again, please note that the partition numbers are counted from zero, not from one. Your Linux partition /dev/hda1 is called (hd0,0) under GRUB. Grub also has TAB completion) </p></td></tr></table># <span class="input">emerge -k grub</span> # <span class="input">grub</span> (next we will install GRUB on to your hard drive's MBR (master boot record)) grub> <span class="input">root (hd0,0)</span> (Tells GRUB the location of your boot boot partition. /dev/hda1 is used here) grub> <span class="input">setup (hd0)</span> (Install grub onto your MBR) grub> <span class="input">quit</span> grub> <span class="input">setup --stage2=/boot/grub/stage2 (hd0)</span> (Optional- ATA RAID setups need the following) # <span class="input">nano -w /boot/grub/grub.conf</span> (Create the grub.conf file) </pre></td></tr> </table> <a name="doc_chap1_pre5"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> Code listing 1.5: grub.conf</p></td></tr> <tr><td bgcolor="#ddddff"><pre> # Use the info from genkernel, subsitute at KV.(hd0,0)=bootpartition /dev/hda3=rootpartition. Actual file should be on seperate lines. default 0 timeout 15 fallback 1 splashimage=(hd0,0)/grub/splash.xpm.gz title=My example Gentoo Linux (genkernel) # Below is an example for RAID setups # Below needed only for people who dual-boot root (hd0,0) title=Windows XP title=Gentoo Linux on RAID kernel (hd0,0)/kernel-KV root=/dev/hda3 root (hd0,5) root (hd0,0) initrd (hd0,0)/initrd-KV chainloader (hd0,5)+1 kernel (hd0,0)/boot/bzImage root=/dev/ataraid/dXpY </pre></td></tr> </table> <a name="doc_chap1_pre6"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> Code listing 1.6: Finishing off and installing GUI</p></td></tr> <tr><td bgcolor="#ddddff"><pre> # <span class="input">etc-update</span> # <span class="input">exit; cd /</span> # <span class="input">umount /mnt/gentoo/boot; umount /mnt/gentoo/proc</span> # <span class="input">umount /mnt/gentoo</span> # <span class="input">reboot</span> (Don't forget to remove the bootable CD, and wait for the system to come back up.) # <span class="input">adsl-setup</span> (Optional, setup for adsl users.) (Optional- The rest is loading binary packages from CD2 and configuring X) # <span class="input">mount /dev/cdrom /mnt/cdrom</span> # <span class="input">cp -a /mnt/cdrom/packages/* /usr/portage/packages/</span> # <span class="input">emerge -k xfree gnome kde</span> # <span class="input">/usr/X11R6/bin/xf86config</span> (It is now recommend that you go onto the <a href="http://www.gentoo.org/doc/en/desktop.xml">Desktop Configuration</a> guide for additional info.) </pre></td></tr> </table> <p> You can get more information with <a href="http://www.gentoo.org/main/en/docs.xml">Gentoo Documentation</a>. </p> <br><pre> The contents of this document are licensed under the <a href="http://creativecommons.org/licenses/by-sa/1.0">Creative Commons - Attribution / Share Alike</a> license. </pre> <br> </td> <td width="1%" bgcolor="#dddaec" valign="top"><table border="0" cellspacing="5" cellpadding="0"> <tr><td><img src="/images/line.gif" alt="line"></td></tr> <tr><td align="center" class="alttext"> Updated 27 Sep 2003</td></tr> <tr><td><img src="/images/line.gif" alt="line"></td></tr> <tr><td class="alttext">Steven Wagner<br><i>Chief Architect</i><br><br> </td></tr> <tr><td><img src="/images/line.gif" alt="line"></td></tr> <tr><td class="alttext"> <b>Summary:</b>Â Quick install reference covers all details of the install process in a non-verbose manner. Users should already have prior experience with installing gentoo linux.</td></tr> <tr><td><img src="/images/line.gif" alt="line"></td></tr> <tr><td align="center"> <p class="alttext"> <b>Donate</b> to support our development efforts. </p> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"><input type="hidden" name="business" value="drobbins@gentoo.org"><input type="hidden" name="item_name" value="Gentoo Linux Support"><input type="hidden" name="item_number" value="1000"><input type="hidden" name="image_url" value="/images/paypal.png"><input type="hidden" name="no_shipping" value="1"><input type="hidden" name="return" value="http://www.gentoo.org"><input type="hidden" name="cancel_return" value="http://www.gentoo.org"><input type="image" src="http://images.paypal.com/images/x-click-but21.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> </td></tr> <tr><td><img src="/images/line.gif" alt="line"></td></tr> <tr><td align="center"><a href="http://store.gentoo.org"><img src="/images/store.png" alt="The Gentoo Linux Store" border="0"></a></td></tr> <tr><td><img src="/images/line.gif" alt="line"></td></tr> <tr><td align="center"> <p class="alttext"> Win4Lin from <b>NeTraverse</b> lets you run Windows applications under Gentoo Linux at native speeds. </p> <a href="http://www.netraverse.com/gentoo.htm" target="_top"><img src="/images/netraverse-gentoo.gif" width="125" height="102" alt="Win4Lin at NeTraverse" border="0"></a><p class="alttext"> <a href="http://www.netraverse.com/gentoo.htm">Purchase Win4Lin "Gentoo Edition"</a> and you'll also get a special Gentoo discount. Every sale also helps support Gentoo Linux development :) </p> </td></tr> <tr><td><img src="/images/line.gif" alt="line"></td></tr> <tr><td align="center"> <a href="http://www.qksrv.net/click-477620-5032687" target="_top"><img src="http://www.qksrv.net/image-477620-5032687" width="125" height="125" alt="DDR Memory at Crucial.com" border="0"></a><p class="alttext"> Purchase RAM from <b>Crucial.com</b> and a percentage of your sale will go towards further Gentoo Linux development. </p> </td></tr> <tr><td><img src="/images/line.gif" alt="line"></td></tr> <tr><td align="center"> <a href="http://www.tek.net" target="_top"><img src="/images/tek-gentoo.gif" width="125" height="125" alt="Tek Alchemy" border="0"></a><p class="alttext"> Tek Alchemy offers dedicated servers and other hosting solutions running Gentoo Linux. </p> </td></tr> <tr><td><img src="/images/line.gif" alt="line"></td></tr> </table></td> </tr></table></td></tr> <tr><td colspan="2" align="right" class="infohead" width="100%" bgcolor="#7a5ada"> Copyright 2001-2003 Gentoo Technologies, Inc. Questions, Comments, Corrections? Email <a class="highlight" href="mailto:www@gentoo.org">www@gentoo.org</a>. </td></tr> </table></body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 29649
:
18350
|
18407
|
18408
|
18657
|
18658
|
18748
|
19001