Skip to content

Instantly share code, notes, and snippets.

@david-hammond
Last active February 13, 2018 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save david-hammond/6f7ad505b6a6576f357cfab77833cf36 to your computer and use it in GitHub Desktop.
Save david-hammond/6f7ad505b6a6576f357cfab77833cf36 to your computer and use it in GitHub Desktop.
Reproducible server
# after installing centos7 Compute Machine option
sudo yum install epel-release -y
sudo yum update -y
sudo yum install net-tools -y
sudo shutdown -r now
sudo yum install R -y
sudo yum install wget -y
wget https://download2.rstudio.org/rstudio-server-rhel-1.1.419-x86_64.rpm
sudo yum install rstudio-server-rhel-1.1.419-x86_64.rpm -y
sudo systemctl status rstudio-server.service
sudo systemctl enable rstudio-server.service
sudo firewall-cmd --permanent --zone=public --add-port=8787/tcp
sudo firewall-cmd --reload
sudo yum install libxml2-devel -y
sudo yum install openssl-devel -y
sudo yum install libcurl-devel -y
sudo yum install htop -y
sudo yum install cifs-utils -y
sudo yum install git -y
# for mounting drives
sudo mkdir /mnt/share
sudo mkdir /mnt/allaccess
#mount -t cifs -o username=<share user>,password=<share password> //WIN_PC_IP/<share name> /mnt
sudo mount -a
#timedatectl set-timezone Australia/Sydney
# https://www.liberiangeek.net/2014/07/create-configure-samba-shares-centos-7/
sudo yum groupinstall "GNOME Desktop" "Graphical Administration Tools" -y
#setup time server
sudo yum install ntp -y
sudo vi /etc/ntp.conf
#comment out and replace with
server 0.au.pool.ntp.org
server 1.au.pool.ntp.org
server 2.au.pool.ntp.org
server 3.au.pool.ntp.org
firewall-cmd --add-service=ntp --permanent
firewall-cmd --reload
systemctl start ntpd
systemctl enable ntpd
systemctl status ntpd
ntpq -p
date -R
sudo su - -c "R -e \"install.packages('devtools', repos='http://cran.rstudio.com/')\""
sudo su - -c "R -e \"install.packages('tidyverse', repos='http://cran.rstudio.com/')\""
sudo su - -c "R -e \"install.packages('pacman', repos='http://cran.rstudio.com/')\""
sudo su - -c "R -e \"install.packages('ProjectTemplate', repos='http://cran.rstudio.com/')\""
sudo su - -c "R -e \"install.packages('rio', repos='http://cran.rstudio.com/')\""
#parted -s -a optimal /dev/sda mklabel gpt -- mkpart primary ext4 1 -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment