Help us understand the problem. What is going on with this article?

Amazon Linuxを立ち上げる時にいつも流すスクリプト

More than 1 year has passed since last update.

2017年2月くらいに初めてAWSでEC2を触った時に調べました。いつも忘れて調べなおすのでメモ的に。

スクリプト

setup.sh
# 実行ユーザーはec2-userを想定してます。

# yumを最新に
sudo yum -y update

# aliasを解除して
sudo unalias cp

# timezone設定
sudo cp -f -p /usr/share/zoneinfo/Japan /etc/localtime
sudo cp /dev/null /etc/sysconfig/clock
echo -e 'ZONE=\"Asia/Tokyo\"\nUTC=false' | sudo tee -a /etc/sysconfig/clock
sudo chmod 644 /etc/sysconfig/clock
sudo /etc/init.d/crond restart

## 日本語設定
sudo cp /dev/null /etc/sysconfig/i18n
echo 'LANG=ja_JP.UTF-8' | sudo tee -a /etc/sysconfig/i18n
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした