-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathubuntu_basic_config
More file actions
32 lines (24 loc) · 873 Bytes
/
ubuntu_basic_config
File metadata and controls
32 lines (24 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# Disable tunnelled clear text passwords
sed -i.org -e "s/#PasswordAuthentication yes/PasswordAuthentication no/g" /etc/ssh/sshd_config
service ssh restart
# Change to Japanese locale
apt-get -y install language-pack-ja-base language-pack-ja
update-locale LANG=ja_JP.UTF-8 LANGUAGE="ja_JP:ja"
#apt-get install language-pack-ja=1:14.04+20140410
# Change to JST time zone
rm -f /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
# Configure Linux Firewall
# --- CAUTION --- Change to deny access from public address
#ufw allow from 10.0.0.0/8
#echo y | ufw enable
# Install basic tools
# apt-get install -y curl vim make git emacs23
# DNS server for softlayer local domain
cat <<EOF >> /etc/resolv.conf
nameserver 67.228.254.4
nameserver 67.228.255.5
EOF
# For Chef Ohai plugin
# mkdir -p /etc/chef/ohai/hints && touch ${_}/softlayer.json