Projekt

Allgemein

Profil

Install » Historie » Version 2

Jeremias Keihsler, 13.01.2017 08:30

1 1 Jeremias Keihsler
h1. Install Procedure for CentOS 7.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. 1 Requirements
6
7
To install such a system you will need the following:
8
9 2 Jeremias Keihsler
* Download the two CentOS 7.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 1 Jeremias Keihsler
* Network-Installation-Media @boot.iso@
11
* a fast Internet connection.
12
13
h2. 2 Preliminary Note
14
15
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.
16
17
h2. 3 Configure The Base System
18
19
Boot from your first CentOS 7.x DVD. 
20
As it can take a long time to test the installation media we skip this test here and press @<ENTER>@ at the boot prompt: 
21
22
!{width 500}centos7_inst01.png!
23
24
Choose your language next: 
25
26
!{width 500}centos7_inst02.png!
27
28
Instead of the step-by-step approach the previous CentOS-installer took, CentOS 7 uses a central point of configuration.
29
We will enter each section and return until all our settings are done.
30
31
!{width 500}centos7_inst03.png!
32
33
h3. Network & Hostname
34
35
Set the hostname manually, e.g. @server1.example.com@
36
37
Enable the network interfaces and @configure@ each of them
38
39
!{width 500}centos7_inst04.png!
40
41
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. 
42
43
!{width 500}centos7_inst07.png!
44
45
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. 
46
47
!{width 500}centos7_inst06.png!
48
49
h3. Date & Time
50
51
Choose your time zone:
52
53
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.
54
55
<pre><code class="bash">
56
0.de.pool.ntp.org
57
1.de.pool.ntp.org
58
2.de.pool.ntp.org
59
3.de.pool.ntp.org
60
</code></pre>
61
62
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. 
63
64
!{width 500}centos7_inst08.png!
65
66
h3. Keyboard
67
68
Select your keyboard layout: 
69
70
!{width 500}centos7_inst09.png!
71
72
h3. Installation Source
73
74
you may point to a local source or a web-based-server
75
76
!{width 500}centos7_inst10.png!
77
78
h3. Software Selection
79
80
for this example we go for a standard @GNOME-Desktop@
81
82
But you may want to consider a more appropriate selection for your system.
83
84
!{width 500}centos7_inst11.png!
85
86
h3. Installation Destination
87
88
Typically you will choose @Local Standard Disks@ here 
89
90
!{width 500}centos7_inst12.png!
91
92
Now we must select a partitioning scheme for our installation. Usually you will want to configure the layout on your own.
93
94
!{width 500}centos7_inst13.png!
95
96
 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.
97
98
|_. type                  |_. logical volume name |_. mount point |_. size |
99
|_. small database server | lv_swap             | swap        |   512|
100
|_.                       | lv_home             | \home       |  1024|
101
|_.                       | lv_var_log          | \var\log    |  1024|
102
|_.                       | lv_var              | \var        |  8192|
103
|_.                       | lv_root             | \           |  8192|
104
105
Click on @Done@ to continue: 
106
107
!{width 500}centos7_inst14.png!
108
109
* The hard drive is going to be formatted
110
* After the drive being formatted the partitioning layout needs to be written to disk
111
112
h2. 4 Install The Base System
113
114
115
!{width 500}centos7_inst15.png!
116
117
!{width 500}centos7_inst16.png!
118
119
h3. Set ROOT password
120
121
Give @root@ a password: 
122
123
!{width 500}centos7_inst17.png!
124
125
h3. Create Additional User
126
127
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. 
128
129
!{width 500}centos7_inst18.png!
130
131
132
!{width 500}centos7_inst19.png!
133
134
!{width 500}centos7_inst20.png!
135
136
h2. Initial Setup
137
138
139
140
!{width 500}centos7_inst21.png!
141
142
h3. Licence Information
143
144
145
!{width 500}centos7_inst22.png!
146
!{width 500}centos7_inst23.png!
147
148
If you enable kdump, you may want to stay with the preset defaults. 
149
150
Let's go Finish
151
152
!{width 500}centos7_inst24.png!
153
154
Finally, the installation is complete, and you can remove your CD or DVD from the computer and reboot it:
155
156
Welcome to your GNOME-Desktop-Environment.
157
158
After finishing our installation let's login the very first time.
159
160
!{width 500}centos7_inst25.png!
161
162
We change the screen to a text console via @CTRL-ALT-F2@
163
164
Please provide your username @root@. Do you still remember the password you thought of a few minutes ago? 
165
166
!{width 500}centos7_inst26.png!
167
168
get all the latest updates via @yum update@
169
170
!{width 500}centos7_inst27.png!
171
172
The installation begins. This will take a few minutes:
173
174
h2. 5 Post Installation Steps
175
176
h3. Install additional packages
177
178
With @minimal Desktop@ the most important packages are already installed. If you are curious about installed and available package-groups use
179
<pre><code class="bash">
180
yum grouplist
181
</code></pre>
182
and install additional groups via
183
<pre><code class="bash">
184
yum groupinstall "xxx"
185
</code></pre>