/[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.6 - (show annotations) (download) (as text)
Fri Nov 14 08:59:48 2003 UTC (10 years, 10 months ago) by swift
Branch: MAIN
Changes since 1.5: +1 -1 lines
File MIME type: application/xml
Fix ofcourse typo :)

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

  ViewVC Help
Powered by ViewVC 1.1.20