Last active
December 15, 2015 00:39
-
-
Save edwardtoday/5174488 to your computer and use it in GitHub Desktop.
Ubuntu Server 12.10 AWS init script
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
sudo apt-get update && sudo apt-get upgrade | |
sudo apt-get install build-essential libxml2-dev libfuse-dev libcurl4-openssl-dev emacs24-nox | |
# Install s3fs to mount S3 bucket locally | |
wget http://s3fs.googlecode.com/files/s3fs-1.63.tar.gz | |
tar zxf s3fs-1.63.tar.gz | |
cd s3fs-1.63/ | |
./configure && make && sudo make install | |
touch ~/.passwd-s3fs | |
chmod 600 ~/.passwd-s3fs | |
# Input 'AccessKey:SecretKey' found at | |
# https://portal.aws.amazon.com/gp/aws/securityCredentials | |
emacs ~/.passwd-s3fs | |
mkdir ~/s3 | |
s3fs qingpei-aws-ubuntu ~/s3 | |
# still requires sudo to read or wirte, '-o allow_other' does not work | |
# GNU R | |
sudo apt-get install r-base r-base-dev r-cran-* littler python-rpy ess | |
# Tex Live | |
sudo apt-get install texlive texlive-latex-extra texlive-bibtex-extra texlive-generic-extra | |
sudo apt-get install texlive-lang-english texlive-lang-cjk texlive-xetex | |
sudo apt-get install latex-mk chktex imagemagick | |
sudo apt-get install auxtex texlive-publishers texlive-science | |
# Dropbox | |
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - | |
~/.dropbox-dist/dropboxd | |
wget https://gist.github.com/edwardtoday/5175406/raw/3de1ffe40438e04dc417da1d7ec28224a19d44a7/dropbox | |
sudo mv dropbox /etc/init.d/dropbox | |
sudo chmod +x /etc/init.d/dropbox | |
sudo update-rc.d dropbox defaults | |
sudo service dropbox start | |
sudo service dropbox status | |
wget https://linux.dropbox.com/packages/dropbox.py | |
mv dropbox.py /home/ubuntu/Dropbox/EC2/ | |
sudo ln -s /home/ubuntu/Dropbox/EC2/dropbox.py /usr/local/bin/dropbox.py | |
chmod 755 /home/ubuntu/Dropbox/EC2/dropbox.py | |
dropbox.py start | |
dropbox.py autostart y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment