Skip to content

Instantly share code, notes, and snippets.

@tokida
Created March 12, 2015 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tokida/c3f987f3aac793c3880c to your computer and use it in GitHub Desktop.
Save tokida/c3f987f3aac793c3880c to your computer and use it in GitHub Desktop.
#=======================================================================
# 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