2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ubuntu 14.04 LTS 開発環境構築ログ #01

Last updated at Posted at 2016-02-20

環境

項目 内容
利用サービス DTI ServersMan@VPS Entryプラン
メモリ 1GB
ストレージ 50GB
OS Ubuntu 14.04 LTS Server

初回ログイン

指定のIPアドレス、ポート番号に TeraTerm 等で SSH 接続(rootユーザ)

root ユーザのパスワードを変更

# passwd
#

作業用ユーザを作成してパスワードを設定

ユーザを作成

# useradd -m -s /bin/bash cazborg
# ls -l /home
drwxr-xr-x 2 cazborg cazborg 4096 Feb 20 00:48 cazborg
#

作成したユーザのパスワードを変更

# passwd cazborg
#

作業用ユーザを sudo グループに追加

# gpasswd -a cazborg sudo
#

ホスト名を恒久的に変更

/etc/hostname にホスト名とドメインを設定

# echo 'casper.local' > /etc/hostname
# cat /etc/hostname
casper.local

/etc/hosts にも設定

# echo '127.0.0.1 casper.local casper' >> /etc/hosts
# tail -1 /etc/hosts
127.0.0.1 casper.local casper

再起動してホスト名を反映

# reboot
2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?