LoginSignup
6
6

More than 5 years have passed since last update.

AWS EC2(Ubuntu16.04)の初期セットアップ

Last updated at Posted at 2017-11-28

AWS EC2のUbuntu16.04インスタンス作成後、最初に設定することをまとめました。(あくまで私個人がやっていること)

rootアカウント解除

$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

ubuntuパスワード設定

# passwd ubuntu

timezoneをAsia/Tokyoに変更

# timedatectl set-timezone Asia/Tokyo

zip/unzipのinstall

lambdaのコードを生成する際や、sdkを解凍する際に利用するため。

# apt-get install zip unzip
...(log)...

Pythonのシンボリックリンク

# python
The program 'python' can be found in the following packages:
 * python-minimal
 * python3
Try: sudo apt install <selected package>
# ln -s /usr/bin/python3 /usr/bin/python
# python
Python 3.5.2 (default, Sep 14 2017, 22:51:06)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.

pip、python3.6のインストール

aws cliのインストールとconfigure

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6