login: in openpam_dispatch(): pam_nologin.so: no pam_sm_authenticate()查了以後發現是/etc/pam.d裏的檔案不會因為mergemaster或make installworld更新。
解決方法:
#cd /usr/src/etc/pam.d
#make install
Blog就是自已寫爽的
login: in openpam_dispatch(): pam_nologin.so: no pam_sm_authenticate()查了以後發現是/etc/pam.d裏的檔案不會因為mergemaster或make installworld更新。
#cd /usr/src/etc/pam.d
#make install
Note: The PAE support in FreeBSD is only available for Intel IA-32 processors. It should also be noted, that the PAE support in FreeBSD has not received wide testing, and should be considered beta quality compared to other stable features of FreeBSD.
PAE support in FreeBSD has a few limitations:
A process is not able to access more than 4 gigabytes of VM space.
KLD modules cannot be loaded into a PAE enabled kernel, due to the differences in the build framework of a module and the kernel.
Device drivers that do not use the bus_dma(9) interface will cause data corruption in a PAE enabled kernel and are not recommended for use. For this reason, a PAE kernel configuration file is provided in FreeBSD which excludes all drivers not known to work in a PAE enabled kernel.
Some system tunables determine memory resource usage by the amount of available physical memory. Such tunables can unnecessarily over-allocate due to the large memory nature of a PAE system. One such example is the kern.maxvnodes sysctl, which controls the maximum number of vnodes allowed in the kernel. It is advised to adjust this and other such tunables to a reasonable value.
It might be necessary to increase the kernel virtual address (KVA) space or to reduce the amount of specific kernel resource that is heavily used (see above) in order to avoid KVA exhaustion. The KVA_PAGES kernel option can be used for increasing the KVA space.


media: auto(none)幸好是我熟悉的FreeBSD,猜想是用auto找錯,於是就在rc.conf把
ifconfig_sis0="inet 192.168.1.10 netmask 255.255.255.0"改成
ifconfig_sis0="inet 192.168.1.10 netmask 255.255.255.0 media UTP"
# dd if=/dev/zero of=/dev/ad2 bs=1k count=1多分區時挺麻煩的,平常還是用sysinstall分割比較方便。
# fdisk -BI ad2 #Initialize your new disk
# bsdlabel -B -w ad2s1 auto #Label it.
# bsdlabel -e ad2s1 # 可以參考現有的partition編輯
# newfs /dev/ad2s1a # Repeat this for every partition you created.
# mount /dev/ad2s1a /mnt
# cd /mnt
# dump -f- / | restore -f- -r
There are new pieces of code and altered pieces of code that need additional porting and many of the changes need to be sanity checked to make sure they still make sense.看來還有得等了。jserv老大參與的kaffe也很久沒更新,難道真的要改用mono?
mount_smbfs: can't set locale ''時,只要把 LC_ALL 和 LANG 設成C就可以。
mount_smbfs: smb_lib_init: can't initialise locale
// For avoid dns error再把
struct hostent * MyGetHostByName(const char *name)
{
struct hostent *result = NULL;
result = gethostbyname(name);
if(result == NULL)
{
// Wait for 0.5 sec, 1 second = 1 million microseconds
usleep(500000);
//try again
result = gethostbyname(name);
}
return result;
}
else if ( (server = gethostbyname( domainT.c_str() )) )換成
else if ( (server = MyGetHostByName( domainT.c_str() )) )如果再出現,我就得再加幾個dirty檢查,總有一天會成功的吧?!
BUGS這種鳥事誰會知道呀!所以出現錯誤是因為被另一個process呼叫時蓋掉了?
These functions use a thread-specific data storage; if the data is needed
for future use, it should be copied before any subsequent calls overwrite
it.
Though these functions are thread-safe, still it is recommended to use
the getaddrinfo(3) family of functions, instead.
Only the Internet address format is currently understood.