Last active
August 29, 2015 14:02
-
-
Save tokida/5b58831c0d94ce7b25f2 to your computer and use it in GitHub Desktop.
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
#======================================================================= | |
# bootstrap4Ubuntu.sh on SoftLayer | |
#======================================================================= | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Install Util | |
sudo apt-get install git -y | |
sudo apt-get install curl -y | |
# Install SoftLayer Command line Interface | |
sudo apt-get install python-pip -y | |
pip install softlayer | |
# Install Other Tools | |
sudo apt-get install iperf -y | |
sudo apt-get install inxi -y | |
# Japanese Locale | |
sudo apt-get install -y language-pack-ja-base language-pack-ja | |
update-locale LANG=ja_JP.UTF-8 LANGUAGE="ja_JP:ja" | |
source /etc/default/locale | |
# Japan TimeZone | |
cp -p /usr/share/zoneinfo/Asia/Tokyo /etc/localtime | |
echo "Asia/Tokyo" > /etc/timezone | |
# Please make sure to set SSH-KEY | |
sed -ri 's/#PermitRootLogin yes/PermitRootLogin yes/g' /etc/ssh/sshd_config | |
sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config | |
sed -ri 's/#PermitEmptyPasswords no/PermitEmptyPasswords yes/g' /etc/ssh/sshd_config | |
# get User_data | |
## curl -k https://api.service.softlayer.com/rest/v3/SoftLayer_Resource_Metadata/getUserMetadata.txt > ~/userMetadata.txt | |
curl -k https://api.service.softlayer.com/rest/v3/SoftLayer_Resource_Metadata/UserMetadata.txt > ~/UserMetadata.txt | |
## additional | |
## 試験用に幾つかの項目を追加 | |
### Network Performance | |
apt-get install nuttcp -y | |
nuttcp -S | |
### Install Idra Agent | |
echo deb http://repo.r1soft.com/apt stable main >> /etc/apt/sources.list | |
wget http://repo.r1soft.com/r1soft.asc | |
apt-key add r1soft.asc | |
apt-get update | |
apt-get install r1soft-cdp-enterprise-agent -y | |
## #r1soft-setup --get-key [server url] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment