/[gentoo]/xml/htdocs/doc/en/faq.xml
Gentoo

Diff of /xml/htdocs/doc/en/faq.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.84 Revision 1.85
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/faq.xml,v 1.84 2005/06/05 16:44:56 neysx Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/faq.xml,v 1.85 2005/06/05 17:22:29 neysx Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5<guide link="/doc/en/faq.xml"> 5<guide link="/doc/en/faq.xml">
6<title>Gentoo Linux Frequently Asked Questions</title> 6<title>Gentoo Linux Frequently Asked Questions</title>
7<author title="Previous Chief Architect"> 7<author title="Author">
8 <mail link="drobbins@gentoo.org">Daniel Robbins</mail> 8 <mail link="drobbins@gentoo.org">Daniel Robbins</mail>
9</author> 9</author>
10<author title="Reviewer"> 10<author title="Reviewer">
11 Colin Morey 11 Colin Morey
12</author> 12</author>
29 <mail link="swift@gentoo.org">Sven Vermeulen</mail> 29 <mail link="swift@gentoo.org">Sven Vermeulen</mail>
30</author> 30</author>
31<author title="Editor"> 31<author title="Editor">
32 <mail link="bennyc@gentoo.org">Benny Chuang</mail> 32 <mail link="bennyc@gentoo.org">Benny Chuang</mail>
33</author> 33</author>
34<author title="Editor">
35 <mail link="smith.jonathan@gmail.com">Jonathan Smith</mail>
36</author>
34 37
35<abstract> 38<abstract>
36This FAQ is a collection of questions and answers collected from the gentoo-dev 39This FAQ is a collection of questions and answers collected from the gentoo-dev
37mailing list and from IRC -- if you have any questions (or answers!) to add, 40mailing list and from IRC.
38please contact either an author or a member of the documentation team.
39</abstract> 41</abstract>
40 42
43<!-- The content of this document is licensed under the CC-BY-SA license -->
44<!-- See http://creativecommons.org/licenses/by-sa/2.0 -->
41<license/> 45<license/>
42 46
43<version>2.16</version> 47<version>3.0</version>
44<date>2005-06-05</date> 48<date>2005-06-05</date>
45 49
46<chapter> 50<chapter>
47<title>Featured Questions</title> 51<title>Questions:</title>
48<section> 52<section>
49<title>Getting Started</title> 53<title>Getting Started</title>
50<body> 54<body>
51 55
56<p>
57Please note that many of these questions are answered within the official
58gentoo documents and guides. This is simply a list of common questions. Please
59read the documentation and/or man pages to gain a greater understanding of how
60Gentoo and GNU/Linux works, and for answers to questions which may not be
61answered here.
62</p>
63
64
52<ul> 65<ul>
53 <li> 66 <li>
54 <uri link="#pronunciation">How is Gentoo pronounced, and what does it 67 <uri link="#pronunciation">How is Gentoo pronounced, and what does it
55 mean?</uri> 68 mean?</uri>
56 </li> 69 </li>
65<title>Installation</title> 78<title>Installation</title>
66<body> 79<body>
67 80
68<ul> 81<ul>
69 <li> 82 <li>
70 <uri link="#optimizations">I'm finding things to be really unstable and 83 <uri link="#optimizations">Things are really unstable and I'm using "-O9
71 I'm using "-O9 -ffast-math -fomit-frame-pointer" optimizations. What 84 -ffast-math -fomit-frame-pointer" optimizations. What gives?</uri>
72 gives?</uri>
73 </li> 85 </li>
74 <li> 86 <li>
75 <uri link="#password">How can I change the root (or any other user's) 87 <uri link="#password">How can I change the root (or any other user's)
76 password?</uri> 88 password?</uri>
77 </li> 89 </li>
117 <li> 129 <li>
118 <uri link="#configure">I want to perform the ./configure step myself. 130 <uri link="#configure">I want to perform the ./configure step myself.
119 Can I?</uri> 131 Can I?</uri>
120 </li> 132 </li>
121 <li> 133 <li>
122 <uri link="#norsync">What if rsync doesn't work for me?</uri>
123 </li>
124 <li>
125 <uri link="#firewall">How do I use emerge from behind a 134 <uri link="#firewall">How do I use emerge from behind a
126 firewall?</uri> 135 firewall?</uri>
127 </li> 136 </li>
128 <li> 137 <li>
138 <uri link="#norsync">What if rsync doesn't work for me?</uri>
139 </li>
140 <li>
129 <uri link="#manualdownload">I have only slow modem connection at home. Can 141 <uri link="#manualdownload">I have only slow modem connection at home. Can
130 I download sources somewhere else and add them to my system?</uri> 142 I download sources somewhere else and add them to my system?</uri>
131 </li> 143 </li>
132 <li> 144 <li>
133 <uri link="#distfiles">.tar.gz sources for installed software are 145 <uri link="#distfiles">Source tarballs are collecting in
134 piling up in /usr/portage/distfiles using valuable space. Is it safe to 146 /usr/portage/distfiles. Is it safe to delete there files?</uri>
135 delete there files?</uri>
136 </li> 147 </li>
137 <li> 148 <li>
138 <uri link="#tmpportage">What's in /var/tmp/portage? Is it safe to 149 <uri link="#tmpportage">What's in /var/tmp/portage? Is it safe to
139 delete the files and directories in /var/tmp/portage?</uri> 150 delete the files and directories in /var/tmp/portage?</uri>
140 </li> 151 </li>
195 </li> 206 </li>
196 <li> 207 <li>
197 <uri link="#releases">How often are new releases made?</uri> 208 <uri link="#releases">How often are new releases made?</uri>
198 </li> 209 </li>
199 <li> 210 <li>
200 <uri link="#beeping">My speaker beeps like crazy while compiling 211 <uri link="#beeping">My speaker beeps like crazy. How do I disable console
201 Mozilla. How do I disable console beeps?</uri> 212 beeps?</uri>
202 </li> 213 </li>
203</ul> 214</ul>
204 215
205</body> 216</body>
206</section> 217</section>
250Gentoo uses a BSD ports-like system called <uri 261Gentoo uses a BSD ports-like system called <uri
251link="/proj/en/portage">Portage</uri>. Portage is a package management system 262link="/proj/en/portage">Portage</uri>. Portage is a package management system
252that allows great flexibility while installing and maintaining software on a 263that allows great flexibility while installing and maintaining software on a
253Gentoo system. It provides compile-time option support (through <uri 264Gentoo system. It provides compile-time option support (through <uri
254link="/doc/en/handbook/handbook-x86.xml?part=2&amp;chap=2">USE flags</uri>), 265link="/doc/en/handbook/handbook-x86.xml?part=2&amp;chap=2">USE flags</uri>),
255conditional dependencies, "fake" installs, safe installation (through 266conditional dependencies, pretend installs, safe installation (through
256sandboxing) and uninstallation of software, system profiles, <uri 267sandboxing) and uninstallation of software, system profiles, <uri
257link="/doc/en/handbook/handbook-x86.xml?part=3&amp;chap=2#doc_chap3">configuration 268link="/doc/en/handbook/handbook-x86.xml?part=3&amp;chap=2#doc_chap3">configuration
258file protection</uri> amongst several other <uri 269file protection</uri> amongst several other <uri
259link="/doc/en/handbook/handbook-x86.xml?part=2&amp;chap=1">features</uri>. 270link="/doc/en/handbook/handbook-x86.xml?part=2&amp;chap=1">features</uri>.
260</p> 271</p>
261 272
262<p> 273<p>
263With Gentoo you can build your entire system from source, using your choice of 274With Gentoo you can build your entire system from source, using your choice of
264optimizations. You have complete control over what packages are or aren't 275optimizations. You have complete control over what packages are or aren't
265installed. Gentoo provides you with numerous choices so you can install Gentoo 276installed. Gentoo provides you with numerous choices, so you can install Gentoo
266to your own taste. This is why Gentoo is called a <e>meta-distribution</e>. 277to your own preferences, which is why Gentoo is called a <e>meta-distribution</e>.
267</p>
268
269<p> 278</p>
270Gentoo is actively developed. Not only the <e>ebuilds</e> themselves (the 279
271package format Gentoo uses) but the entire distribution uses a rapid pace 280<p>
281Gentoo is actively developed. The entire distribution uses a rapid pace
272development style. Patches to the packages are quickly integrated in the 282development style: patches to the packages are quickly integrated in the
273mainline tree, documentation is updated on daily basis, portage features are 283mainline tree, documentation is updated on daily basis, portage features are
274added frequently, and releases succeed each other quickly. 284added frequently, and official releases occur twice per year.
275</p> 285</p>
276 286
277</body> 287</body>
278</section> 288</section>
279</chapter> 289</chapter>
280 290
281<chapter> 291<chapter>
282<title>Installation</title> 292<title>Installation</title>
283<section id="optimizations"> 293<section id="optimizations">
284<title> 294<title>
285 I'm finding things to be really unstable and I'm using "-O9 -ffast-math 295 Things are really unstable and I'm using -O9 -ffast-math
286 -fomit-frame-pointer" optimizations. What gives? 296 -fomit-frame-pointer optimizations. What gives?
287</title> 297</title>
288<body> 298<body>
289 299
290<p> 300<p>
291Don't bother using anything higher than <c>-O3</c> since it isn't supported by 301Don't bother using anything higher than <c>-O3</c> since it isn't supported by
293compiler to streamline the assembly code to the point where it doesn't quite 303compiler to streamline the assembly code to the point where it doesn't quite
294do the same thing anymore. 304do the same thing anymore.
295</p> 305</p>
296 306
297<p> 307<p>
298Please try to compile with CFLAGS <c>-march=&lt;your_arch&gt; -O2</c> before 308Please try to compile with CFLAGS <c>-O2 -march=&lt;your_arch&gt;</c> before
299reporting a bug. 309reporting a bug.
300</p> 310</p>
301 311
302</body> 312</body>
303</section> 313</section>
304<section id="password"> 314<section id="password">
305<title>How can I change the root (or any other user's) password?</title> 315<title>How do I change the root (or any other user's) password?</title>
306<body> 316<body>
307 317
308<p> 318<p>
309You can use <c>passwd</c> to change the password for the user you are logged 319You can use <c>passwd</c> to change the password for the user you are logged
320into. As root, you can change any user password by issuing the command
310into. For extra options and setting, please <c>man passwd</c> once you've 321<c>passwd username</c> For extra options and setting, please <c>man passwd</c>.
311completed the install.
312</p> 322</p>
313 323
314</body> 324</body>
315</section> 325</section>
316<section id="useradd"> 326<section id="useradd">
317<title>How do I add a normal user?</title> 327<title>How do I add a normal user?</title>
318<body> 328<body>
319 329
320<p> 330<p>
321The command <c>adduser gentoo</c> will add a user called "gentoo". The next 331The command <c>adduser username</c> will add a user called "username". However,
322step is to give this user a password using <c>passwd gentoo</c>. 332this method does not give the user many of the rights you might want to grant
323</p> 333him, so the following command is preferred:
324
325<p>
326Instead of <c>adduser</c> you can also use:
327</p> 334</p>
328 335
329<pre caption="Using useradd"> 336<pre caption="Using useradd">
330# <i>useradd -m -G users,audio,wheel -s /bin/bash gentoo</i> 337# <i>useradd -m -G users,audio,wheel username</i>
331</pre> 338</pre>
332 339
333<p>
334This will add a user gentoo, will make possible for him to use sound-related
335devices (<path>/dev/sound/*</path>), will make possible for him to switch to
336root (using <c>su</c>), and will make <path>/bin/bash</path> his login shell.
337</p> 340<p>
338 341This will add a user named "username". The option <c>audio</c> adds them to the
339<p> 342audio group and allows the user to access sound devices. The option
340You can install <c>superadduser</c> using <c>emerge superadduser</c> and 343<c>wheel</c> adds the user to the <c>wheel</c> group, which allows the user to
341then issue <c>superadduser gentoo</c> to add a user called gentoo. Just follow 344execute the command <c>su</c>, which in turn allows them to gain the
342the instructions which are then given. 345privileges of the <c>root</c> user.
343</p> 346</p>
344 347
345</body> 348</body>
346</section> 349</section>
347<section id="su"> 350<section id="su">
363<section id="devfs"> 366<section id="devfs">
364<title>How do I disable devfs?</title> 367<title>How do I disable devfs?</title>
365<body> 368<body>
366 369
367<p> 370<p>
368If you plan on using Gentoo with the "old-style" <path>/dev</path> approach, you 371Gentoo requires either devfs kernel support or udev userland support to
369can disable devfs by passing the <c>gentoo=nodevfs</c> to the kernel. If on the 372function correctly. With the advent of the 2.6 kernel being stable on most
370other hand you want to use <uri link="/doc/en/udev-guide.xml">udev</uri> (2.6 373archs, udev is recommended. Please see the <uri
371kernels only), you can disable devfs by passing the <c>devfs=nomount</c> option
372to the kernel. Don't forget to read up on our <uri
373link="/doc/en/udev-guide.xml">udev guide</uri> too. 374link="/doc/en/udev-guide.xml">udev guide</uri> for information on configuring
375udev.
374</p> 376</p>
375 377
376</body> 378</body>
377</section> 379</section>
378<section id="upgrade"> 380<section id="upgrade">
380 Can I upgrade Gentoo from one release to another without reinstalling? 382 Can I upgrade Gentoo from one release to another without reinstalling?
381</title> 383</title>
382<body> 384<body>
383 385
384<p> 386<p>
385In fact there is no difference between the various releases 387In fact, there is no difference between the various releases after they have
386<b>after they have been installed</b>. Gentoo 1.4 and later are 388been installed. Gentoo 1.4 and later are <c>glibc-2.3.x</c> based. As such,
387<c>glibc-2.3.x</c> based. As such running <c>emerge --sync; emerge -u world</c> 389running <c>emerge --sync &amp;&amp; emerge -uDN world</c> will bring your
388will bring your entire system up to speed with the "latest Gentoo". 390entire system up to speed with the "latest Gentoo". The differences between
389The true differences between individual releases lie in the installation. 391individual releases lie in the installation medium and pre-compiled packages.
390</p> 392See the <uri link="/doc/en/gentoo-upgrading.xml">Gentoo Upgrading Guide</uri>
391 393for more information about profiles and their role in upgrading.
392<p>
393More information can be found in our <uri link="gentoo-upgrading.xml">Gentoo
394Upgrading Guide</uri>.
395</p> 394</p>
396 395
397</body> 396</body>
398</section> 397</section>
399<section id="bootrescue"> 398<section id="bootrescue">
400<title>My kernel doesn't boot (properly), what should I do now?</title> 399<title>My kernel doesn't boot, what should I do now?</title>
401<body> 400<body>
402 401
403<p> 402<p>
404You don't need to redo every step of the installation, but only the 403You don't need to redo every step of the installation, but investigating the
405kernel-stuff and all associated steps. Suppose you have installed Gentoo 404kernel and all associated steps is necessary. Suppose you have installed Gentoo
406on <path>/dev/hda1</path> (/boot) and <path>/dev/hda3</path> (/) with 405on <path>/dev/hda1</path> (/boot) and <path>/dev/hda3</path> (/) with
407<path>/dev/hda2</path> being the swap space: 406<path>/dev/hda2</path> being the swap space:
408</p> 407</p>
409 408
410<pre caption = "Reconfiguring the kernel"> 409<pre caption = "Reconfiguring the kernel">
411<comment>Boot from the LiveCD and wait until you receive a prompt</comment> 410<comment>Boot from the Install CD and wait until you receive a prompt</comment>
412<comment>We first mount all partitions:</comment> 411<comment>We first mount all partitions:</comment>
413# <i>mount /dev/hda3 /mnt/gentoo</i> 412# <i>mount /dev/hda3 /mnt/gentoo</i>
414# <i>mount /dev/hda1 /mnt/gentoo/boot</i> 413# <i>mount /dev/hda1 /mnt/gentoo/boot</i>
415# <i>swapon /dev/hda2</i> 414# <i>swapon /dev/hda2</i>
416# <i>mount -t proc none /mnt/gentoo/proc</i> 415# <i>mount -t proc none /mnt/gentoo/proc</i>
419# <i>env-update &amp;&amp; source /etc/profile</i> 418# <i>env-update &amp;&amp; source /etc/profile</i>
420# <i>cd /usr/src/linux</i> 419# <i>cd /usr/src/linux</i>
421# <i>make menuconfig</i> 420# <i>make menuconfig</i>
422<comment>Now (de)select anything you have (de)selected wrongly at your</comment> 421<comment>Now (de)select anything you have (de)selected wrongly at your</comment>
423<comment>previous attempt. Then quit and compile your kernel:</comment> 422<comment>previous attempt. Then quit and compile your kernel:</comment>
424# <i>make dep &amp;&amp; make bzImage modules modules_install</i> 423# <i>make &amp;&amp; make modules_install</i>
425<comment>Now copy over your bzImage file, overwriting your previous one:</comment> 424<comment>Now copy over your bzImage file, overwriting your previous one:</comment>
426# <i>cp arch/i386/boot/bzImage /boot</i> 425# <i>cp arch/i386/boot/bzImage /boot</i>
427<comment>If you use LILO, rerun lilo -- GRUB users should skip this:</comment> 426<comment>If you use LILO, rerun lilo -- GRUB users should skip this:</comment>
428# <i>/sbin/lilo</i> 427# <i>/sbin/lilo</i>
429<comment>Now exit the chroot and reboot.</comment> 428<comment>Now exit the chroot and reboot.</comment>
431# <i>umount /mnt/gentoo/proc /mnt/gentoo/boot /mnt/gentoo</i> 430# <i>umount /mnt/gentoo/proc /mnt/gentoo/boot /mnt/gentoo</i>
432# <i>reboot</i> 431# <i>reboot</i>
433</pre> 432</pre>
434 433
435<p> 434<p>
436If on the other hand the problem lays with your bootloader configuration, 435If, on the other hand, the problem lays with your bootloader configuration,
437follow the same steps, but instead of configuring/compiling your kernel you 436follow the same steps, but instead of configuring/compiling your kernel, you
438should reconfigure your bootloader (recompilation isn't necessary). 437should reconfigure your bootloader (recompilation isn't necessary).
439</p> 438</p>
440 439
441</body> 440</body>
442</section> 441</section>
443<section id="proxy"> 442<section id="proxy">
444<title>My proxy requires authentication, what do I have to do?</title> 443<title>My proxy requires authentication, what do I have to do?</title>
445<body> 444<body>
446 445
447<p> 446<p>
448When you have to download something using <c>wget</c>, use the
449following syntax to authenticate yourself:
450</p>
451
452<pre caption = "Proxy-authentication using wget">
453# <i>wget --proxy-user=</i><comment>username</comment><i> --proxy-passwd=</i><comment>password</comment><i> &lt;url&gt;</i>
454</pre>
455
456<p>
457To have Portage automatically use this scheme, define it in 447To have Portage automatically use this scheme, define it in
458<path>/etc/make.conf</path>: 448<path>/etc/make.conf</path>:
459</p> 449</p>
460 450
461<pre caption = "/etc/make.conf"> 451<pre caption = "/etc/make.conf">
462FETCHCOMMAND="wget --proxy-user=<comment>username</comment> --proxy-passwd=<comment>password</comment> \ 452HTTP_PROXY="http://username:password@yourproxybox.org:portnumber"
463 -t 5 --passive-ftp -P \${DISTDIR} \${URI}" 453FTP_PROXY="ftp://username:password@yourproxybox.org:portnumber"
464RESUMECOMMAND="/usr/bin/wget --proxy-user=<comment>username</comment> --proxy-passwd=<comment>password</comment> \ 454RSYNC_PROXY="rsync://username:password@yourproxybox.server:portnumber"
465 -c -t 5 --passive-ftp -P \${DISTDIR} \${URI}"
466</pre>
467
468<p>
469To have <c>rsync</c> use a proxy, set the RSYNC_PROXY environment variable as
470so:
471</p>
472
473<pre caption="/etc/make.conf's setting for RSYNC">
474RSYNC_PROXY="<comment>username</comment>:<comment>password</comment>@<comment>proxy-server</comment>:<comment>port</comment>"
475</pre> 455</pre>
476 456
477</body> 457</body>
478</section> 458</section>
479<section id="isoburning"> 459<section id="isoburning">
507 With cdrecord, you simply type <c>cdrecord dev=/dev/hdc</c> (replace 487 With cdrecord, you simply type <c>cdrecord dev=/dev/hdc</c> (replace
508 <path>/dev/hdc</path> with your CD-RW drive's device path) followed 488 <path>/dev/hdc</path> with your CD-RW drive's device path) followed
509 by the path to the ISO file :) 489 by the path to the ISO file :)
510 </li> 490 </li>
511 <li> 491 <li>
512 With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn Image</c>. Then 492 With K3B, select <c>Tools</c> &gt; <c>CD</c> &gt; <c>Burn CD Image</c>.
513 you can locate your ISO file within the 'Image to Burn' area. Finally click 493 Then you can locate your ISO file within the 'Image to Burn' area. Finally
514 <c>Start</c>. 494 click <c>Start</c>.
515 </li> 495 </li>
516 <li> 496 <li>
517 With Mac OS X Panther, launch <c>Disk Utility</c> from 497 With Mac OS X Panther, launch <c>Disk Utility</c> from
518 <path>Applications/Utilities</path>, select <c>Open</c> from the 498 <path>Applications/Utilities</path>, select <c>Open</c> from the
519 <c>Images</c> menu, select the mounted disk image in the main window and 499 <c>Images</c> menu, select the mounted disk image in the main window and
539need to consult the CPUs vendor website for this, although <uri 519need to consult the CPUs vendor website for this, although <uri
540link="http://www.google.com">Google</uri> is at least as efficient :-). 520link="http://www.google.com">Google</uri> is at least as efficient :-).
541</p> 521</p>
542 522
543<p> 523<p>
544For the Pentium-M, you'll find out that it is a Pentium-3 with SSE instructions,
545meaning it is instruction-compatible with the Pentium-4. So, for Pentium-M
546systems, you can choose the Pentium-4 CD/stage files.
547</p>
548
549<p>
550If you are uncertain, take a "lower" CD/stage file, for instance a i686 or even 524If you are uncertain, take a "lower" CD/stage file, for instance a i686 or even
551generic. 525generic x86 (or the equivalent in your arch). This will ensure that your system
526will work, but may not be as fast as further optimizations.
527</p>
528
529<p>
530If you are building from a Stage 1, please note that many more options exist
531than those for which Gentoo builds binary stages. Please see the <uri
532link="http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options">gcc
533guide</uri> for setting <c>-march</c>.
552</p> 534</p>
553 535
554</body> 536</body>
555</section> 537</section>
556</chapter> 538</chapter>
560<section id="ebuilds"> 542<section id="ebuilds">
561<title>In what form are the packages stored?</title> 543<title>In what form are the packages stored?</title>
562<body> 544<body>
563 545
564<p> 546<p>
565They exist in our portage tree as <e>ebuild</e> autobuild scripts; Gentoo is 547Packages aren't "stored" per se. Instead, Gentoo provides a set of scripts
566a ports-based distribution, meaning that we provide scripts (<c>.ebuild</c> 548which can resolve dependencies, fetch source code, and compile a version of the
567files) and a special system (Portage) so that you can build apps from sources. 549package specifically for your needs. We generally only build binaries for
568We generally only build binaries for releases and snapshots. The <uri 550releases and snapshots. The <uri
569link="/proj/en/devrel/handbook/handbook.xml?part=2&amp;chap=1">Gentoo Ebuild 551link="/proj/en/devrel/handbook/handbook.xml?part=2&amp;chap=1">Gentoo Ebuild
570HOWTO</uri> covers the contents of an ebuild script in detail. For full binary 552HOWTO</uri> covers the contents of an ebuild script in detail.
553</p>
554
555<p>
571ISO releases, we create a full suite of binary packages in an enhanced 556For full ISO releases, we create a full suite of binary packages in an enhanced
572<c>.tbz2</c> format (<c>.tar.bz2</c> compatible with meta-information attached 557<c>.tbz2</c> format, which is <c>.tar.bz2</c> compatible with meta-information
573to the end of the file). 558attached to the end of the file. These can be used to install a working (though
559not fully optimized) version of the package quickly and efficiently.
560</p>
561
562<p>
563It is possible to create RPMs (Redhat package manager files) using Gentoo's
564portage, but it is not currently possible to use already existing RPMs to
565install packages.
574</p> 566</p>
575 567
576</body> 568</body>
577</section> 569</section>
578<section id="configure"> 570<section id="configure">
579<title>I want to perform the ./configure step myself. Can I?</title> 571<title>I want to perform the ./configure step myself. Can I?</title>
572<body>
573
574<p>
575Yes, but it is not trivial, nor is it recommended. Since the method to do this
576requires a good understanding of portage internals and commands, it is instead
577recommended that you patch the ebuild to do whatever it is that you want and
578place it in the portage overlay (thats why it exists). This is <e>much</e>
579better for maintainability, and usually easier. See the <uri
580link="/proj/en/devrel/handbook/handbook.xml?part=2&amp;chap=1">Ebuild
581HOWTO</uri> for more information.
582</p>
583
580<body> 584</body>
585</section>
586<section id="firewall">
587<title>How do I use emerge from behind a firewall?</title>
588<body>
581 589
582<p>
583Yes, but it is not trivial, and the next method only works when it is a simple
584ebuild (i.e. just <c>./configure</c> and <c>make &amp;&amp; make install</c>).
585Be sure to read the ebuild itself to see how Gentoo handles it.
586</p> 590<p>
587 591See the questions on <uri link="#proxy">proxies</uri>, <uri
588<p> 592link="#nosync">rsync</uri>, and <uri link="#manualdownload">downloading source
589Start with unpacking the ebuild: <c>ebuild 593files manually</uri>.
590/usr/portage/&lt;category&gt;/&lt;package&gt;/&lt;ebuild&gt; unpack</c>.
591</p>
592
593<p>
594Next, go to <path>/var/tmp/portage/&lt;package&gt;-&lt;version&gt;/work</path>.
595Inside it you'll find the unpacked sources. Execute the steps you need to
596perform to configure and compile the package.
597</p>
598
599<p>
600When finished, execute <c>touch
601/var/tmp/portage/&lt;package&gt;-&lt;version&gt;/.compiled</c> to trick Portage
602into thinking it configured and compiled the package. Then finish up with
603<c>ebuild /usr/portage/&lt;category&gt;/&lt;package&gt;/&lt;ebuild&gt;
604merge</c>.
605</p> 594</p>
606 595
607</body> 596</body>
608</section> 597</section>
609<section id="norsync"> 598<section id="norsync">
611<body> 600<body>
612 601
613<p> 602<p>
614If you're behind a firewall that doesn't permit rsync traffic, then you can use 603If you're behind a firewall that doesn't permit rsync traffic, then you can use
615<c>emerge-webrsync</c> which will fetch and install a Portage snapshot for you 604<c>emerge-webrsync</c> which will fetch and install a Portage snapshot for you
616through regular HTTP. <c>emerge-webrsync</c> uses <c>wget</c> to download, so 605through regular HTTP. See the <uri link="#proxy">proxy section</uri> of this
617proxy is fully supported. 606document for information on downloading source files and portage snapshots via
618</p> 607a proxy.
619
620<pre caption="Using emerge-webrsync">
621# <i>emerge-webrsync</i>
622</pre>
623
624</body>
625</section>
626<section id="firewall">
627<title>How do I use emerge from behind a firewall?</title>
628<body>
629
630<p>
631Edit the PROXY settings in <path>/etc/make.conf</path>. If that doesn't work,
632edit <path>/etc/wget/wgetrc</path> and edit http_proxy and ftp_proxy
633appropriately.
634</p> 608</p>
635 609
636</body> 610</body>
637</section> 611</section>
638<section id="manualdownload"> 612<section id="manualdownload">
645<p> 619<p>
646Definitely. You can run <c>emerge --pretend package</c> to see what programs 620Definitely. You can run <c>emerge --pretend package</c> to see what programs
647are going to be installed. To find out the sources for those packages and where 621are going to be installed. To find out the sources for those packages and where
648to download the sources from, you can run <c>emerge -fp package</c>. Download 622to download the sources from, you can run <c>emerge -fp package</c>. Download
649sources and bring them on any media home. Put the sources into 623sources and bring them on any media home. Put the sources into
650<path>/usr/portage/distfiles</path> and run <c>emerge package</c> to see it 624<path>/usr/portage/distfiles/</path> and then simply run <c>emerge package</c>.
651picking up the sources you just brought in! 625Be warned, however, that this is a tedious process.
652</p> 626</p>
653 627
654</body> 628</body>
655</section> 629</section>
656<section id="distfiles"> 630<section id="distfiles">
657<title> 631<title>
658 .tar.gz sources for installed software are piling up in 632 Source tarballs are collecting in /usr/portage/distfiles/. Is it safe to
659 /usr/portage/distfiles/ using valuable space. Is it safe to delete these 633 delete there files?
660 files?
661</title> 634</title>
662<body> 635<body>
663 636
664<p> 637<p>
665Yes, you can safely delete these files. But if you are on a slow 638Deleting these files will have no negative impact on day-to-day performance.
666connection, such as a modem, you might want to keep the archives if 639However, it might be wise to keep the most recent version of the files; often
667possible; often several ebuilds will be released for the same version of 640several ebuilds will be released for the same version of a specific piece of
668a specific piece of software - if you have deleted the archive and you 641software. If you have deleted the archive and you upgrade the software it will
669upgrade the software it will have to be downloaded from the internet 642be necessary to download them from the internet again. There are programs which
670again. 643<uri link="http://forums.gentoo.org/viewtopic-t-337074.html">users have
644developed</uri> to clean out all but the most recent version of sourcefiles.
645Note that while this seems to work, it is <e>not</e> officially maintained. Use
646at your own risk.
671</p> 647</p>
672 648
673</body> 649</body>
674</section> 650</section>
675<section id="tmpportage"> 651<section id="tmpportage">
679</title> 655</title>
680<body> 656<body>
681 657
682<p> 658<p>
683During compilation, Gentoo saves the sources of the package in 659During compilation, Gentoo saves the sources of the package in
684<path>/var/tmp/portage</path>. It is safe to clean out all contents of this 660<path>/var/tmp/portage</path>. These files and folder are usually deleted upon
685directory. 661a successful merge, but this sometimes fails. It is safe to clean out all
662contents of this directory <e>if</e> emerge is not running. Just to be sure,
663always <c>pgrep emerge</c> before cleaning out this directory.
686</p> 664</p>
687 665
688</body> 666</body>
689</section> 667</section>
690</chapter>
691
692<chapter>
693<title>Usage</title>
694<section id="intkeyboard"> 668<section id="intkeyboard">
695<title>How do I set up an International Keyboard Layout?</title> 669<title>How do I set up an International Keyboard Layout?</title>
696<body> 670<body>
697 671
698<p> 672<p>
699Edit the <c>KEYMAP</c> variable in <path>/etc/rc.conf</path>. 673Edit the <c>KEYMAP</c> variable in <path>/etc/rc.conf</path>. Then, either
700Then either reboot or restart the keymaps script: 674<c>reboot</c> or restart the keymaps script:
675</p>
676
677<pre caption="Restarting keymaps">
701<c>/etc/init.d/keymaps restart</c>. 678# <i>/etc/init.d/keymaps restart</i>
702</p> 679</pre>
703 680
704</body> 681</body>
705</section> 682</section>
706<section id="rootdns"> 683<section id="rootdns">
707<title>DNS name resolution works for root only.</title> 684<title>DNS name resolution works for root only</title>
708<body> 685<body>
709 686
710<p> 687<p>
711<path>/etc/resolv.conf</path> has the wrong permissions; <c>chmod</c> it as 688<path>/etc/resolv.conf</path> has the wrong permissions; <c>chmod</c> it as
712follows: 689follows:
731<section id="numlock"> 708<section id="numlock">
732<title>How do I get numlock to start on boot?</title> 709<title>How do I get numlock to start on boot?</title>
733<body> 710<body>
734 711
735<p> 712<p>
736If you log on graphically, or want numlock to be activated when
737you issue <c>startx</c>, then you must <c>emerge numlockx</c> and
738add <c>/usr/X11R6/bin/numlockx</c> to
739<path>/etc/X11/xinit/xinitrc</path> (for <c>startx</c>) or
740<path>/etc/X11/Sessions/</path> (for any graphical login manager) such
741as <path>/etc/X11/Sessions/Gnome</path> for GDM.
742</p>
743
744<p>
745GNOME 2.6 users however will notice that this doesn't work. Instead, they will
746need to start the <c>gnome-session-properties</c> tool. At the top of the
747Window, select <c>Startup Programs</c> and click the <c>Add</c> button. Now
748insert the location of the <c>numlockx</c> tool (for instance
749<path>/usr/X11R6/bin/numlockx</path>) and exit.
750</p>
751
752<p>
753If you work in commandline, you only need to <c>rc-update add 713If you work in command line, you only need to <c>rc-update add
754numlock default</c> and numlock will be activated on the next 714numlock default &amp;&amp;/etc/init.d/numlock start</c>.
755reboot. 715</p>
716
717<p>
718Each GUI provides different tools for this sort of thing; please check the help
719section or online manuals for assistance.
756</p> 720</p>
757 721
758</body> 722</body>
759</section> 723</section>
760<section id="clear"> 724<section id="clear">
806<section id="filecorruption"> 770<section id="filecorruption">
807<title>ReiserFS and filesystem corruption issues -- how to fix'em, etc</title> 771<title>ReiserFS and filesystem corruption issues -- how to fix'em, etc</title>
808<body> 772<body>
809 773
810<p> 774<p>
811If your ReiserFS partition is corrupt, try booting the Gentoo 775If your ReiserFS partition is corrupt, try booting the Gentoo Install CD and
812Linux boot CD and run <c>reiserfsck --rebuild-tree</c> on 776run <c>reiserfsck --rebuild-tree</c> on the corrupted filesystem. This should
813the corrupted filesystem. This should make the filesystem consistent 777make the filesystem consistent again, although you may have lost some files or
814again, although you may have lost some files or directories due 778directories due to the corruption.
815to the corruption.
816</p> 779</p>
817 780
818</body> 781</body>
819</section> 782</section>
820</chapter> 783</chapter>
823<section id="reportbugs"> 786<section id="reportbugs">
824<title>Where can I report bugs?</title> 787<title>Where can I report bugs?</title>
825<body> 788<body>
826 789
827<p> 790<p>
828For bugs within a specific program, contact the program's author. Otherwise, 791Use our <uri link="https://bugs.gentoo.org">Bugzilla</uri>. If you are unsure if
829use our Bugzilla bug tracker at <uri>http://bugs.gentoo.org</uri>. You can 792your problem is an actual bug, you can visit <c>#gentoo</c> on the <uri
830also visit us in <c>#gentoo</c> on the <uri
831link="http://www.freenode.net">FreeNode</uri> IRC network. 793link="http://www.freenode.net">FreeNode</uri> IRC network.
832</p> 794</p>
833 795
834</body> 796</body>
835</section> 797</section>
836<section id="releases"> 798<section id="releases">
837<title>How often are new releases made?</title> 799<title>How often are new releases made?</title>
838<body> 800<body>
839 801
840<p> 802<p>
841New releases are announced on the <uri 803Gentoo's packages are usually updated shortly after the main authors release
842link="http://www.gentoo.org/main/en/lists.xml">gentoo-announce</uri> 804new code. As for when Gentoo itself makes new stage/profile/ISO releases, check
843mailing list. The packages themselves are usually updated shortly after the
844main authors release new code. As for when Gentoo makes new releases, check our
845<uri link="/proj/en/releng">Release Engineering Project</uri> page. 805our <uri link="/proj/en/releng">Release Engineering Project</uri> page. New
806releases are announced on the <uri
807link="/main/en/lists.xml">gentoo-announce</uri> mailing list. See the question
808on <uri link="#upgrade">upgrading</uri> for more information.
846</p> 809</p>
847 810
848</body> 811</body>
849</section> 812</section>
850<section id="beeping"> 813<section id="beeping">
851<title> 814<title>
852 My speaker beeps like crazy while compiling Mozilla. How do I disable console 815 My speaker beeps like crazy. How do I disable console beeps?
853 beeps?
854</title> 816</title>
855<body> 817<body>
856 818
857<p> 819<p>
858Console beeps can be turned off using setterm, like this: 820Console beeps can be turned off using setterm, like this:
861<pre caption="Using setterm"> 823<pre caption="Using setterm">
862# <i>setterm -blength 0</i> 824# <i>setterm -blength 0</i>
863</pre> 825</pre>
864 826
865<p> 827<p>
866If you would like to turn off the console beeps on boot 828If you would like to turn off the console beeps on boot, you need to put this
867you need to put this command in <path>/etc/conf.d/local.start</path>. However, 829command in <path>/etc/conf.d/local.start</path>. However, this only disables
868this only disables beeps for the current terminal. To disable 830beeps for the current terminal. To disable beeps for other terminals, pipe the
869beeps for other terminals, pipe the command output to the 831command output to the target terminal, like this: </p>
870target terminal, like this:
871</p>
872 832
873<pre caption="Using setterm (bis)"> 833<pre caption="Using setterm (bis)">
874# <i>setterm -blength 0 >/dev/vc/1</i> 834# <i>setterm -blength 0 >/dev/vc/1</i>
875</pre> 835</pre>
876 836
888<section id="resources"> 848<section id="resources">
889<title>Where can I find more information about Gentoo Linux?</title> 849<title>Where can I find more information about Gentoo Linux?</title>
890<body> 850<body>
891 851
892<p> 852<p>
893The official Gentoo documentation can be found on 853The official Gentoo documentation can be found at
894<uri>http://www.gentoo.org</uri>; general Linux information is at
895<uri>http://www.tldp.org</uri>. 854<uri>http://docs.gentoo.org</uri>.
896</p> 855</p>
897 856
898</body> 857</body>
899</section> 858</section>
900<section id="buycd"> 859<section id="buycd">
901<title>Can I buy a CD of Gentoo Linux?</title> 860<title>Can I buy a CD of Gentoo Linux?</title>
902<body> 861<body>
903 862
904<p> 863<p>
905Yes! LiveCDs for all supported architecture are available on 864Install CDs for all supported architecture are available on our <uri
906our <uri link="http://store.gentoo.org/">Gentoo Store</uri>. When you 865link="http://www.cafepress.com/officialgentoo/">Gentoo Store</uri>. When you
907purchase a CD from our store, you are also supporting our development. 866purchase a CD from our store, you are also supporting our development. So,
908So, please consider buying from our store if possible :-) 867please consider buying from our store if possible.
909</p> 868</p>
910 869
911<p> 870<p>
912You can also find fresh CDs from various resellers listed on our <uri 871You can also find fresh CDs from various resellers listed on our <uri
913link="/main/en/where.xml">Get Gentoo!</uri> page. 872link="/main/en/where.xml">Get Gentoo!</uri> page.
918<section id="help"> 877<section id="help">
919<title>This FAQ hasn't answered my question. What do I do now?</title> 878<title>This FAQ hasn't answered my question. What do I do now?</title>
920<body> 879<body>
921 880
922<p> 881<p>
923A good first step is to browse through the relevant <uri 882A good first step is to browse through the relevant <uri
924link="http://www.gentoo.org/doc/en/index.xml">documentation</uri>, failing that, 883link="/doc/en/index.xml">documentation</uri>, failing that, the various Gentoo
925the various Gentoo Linux mailing lists listed on <uri 884Linux mailing lists listed on <uri link="http://www.google.com">Google</uri>.
926link="http://www.google.com">Google</uri>. To search through the Gentoo 885To search through the Gentoo mailing lists, just enter "lists.gentoo.org foo"
927mailing lists, just enter "lists.gentoo.org foo" to search for "foo". If all 886to search for "foo". If all else fails, or you just want to hang out with
928else fails, or you just want to hang out with Gentoo folks, visit us on irc: 887Gentoo folks, visit us on irc: <c>#gentoo</c> on <c>irc.freenode.net</c>.
929<c>#gentoo</c> on <c>irc.freenode.net</c>.
930</p> 888</p>
931 889
932</body> 890</body>
933</section> 891</section>
934</chapter> 892</chapter>

Legend:
Removed from v.1.84  
changed lines
  Added in v.1.85

  ViewVC Help
Powered by ViewVC 1.1.20