PC覚え書き
1.インストール後,アップデート確認
apt-get update
2.重複のエラーが出た場合の対処
/etc/apt/apt.confを書き換える
RPM
{
Allow-Duplicated { "^avahi-gobject$";
};
}
3.telnetのインストール
apt-get install telnet-server
※telnetの必要な場合のみ
4.サービスの起動
システム→システム管理→サービス(で起動する=チェックを入れる)
・バックグラウンド(変更したら保存しておく)
apache2
nmb
proftpd
smb
・オンデマンド(システムを再起動する)
swat
telnet
5.ファイヤウォールの設定
システム→セキュリティレベルとファイヤウォールの設定
samba
telnet
proftpd
6.ユーザディレクトリの作成
/home/userdir/pub作成
userdir以下のアクセス権設定
chown userdir, chmod 755
7.swatによるsambaの設定
http://127.0.0.1:901に接続
・passwordで userdir を追加
・sharesでファイル共有userdirの作成
・path = /home/userdir/pub
・readonly = no
・available = yes
・hosts allow =xxx.xxx.xxx.xxx(必要なら)
変更後→samba再起動
8.apache2の変更が必要なら
/etc/apache2/conf/apache2.conf を編集
<Directory "指定する">
options Indexes(ディレクトリを転送) Followsymlinks(シンボリックリンク有効)
</Directory>
ソースは/var/www/htmlに置いておく