2016-04-12

從 lenny 前進 wheezy

拖著一堆問題,終於來到 wheezy,並且依照潮流安裝 64bit 的版本。百廢待舉之中,零零總總的問題再慢慢來登記。真是有點搬家的心情。

Google Chrome

首先是 google chrome。很久以來都是克難的方式在用,好不容易可以用新版了,它卻告訴我近期之內將只維護 jessie 起的版本。所以再沒多久又要一直看它叮嚀我更新版本了。

Acroread

接下來發現 pdf 不能看,想起還沒安裝 Adobe 的 arcoread。沒想到 Adobe 官方網站只有給 Windows 和 Mac 的版本,看了好幾次就是沒有 Linux 的。啊哈。

網路搜尋一直看到 Ubuntu 的解法,不想深究之下,亂七八糟照表操課證明不行。嘗試 Ubuntu 解法之餘,也試用一些 Debian 可以直接下載的 reader,實在很陽春。最後終於明白似乎 Debian 沒有解法,只找到說明。哎,squeeze 的時代似乎還可以的說 [1],來到 wheezy 情況變成這樣:[2]
Acrobat Reader has left the building

Adobe does not provide up to date versions of Acrobat Reader (X and XI) for Linux but stopped the Linux support with Acrobat Reader 9. The support for Acrobat Reader 9 ended in July 2013 (see article in heise.de (German)). Therefore we cannot provide Acrobat Reader on Linux anymore.

Please use Iceweasels built-in PDF viewer, okular or xpdf instead. okular e.g. also allows filling out PDF forms and printing those documents. Unfortunately the Wheezy version of okular does not yet allow saving annotations directly into PDF documents.
總之不想深究,依樣畫葫蘆,裝了 okular。應該滿好用的,圖檔也可以看,而且還可以指定範圍放大和存檔。還好 Adobe 的 pdf 軟體不像微軟眾多軟體是寡佔的,不然豈非沒輒。沒輒就說 bye-bye。

(補充 2016-04-14:似乎要裝 32bit 版本的 Acroread,得先做件事,那就是
# dpkg --add-architecture i386
# aptitude update
這樣才能執行 i386 相關安裝工作。但暫時不想玩,等有玩再來填空。總之如此一來網路上一堆 Ubuntu 的解法應該就可以照著做了。)

(補充 2016-04-21:原來這個世界還是需要 Acroread 的。安裝詳情見 [5]。大致上是
ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/ (download site)
$ sudo dpkg --add-architecture i386
$ sudo apt-get update
$ sudo dpkg -i AdbeRdr9.5.5-1_i386linux_enu.deb
$ sudo apt-get install -f
這樣就結束了。)

fonts (2016-04-14)

由於從 big5 換到 utf8,又從 32bit 來到 64bit,世界實在是大不同了。拚命找尋字體想要更多一點的過程中,稍微明白/又複習了一次以前用的字體是哪裡來的,然後看到兩篇覺得值得留下來的連結:
lanHo, 新北市教育作業系統2015.07版試用小感 [論壇 - Ubuntu 哈啦], 2015-12-08
http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?viewmode=compact&topic_id=103214&forum=11

hulu, 分享 Lucida Grande 修正字型/奇怪的字元(全型冒號)顯示問題, 2015-10-25
https://forum.moztw.org/viewtopic.php?t=3165
前者提到教育部明明有做字型,卻沒怎麼推廣,而且發出來的系統安裝光碟片,不僅用的字體筆順跟教育部教的不一樣,更甚者安裝完還出現五星旗的小圖示。

後者是 mac 的字體,我在 2014 年 8 月底安裝,也是出現同樣的怪符號問題,當時沒有理會。如今下載人家改好的東西,果然這就叫做迎刃而解吧!問題是原本的字型顯示是 2002 年的,這個改過的是 2005 年。也就是過了 10 年,前年的我還是下載到有問題的字型。

種種種種,教人不勝噓唏。

對了,從教育部的全字庫下載了說文解字版,看到一整面篆書之類的字跑出來,很有意思。覺得教育部的楷書是楷體裡最好看的,而宋體則頗為糟糕。

暫時決定最後要用 cwTex 明體。不過 Lucida Grande 真的是黑體裡面最舒服的,其他都好重啊。

Scanner (2016-04-14)

我這台掃描機買在 2009 年,系統重新安裝之後,真是命運未卜。還好找到 [3] 這篇文章,不過點過去的日本網頁告訴我,它已經停止營運了。雖然看不懂日文,但亂找之餘,找到 [4] 這個網頁,揪感心,它還是讓我有 driver 可以下載,而是是 64 bit 的。在安裝說明裡,還照顧了各種 dist 的使用者,各種安裝方法都講得很仔細。實在是售後服務優良的公司,不賣了還是有支援。

至於安裝呢,dirver 現在的系統很多事情都整合得大概更進一步了,參考 [3] 和過去的筆記,driver 安裝完成之後,省略幾個過去的程序,也就順利啟動了。喔耶~
http://okomestudio.net/biboroku/?p=1025
http://download.ebz.epson.net/dsc/search/01/search/searchModule
# aptitude install libsane xsltproc
# /download_files/iscan64bit/iscan-gt-f720-bundle-1.0.0.x64.deb/: ./install.sh
# aptitude install xsane xsane-common
# usermod -a -G scanner username
# vim /etc/sane.d/epson.conf (預設的型號數字跟我的不一樣所以修改)
:~ xsane &
Kernel (2016-04-26)

編譯了 3.10.101,lilo。

先前試了好幾次 3.18.31 都不成功,開機屢次得到如下結果:
Kernel Panic - not syncing: VFS: Unable to mount root fs on unknowwn-block(0,0)
據查這意思是找不到硬碟,compile kernel 時要把檔案格式 EXT3 等包進去才行。包了也還是一樣。最後又查到,現在 lilo.conf 裡的 hard disk / partition 表示法變成 UUID 之類,據說這樣一定要有 initrd.img 來配合。試很久了不想再試,只好先屈服。但又發現系統找不到 usb-dvb 電視盒的 firmware,覺得很煩就不想待在 3.18,改用 3.10。

既然暫時屈服於非得有 initrd.img 不可,就不想做 menuconfig 了,結果沒想到 dvb modules 還是上不來,一查之下,發現竟然沒有包到 kernel 裡,只好繼續 make menuconfig。這裡有一個關鍵,就是要讓選單裡出現 CONFIG_USB_DVB,而非只是 CONFIG_USB_DVB_V2,首先要選取遙控器那一行(英文描述已經不記得了)。還好有查到這個資料,不然弄到目睭脫窗也看不到 A800 呀。

製作 initrd.img 的命令式:
殺掉:update-initramfs -d -k 版本號碼(例如 3.10.101)
新做:update-initramfs -c -k 版本號碼(例如 3.10.101)
更新:update-initramfs -u
第一個我忘了,不過後兩者生出 initrd.img 檔之後,都會自動做 lilo,所以在此之前最好就改好 lilo.conf,不然又要再做一次。

noip2

依照以前的方法做到最後,出現這一行:
insserv: warning: script 'noip2' missing LSB tags and overrides
其言外之意 [6] 有解釋,其解法可去 [7] 抄,也就是在 /etc/init.d/noip2 這個檔案第一行之後加上一段現在最好要有的宣告如下:
### BEGIN INIT INFO
# Provides:          noip2
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable service provided by daemon.
### END INIT INFO
然後再執行 $ sudo update-rc.d noip2 defaults 就好了。

文章連結

[1] PDF, Debian Wiki
     https://wiki.debian.org/PDF

[2] Upgrade to Debian Wheezy, FOSWIKI
https://wiki.gsi.de/foswiki/bin/view/Linux/WheezyUpgrade#Acrobat_Reader_has_left_the_building

[3] Taro, Installing Epson Perfection V30 on Debian Squeeze (AMD64), 2010-10-21
     http://okomestudio.net/biboroku/?p=1025

[4] Epson - drivers & downloads, エプソンアヴァシス株式会社, Epson官網
     http://avasys.jp/product/linux_driver/index.php
http://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=EN&CN2=&DSCMI=42095&DSCCHK=0506fa104d3a61eb10f60ef0d0ea79c865c3b1e8
Product name GT-F720, GT-S620, Perfection V30, Perfection V300 Photo
Language All language
OS Linux
Country/Region All country
Version               Ver. 1.0.0(11-2015)
[5] slm, How to install Adobe Acrobat Reader in Debian?, Unix & Linux Stack Exchange, 2014-01-21
     http://unix.stackexchange.com/questions/3505/how-to-install-adobe-acrobat-reader-in-debian

[6] insserv: warning: script 'service' missing LSB tags and overrides, DirectAdmin, 2013-03-11
     https://help.directadmin.com/item.php?id=379

[7] startup script (/etc/init.d) help., Raspberry Pi Forum, 2013-01-01
     https://www.raspberrypi.org/forums/viewtopic.php?t=27818&p=247424