Project

General

Profile

Centos installation shared » History » Version 6

Anchi Cheng, 10/09/2015 10:30 AM

1 1 Amber Herold
h2. Why CentOS?
2
3
If you have a new computer(s) for your Leginon/Appion installation, we recommend installing CentOS because it is considered to be more stable than other varieties of Linux.
4
5
CentOS is the same as Red Hat Enterprise Linux (RHEL), except that it is free and supported by the community.
6
7
We have most experience in the installation on CentOS and this installation guide has specific instruction for the process.
8
9 4 Amber Herold
see [[Select_Linux_distribution_to_use|Linux distribution recommendation]] for more information on Operating System choices.
10 1 Amber Herold
11 5 Amber Herold
h2. CentOS Installation Resources
12 4 Amber Herold
13
Note that upgrading from CentOS 5 to CentOS 6 might damage existing filesystems and operating systems as described in "CentOS Migration Guide":http://wiki.centos.org/HowTos/MigrationGuide. That's why we recommend starting with a fresh install of CentOS 6. If you need more details on how to install CentOS than we provide here, the following links provide excellent step by step guide on how to install CentOS 6 Linux from scratch on a new machine:
14
15
* http://linuxmoz.com/how-to-install-centos-6-linux-for-servers-desktops
16
* http://www.if-not-true-then-false.com/2011/centos-6-netinstall-network-installation
17
18
19 2 Amber Herold
h2. Download the ISO disk of CentOS 
20 1 Amber Herold
21 6 Anchi Cheng
*Latest version tested at NRAMM:* 
22 1 Amber Herold
23 6 Anchi Cheng
* CentOS 5.8 for Leginon/Appion 2.2
24
* CentOS 6.3 for Leginon/Appion 2.2-redux and 3.0
25
* CentOS 6.7 for Leginon/Appion 3.1+ and trunk
26
27
*Note:* Formally released versions of Appion  at versions 1.x and 2.x run on CentOS 5.x. except 2.2-redux, which has the same features as 2.2, but runs on CentOS 6.x.
28 1 Amber Herold
29
 # ISO files are available at
30
 ## http://wiki.centos.org/Download
31
 ## http://mirrors.kernel.org/centos/
32
 # Click on i386 for 32bit machines or x86_64 for 64bit machines
33 2 Amber Herold
 # Pick a mirror and download the appropriate file such as 'CentOS-5.8-i386-bin-DVD-1of2.iso ' 
34 1 Amber Herold
35
h2. Confirm download went correctly
36
37
Perform a SHA1SUM confirmation:
38
39
<pre>
40
sha1sum CentOS-5.8-i386-bin-DVD-1of2.iso
41
</pre>
42
43
The result should be the same as in the sha1sum file provided by CentOS. This is found at the same location you downloaded the .iso file.
44
For example:
45
46
* http://centos.mirrors.tds.net/pub/linux/centos/5.4/isos/x86_64/sha1sum.txt for 64bit
47
* http://centos.mirrors.tds.net/pub/linux/centos/5.4/isos/i386/sha1sum.txt for 32bit
48
49
50
51
h2. Burn ISO file to DVD disk 
52
53
Use dvdrecord in Linux to burn disk.
54
55
<pre>
56
dvdrecord -v -dao gracetime=10 dev=/dev/dvd speed=16 CentOS-5.8-i386-bin-DVD-1of2.iso 
57
</pre>
58
59
h2. Install CentOS with default packages 
60
61
 * Setup network, root, password as desired
62 4 Amber Herold
 * This installation guide assumes that *"Software Development Workstation"* is selected during the package selection step
63 1 Amber Herold
 * More information available at [http://wiki.centos.org/Documentation CentOS Documentation]
64
65
h2. Add yourself to the sudoers file 
66
67
*Note:* This step is optional, however you will need root access to complete the Appion Installation.
68
69
Make sure you have root permission.
70
Open the file in an editor. ex. vi /etc/sudoers
71
Look for the line: root ALL=(ALL) ALL.
72
Add this line below the root version:
73
74
<pre>
75
your_username ALL=(ALL)       ALL
76
</pre>
77
78
Logout and log back in with your username.
79 4 Amber Herold
80
h2. Disable SELinux and Firewall
81
82
To disable "SELinux":http://wiki.centos.org/HowTos/SELinux:
83
84
# Edit file "/etc/selinux/config"
85
# Change "SELINUX=enforcing" to "SELINUX=disabled"
86
# Save the file
87
# Restart your computer
88
89
To disable firewall run _system-config-firewall-tui_ command and use Space key to unchecked the checkbox next to Enabled.
90
91 1 Amber Herold
92
The CentOS installation is complete.