# installation of required packages for building R sudo yum install libxml2-devel libxml2-static tcl tcl-devel tk tk-devel libtiff-static libtiff-devel libjpeg-turbo-devel libpng12-devel cairo-tools libicu-devel openssl-devel libcurl-devel freeglut readline-static readline-devel cyrus-sasl-devel texlive texlive-xetex
# install R su -c 'rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm' sudo yum update sudo yum install R R-devel R-java
## remove R sudo rm -rf /usr/lib64/R
# install MRO ## Make sure the system repositories are up-to-date prior to installing Microsoft R Open. sudo yum clean all ## get the installers wget https://mran.microsoft.com/install/mro/3.2.4/MRO-3.2.4.el7.x86_64.rpm wget https://mran.microsoft.com/install/mro/3.2.4/RevoMath-3.2.4.tar.gz ## install MRO sudo yum install MRO-3.2.4.el7.x86_64.rpm ## install MKL tar -xzf RevoMath-3.2.4.tar.gz cd RevoMath sudo bash ./RevoMath.sh ### Choose option 1 to install MKL and follow the onscreen prompts.
## change the right of folders makes owner can install packages in library sudo chown -R celest.celest /usr/lib64/MRO-3.2.4/R-3.2.4/lib64/R sudo chmod -R 775 /usr/lib64/MRO-3.2.4/R-3.2.4/lib64/R
## open the firewall for shiny-server sudo firewall-cmd --zone=public --add-port=3838/tcp --permanent sudo firewall-cmd --reload
## the server file is in /srv/shiny-server ## there are some examples, you can browser localhost:3838, ## localhost:3838/sample-apps/hello and localhost:3838/sample-apps/rmd
## Configure the package management system sudo subl /etc/yum.repos.d/mongodb-org-3.2.repo ## add following lines into file # [mongodb-org-3.2] # name=MongoDB Repository # baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/ # gpgcheck=1 # enabled=1 # gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc ## install mongoDB sudo yum install -y mongodb-org
## prevent updating version of mongodb sudo subl /etc/yum.conf ## add following line into file # exclude=mongodb-org,mongodb-org-server,mongodb-org-shell,mongodb-org-mongos,mongodb-org-tools
## start mongod on boot sudo chkconfig mongod on
## increase the soft limit of number of process for mongod sudo subl /etc/security/limits.conf ## add following line into file (third line must be added, other lines are optional.) # mongod soft nofile 64000 # mongod hard nofile 64000 # mongod soft nproc 32000 # mongod hard nproc 32000
## to disable transparent huge pages # https://docs.mongodb.com/manual/tutorial/transparent-huge-pages/ sudo subl /etc/init.d/disable-transparent-hugepages ## add following line into file # #!/bin/sh # ### BEGIN INIT INFO # # Provides: disable-transparent-hugepages # # Required-Start: $local_fs # # Required-Stop: # # X-Start-Before: mongod mongodb-mms-automation-agent # # Default-Start: 2 3 4 5 # # Default-Stop: 0 1 6 # # Short-Description: Disable Linux transparent huge pages # # Description: Disable Linux transparent huge pages, to improve # # database performance. # ### END INIT INFO # # case $1 in # start) # if [ -d /sys/kernel/mm/transparent_hugepage ]; then # thp_path=/sys/kernel/mm/transparent_hugepage # elif [ -d /sys/kernel/mm/redhat_transparent_hugepage ]; then # thp_path=/sys/kernel/mm/redhat_transparent_hugepage # else # return 0 # fi # # echo 'never' > ${thp_path}/enabled # echo 'never' > ${thp_path}/defrag # # unset thp_path # ;; # esac ## make it executable sudo chmod 755 /etc/init.d/disable-transparent-hugepages ## run it on boot sudo chkconfig --add disable-transparent-hugepages
## Give a permissive policy on your /mongo/ directory that permits access to daemons (like the mongod service.). # http://stackoverflow.com/questions/30182016/unable-to-start-mongodb-3-0-2-service-on-centos-7 # https://www.centos.org/docs/5/html/5.1/Deployment_Guide/sec-sel-enable-disable.html sudo subl /etc/sysconfig/selinux # set SELINUX=disabled
Automatically enabling your network connection at startup on CentOS 7:
1 2
# In my case, it is ifcfg-eno1. It may be different for other machine. sudo sed -i -e 's@^ONBOOT=no@ONBOOT=yes@' /etc/sysconfig/network-scripts/ifcfg-eno1
Installation of ftp server on CentOS 7:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
sudo yum install -y vsftpd
# edit the environment of vsftpd sudo subl /etc/vsftpd/vsftpd.conf # stop the anonymous logging sudo sed -i -e 's@^anonymous_enable=YES@anonymous_enable=NO@' /etc/vsftpd/vsftpd.conf
# start the service and start on boot sudo service vsftpd start chkconfig vsftpd on
## open the firewall for xrdp sudo firewall-cmd --zone=public --add-port=21/tcp --permanent sudo firewall-cmd --reload
Installation of xrdp on CentOS 7 / RHEL 7 (remote desktop from windows):
## open the firewall for xrdp sudo firewall-cmd --zone=public --add-port=3389/tcp --permanent sudo firewall-cmd --reload # start service sudo systemctl start xrdp.service # enable service on boot sudo systemctl enable xrdp.service
## Attention: the bpp color must be set to be 24bit. (in windows.)
Mount another network disk:
1 2 3 4 5 6 7
sudo mount -t cifs -o username="xxxxxxx",password="yyyyyyy" //ip-address/folder /mnt/folder
# to mount on boot subl /etc/fstab ## add following lines into file # //ip-address/folder /mnt/folder username=xxxxxxx,password=yyyyyyy,uid=1000,gid=1000,sec=ntlm,iocharset=utf8 0 0 sudo mount -a