[[FrontPage]]

UTF-8 文字化け
http://www.hakusan.tsg.ne.jp/tjkawa/software/misc/proftpd-iconv/index.jsp
*インストール方法 [#qb90df01]
http://iris.homeunix.net/yayoi/freebsd/inst/install.asp

*ports [#pc27fe63]
http://www.east.jdmia.or.jp/~tamotsu/how-to-install/install-ports.php
 #cd /tmp/
 #fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz
 #cd /usr/
 #tar zxvf /home/src/ports.tar.gz

-インストールされているPorts/packagesの一覧は,pkg_infoまたは
#ls /var/db/pkg
で得られます.

*shell [#s1117938]
 #chsh
-他のユーザのshellを変更するときは
 #chsh hogehoge

*ssh [#p189c748]
/etc/ssh/sshd_config
 Port 22
 Protocol 2
 PermitRootLogin no
 PasswordAuthentication no
 PermitEmptyPasswords no
 
 RSAAuthentication no
 PubkeyAuthentication yes
 AuthorizedKeysFile      .ssh/authorized_keys
 
 UsePAM no

#/etc/rc.d/sshd restart

*nat [#x1dfa241]
-http://www.y-min.or.jp/~nob/FreeBSD/NAT.html

/etc/rc.conf
 ifconfig_aue0="inet 192.168.101.1 netmask 255.255.255.0"
 
 firewall_enable="YES"
 firewall_type="open"
 
 natd_enable="YES"
 natd_interface="em0"
 natd_flags="-f /etc/natd.conf"

/etc/natd.conf
 log no
 verbose no
 deny_incoming no
 log_denied yes
 log_facility security
 use_sockets yes
 same_ports yes
 unregistered_only yes

*dhcp [#sb0d04cf]
-http://www.cc.saga-u.ac.jp/opengate/doc/ja/install.html#dhcp0
-http://www.y-min.or.jp/~nob/FreeBSD/DHCP2.html
-http://homepage1.nifty.com/xpress/homelan/bsds2ip.html#dhcp

 #cd /usr/ports/net/isc-dhcp3-server/
 #make 
 #make install
 #cp /usr/ports/net/isc-dhcp3-server/work/dhcp-3.0.5/server/dhcpd.conf /usr/local/etc/
 #vi /usr/local/etc/dhcpd.conf

 option domain-name "hoge.jp";
 option domain-name-servers hogehoge, hoge;
 default-lease-time 600;
 max-lease-time 7200;
 ddns-update-style ad-hoc;
 log-facility local7;
 subnet 192.168.101.0 netmask 255.255.255.0 {
 range 192.168.101.100 192.168.101.200;
 option routers 192.168.101.1;
 #  option broadcast-address 192.168.101.255;
 }

/etc/rc.conf
 dhcpd_enable="YES"
 dhcpd_ifaces="aue0"
 dhcpd_conf="/usr/local/etc/dhcpd.conf"

#/usr/local/sbin/dhcpd aue0 &

*apache2 [#hc3fab1c]
#cd /usr/ports/www/apache22/
#make
#make install

#vi /etc/rc.conf
 hostname="***.co.jp"
#vi /usr/local/etc/apache22/httpd.conf
 ServerName ***.co.jp:80
 Include etc/apache22/extra/httpd-userdir.conf

#vi /etc/hosts
 ***.*.**.***     ***.co.jp

[warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter

#vi /boot/loader.conf
 accf_http_load="YES"

*mysql [#w5e2e61b]
#cd /usr/ports/databases/mysql50-server/
#make
#make install

mkdir /data/mysql
chown mysql:mysql /data/mysql
mkdir /data/mysql/data
chown mysql:mysql /data/mysql/data
chmod 700 /data/mysql/data

/etc/rc.conf に以下を追加する。
mysql_enable="YES"
mysql_dbdir="/data/mysql/data"

参考:http://www.bugbearr.jp/?FreeBSD%2FMySQL

#cd /usr/ports/databases/phpmyadmin/
#make
#make install

*jpeglib [#r375cc5e]
#cd /usr/ports/graphics/jpeg/
#make
#make install
#/usr/local/lib/

*pnglib [#h465826f]
#cd /usr/ports/graphics/jpeg/
#make
#make install
#/usr/local/lib/

*gd [#lddf9a42]
#cd /usr/ports/graphics/gd/
#make
#make install
#cd /usr/ports/graphics/ php5-gd/
#make
#make install

*php5 [#ke4c0de8]
#cd /usr/ports/lang/php5
#make config
 Build Apache Module
#vi Makefile
 --with-mysql
#make
#make install

#php5-extensions/
#make
#make install

#cd /usr/local/etc/apache22/
#vi httpd.conf
 LoadModule php5_module libexec/apache22/libphp5.so
#vi mime.types
 application/x-httpd-php php
 application/x-httpd-php-source phps

#mysql
# mysqladmin -u root password ********
-http://fedorasrv.com/mysql.shtml

*wget [#jdc40595]
#cd /usr/ports/ftp/wget
#make
#make install

#phpmyadmin
#cd /usr/ports/databases/phpmyadmin
#make
#make install

 To make phpMyAdmin available through your web site, I suggest
 that you add something like the following to httpd.conf:
 
     Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin/" 
     <Directory "/usr/local/www/phpMyAdmin/">
         Options none
         AllowOverride Limit 
         Order Deny,Allow
         Deny from all
         Allow from 127.0.0.1 .example.com ***.***.***.****
     </Directory>

#cd /usr/local/www/phpMyAdmin/
# sudo cp config.sample.inc.php config.inc.php
#vi config.inc.php
 $cfg['blowfish_secret'] = 'aaaaaaaahogehgo'
 長くしすぎるとエラー
 /*$cfg['Servers'][$i]['controluser'] = 'pmausr';*/^M
 /*$cfg['Servers'][$i]['controlpass'] = 'pmapass';*/^M

----
&size(12){Total:&counter(total); / Today:&counter(today); / Yesterday:&counter(yesterday);};

トップ   差分 バックアップ リロード   一覧 検索 最終更新   ヘルプ   最終更新のRSS