Projekt

Allgemein

Profil

Install » Historie » Version 1

Jeremias Keihsler, 13.01.2017 10:35

1 1 Jeremias Keihsler
h1. Install Procedure for CentOS 6.x
2
3
I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take.
4
5
h2. Requirements
6
7
To install such a system you will need the following:
8
9
* Download the two CentOS 6.x DVDs from a mirror next to you (the list of mirrors can be found here: http://isoredirect.centos.org/centos/6/isos/x86_64/).
10
* a fast Internet connection.
11
12
h2. Preliminary Note
13
14
In this tutorial I use the hostname @server1.example.com@ with the IP address @192.168.0.100@ and the gateway @192.168.0.1@. These settings might differ for you, so you have to replace them where appropriate.
15
16
h2. Install The Base System
17
18
Boot from your first CentOS 6.x DVD. Press @<ENTER>@ at the boot prompt: 
19
20
!{width 500}centos6_inst01.png!
21
22
It can take a long time to test the installation media so we @skip@ this test here: 
23
24
!{width 500}centos6_inst02.png!
25
26
The welcome screen of the CentOS installer appears. Click on @Next@: 
27
28
!{width 500}centos6_inst03.png!
29
30
Choose your language next: 
31
32
!{width 500}centos6_inst04.png!
33
34
Select your keyboard layout: 
35
36
!{width 500}centos6_inst05.png!
37
38
Typically you will choose @Basic Storage Devices@ here
39
40
!{width 500}centos6_inst06.png!
41
42
I'm installing CentOS 6.x on a fresh system, so I answer @Re-initialize all@
43
44
!{width 500}centos6_inst07.png!
45
46
Set the hostname manually, e.g. @server1.example.com@
47
48
!{width 500}centos6_inst08.png!
49
50
On to the @configure network@. The default setting here is to configure the network interfaces with DHCP, but we are installing a server, so static IP addresses are not a bad idea... Click on the Edit button after selecting the interface.
51
52
!{width 500}centos6_inst09.png!
53
54
In the window that pops up uncheck //Dynamic IP configuration (DHCP)// and //Enable IPv6 support// and give your network card a static IP address (in this tutorial I'm using the IP address @192.168.0.100@ for demonstration purposes) and a suitable netmask (e.g. @255.255.255.0@; if you are not sure about the right values, http://www.subnetmask.info might help you) also enter a gateway (e.g. @192.168.0.1@) and up to two DNS servers (e.g. @8.8.8.8@ and @145.253.2.75@). By default all interfaces are **not** connected automatically, in most cases you want to change this.
55
56
!{width 500}centos6_inst10.png!
57
58
Choose your time zone:
59
60
!{width 500}centos6_inst11.png!
61
62
Give @root@ a password: 
63
64
!{width 500}centos6_inst12.png!
65
66
Now we must select a partitioning scheme for our installation. For simplicity's sake I select //use all space// and //Review and modify partitioning layout//. Then I hit @Next@: 
67
68
!{width 500}centos6_inst13.png!
69
70
This will result in a small /boot and a large / partition as well as a swap partition. Of course, you're free to partition your hard drive however you like it.
71
72
|_. type                  |_. logical volume name |_. mount point |_. size |
73
|_. small database server | lv_swap             | swap        |   512|
74
|_.                       | lv_home             | \home       |  1024|
75
|_.                       | lv_var_log          | \var\log    |  1024|
76
|_.                       | lv_var              | \var        |  3096|
77
|_.                       | lv_root             | \           |  4096|
78
Click on @Next@ to continue: 
79
80
!{width 500}centos6_inst14.png!
81
82
The hard drive is going to be formatted: 
83
84
!{width 500}centos6_inst15.png!
85
86
After the drive being formatted the partitioning layout needs to be writen to disk:
87
88
!{width 500}centos6_inst16.png!
89
90
As we have only one system on our disk, we leave the boot loader options with their defaults:
91
92
!{width 500}centos6_inst17.png!
93
94
Now we select the software we want to install. I usually choose @Minimal Desktop@, so we install the @GNOME-Desktop-Environment@. You are free to choose additional software repositories and via //Customize now// you can select some stuff to install on a package basis. Click on @Next@:
95
96
!{width 500}centos6_inst18.png!
97
98
The installation begins. This will take a few minutes:
99
100
!{width 500}centos6_inst19.png!
101
102
Finally, the installation is complete, and you can remove your CD or DVD from the computer and reboot it: 
103
104
!{width 500}centos6_inst20.png!
105
106
h2. Configuring The Base System
107
108
After a reboot the machine starts into a graphical basic settings environment. Click @Forward@ to continue.
109
110
!{width 500}centos6_setup01.png!
111
112
Here we get informed about the CentOS-License, most likely you want to @Agree@ and click @Forward@.
113
114
!{width 500}centos6_setup02.png!
115
116
you should always have a @user@ even in a server environment. Use your @root@ access only when necessary to prevent unintended changes to the system.
117
118
!{width 500}centos6_setup03.png!
119
120
Check Date and Time, as many services are very dependant on the timestamp you should set an approprate time-server or even better a time-server-pool. If you have internet access and are based in germany you might want to use following public NTP-server-pool.
121
122
<pre><code class="bash">
123
0.de.pool.ntp.org
124
1.de.pool.ntp.org
125
2.de.pool.ntp.org
126
3.de.pool.ntp.org
127
</code></pre>
128
check www.ntp.org for details. If you don't have access to a public NTP-server ask your admin for a local NTP-server.
129
130
!{width 500}centos6_setup04.png!
131
132
@Kdump@ is the Crash-Kernel environment. If you have less than 4GB RAM, you will get following Error-Message:
133
134
!{width 500}centos6_setup05.png!
135
136
If you @enable kdump@, make sure to assign at 384MB least, the default 128MB are not enough and will result in a bootlog-error. We don't need any more for our basic installation. Let's go @Finish@
137
138
!{width 500}centos6_setup06.png!
139
140
Welcome to your GNOME-Desktop-Environment.
141
142
After finishing our installation let's login the very first time.
143
144
Unlike previous CentOS-Versions there is direct no @root@-login to the graphical environment.
145
146
!{width 500}centos6_update01.png!
147
148
We change the screen to a text console via @CTRL-ALT-F2@
149
150
Please provide your username @root@. Do you still remember the password you thought of a few minutes ago?
151
152
!{width 500}centos6_update02.png!
153
154
get all the latest updates via @yum update@
155
156
!{width 500}centos6_update03.png!
157
158
h2. Post Installation Steps
159
160
h3. Install additional packages
161
162
With @minimal Desktop@ the most important packages are already installed. If you are curious about installed and available package-groups use
163
<pre><code class="bash">
164
yum grouplist
165
</code></pre>
166
and install additional groups via
167
<pre><code class="bash">
168
yum groupinstall "xxx"
169
</code></pre>