Created
April 6, 2016 13:40
-
-
Save inigoalonso/0fe3a7fd208f0fd0bc34d80ec3ab6810 to your computer and use it in GitHub Desktop.
Provisioning script from http://www.smolloy.com/2015/12/linux-environment-for-epics-operator-screens/
This file contains hidden or 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
#!/bin/bash | |
apt-get -y update | |
apt-get -y upgrade | |
apt-get -y install build-essential default-jre libreadline-dev | |
mkdir -p /home/vagrant/Apps/epics | |
ln -s /home/vagrant/Apps/epics /usr/local/ | |
echo "Installing EPICS" | |
wget --quiet http://www.aps.anl.gov/epics/download/base/baseR3.14.12.5.tar.gz | |
tar -xzf baseR3.14.12.5.tar.gz -C /home/vagrant/Apps/epics | |
rm baseR3.14.12.5.tar.gz | |
ln -s /home/vagrant/Apps/epics/base-3.14.12.5 /home/vagrant/Apps/epics/base | |
export EPICS_HOST_ARCH=$(/usr/local/epics/base/startup/EpicsHostArch) | |
cd /home/vagrant/Apps/epics/base | |
make | |
echo "Grabbing CS Studio. This can take a while..." | |
cd /home/vagrant | |
wget --quiet https://ics-web.sns.ornl.gov/css/updates/apps/epics_css_3.2.16-linux.gtk.x86_64.zip | |
echo "Done! Installing..." | |
unzip epics_css_3.2.16-linux.gtk.x86_64.zip -d /home/vagrant/Apps | |
rm epics_css_3.2.16-linux.gtk.x86_64.zip | |
ln -s /home/vagrant/Apps/CSS_EPICS_3.2.16/css /usr/local/bin/ | |
chown -R vagrant:vagrant Apps | |
echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment