ユーザの作成
ユーザの作成
# adduser nishide
Adding user `nishide' ...
Adding new group `nishide' (1001) ...
Adding new user `nishide' (1001) with group `nishide' ...
Creating home directory `/home/nishide' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for nishide
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n]
作成したユーザにsudo権限を付与
# usermod -G sudo nishide
LAMP環境の構築
※ apt-getじゃなくてapptitudeを使うパターンも後に確認。
OSパッケージを最新にアップデート
# apt-get update -y
関連する開発パッケージのインストール
# apt-get install openssl
Apacheのインストール
# apt-get install apache2 -y
MySQLのインストール
# apt-get install -y mysql-server libapache2-mod-auth-mysql
PHPのインストール
# apt-get install -y php5 php5-mysql libapache2-mod-php5 php5-mcrypt php5-json
その他メモ
initctlコマンド
# initctl restart ssh # sshをリスタート