/[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 - (hide annotations) (download) (as text)
Sat Oct 2 21:53:56 2004 UTC (9 years, 10 months 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 swift 1.14 <?xml version='1.0' encoding='UTF-8'?>
2     <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3    
4 swift 1.5 <!-- 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 cam 1.31 <!-- $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 swift 1.7
9 swift 1.3 <sections>
10 swift 1.1 <section>
11     <title>User Administration</title>
12 swift 1.4 <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 swift 1.10 as much as possible. Therefore it is <e>strongly</e> recommended to add a user
19 swift 1.4 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 swift 1.30 devices), log in as root first (only root can create users):
27 swift 1.4 </p>
28    
29     <pre caption="Adding a user for day-to-day use">
30 swift 1.30 Login: <i>root</i>
31     Password: <comment>(Your root password)</comment>
32    
33 swift 1.28 # <i>useradd john -m -G users,wheel,audio,tty -s /bin/bash</i>
34 swift 1.4 # <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 swift 1.26 If a user ever needs to perform some task as root, they can use <c>su -</c>
41 swift 1.25 to temporarily receive root privileges. Another way is to use the <c>sudo</c>
42 swift 1.4 package which is, if correctly configured, very secure.
43 swift 1.1 </p>
44    
45     </body>
46 swift 1.4 </subsection>
47 swift 1.3 </section>
48     <section>
49 swift 1.19 <title>Optional: Install GRP Packages</title>
50 swift 1.1 <body>
51    
52 swift 1.4 <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 swift 1.20 Now we need to change the Portage configuration to look for the prebuilt
69 swift 1.21 binaries from the second CD (Gentoo Packages CD). First mount this CD:
70 swift 1.4 </p>
71    
72 swift 1.21 <pre caption="Mount the Packages CD">
73     <comment>(Put the Gentoo Packages CD in the CD tray)</comment>
74 swift 1.4 # <i>mount /mnt/cdrom</i>
75     </pre>
76    
77 swift 1.1 <p>
78 swift 1.20 Now configure Portage to use <path>/mnt/cdrom</path> for its prebuilt packages:
79 swift 1.4 </p>
80    
81 swift 1.20 <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 swift 1.4 </pre>
90    
91     <p>
92 swift 1.21 Now install the packages you want. The Packages CD contains several prebuilt
93     binaries, for instance KDE:
94 swift 1.4 </p>
95    
96     <pre caption="Installing KDE">
97 dertobi123 1.29 # <i>emerge --usepkg kde</i>
98 swift 1.4 </pre>
99    
100     <p>
101 cam 1.31 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 swift 1.4 </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 swift 1.1 </p>
112    
113     </body>
114     </section>
115 swift 1.3 </sections>

  ViewVC Help
Powered by ViewVC 1.1.20