This repository has been archived by the owner on Jul 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
install_core_libs_CentOS.sh
84 lines (74 loc) · 2.81 KB
/
install_core_libs_CentOS.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
# for CentOS Linux release 7.1.1503
sudo rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
sudo rpm -iUvh http://yum.postgresql.org/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-1.noarch.rpm
sudo yum -y update
sudo yum install -y net-tools
sudo yum install -y kernel-devel
sudo yum install -y freetype freetype-devel
sudo yum install -y libpng libpng-devel
sudo yum install -y openjpeg openjpeg-devel
sudo yum install -y libtiff libtiff-devel
sudo yum install -y dkms
sudo yum install -y bash
sudo yum install -y git
sudo yum install -y unzip
sudo yum install -y ruby
sudo yum install -y openssl-devel
sudo yum install -y libxml2 libxml2-devel
sudo yum install -y libxslt libxslt-devel
sudo yum install -y boost
sudo yum install -y boost-devel
sudo yum install -y flex
sudo yum install -y bison
sudo yum install -y gcc-c++
sudo yum install -y cmake
sudo yum install -y make
sudo yum install -y libffi-devel
sudo yum install -y lapack-devel
sudo yum -y --enablerepo=epel install uuid
sudo yum install -y postgresql93 postgresql93-server postgresql93-contrib postgresql93-devel postgresql93-libs --disablerepo=* --enablerepo=pgdg93
sudo yum install -y python-psycopg2
sudo yum install -y tkinter
sudo yum install -y nss-mdns avahi-compat-libdns_sd-devel
sudo yum install -y avahi-tools
sudo yum install -y pygobject3
sudo yum install -y python-devel
sudo yum install -y ntsysv
sudo yum install -y GraphicsMagick
sudo yum install -y GraphicsMagick-devel
sudo yum install -y GraphicsMagick-c++
sudo yum install -y GraphicsMagick-c++-devel
sudo yum install -y potrace
sudo yum install -y potrace-devel
sudo yum install -y openbabel
sudo yum install -y openbabel-devel
sudo yum install -y netpbm-devel
sudo yum install -y glib2-devel
sudo yum install -y httpd
sudo yum install -y php
sudo yum install -y php-pgsql
sudo yum install -y phpPgAdmin
sudo yum install -y mod_wsgi
sudo yum install -y vim-enhanced
sudo yum install -y policycoreutils-python
sudo yum install -y yum-cron
sudo yum install -y openssh-server
gem install gist
sudo ln -s /usr/pgsql-9.3/bin/pg_config /usr/local/bin/pg_config
sudo systemctl enable postgresql-9.3
sudo /usr/pgsql-9.3/bin/postgresql93-setup initdb
sudo systemctl start postgresql-9.3
#sudo mkdir /media/cdrom/
#sudo mount /dev/cdrom /media/cdrom/
#cd /media/cdrom/
#sudo ./VBoxLinuxAdditions.run
#sudo audit2allow -a -M httpd_postgresql_unix_socket_connect
#sudo semodule -i httpd_postgresql_unix_socket_connect.pp
sudo firewall-cmd --zone=public --add-service=http --permanent
sudo firewall-cmd --zone=public --add-service=https --permanent
sudo firewall-cmd --zone=public --add-port=80/tcp --permanent
sudo firewall-cmd --zone=public --add-port=9612/tcp --permanent
sudo firewall-cmd --zone=public --add-port=5432/tcp --permanent
sudo firewall-cmd --reload
sudo systemctl enable httpd