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
Host lb01 | |
Hostname lb01 | |
User ubuntu | |
Port 22 | |
IdentityFile ~/.ssh/hoge.pem | |
Host master01 | |
Hostname master01 | |
User ubuntu | |
Port 22 | |
IdentityFile ~/.ssh/hoge.pem |
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 | |
# init_ubu16.sh | |
echo "backup resolv.conf, resolv.conf.d/base" | |
cp /etc/resolv.conf /etc/.resolv.conf.org | |
cp /etc/resolvconf/resolv.conf.d/base /etc/resolvconf/resolv.conf.d/.base.org | |
echo "nameserver 8.8.8.8" >> /etc/resolvconf/resolv.conf.d/base | |
resolvconf -u |
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 | |
# install_rails5.sh | |
sudo apt-get update | |
sudo apt-get install -y ruby sqlite3 libsqlite3-dev | |
sudo apt-get install -y build-essential liblzma-dev patch ruby-dev zlib1g-dev | |
sudo gem install rails | |
APPNAME="app001" | |
rails new $APPNAME |
NewerOlder