1 | <?xml version='1.0' encoding="UTF-8"?> |
1 | <?xml version='1.0' encoding="UTF-8"?> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall.xml,v 1.9 2004/03/06 17:23:24 swift Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall.xml,v 1.38 2005/07/05 15:32:12 swift Exp $ --> |
3 | |
3 | |
4 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
4 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
5 | |
5 | |
6 | <guide link="/doc/en/quickinstall.xml"> |
6 | <guide link="/doc/en/gentoo-x86-quickinstall.xml"> |
7 | <title>Gentoo Linux Install Reference</title> |
7 | <title>Gentoo Linux x86 Quick Install Guide</title> |
8 | <author title="Author">Steven Wagner</author> |
8 | |
9 | <author title="Editor"> |
9 | <author title="Author"> |
10 | <mail link="swift@gentoo.org">Sven Vermeulen</mail> |
10 | <mail link="swift@gentoo.org">Sven Vermeulen</mail> |
11 | </author> |
11 | </author> |
|
|
12 | <author title="Author">Steven Wagner</author> |
12 | |
13 | |
13 | <abstract> |
14 | <abstract> |
14 | The Quick install reference covers all details of the install process in a |
15 | The Quick install guide covers the Gentoo install process in a |
15 | non-verbose manner. Users should already have prior experience with |
16 | non-verbose manner. Users should already have prior experience with |
16 | installing Gentoo Linux if they want to follow this guide. |
17 | installing Gentoo Linux if they want to follow this guide. |
17 | </abstract> |
18 | </abstract> |
18 | |
19 | |
19 | <license/> |
20 | <license/> |
20 | |
21 | |
21 | <version>1.5</version> |
22 | <version>2.0</version> |
22 | <date>March 4th, 2004</date> |
23 | <date>2005-07-05</date> |
23 | |
24 | |
24 | <chapter> |
25 | <chapter> |
25 | <title>Quick Install Reference</title> |
26 | <title>Quick Install Guide</title> |
|
|
27 | <section> |
|
|
28 | <title>Installation Media</title> |
|
|
29 | <body> |
|
|
30 | |
|
|
31 | <p> |
|
|
32 | Download a CD from one of our <uri link="/main/en/mirrors.xml">mirrors</uri>. |
|
|
33 | You can find the ISOs in |
|
|
34 | <path>releases/<architecture>/<release>/installcd</path>. The |
|
|
35 | <e>minimal</e> installation cd is only useful for internet-based installations; |
|
|
36 | with the <e>universal</e> installation cd you can perform a networkless |
|
|
37 | installation as well. |
|
|
38 | </p> |
|
|
39 | |
|
|
40 | <p> |
|
|
41 | <uri link="/doc/en/faq.xml#isoburning">Burn</uri> the CD and boot it. Press |
|
|
42 | <c>F2</c> at the boot screen to find out what boot options exist. Once booted, |
|
|
43 | you need to start the <c>pcmcia</c> init script if you need PCMCIA support. |
|
|
44 | </p> |
|
|
45 | |
|
|
46 | <p> |
|
|
47 | The installation cds allow you to start an <c>sshd</c> server, add additional |
|
|
48 | users, run <c>irssi</c> (a command-line chat client) and surf the web using |
|
|
49 | <c>lynx</c> or <c>links2</c>. |
|
|
50 | </p> |
|
|
51 | |
|
|
52 | </body> |
26 | <section> |
53 | </section> |
|
|
54 | <section> |
|
|
55 | <title>Network Configuration</title> |
|
|
56 | <body> |
|
|
57 | |
|
|
58 | <p> |
|
|
59 | If your network does not work already, you can use <c>net-setup</c> to configure |
|
|
60 | your network. You might need to load support for your network card using |
|
|
61 | <c>modprobe</c> prior to the configuration. If you have ADSL, use |
|
|
62 | <c>adsl-setup</c> and <c>adsl-start</c>. For PPTP support, first edit |
|
|
63 | <path>/etc/ppp/chap-secrets</path> and <path>/etc/ppp/options.pptp</path> and |
|
|
64 | then use <c>pptp <server ip></c>. |
|
|
65 | </p> |
|
|
66 | |
|
|
67 | <p> |
|
|
68 | For wireless access, use <c>iwconfig</c> to set the wireless parameters and then |
|
|
69 | use eiter <c>net-setup</c> again or run <c>ifconfig</c>, <c>dhcpcd</c> and/or |
|
|
70 | <c>route</c> manually. |
|
|
71 | </p> |
|
|
72 | |
|
|
73 | <p> |
|
|
74 | If you are behind a proxy, do not forget to initialise your system using |
|
|
75 | <c>export http_proxy</c>, <c>ftp_proxy</c> and <c>RSYNC_PROXY</c>. |
|
|
76 | </p> |
|
|
77 | |
27 | <body> |
78 | </body> |
|
|
79 | </section> |
|
|
80 | <section> |
|
|
81 | <title>Preparing the Disks</title> |
|
|
82 | <body> |
28 | |
83 | |
29 | <p> |
|
|
30 | The installation ISOs are on the <uri link= |
|
|
31 | "http://www.gentoo.org/main/en/mirrors.xml">Gentoo |
|
|
32 | Mirrors</uri>. Detailed descriptions of the different CDs are |
|
|
33 | available in the <uri link="http://store.gentoo.org">Gentoo |
|
|
34 | Store</uri>. CD 1 contains everything you need to install Gentoo Linux |
|
|
35 | quickly and without a connection to the Internet. CD 2 is optional and |
|
|
36 | contains pre-compiled packages such as KDE, GNOME, OpenOffice, |
|
|
37 | Mozilla, Evolution and more. |
|
|
38 | </p> |
84 | <p> |
39 | |
85 | Use <c>fdisk</c> or <c>cfdisk</c> to create your partition layout. You need at |
|
|
86 | least a swap partition (type 82) and one Linux partition (type 83). |
40 | <p> |
87 | </p> |
41 | Boot from the first Gentoo CD. Press <F1> and/or <F2> to |
88 | |
42 | see what boot options are available. Press <ENTER> at the bootscreen to |
|
|
43 | continue with the default kernel. You'll eventually receive a prompt. |
|
|
44 | </p> |
89 | <p> |
45 | |
90 | Use <c>mke2fs</c>, <c>mke2fs -j</c>, <c>mkreiserfs</c>, <c>mkfs.xfs</c> and |
46 | <pre caption="Beginning settings"> |
91 | <c>mkfs.jfs</c> to create file systems on your Linux partitions. Initialise your |
47 | # <i>date</i> (Make sure your time and date is correct. If wrong, set it with <i>date MMDDhhmmCCYY</i> ) |
92 | swap partition using <c>mkswap</c> and <c>swapon</c>. |
48 | # <i>modprobe module_name</i> (Optional - Load any necessary modules) |
|
|
49 | # <i>net-setup eth0</i> (Configure the network) |
|
|
50 | # <i>fdisk /dev/hda</i> (Partition your drive) |
|
|
51 | </pre> |
|
|
52 | |
|
|
53 | <p> |
93 | </p> |
54 | The recommended setup is a 64 meg boot volume with ext2, a swap partition |
94 | |
55 | twice the size of your available RAM, and the rest for your root partition |
|
|
56 | using ReiserFS. |
|
|
57 | </p> |
95 | <p> |
58 | |
96 | Mount the freshly created file systems on <path>/mnt/gentoo</path>. Create |
|
|
97 | directories for the other mount points (like <path>/mnt/gentoo/boot</path>) if |
|
|
98 | you need them. |
59 | <p> |
99 | </p> |
60 | Initialise your partitions using <c>mke2fs</c> (Ext2), <c>mke2fs |
100 | |
61 | -j</c> (Ext3), <c>mkreiserfs</c> (ReiserFS), <c>mkfs.xfs</c> (XFS), |
101 | </body> |
62 | <c>mkfs.jfs</c> (JFS) and <c>mkswap</c> (swap partition). For instance: |
102 | </section> |
63 | <c>mke2fs -j /dev/hda3</c>. |
103 | <section> |
|
|
104 | <title>Setting Up The Stage</title> |
|
|
105 | <body> |
|
|
106 | |
64 | </p> |
107 | <p> |
65 | |
108 | First make sure your date is set correctly using <c>date MMDDhhmmYYYY</c>. Next, |
|
|
109 | download a stage from one of our <uri link="/main/en/mirrors.xml">mirrors</uri> |
|
|
110 | or use the one available on the installation CD |
|
|
111 | (<path>/mnt/cdrom/stages</path>). Go to <path>/mnt/gentoo</path> and unpack the |
|
|
112 | stage using <c>tar -xvjpf <stage tarball></c>. |
66 | <p> |
113 | </p> |
67 | Continue by mounting the partitions and extracting the appropriate stage |
114 | |
68 | file. |
|
|
69 | </p> |
115 | <p> |
70 | |
116 | Install a Portage snapshot if you are performing a networkless installation: go |
71 | <pre caption="Preparing the Installation"> |
117 | to <path>/mnt/gentoo/usr</path> and run |
72 | (Activate the swap partition) # <i>swapon /dev/hdax</i> |
118 | <c>tar -xvjf /mnt/cdrom/snapshots/<snapshot></c>. Other users |
73 | (Mount the root partition) # <i>mount /dev/hdax /mnt/gentoo</i> |
119 | can download a portage snapshot and install it likewise. |
74 | (Create the boot mountpoint) # <i>mkdir /mnt/gentoo/boot</i> |
|
|
75 | (Mount the boot partition) # <i>mount /dev/hdax /mnt/gentoo/boot</i> |
|
|
76 | (Go to the mountpoint) # <i>cd /mnt/gentoo</i> |
|
|
77 | (Extract a stage tarball...) # <i>tar -xvjpf /mnt/cdrom/stages/stage?-*.tar.bz2</i> |
|
|
78 | (<comment>or</comment> download the latest tarball...) # <i>lynx http://www.gentoo.org/main/en/mirrors.xml</i> |
|
|
79 | ( ... and extract) # <i>tar -xvjpf stage*</i> |
|
|
80 | (Optional: unpack a portage tree) # <i>tar -xvjf /mnt/cdrom/snapshots/portage-*.tar.bz2 -C /mnt/gentoo/usr</i> |
|
|
81 | (Optional: copy over distfiles) # <i>cp -R /mnt/cdrom/distfiles /mnt/gentoo/usr/portage/distfiles</i> |
|
|
82 | (Select a mirror) # <i>mirrorselect -a -s4 -o >> /mnt/gentoo/etc/make.conf</i> |
|
|
83 | (Copy over nameserver information) # <i>cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf</i> |
|
|
84 | (Mount the proc filesystem) # <i>mount -t proc none /mnt/gentoo/proc</i> |
|
|
85 | (Chroot into the new environment) # <i>chroot /mnt/gentoo /bin/bash</i> |
|
|
86 | (Load the necessary variables) # <i>env-update; source /etc/profile</i> |
|
|
87 | (Network-only, non-GRP: update Portage) # <i>emerge sync</i> |
|
|
88 | </pre> |
|
|
89 | |
|
|
90 | <p> |
120 | </p> |
91 | Now we install Gentoo: |
121 | |
92 | </p> |
122 | <p> |
93 | |
123 | Edit <path>/mnt/gentoo/etc/make.conf</path> to suit your needs (USE flag, CFLAGS |
94 | <pre caption = "Installing Gentoo"> |
124 | and CXXFLAGS). You can use the <c>nano</c> editor for this. |
95 | (Change USE, CFLAGS and CXXFLAGS. Stage1 can also change CHOST) # <i>nano -w /etc/make.conf</i> |
|
|
96 | (Stage1 only: bootstrap system) # <i>cd /usr/portage; scripts/bootstrap.sh</i> |
|
|
97 | (Stage1, Stage2 only: install base system) # <i>emerge system</i> |
|
|
98 | </pre> |
|
|
99 | |
|
|
100 | <p> |
125 | </p> |
101 | Next we set up the necessary information: |
126 | |
|
|
127 | </body> |
|
|
128 | </section> |
|
|
129 | <section> |
|
|
130 | <title>Installing the Gentoo Base System</title> |
|
|
131 | <body> |
|
|
132 | |
102 | </p> |
133 | <p> |
103 | |
134 | Mount the <path>/proc</path> file system first and then chroot into your Gentoo |
104 | <pre caption = "Setting up Configuration Files"> |
135 | environment. |
105 | (Set timezone information) # <i>ln -sf /usr/share/zoneinfo/<comment><path to time zone file></comment> /etc/localtime</i> |
|
|
106 | (Edit fstab file) # <i>nano -w /etc/fstab</i> |
|
|
107 | </pre> |
|
|
108 | |
|
|
109 | <p> |
136 | </p> |
110 | Use the following as a <e>template</e> (don't copy verbatim) for |
137 | |
111 | <path>/etc/fstab</path>: |
138 | <pre caption="Preparing and chrooting"> |
|
|
139 | # <i>mount -t proc none /mnt/gentoo/proc</i> |
|
|
140 | # <i>chroot /mnt/gentoo /bin/bash</i> |
|
|
141 | # <i>env-update</i> && <i>source /etc/profile</i> |
|
|
142 | </pre> |
|
|
143 | |
112 | </p> |
144 | <p> |
|
|
145 | If you are not running a networkless installation, issue <c>emerge --sync</c> to |
|
|
146 | update your Portage tree. |
|
|
147 | </p> |
113 | |
148 | |
|
|
149 | <p> |
|
|
150 | Next, make sure <path>/etc/make.profile</path> points to the right profile. The |
|
|
151 | default one should suffice for most users; subprofiles are available for |
|
|
152 | different kernels (like <path>2.4/</path> for 2.4-kernel based profiles). Change |
|
|
153 | the profile using <c>ln -sf</c>. |
|
|
154 | </p> |
|
|
155 | |
|
|
156 | <ul> |
|
|
157 | <li> |
|
|
158 | Bootstrapping (not available for networkless installations) happens using |
|
|
159 | <c>scripts/bootstrap.sh</c> in the <path>/usr/portage</path> directory. |
|
|
160 | </li> |
|
|
161 | <li> |
|
|
162 | System installation (not available for networkless installations) happens |
|
|
163 | using <c>emerge -e system</c> (or <c>-N</c> if you haven't |
|
|
164 | altered the default CFLAGS/CXXFLAGS). |
|
|
165 | </li> |
|
|
166 | </ul> |
|
|
167 | |
|
|
168 | <p> |
|
|
169 | Stage3 users (except those performing a networkless installation) need to |
|
|
170 | upgrade the baselayout package: |
|
|
171 | </p> |
|
|
172 | |
|
|
173 | <pre caption="Upgrading baselayout"> |
|
|
174 | # <i>CONFIG_PROTECT="-*" emerge baselayout</i> |
|
|
175 | </pre> |
|
|
176 | |
|
|
177 | </body> |
|
|
178 | </section> |
|
|
179 | <section> |
|
|
180 | <title>Kernel Configuration</title> |
|
|
181 | <body> |
|
|
182 | |
|
|
183 | <p> |
|
|
184 | Set your time zone information by changing the <path>/etc/localtime</path> |
|
|
185 | symbolic link to the correct location in <path>/usr/share/zoneinfo</path> using |
|
|
186 | <c>ln -sf</c>. |
|
|
187 | </p> |
|
|
188 | |
|
|
189 | <p> |
|
|
190 | Install a kernel source (<c>gentoo-sources</c> and <c>vanilla-sources</c> are |
|
|
191 | available for networkless installations) and configure it using <c>make |
|
|
192 | menuconfig</c> followed by <c>make &&make modules_install</c> |
|
|
193 | inside <path>/usr/src/linux</path>. Copy the <path>arch/i386/bzImage</path> file |
|
|
194 | over to <path>/boot</path>. You can also <c>emerge genkernel</c> |
|
|
195 | and use <c>genkernel --udev all</c>. |
|
|
196 | </p> |
|
|
197 | |
|
|
198 | <p> |
|
|
199 | Genkernel users will need to <c>emerge coldplug</c> and |
|
|
200 | <c>rc-update add coldplug default</c>. |
|
|
201 | </p> |
|
|
202 | |
|
|
203 | </body> |
|
|
204 | </section> |
|
|
205 | <section> |
|
|
206 | <title>Configuring the System</title> |
|
|
207 | <body> |
|
|
208 | |
|
|
209 | <p> |
|
|
210 | Edit your <path>/etc/fstab</path>; an example follows: |
|
|
211 | </p> |
|
|
212 | |
114 | <pre caption="/etc/fstab"> |
213 | <pre caption="Example fstab"> |
115 | # <fs> <mountpoint> <type> <opts> <dump/pass> |
214 | /dev/hda1 /boot ext2 defaults,noatime 1 2 |
116 | /dev/hdax /boot ext2 noauto,noatime 1 2 |
|
|
117 | /dev/hdax none swap sw 0 0 |
215 | /dev/hda2 none swap sw 0 0 |
118 | /dev/hdax / reiserfs noatime 0 1 |
216 | /dev/hda3 / ext3 noatime 0 1 |
|
|
217 | none /proc proc defaults 0 0 |
|
|
218 | none /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
119 | /dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0 |
219 | /dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0 |
120 | none /proc proc defaults 0 0 |
|
|
121 | none /dev/shm tmpfs defaults 0 0 |
|
|
122 | </pre> |
220 | </pre> |
123 | |
221 | |
124 | <p> |
|
|
125 | Continue by installing the Linux kernel: |
|
|
126 | </p> |
222 | <p> |
127 | |
223 | Edit <path>/etc/conf.d/hostname</path> and <path>/etc/conf.d/domainname</path>, |
128 | <pre caption="Installing the Kernel"> |
224 | run <c>rc-update add domainname default</c> and edit |
129 | (Install the kernel sources) # <i>emerge <comment><kernel-package-here></comment></i> |
225 | <path>/etc/conf.d/net</path> to configure your network. Add the <c>net.eth0</c> |
130 | (Configure your kernel using genkernel...) # <i>emerge genkernel; genkernel --menuconfig all</i> |
226 | initscript to the default runlevel. If you have multiple NICs, symlink them |
131 | (<comment>or</comment> (1) manually build your kernel) # <i>cd /usr/src/linux; make menuconfig;</i> |
227 | to the <c>net.eth0</c> init script and add them to the default runlevel as well. |
132 | ( (2) Include VM fs, /proc fs, /dev fs, /dev fs auto mount at boot) |
|
|
133 | ( (3) Compile your kernel) # <i>make dep && make clean bzImage modules modules_install</i> |
|
|
134 | ( (4) Copy over the kernel) # <i>cp arch/i386/boot/bzImage /boot; cp System.map /boot</i> |
|
|
135 | </pre> |
|
|
136 | |
|
|
137 | <p> |
228 | </p> |
138 | Now install other tools you might want: |
229 | |
139 | </p> |
230 | <p> |
140 | |
231 | Edit <path>/etc/hosts</path>; examples are given below: |
141 | <pre caption = "Install important system tools"> |
|
|
142 | (Install system logger; choice: sysklogd, metalog, msyslog, syslog-ng) # <i>emerge syslog-ng </i> |
|
|
143 | (Have the systemlogger automatically started at boot) # <i>rc-update add syslog-ng default</i> |
|
|
144 | (Install cron daemon; choice: vixie-cron, dcron, fcron) # <i>emerge vixie-cron</i> |
|
|
145 | (Have the cron daemon automatically started at boot) # <i>rc-update add vixie-cron default</i> |
|
|
146 | (genkernel users only: install hotplug) # <i>emerge hotplug</i> |
|
|
147 | (genkernel users only: have hotplug automatically started at boot) # <i>rc-update add hotplug default</i> |
|
|
148 | (ALSA users only: install alsa-utils) # <i>emerge alsa-utils</i> |
|
|
149 | (ALSA users only: have alsa-utils automatically started at boot ) # <i>rc-update add alsasound default</i> |
|
|
150 | (Non-ext2,ext3 users only; choice: reiserfsprogs, xfsprogs, jfsutils) # <i>emerge reiserfsprogs</i> |
|
|
151 | (Domain name init script) # <i>rc-update add domainname default</i> |
|
|
152 | </pre> |
|
|
153 | |
|
|
154 | <p> |
232 | </p> |
155 | If you need specialised kernel ebuilds, now is a good time to install them: |
233 | |
|
|
234 | <pre caption="Example /etc/hosts"> |
|
|
235 | <comment>(For static IPs)</comment> |
|
|
236 | 127.0.0.1 localhost |
|
|
237 | 192.168.0.5 jenny.homenetwork jenny |
|
|
238 | 192.168.0.6 benny.homenetwork benny |
|
|
239 | 192.168.0.7 tux.homenetwork tux |
|
|
240 | |
|
|
241 | <comment>(For a dynamic IP)</comment> |
|
|
242 | 127.0.0.1 localhost.homenetwork tux localhost |
|
|
243 | </pre> |
|
|
244 | |
156 | </p> |
245 | <p> |
157 | |
246 | Emerge <c>pcmcia-cs</c> and add it to the default runlevel if you need it. |
158 | <pre caption = "Install Specialised Kernel Ebuilds"> |
|
|
159 | # <i>emerge pcmcia-cs</i> (or <i>nforce-net</i>, <i>nforce-audio</i>, <i>e100</i>, <i>e1000</i>, <i>ati-drivers</i>, <i>rp-pppoe</i>) |
|
|
160 | # <i>VIDEO_CARDS="yourcard" emerge xfree-drm</i> (for ATI Radeon up to 9200, Rage128, Matrox, Voodoo and other cards) |
|
|
161 | </pre> |
|
|
162 | |
|
|
163 | <p> |
247 | </p> |
164 | Finalise the settings for your Gentoo system: |
248 | |
165 | </p> |
249 | <p> |
166 | |
250 | Set the root password using <c>passwd</c>. |
167 | <pre caption = "Finalise the Configuration Settings"> |
|
|
168 | (Set root password) # <i>passwd</i> |
|
|
169 | (Create a user) # <i>useradd your_user -m -G users,wheel,audio -s /bin/bash</i> |
|
|
170 | (Set password for that user) # <i>passwd your_user</i> |
|
|
171 | (Set the system hostname) # <i>echo mymachine > /etc/hostname</i> |
|
|
172 | (Set the system domainname) # <i>echo mydomain.com > /etc/dnsdomainname</i> |
|
|
173 | (Set the hostsfile, ex:"127.0.0.1 localhost mymachine") # <i>nano -w /etc/hosts</i> |
|
|
174 | (Configure basic system settings; follow comments) # <i>nano -w /etc/rc.conf</i> |
|
|
175 | </pre> |
|
|
176 | |
|
|
177 | <pre caption = "Set up Networking"> |
|
|
178 | (Setup networking; dhcp-users should set iface_eth0="dhcp") # <i>nano -w /etc/conf.d/net</i> |
|
|
179 | (List modules to be loaded at startup) # <i>nano -w /etc/modules.autoload.d/kernel-<comment><version></comment></i> |
|
|
180 | (Non-PCMCIA only: start networking automatically at boot) # <i>rc-update add net.eth0 default</i> |
|
|
181 | (Only if you have multiple network interfaces:) |
|
|
182 | (1) Create initscripts for each interface) # <i>ln -s /etc/init.d/net.eth0 /etc/init.d/net.ethx</i> |
|
|
183 | (2) Automatically start at boot if no PCMCIA) # <i>rc-update add net.ethx default</i> |
|
|
184 | (PCMCIA only: verify /etc/conf.d/pcmcia and load PCMCIA at boot) # <i>rc-update add pcmcia boot</i> |
|
|
185 | </pre> |
|
|
186 | |
|
|
187 | <p> |
251 | </p> |
188 | Now install a bootloader. |
252 | |
189 | </p> |
253 | <p> |
|
|
254 | Set the necessary system configuration in <path>/etc/rc.conf</path>, |
|
|
255 | <path>/etc/conf.d/rc</path>, <path>/etc/conf.d/keymaps</path>, |
|
|
256 | <path>/etc/conf.d/clock</path>. |
|
|
257 | </p> |
190 | |
258 | |
191 | <pre caption="Install and configure GRUB"> |
259 | </body> |
192 | # <i>emerge grub</i> |
260 | </section> |
193 | # <i>grub</i> |
261 | <section> |
194 | grub> <i>root (hd0,0)</i> |
262 | <title>Installing System Tools</title> |
195 | grub> <i>setup (hd0)</i> |
263 | <body> |
196 | grub> <i>quit</i> |
264 | |
197 | # <i>nano -w /boot/grub/grub.conf</i> |
265 | <p> |
|
|
266 | 2.4 kernel users need to <c>emerge --unmerge udev</c> and |
|
|
267 | <c>emerge devfsd</c>. |
|
|
268 | </p> |
|
|
269 | |
|
|
270 | <p> |
|
|
271 | Install a system logger like <c>syslog-ng</c> and add it to the default |
|
|
272 | run level. Do the same for a cron daemon like <c>vixie-cron</c> (optional). |
|
|
273 | </p> |
|
|
274 | |
|
|
275 | <p> |
|
|
276 | Install the necessary file system tools (<c>xfsprogs</c>, <c>reiserfsprogs</c> |
|
|
277 | or <c>jfsutils</c>) and networking tools (<c>dhcpcd</c> or <c>rp-pppoe</c>). |
|
|
278 | </p> |
|
|
279 | |
|
|
280 | </body> |
|
|
281 | </section> |
|
|
282 | <section> |
|
|
283 | <title>Configuring the Bootloader</title> |
|
|
284 | <body> |
|
|
285 | |
|
|
286 | <p> |
|
|
287 | Emerge <c>grub</c> or <c>lilo</c>. Edit <path>/boot/grub/grub.conf</path> or |
|
|
288 | <path>/etc/lilo.conf</path> to your likings. Below you will find an example for |
|
|
289 | each. |
|
|
290 | </p> |
|
|
291 | |
|
|
292 | <pre caption="Example grub.conf"> |
198 | default 0 |
293 | default 0 |
199 | timeout 15 |
294 | timeout 30 |
200 | splashimage=(hd0,0)/grub/splash.xpm.gz |
295 | splashimage=(hd0,0)/grub/splash.xpm.gz |
201 | |
296 | |
202 | title=Gentoo Linux |
|
|
203 | root (hd0,0) |
|
|
204 | <comment># genkernel users:</comment> |
297 | <comment># genkernel users</comment> |
205 | kernel /kernel-<comment><kernel version></comment> root=/dev/ram0 init=/linuxrc real_root=/dev/hda3 |
298 | title=Gentoo Linux 2.6.11-r3 |
206 | initrd /initrd-<comment><kernel version></comment> |
299 | root (hd0,0) |
|
|
300 | kernel /kernel-2.6.11-gentoo-r3 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev |
|
|
301 | initrd /initrd-2.6.11-gentoo-r3 |
|
|
302 | |
207 | <comment># non-genkernel users:</comment> |
303 | <comment># non-genkernel users (no initrd)</comment> |
208 | kernel /kernel-<comment><kernel version></comment> root=/dev/hda3 |
304 | title=Gentoo Linux 2.6.11 r3 |
209 | </pre> |
305 | root (hd0,0) |
|
|
306 | kernel /kernel-2.6.11-gentoo-r3 root=/dev/hda3 |
210 | |
307 | |
211 | <pre caption="Install and configure LILO"> |
308 | <comment># Only in case you want to dual-boot</comment> |
212 | # <i>emerge lilo</i> |
309 | title=Windows XP |
213 | # <i>nano -w /etc/lilo.conf</i> |
310 | root (hd0,5) |
|
|
311 | makeactive |
|
|
312 | chainloader +1 |
|
|
313 | </pre> |
|
|
314 | |
|
|
315 | <pre caption="Example lilo.conf"> |
214 | boot=/dev/hda |
316 | boot=/dev/hda |
215 | prompt |
317 | prompt |
216 | delay=50 |
318 | timeout=50 |
217 | default=gentoo |
319 | default=gentoo |
218 | |
320 | |
219 | image=/boot/kernel-<comment><kernel version></comment> |
321 | <comment># For non-genkernel users</comment> |
|
|
322 | image=/boot/kernel-2.6.11-gentoo-r3 |
220 | label=gentoo |
323 | label=gentoo |
221 | read-only |
324 | read-only |
|
|
325 | root=/dev/hda3 |
|
|
326 | |
222 | <comment># genkernel users:</comment> |
327 | <comment># For genkernel users</comment> |
223 | append="init=/linuxrc real_root=/dev/hda3" |
328 | image=/boot/kernel-2.6.11-gentoo-r3 |
|
|
329 | label=gentoo |
|
|
330 | read-only |
224 | root=/dev/ram0 |
331 | root=/dev/ram0 |
225 | initrd=/boot/initrd-<comment><kernel version></comment> |
332 | append="init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev" |
226 | <comment># non-genkernel users:</comment> |
333 | initrd=/boot/initrd-2.6.11-gentoo-r3 |
227 | root=/dev/hda3 |
|
|
228 | |
334 | |
229 | # <i>/sbin/lilo</i> |
335 | <comment># For dual-booting</comment> |
|
|
336 | other=/dev/hda6 |
|
|
337 | label=windows |
230 | </pre> |
338 | </pre> |
231 | |
339 | |
232 | <p> |
|
|
233 | Now unmount all partitions and reboot into your new system: |
|
|
234 | </p> |
340 | <p> |
235 | |
341 | GRUB users need to install GRUB in the MBR using |
236 | <pre caption="Finishing off and installing GUI"> |
342 | <c>grub-install /dev/hda</c> after copying <path>/proc/mounts</path> to |
237 | (Exiting the chroot) # <i>exit; cd /</i> |
343 | <path>/etc/mtab</path>. LILO users need to run <c>/sbin/lilo</c>. |
238 | (Unmounting partitions) # <i>umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo</i> |
|
|
239 | (Reboot; Remove the install CD from the tray) # <i>reboot</i> |
|
|
240 | (After booting:) |
|
|
241 | (ADSL-users only) # <i>adsl-setup</i> |
|
|
242 | (GRP-users only) |
|
|
243 | ( (1) Mount CD2) # <i>mount /dev/cdrom /mnt/cdrom</i> |
|
|
244 | ( (2) Copy over packages) # <i>cp -a /mnt/cdrom/packages/* /usr/portage/packages/</i> |
|
|
245 | ( (3) Install extra software) # <i>USE="bindist" emerge -k xfree gnome kde mozilla openoffice-bin</i> |
|
|
246 | ( (4) Configure your Xserver) # <i>/usr/X11R6/bin/xf86config</i> |
|
|
247 | </pre> |
|
|
248 | |
|
|
249 | <p> |
344 | </p> |
250 | You can get more information from the <uri |
345 | |
251 | link="http://www.gentoo.org/doc/en/index.xml">Gentoo |
|
|
252 | Documentation</uri>. |
|
|
253 | </p> |
346 | <p> |
|
|
347 | Exit the chrooted environment, unmount all file systems and reboot. |
|
|
348 | </p> |
|
|
349 | |
|
|
350 | </body> |
|
|
351 | </section> |
|
|
352 | <section> |
|
|
353 | <title>Finalizing the Installation</title> |
|
|
354 | <body> |
|
|
355 | |
|
|
356 | <p> |
|
|
357 | Log in as <c>root</c>, then add one or more users for day-to-day use using |
|
|
358 | <c>useradd -m -G <groups> <username></c>. |
|
|
359 | </p> |
|
|
360 | |
|
|
361 | <p> |
|
|
362 | If you performed a networkless installation, mount the packages CD at |
|
|
363 | <path>/mnt/cdrom</path> and <c>export PKGDIR="/mnt/cdrom"</c> after which |
|
|
364 | you can <c>emerge -k <package></c> to install additional |
|
|
365 | software like <c>kde</c>. |
|
|
366 | </p> |
|
|
367 | |
|
|
368 | <p> |
|
|
369 | Thanks for installing Gentoo! |
|
|
370 | </p> |
|
|
371 | |
254 | </body> |
372 | </body> |
255 | </section> |
373 | </section> |
256 | </chapter> |
374 | </chapter> |
257 | </guide> |
375 | </guide> |
258 | |
|
|