This file contains 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 -ex | |
#Update repositories | |
sudo apt-get update | |
#Use this command to install the required dependency packages: | |
sudo apt-get install build-essential libncurses5-dev openssl libssl-dev fop xsltproc unixodbc-dev | |
#To install packages for graphics support, use this command: | |
sudo apt-get install libwxbase2.8 libwxgtk2.8-dev libqt4-opengl-dev |
This file contains 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 -ex | |
# Riak install and config script snippets | |
# For Ubuntu | |
# http://docs.basho.com/riak/latest/tutorials/installation/Installing-on-Debian-and-Ubuntu/ | |
# 1. First you must get the signing key. | |
curl http://apt.basho.com/gpg/basho.apt.key | sudo apt-key add - | |
# 2. Then add the Basho repository to your apt sources list (and update them). |
This file contains 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 -ex | |
cat >limits.conf <<END_OF_FILE | |
* soft nofile 32768 | |
* hard nofile 32768 | |
root soft nofile 32768 | |
root hard nofile 32768 | |
* soft memlock unlimited | |
* hard memlock unlimited | |
root soft memlock unlimited |
This file contains 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
#Stop the Riak node | |
sudo riak stop | |
#Delete the directory ring/ in your Riak data directory | |
sudo rm -r /var/lib/riak/ring | |
#Change the Node Name | |
sudo nano /etc/riak/vm.args #Change {-name riak@aaa.bbb.c.dd to correct IP address} | |
#Change the HTTP and Protocol Buffers binding address |
This file contains 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
rsync -ae ssh ubuntu@192.168.75.237:/home/ubuntu/results/* /home/bugra/Results |
This file contains 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 -ex | |
# Stop the Riak node | |
service riak stop | |
# Change standard IP to the Riak node's eth0 IP | |
my_ip=`ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'` | |
sed -ire "s/[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\"\, 8087/$my_ip\"\, 8087/g" /etc/riak/app.config | |
sed -ire "s/[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\"\, 8098/$my_ip\"\, 8098/g" /etc/riak/app.config | |
sed -ire "s/\-name riak\@[0-9]*(\.[0-9]*){3}/\-name riak\@$my_ip/" /etc/riak/vm.args |
This file contains 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
#Install Python Easy Tools | |
wget https://pypi.python.org/packages/source/s/setuptools/setuptools-1.1.5.tar.gz | |
sudo tar -xzvf setuptools-1.1.5.tar.gz | |
cd setuptools-1.1.5/ | |
sudo python ez_setup.py | |
#Install AWS CLI | |
sudo easy_install awscli |
This file contains 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
#Set up AWS CLI | |
sudo mkdir /home/ubuntu/.aws | |
#Write configuration file | |
cat > /home/ubuntu/.aws/config << EOL | |
[default] | |
aws_access_key_id = $1 | |
aws_secret_access_key = $2 | |
region = us-east-1 | |
EOL |
This file contains 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
# Example of how a file is copied to S3 | |
# aws s3 cp test.txt s3://edu.kit.aifb.eorg.distbench/test2.txt | |
#The routine has to be defined |
This file contains 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
#!/usr/bin/env bash -ex | |
# | |
# Licensed to the Apache Software Foundation (ASF) under one or more | |
# contributor license agreements. See the NOTICE file distributed with | |
# this work for additional information regarding copyright ownership. | |
# The ASF licenses this file to You under the Apache License, Version 2.0 | |
# (the "License"); you may not use this file except in compliance with | |
# the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
OlderNewer