読者です 読者をやめる 読者になる 読者になる

ノートPCのUbuntu君OS再インストールでやったこと。

ssh のインストール

$sudo apt-get install openssh-server
$sudo apt-get install ssh

ユーザー設定

$sudo adduser ssh_user
$sudo groupadd wheel
$sudo usermod -G wheel ssh_user
$sudo usermod -G wheel,admin ssh_user

Apacheのインストール

sudo apt-get install apache2
sudo vi /etc/apache2/apache2.conf

PHP開発環境のインストール

$sudo apt-get install php5 sqlite sqlite3 php5-sqlite php5-curl
$sudo apt-get install php-pear
$sudo pear upgrade
$sudo pear config-set auto_discover 1
$sudo pear channel-discover pear.phpunit.de
$pear remote-list -c phpunit
$sudo apt-get upgrade
$sudo apt-get update
$sudo apache2ctl restart
$apt-get install vim

hostsの設定

$vim /etc/hosts

127.0.1.1 www.localhost.com username-AOA150

sambaの設定

$apt-get install samba
$sudo vi /etc/samba/smb.conf

[global]

dos charset = CP932
unix charset = UTF-8
display charset = UTF-8
map to guest = Bad User

[www]
path = /var/www
writeable = yes
force create mode = 0666
force directory mode = 0777
guest ok = yes
guest only = yes

[apache2]
path = /etc/apache2/
writeable = yes
force create mode = 0666
force directory mode = 0777
guest ok = yes
guest only = yes

[php]
path = /etc/php5/
writeable = yes
force create mode = 0666
force directory mode = 0777
guest ok = yes
guest only = yes

smbpasswd -a windows_user
/etc/init.d/smbd restart