Posts tagged ‘Debian’

我讀到,你讀唔到……

2007-08-21

前幾天出現頗有趣的情況,當我向學生提及一份 PDF 文件,叫眾人去看一看時,卻對我說:PDF viewer 無法開啟文件,被 password protect 了。當時百思不得其解,因為我用自己的電腦甚麼事都沒有,甚至即場示範一次,那份文件的確沒問題呀。但偏偏學生的電腦的確是看不到,全部都要求入密碼。當時在想,莫非是因為我看 browser cache,而那份文件剛剛被作者換了個封閉的版本,封了權限不讓人看?

但後來有人說,如果不用 Linux 而改用 Windows 就可以看。之後我留意了一下 evince (超級舊版,Debian 嘛) 的訊息:不支援 PDF 1.6 !? 這或許就是癥結所在也說不定。新版的 evince 可以看而舊版的不能,而 Windows 用 Adobe Reader 沒問題,全部都符合解釋。但當時沒時間研究那麼多了,也就不了了之。

在 Ubuntu 寫 shell script 也不容易

2007-06-16

早期用 Mandriva 時寫了一大堆的 bash shell script,上年嘗試在 Ubuntu 用時,已經發覺不甚妥,有些功能在 Debian 或 Ubuntu 的 bash 是用不了的,例如雙方括號 [[ …… ]]、進行 regular expression match 等等;那類功能沒了不會死人,改一下之後很多 script 都沒事。但自從用了 Ubuntu Feisty 之後,所有 script 都完了。最起碼,array 完全不能用,沒有了這個功能,對我來說就等於不用再寫 script。我想大概 Debian 和 Ubuntu 的人想將 bash 打斷手腳,令其變成完全 posix compliant 的殘廢 shell。

沒法子,現在任何 shell 都信不過了,最信得過的卻又是先天性腦萎縮,唯有在 Perl, Python, PHP 之間選一個。暫時最熟手的是 PHP,雖然如果聽到用 PHP 寫 CLI 的 script 很多人都會瞪大眼,以為我是傻的,但總之要先做到日常的工作,別的待日後才說吧。

大家都是 Linux,預設都是 bash,但 bash script 卻不兼容……即使我本身不打算考慮 portability(反正只是自己用的 script),所用的平台也要逼我考慮,有點諷刺。

快點將屎坑讓出來吧

2007-03-09

<rant>

我不參與 Ubuntu 開發成為 helper 的決定,到現在可以確切肯定我是對的。自從 scim 1.4.5 在上年 10 月初推出以來,因為太瞭解 Debian 和 Ubuntu 的習性(甚麼都要等十來廿年),所以不去等待,自己包最新的 scim 套件給自己用,到現在快半年了,用得不知多開心,最起碼用倉頡輸入法時萬用字元都能夠用。如果我等正式套件的話,會發生甚麼事?這一年 Debian 和 Ubuntu 的 scim 套件有甚麼改變?這些版本說明了一切。(註:scim 最新版為 1.4.5,scim-tables 最新版為 0.5.7,兩者皆在 2006 年 10 月 8 至 9 日之間推出)

Ubuntu
時間 distribution scim-tables 套件版本
6/2006 Dapper 0.5.6-1build1
10/2006 Edgy
今天 Fiesty
Debian
時間 distribution scim-tables 套件版本
1/2006 Testing/Unstable 0.5.6-1
11/2006 0.5.6-2
Ubuntu
時間 distribution scim 套件版本
6/2006 Dapper 1.4.4-1ubuntu12
10/2006 Edgy 1.4.4-4ubuntu6
今天 Fiesty 1.4.4-7ubuntu1
Debian
時間 distribution scim 套件版本
1/2006 Testing/Unstable 1.4.4-1
6/2006 1.4.4-4
1/2007 1.4.4-7

Debian 的話,testing 會用舊版是因為政策如此,但是 unstable 呢?這是表示華明和 Osamu Aoki 已經不理了。可別以為 1.4.4-1 至 1.4.4-7 表示很大改動,裏面有一半都是無聊東西而已,連刪除一個無關痛癢的 temp file 也是 high priority 的改動呢。

Ubuntu 更不用說了,看看 scim-tables,在 Debian 的 bug fix 甚至沒有上傳到 Ubuntu 中去。但既然 Ubuntu 和 Debian 是敵對派系,這是很自然的囉?還有一點很明顯的,就是接近沒有人理會 Ubuntu 的 CJK 支援了,雖然還見到一堆用家的問題。

反觀 Fedora 的 scim 如何?不單是「patch 太多」,Warran Togami 甚至親自問蘇哲何時會有新版本,好讓一些 patch 能夠進入 upstream。一邊是積極維護,一邊是愛理不理,涇渭分明。雖然 fedora user 都是白老鼠,但這些白老鼠也算存在得有價值。

想當初在 Ubuntu Dapper 未出的時候,華明還說要等 Dapper 的下一版,要「等 scim 更穩定」才將 scim 加入去。時間最能夠用來分辨真偽,現在很清楚了,如果當初不是眾人不理他的意見,再等多 101 版也絕對不會有 scim。他當時對我說那些酸溜溜的說話到現在還記憶猶新。

說真的,這些有的沒的,對我來說分別不大,很早以前用了好一陣子 Slackware,再加上之前包 Mandrake 套件的經驗,現在自己包自己要用的套件已經不是一回事,況且 Debian 軟件的版本又這麼穩定,在我的立場用 Debian/Ubuntu 和 Slackware 無異,反正一切都是自己動手。所有的弊病在我的眼中都是蚊叮而已,但就苦了千千萬萬的一般用家。

對,我這篇是明刀明槍拿人來生劏的,但都是些該被開刀的人。如果真的有兩下子,或者有任何一處值得尊敬的人,即使我怎麼討厭(例如少數 Mandriva 的員工),也不會這樣來祭旗。最後一點就是,我不願再當任何 distribution 的 helper,這麼多年,看骯髒事看夠了。

</rant>

Fedora, a necessary evil

2007-02-03

I’m writing this blog in a freshly installed Fedora 6, though it is still updating — the crappy yum is doing its work slowly, as I really need to move to Fedora devel instead of staying with stable release. Let me recall what has happened after burning installation DVD and booting it:

  1. On the first time, anaconda gives me python code trace because it failed to retrieve repository info from internet. What then? Reboot. Shit.
  2. Second time the installation is fine. BUT
  3. Since I don’t want to have grub overwriting my machine’s MBR, fedora is not bootable. Expected.
  4. What I didn’t expect is, after booting DVD into rescuing mode and refresh boot sector, it simply gives me kernel panic after finished loading kernel. Seems to be pivot_root problem or initrd failed to hand over the booting process to the real partition.
  5. This leads to 3rd installation. OK, I found the option about writing grub into boot sector instead of MBR. BUT
  6. It simply overwrites MBR. Damn it.
  7. Now running yum update, probably it will finish after a whole night, in contrast of apt-get update which finishes within a few minutes. Yawn…… zzzz……

Why going through the pain while there are better distributions out there? Because I need a vanilla GNOME beta version for doing my translation work. The only viable options are Fedora and Mandriva here, though I don’t know if OpenSuSE has good enough GNOME testing package. If people says it’s OK I’ll give it a try. Anyway, I don’t want to go back to Mandriva in near future, so Fedora is my only short-term option.

  • Ubuntu? I can’t even distinguish which translation is done by official team and which isn’t. Need to do translation? Throw it away.
  • Debian? It might have GNOME testing package after 10 years. A server-only distribution.

Debian vs Debian — ready…fight! Round ∞

2006-12-23

slashdot 才知道 Debian 已經病入膏肓,對照過 Linux-watch 九月時的一篇報導,當時我沒怎麼留意 Debian 的新聞,還以為是一般負面新聞說 Debian 全無活力那種聽厭了的「報導」,所以就不理它;現在重新找來一看才知是另一回事。

人的妒忌心在兩個不同的 distribution 得出相反的效果,現在怎麼想也覺得有趣。記得當初我參加 Ubuntu 的 meeting 前後,在 IRC 上會感覺到一兩個人的說話有酸味;他們總以為我會被 Canonical 聘請,而他們自己身為 Debian Developer 卻沒有這種「福氣」,嘿。當時 Ubuntu 人人都趨之若騖,他們覺得自己如果放軟手腳就會被淘汰,所以唯有逼上梁山,積極在 Ubuntu 出現做 bug fix 或幫軟件打包之類。對於這些人,我能怎樣?唯有一笑置之。

Debian 不同了,大體的士氣已經十分低落,再來這種打擊,因為大部份人都已經灰心了,而且就算甚麼都不做,也不會被褫奪 Debian Developer 的銜頭(終生會員制嘛),所以搞成這個樣子囉。但整個 Dunc-Tank 計劃(這個 Dunc-Bank 網站的資料更清楚),無論如何是失敗了,除了 Dunc-xxxx 計劃負責人、少數收了錢的 developer 和死硬派擁躉不承認之外。

說到底,人心肉做,搞整個 Debian 的也是一堆「人」罷了。

Ubuntu vs Debian — ready…fight! Round 137.

2006-12-18

因為私人理由,已經脱離了 OSS 的新聞許久,現在才來追看舊的新聞,發覺 Ubuntu 變得越來越有趣。Mark Shuttleworth 到 SuSE 的地盤勸喻別人「投誠」這個夠大膽了,我的印象中好像還未見過一個 Linux distribution 的頭領親身到別人的地盤點火的。JP Rosevear 的反擊也是不留情面,不過有個指控我看了有點觸動神經:

2) Preventing the Debian GNOME maintainer from updating GNOME packages until after Ubuntu LSO had shipped because you had hired him.

Read the rest of content »

Machine is up again

2006-01-03

Finally, my machine is back after replacing harddisk (which is reached its normal life cycle) with a new one. I end up installing Ubuntu after a series of accidents — I downloaded Debian netinst CD and burned it, yet after reaching data center and inserting new CD into machine, it simply becomes a Ubuntu CD! Still not investigated the reason yet, but my first impression told me I might have burnt the wrong ISO image. Anyway, this accident isn’t so bad — now I have more reason to test the ubuntu server version.

Perhaps quite a lot of web apps using PHP aren’t so compatible with PHP5, so have to downgrade to PHP 4.x after discovering some web apps simply won’t work with PHP5. Most importantly, I don’t have the time for debugging.

After being bombarded with file fetching clients (like Netant and something like that), I decided to replace vsftpd with pure-ftpd. No, I didn’t mean vsftpd isn’t good, actually it has been robust and secure enough to serve files for a long time. I just want to see if some other ftp servers can do that as well. Besides, I want to test the ftp UTF8 support documented in RFC 2640, and see if it can indeed serve localized greeting messages and file names. Sadly ubuntu/debian version of pure-ftpd doesn’t compile with localization by default :-(

[2006-01-03 16:53 Edit: pure-ftpd doesn't have RFC 2640 support at all, though there exists a patch for this purpose.]