2006-02-22

最近流行早睡, linux large file support要這樣搞?

最近流行早睡, linux large file support要這樣搞?This entry was originally published at 抓~ 抓到一隻瞌睡蟲
我要睡了, 沒想到今天的實驗卡在一個large file, linux的large file竟然要open的時候還要加個O_LARGEFILE, 可是我在FreeBSD底下試, 它是不用的啊. (open不用再加O_LARGEFILE這個flag)
至於Linux的LFS(Large File Support), 可以參考這篇: Large File Support in Linux
另外我測試的結果是 fcntl.h 要用 /usr/include/asm/fcntl.h, 而不是 /usr/include/fcntl.h, 不知道這是不是我做錯了?

錯怪ubuntu

錯怪ubuntuThis entry was originally published at 抓~ 抓到一隻瞌睡蟲
我以為它跟debian有一樣相同高的門檻, 只是distribution包得比較精美. 其實它有一套管理程式, 讓初學者也可以很快的去管理安裝過的軟體… 所以說

“Ubuntu” is an ancient African word, meaning “humanity to others”. Ubuntu also means “I am what I am because of who we all are”. The Ubuntu Linux distribution brings the spirit of Ubuntu to the software world.
它真的沒騙人喔 :P 推薦大家使用… 之前我沒有仔細看, 結果還以為它只是個debian換湯不換藥這樣. 我是錯的 Q_Q
pictures, by yhsungpictures, by yhsung
UPDATED:
是怎樣, 一樣跟相同不是都一樣相同嗎? XD…

digg: World’s largest Windows error message

digg: World’s largest Windows error messageThis entry was originally published at 抓~ 抓到一隻瞌睡蟲
剛剛在digg看到的: World’s largest Windows error message, 相當有趣啊, 電子看板的機器跑Windows, 然後程式掛掉了, 出現的error message…
嗯… 我敢相信, 這應該不會是Microsoft的廣告.

Denyhosts

DenyhostsThis entry was originally published at 抓~ 抓到一隻瞌睡蟲
昨天在howtoforge看到這篇Preventing SSH Dictionary Attacks With DenyHosts, 我現在開始試用, 設定雖然比sshit還要多, 但是我覺得用起來反而比sshit簡單的樣子. XD 是說sshit就寫rule在ipfw的table(它會開shared memory), 會比較快嗎? 可是其實用起來效果沒很好…
btw, 它會開shared memory, 所以說, 用起來要小心一點, 不然會很慌張.
UPDATED:
忘了說denyhosts是用tcpwrapper來擋.
UPDATED:
根據瑞男長輩的說法, 跟shared memory沒關係… 我只是要說它還會開shared memory, 但是沒有說清楚它是要做什麼的. XD