Skip to content

Instantly share code, notes, and snippets.

@asears
Last active October 11, 2016 18:36
Show Gist options
  • Select an option

  • Save asears/e8a9e97b9d76b1b66e53506526807b14 to your computer and use it in GitHub Desktop.

Select an option

Save asears/e8a9e97b9d76b1b66e53506526807b14 to your computer and use it in GitHub Desktop.
#!/bin/bash
# create a repo for rstudio server on centos 7
# https://www.digitalocean.com/community/tutorials/how-to-set-up-and-use-yum-repositories-on-a-centos-6-vps
mkdir ~/rstudio
cd ~/rstudio
wget https://s3.amazonaws.com/rstudio-dailybuilds/rstudio-server-rhel5-1.0.35-x86_64.rpm
yum -y install createrepo
mkdir /repo
mkdir /repo/rstudio
createrepo /repo/rstudio
export REPOFILE=/etc/yum.repos.d/rstudioserver.repo
echo "[rstudiorepo]" > $REPOFILE
echo "name=RStudio Repository" >> $REPOFILE
echo "baseurl=file:///repo/rstudio/" >> $REPOFILE
echo "enabled=1" >> $REPOFILE
echo "gpgcheck=0" >> $REPOFILE
yum list | grep rstudio
ln -s /usr/lib64/libssl.so.10 /usr/lib64/libssl.so.6
ln -s /usr/lib64/libcrypto.so.10 /usr/lib64/libcrypto.so.6
# yum -y install R
# yum -y install rstudio-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment