分类 *BSD 下的文章

cd /usr/ports/sysutils/fusefs-ntfs && make BATCH=yes install clean
or
pkg install fusefs-ntfs
Then add to /boot/loader.conf

fuse_load="YES"
Now run it:

/usr/local/etc/rc.d/fusefs start

Now - make dir for NTFS partition, for example:

mkdir /mnt/ntfs

Now - you can mount your NTFS in rw mode:

ntfs-3g -o rw,locale=zh_CN.UTF-8 /dev/ada0s3 /mnt/ntfs

After all - add to /etc/fstab:

/dev/ada0s1 /mnt/ntfs ntfs-3g rw,locale=zh_CN.UTF-8, mountprog=/usr/local/bin/ntfs-3g,uid=1001,gid=1001,late 0 0

第一步:ee /ec/rc.conf中加入

sendmail_enable="NO"

sendmail_submit_enable="NO"

sendmail_outbound_enable="NO"

sendmail_msp_queue_enable="NO"
killall sendmail

第二步:安装ssmtp:

pkg install ssmtp

ee /etc/mail/mailer.conf

sendmail /usr/libexec/sendmail/sendmail
send-mail /usr/libexec/sendmail/sendmail
mailq /usr/libexec/sendmail/sendmail
newaliases /usr/libexec/sendmail/sendmail
hoststat /usr/libexec/sendmail/sendmail
purgestat /usr/libexec/sendmail/sendmail
to

sendmail /usr/local/sbin/ssmtp
send-mail /usr/local/sbin/ssmtp
mailq /usr/libexec/sendmail/sendmail
newaliases /usr/libexec/sendmail/sendmail
hoststat /usr/libexec/sendmail/sendmail
purgestat /usr/libexec/sendmail/sendmail
第三步:创建ssmtp用户

pw useradd ssmtp -g nogroup -h - -s /sbin/nologin -d /nonexistent -c "sSMTP pseudo-user"

第四步:

cd /usr/local/etc/ssmtp

chown ssmtp:wheel .

chmod 4750 .

第五步:

cp ssmtp.conf.sample ssmtp.conf

chown ssmtp:wheel . ssmtp.conf

chmod 640 ssmtp.conf

第六步:编辑ssmtp.conf文件

mailhub=smtp.exmail.qq.com:465
UseTLS=YES
AuthUser=from@mydomain.com
AuthPass=123456
FromLineOverride=YES
Hostname=serverkvm
RewriteDomain=exmail.qq.com
Root=postmaster
cp revaliases.sample revaliases

root:from@mydomain.com:smtp.exmail.qq.com:465
from:from@mydomain.com:smtp.exmail.qq.com:465
chown ssmtp:nogroup /usr/local/sbin/ssmtp
chmod 4555 /usr/local/sbin/ssmtp

测试:echo "test" | mail -v -s "test mail" your_mail@domain.com

今天装freebsd 10,然后装apache,再装php和php扩展.没有问题.

然后重启apache,发现打不开php页面,提示下载.

刚开始以为php5安装错误了,于是又重新安装一次,发现安装php5时里面没有apache选项了,整了半天也没有发现原因,以前用freebsd8配置apache+php+mysql从来没出现过这种问题,就再试一下php53目录,make config-recursive看看里面是有apache选项的,郁闷,于是又出墙google,终于找到答案了,ls /usr/local/libexec/apache22/ 没找到libphp5.so

然后/usr/ports/www/mod_php5

make install clean;rehash安装,可是又遇到问题了,提示“Error from bsd.apache.mk. apache22 is installed (or APACHE_PORT is defined) and port requires apache”,郁闷之极,只能再google,呵呵,又被我找到答案了,万能的google啊,谢谢!关于“Error from bsd.apache.mk. apache22 is installed (or APACHE_PORT is defined) and port requires apache"请参考这篇文章