聚沙成塔

養貓的陌生人筆記本

FreeBSD 6.2 Ldap Client 設定

No Comments »


1. 安裝套件
必須裝 openldapclient, nss_ldap, pam_ldap 這三種套件

  • nss_ldap :
    功能: 尋找到帳號資訊
    設定檔: /usr/local/etc/nss_ldap.conf

備註:直接使用 ports 安裝 nss_ldap 即會自動安裝相對應的 openldap-client 版本
若是先安裝 openldap-client 再安裝 nss_ldap 的話
可能造成 openldap-client 與 nss_ldap 版本不符合而無法安裝 nss_ldap

Read the rest of this entry »

啟動 Fedora Core 5 的 XDMCP

No Comments »


因為要讓 X-manager 等 X-Window 程式做遠端連線,
此法也可通用於 CentOS 4.x

檢查/usr/share/config/kdm/kdmrc 以下選項是否符合黃字:

Read the rest of this entry »

AIX 掛載 Linux NFS 障礙排除

No Comments »

今天要把公司的 AIX 5.2 上面自己裝的 apache config 好,
目的是要幫助 Windows 上面的 tomcat 分享 html 檔案,
按照 NFS 3.0 的規則,網路的 Service 是不可以透過 NFS DISK 寫入的,
但是 AIX 卻可以,因為上面的 NFS 是舊版的!這個漏洞真的很方便 Orz…

於是我馬上 mount Windows SFU 所分享出來的 NFS DISK 很順利!
直接 mount 192.168.0.13:/webapps /data/hardrain 就掛上去了。

網頁也都正確運作無誤,後來靈機一動,想說乾脆所有的 NFS 都掛上去好了…
於是 mount 另一台 Linux 的卻無法順利掛載,並出現如下訊息:

Read the rest of this entry »

讓 apache 支援 PUT Method

No Comments »

PUT Methon 可以上傳文件到網路伺服器,
因此常常被當作是一個漏洞,
所以大部分有關這類的行動都是預設不被允許的,
假如遇到認證交換之類需要這類的方式去做的時候,
可以在 apache 設定如下:

Read the rest of this entry »

開啟 SuSE 10.1 Xmanager 遠端登入

No Comments »

vi /etc/opt/gnome/gdm/gdm.conf

此設定檔與大部分相同,以下為我更動過的選項

Read the rest of this entry »

重新註冊所有dll

No Comments »


在 『執行』 或是 cmd 底下輸入此行,可重新註冊所有 Windows system32 資料夾底下的 dll

for %1 in (%windir%\system32\*.dll) do regsvr32.exe /s %1


Solaris 10 基本上網設定

No Comments »

以下為 Solaris 10 上網基本設定

Read the rest of this entry »

設定 Awstats 於 Apache

No Comments »


雖然這個很簡單,但還是要記一下,避免忘記。

Read the rest of this entry »

Syslog Server

No Comments »


主機一多,log就多,log一多就亂,亂了就很難處理狀況,
因此若是可以集中在一台主機上,不就 ok 了嗎?
這就是 syslog Server 是也!

作法很簡單,要稍微記一下即可!

Read the rest of this entry »

使用 gcc 編譯 C++ 與 C 的程式

No Comments »

編譯 C

Read the rest of this entry »