パッケージの追加(1)ほとんど、以前と変わらず。 sshdの設定/etc/ssh/sshd_configで次の設定。 PermitRootLogin no PermitEmptyPasswords no NTPDの設定# /etc/ntp.conf /etc/ntp.conf.orig /etc/ntp.confを編集 server <ntpserver IP Address> サービスの起動 # chkconfig ntpd on # /sbin/service ntpd start ProFTPDの設定とりあえず使えればいい。 # chkconfig proftpd on # /sbin/service proftpd start Webminの追加# apt-get install webmin アクセスする https://hogehgoe:10000 面倒なので、アクセス制御を直接設定。/etc/webmin/miniserv.confを編集。 allow = 127.0.0.1 192.168.1.0/255.255.255.0 LAMP今回は、LAMP環境だけ。 PHP5# apt-get install php5 php5-apache2 php5-devel php5-pear # apt-get install php5-mysql php5-ldap php5-mcrypt php5-snmp # apt-get install php5-imapl php5-pdo php5-pgsql php5-sqlite MySQL# apt-get install MySQL-client MySQL-server MySQL-devel # apt-get install MySQL-Max MySQL-shared Samba# apt-get install samba samba-swat i.e. Webalizer# apt-get install webalizer あと、設定ファイルを編集して、保存先のディレクトリを設定。 # vi /etc/webalizer.conf Telnet(リスクに注意)# apt-get install telnet-server # vi /etc/inetd.conf 次の箇所のコメントを削除。必要なら、tcpdの設定をする。 telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd inetdを再起動。 # service inet restart 参考 |