Created
March 12, 2015 03:19
-
-
Save tokida/c3f987f3aac793c3880c 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 | |
# Ceph Server | |
#======================================================================= | |
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 | |
# 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 | |
# Add user | |
useradd -d /home/ceph -m ceph | |
echo "ceph:adminpass" | chpasswd | |
echo "ceph ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/ceph | |
sudo chmod 0440 /etc/sudoers.d/ceph | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment