/[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.31 - (show annotations) (download) (as text)
Sat Oct 2 21:53:56 2004 UTC (10 years ago) by cam
Branch: MAIN
Changes since 1.30: +5 -5 lines
File MIME type: application/xml
s/emerge sync/emerge --sync/ requested by beejay, confirmed by Kumba

1 <?xml version='1.0' encoding='UTF-8'?>
2 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3
4 <!-- The content of this document is licensed under the CC-BY-SA license -->
5 <!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
6
7 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-finalise.xml,v 1.30 2004/08/04 08:46:30 swift Exp $ -->
8
9 <sections>
10 <section>
11 <title>User Administration</title>
12 <subsection>
13 <title>Adding a User for Daily Use</title>
14 <body>
15
16 <p>
17 Working as root on a Unix/Linux system is <e>dangerous</e> and should be avoided
18 as much as possible. Therefore it is <e>strongly</e> recommended to add a user
19 for day-to-day use.
20 </p>
21
22 <p>
23 For instance, to create a user called <c>john</c> who is member of the
24 <c>wheel</c> group (be able to change to root using <c>su</c>), <c>users</c>
25 group (default for all users) and <c>audio</c> group (be able to use audio
26 devices), log in as root first (only root can create users):
27 </p>
28
29 <pre caption="Adding a user for day-to-day use">
30 Login: <i>root</i>
31 Password: <comment>(Your root password)</comment>
32
33 # <i>useradd john -m -G users,wheel,audio,tty -s /bin/bash</i>
34 # <i>passwd john</i>
35 Password: <comment>(Enter the password for john)</comment>
36 Re-enter password: <comment>(Re-enter the password to verify)</comment>
37 </pre>
38
39 <p>
40 If a user ever needs to perform some task as root, they can use <c>su -</c>
41 to temporarily receive root privileges. Another way is to use the <c>sudo</c>
42 package which is, if correctly configured, very secure.
43 </p>
44
45 </body>
46 </subsection>
47 </section>
48 <section>
49 <title>Optional: Install GRP Packages</title>
50 <body>
51
52 <impo>
53 This part is for GRP users only. Other users should skip this part and continue
54 with <uri link="?part=1&amp;chap=12">Where to go from here?</uri>.
55 </impo>
56
57 <p>
58 Now that your system is booted, log on as the user you created (for instance,
59 <c>john</c>) and use <c>su -</c> to gain root privileges:
60 </p>
61
62 <pre caption="Gaining root privileges">
63 $ <i>su -</i>
64 Password: <comment>(Enter your root password)</comment>
65 </pre>
66
67 <p>
68 Now we need to change the Portage configuration to look for the prebuilt
69 binaries from the second CD (Gentoo Packages CD). First mount this CD:
70 </p>
71
72 <pre caption="Mount the Packages CD">
73 <comment>(Put the Gentoo Packages CD in the CD tray)</comment>
74 # <i>mount /mnt/cdrom</i>
75 </pre>
76
77 <p>
78 Now configure Portage to use <path>/mnt/cdrom</path> for its prebuilt packages:
79 </p>
80
81 <pre caption="Configuring Portage to use /mnt/cdrom">
82 # <i>ls /mnt/cdrom</i>
83
84 <comment>(If there is a /mnt/cdrom/packages directory:)</comment>
85 # <i>export PKGDIR="/mnt/cdrom/packages"</i>
86
87 <comment>(Otherwise:)</comment>
88 # <i>export PKGDIR="/mnt/cdrom"</i>
89 </pre>
90
91 <p>
92 Now install the packages you want. The Packages CD contains several prebuilt
93 binaries, for instance KDE:
94 </p>
95
96 <pre caption="Installing KDE">
97 # <i>emerge --usepkg kde</i>
98 </pre>
99
100 <p>
101 Be sure to install the binaries now. When you do an <c>emerge --sync</c> to
102 update Portage (as you will learn later), the prebuilt binaries might not match
103 against the ebuilds in your updated Portage. You can try to circumvent this by
104 using <c>emerge --usepkgonly</c> instead of <c>emerge --usepkg</c>.
105 </p>
106
107 <p>
108 Congratulations, your system is now fully equiped! Continue with <uri
109 link="?part=1&amp;chap=12">Where to go from here?</uri> to learn more about
110 Gentoo.
111 </p>
112
113 </body>
114 </section>
115 </sections>

  ViewVC Help
Powered by ViewVC 1.1.20