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

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

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

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

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20