/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-finalise.xml
Gentoo

Contents of /xml/htdocs/doc/en/handbook/hb-install-finalise.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download) (as text)
Sat Nov 15 13:53:33 2003 UTC (10 years, 11 months ago) by swift
Branch: MAIN
Changes since 1.6: +2 -0 lines
File MIME type: application/xml
Add CVS information as comment

1 swift 1.5 <!-- The content of this document is licensed under the CC-BY-SA license -->
2     <!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
3    
4 swift 1.7 <!-- $Header$ -->
5    
6 swift 1.3 <sections>
7 swift 1.1 <section>
8     <title>User Administration</title>
9 swift 1.4 <subsection>
10     <title>Setting a root Password</title>
11 swift 1.1 <body>
12    
13     <p>
14 swift 1.4 Before you forget, set the root password by typing:
15     </p>
16    
17     <pre caption="Setting the root password">
18     # <i>passwd</i>
19     </pre>
20    
21     </body>
22     </subsection>
23     <subsection>
24     <title>Adding a User for Daily Use</title>
25     <body>
26    
27     <p>
28     Working as root on a Unix/Linux system is <e>dangerous</e> and should be avoided
29     as much as possible. Therefor it is <e>strongly</e> recommended to add a user
30     for day-to-day use.
31     </p>
32    
33     <p>
34     For instance, to create a user called <c>john</c> who is member of the
35     <c>wheel</c> group (be able to change to root using <c>su</c>), <c>users</c>
36     group (default for all users) and <c>audio</c> group (be able to use audio
37     devices):
38     </p>
39    
40     <pre caption="Adding a user for day-to-day use">
41     # <i>useradd john -m -G users,wheel,audio -s /bin/bash</i>
42     # <i>passwd john</i>
43     Password: <comment>(Enter the password for john)</comment>
44     Re-enter password: <comment>(Re-enter the password to verify)</comment>
45     </pre>
46    
47     <p>
48     If this user ever needs to perform some task as root, he can use <c>su -</c> to
49     temporarily receive root privileges. Another way is to use the <c>sudo</c>
50     package which is, if correctly configured, very secure.
51 swift 1.1 </p>
52    
53     </body>
54 swift 1.4 </subsection>
55 swift 1.3 </section>
56     <section>
57     <title>Reboot and Enjoy</title>
58 swift 1.1 <subsection>
59 swift 1.2 <title>Rebooting</title>
60 swift 1.1 <body>
61    
62     <p>
63 swift 1.4 Congratulations! Your Gentoo system is now ready. Run <c>etc-update</c> to
64     update the configuration files (if needed), exit the chrooted environment and
65     unmount all mounted partitions. Then type in that one magical command you have
66     been waiting for: <c>reboot</c>.
67     </p>
68    
69     <pre caption="Rebooting the system">
70     # <i>etc-update</i>
71     # <i>exit</i>
72     # <i>cd /</i>
73     # <i>umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo</i>
74     # <i>reboot</i>
75     </pre>
76    
77     <p>
78 swift 1.6 Of course, don't forget to remove the bootable CD, otherwise the CD will be
79 swift 1.4 booted again instead of your new Gentoo system.
80     </p>
81    
82     <p>
83     OldWorld PPC users will boot in MacOS since their bootloader
84     isn't installed yet. Those users should read <uri
85     link="#doc_chap2_sect2">Optional: Configuring BootX</uri>. GRP users can
86     continue with <uri link="#doc_chap2_sect3">Optional: Install Extra
87     Packages</uri>, all the rest can finish up with <uri
88     link="?part=1&amp;chap=12">Where to go from here?</uri>.
89 swift 1.1 </p>
90    
91     </body>
92 swift 1.3 </subsection>
93     <subsection>
94 swift 1.2 <title>Optional: Configuring BootX</title>
95     <body>
96    
97 swift 1.4 <impo>
98 swift 1.3 This subsection is <e>only</e> for PPC-users who want to use BootX as
99     bootloader. All other readers should skip this subsection.
100 swift 1.4 </impo>
101 swift 1.2
102     <p>
103     Now your machine is booted in MacOS, open the BootX control panel.
104     Select <c>Options</c>, and uncheck <c>Used specified RAM disk</c>. When you
105     return to the BootX main screen, you will now find an option to specify your
106     machine's root disk and partition. Fill these in with the appropriate
107     values.
108     </p>
109    
110     <p>
111     BootX can be configured to start Linux upon boot. If you do this, you will
112     first see your machine boot into MacOS then, during startup, BootX will
113     load and start Linux. See the <uri
114     link="http://penguinppc.org/projects/bootx/">BootX home page</uri> for more
115     information.
116     </p>
117    
118 swift 1.4 <p>
119     If you are a GRP users you can continue with <uri
120     link="#doc_chap2_sect3">Optional: Install Extra Packages</uri>, otherwise go to
121     <uri link="?part=1&amp;chap=12">Where to go from here?</uri>.
122     </p>
123    
124 swift 1.2 </body>
125 swift 1.1 </subsection>
126 swift 1.4 <subsection>
127 swift 1.1 <title>Optional: Install Extra Packages</title>
128     <body>
129    
130 swift 1.4 <impo>
131     This part is for GRP users only. Other users should skip this part and continue
132     with <uri link="?part=1&amp;chap=12">Where to go from here?</uri>.
133     </impo>
134    
135     <p>
136     Now that your system is booted, log on as the user you created (for instance,
137     <c>john</c>) and use <c>su -</c> to gain root privileges:
138     </p>
139    
140     <pre caption="Gaining root privileges">
141     $ <i>su -</i>
142     Password: <comment>(Enter your root password)</comment>
143     </pre>
144    
145     <p>
146     Now we need to copy over the prebuild binaries from the second CD (CD-2) if you
147     have it. First mount this CD:
148     </p>
149    
150     <pre caption="Mount the CD-2">
151     <comment>(Put CD-2 in the CD tray)</comment>
152     # <i>mount /mnt/cdrom</i>
153     </pre>
154    
155 swift 1.1 <p>
156 swift 1.4 Now copy over all prebuild binaries from the CD to
157     <path>/usr/portage/packages</path>. Make sure you use the same copy-command
158     (including the trailing <path>/</path>)!
159     </p>
160    
161     <pre caption="Copy over prebuild binaries">
162     # <i>cp -a /mnt/cdrom/* /usr/portage/packages/</i>
163     </pre>
164    
165     <p>
166     Now install the packages you want. CD-2 contains several prebuild binaries, for
167     instance KDE:
168     </p>
169    
170     <pre caption="Installing KDE">
171     # <i>emerge -k kde</i>
172     </pre>
173    
174     <p>
175     Be sure to install the binaries now. When you do an <c>emerge sync</c> to update
176     Portage (as you will learn later), the prebuilt binaries might not match against
177     the ebuilds in your updated Portage. You can try to circumvent this by using
178     <c>emerge -K</c> instead of <c>emerge -k</c>.
179     </p>
180    
181     <p>
182     Congratulations, your system is now fully equiped! Continue with <uri
183     link="?part=1&amp;chap=12">Where to go from here?</uri> to learn more about
184     Gentoo.
185 swift 1.1 </p>
186    
187     </body>
188 swift 1.4 </subsection>
189 swift 1.1 </section>
190 swift 1.3 </sections>

  ViewVC Help
Powered by ViewVC 1.1.20