Last active
March 16, 2020 00:19
-
-
Save mrsombre/3607284 to your computer and use it in GitHub Desktop.
CentOS VirtualBox install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== Symlink Support in Windows | |
The first step is installing Polsedit - User Policies Editor. When you open it, look for Create symbolic links. | |
http://www.southsoftware.com/polsedit.zip | |
Double click the row, click Add User or Group... and look for your username in the list. | |
Closing the app will automatically save your choices, and you'll need to reboot your machine. | |
=== Updating fresh system | |
;; Edit /etc/yum.conf and set installonly_limit: 2 | |
yum upgrade | |
reboot | |
=== Check system in UTC | |
date | |
## [...UTC...] ## | |
=== vbox guest additions | |
## CentOS 6 and Red Hat (RHEL) 6 ## | |
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
yum install gcc kernel-devel kernel-headers dkms make bzip2 perl | |
## Current running kernel on Fedora, CentOS 6 and Red Hat (RHEL) 6 ## | |
KERN_DIR=/usr/src/kernels/`uname -r` | |
## Export KERN_DIR ## | |
export KERN_DIR | |
echo $KERN_DIR | |
## /usr/src/kernels/<kernel_release> ## | |
## install additions ## | |
mkdir /media/VirtualBoxGuestAdditions | |
mount -r /dev/cdrom /media/VirtualBoxGuestAdditions | |
/media/VirtualBoxGuestAdditions/VBoxLinuxAdditions.run | |
reboot | |
Put into /etc/fstab | |
# vbox | |
web /web vboxsf defaults 0 0 | |
=== Firewall disable | |
service iptables save | |
service iptables stop | |
chkconfig iptables off | |
=== SELinux disable | |
cat /etc/selinux/config | |
# SELINUX=disabled | |
# SELINUXTYPE=targeted | |
# SETLOCALDEFS=0 | |
reboot | |
sestatus | |
## [SELinux status:disabled] ## | |
=== Install REMI repo [http://blog.famillecollet.com/pages/Config-en] | |
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm | |
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm | |
=== Install LAMP | |
yum --enablerepo=remi install httpd mysql mysql-server php | |
chkconfig --level 2345 httpd on | |
chkconfig --level 2345 mysqld on | |
=== ICU | |
http://habrahabr.ru/post/241447/ | |
wget http://apps.icu-project.org/icu-jsp/downloadPage.jsp?ver=50.1.2&base=cs&svn=release-50-1-2 | |
tar -zxf icu4c-50_1_2-src.tgz | |
cd icu/source | |
mkdir bin | |
./configure | |
# собираем утилиту icupkg | |
cd tools/icupkg/ | |
make | |
cd ../../ | |
# теперь обновим файл данных | |
cd data/in/ | |
# копируем скаченные ранее файлы в эту папку и добавляем их в файл данных | |
../../bin/icupkg -a zoneinfo64.res icudt50l.dat | |
../../bin/icupkg -a metaZones.res icudt50l.dat | |
../../bin/icupkg -a timezoneTypes.res icudt50l.dat | |
../../bin/icupkg -a windowsZones.res icudt50l.dat | |
# после чего запускаем сборку | |
cd ../../ | |
make | |
В принципе, на этом можно остановиться и после сборки заменить в системе библиотеку из /usr/lib64/ | |
на новую версию ./lib/libicudata.so.50.1.2. | |
=== NTP | |
yum install ntp | |
chkconfig ntpd on | |
=== eth0 | |
DEVICE=eth0 | |
ONBOOT=yes | |
BOOTPROTO=dhcp | |
IPADDR=10.0.2.107 | |
=== eth1 | |
DEVICE=eth1 | |
ONBOOT=yes | |
BOOTPROTO=none | |
IPADDR=192.168.56.107 | |
PREFIX=24 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment