2011-06-17

debian apache2 2.2.16 使用者目錄下的 PHP5 關了

2011-06-08

更新到 Squeeze, apache2 的版本 2.2.16-6+squeeze1

使用者目錄下的 PHP5 是改成關閉的, 要改設定來打開,

  • 在 /etc/apache2/mods-available/php5.conf
<ifmodule c="">
<directory home="" public_html="">
php_admin_value engine Off
</directory>
</ifmodule>

  • 讓 user dir 可以使用 php5, 註解如下, 改成
# 2011-06-07 註解後, 讓 user dir 可以使用 php5
# <ifmodule c="">
# <directory home="" public_html="">
# php_admin_value engine Off
# </directory>
# </ifmodule>



最後重起動 apache2
sudo /etc/init.d/apache2 restart



-
-


OpenOffice Calc 儲存格中手動換行

2011-06-17

因為通訊錄中一個人有兩個以上的E-Mail,所以要在儲存格中手動換行, 最先用 google 查的"Execl儲存格換行", 結果用在calc中不行, 不同家的 Office 不給用, 改"Office Calc儲存格換行", 就找到了。

記一下, 已經是第二次了。另外, 自動
手動換行(儲存格換行)
Execl : ALT + ENTER

OpenOffice Calc3 (LibreOffice 沒試過) :
  1. 點滑鼠左鍵點入儲存格, 或按F2鍵, 進入儲存格輯狀態
  2. 遊標移到換行位置,按 CRTL+ENTER 儲存格內換行。
  3. 再按 ENTER 鍵,離開編輯狀態。

另外字首自動換成大寫及URL 自動更正錯誤, 也最好關掉。

URL 自動更正錯誤 : 關掉
選單 : Tools->AutoCorrect : URL Recognition : 不要勾

字首自動換成大寫 : 關掉
儲存格按右鍵->Format Cells(儲存格格式化) -> Alignment(對齊) : Properties(特性) : Wrap Text automatically(文字自動換行) : 不要勾

Sun 已垮了, 可能以後要改用 LibreOffice 了。


參考 - 《OpenOffice Calc》如何在儲存格內手動換行、自動換行、縮小以符合儲存格大小?



-

2010-11-27

GVim 預設字型

2010-11-27

平常大部份是在終端機下使用vim, 很少在 gui 環境下使用 gvim。 這幾天用到 gvim ,發現預設字型很小, 每次都要調整, 不太方便, 就在網路上找一下, 順便改了。

以下步驟:
  1. Return of Monaco下載 Monaco 字型
  2. 放到 /usr/share/fonts/truetype/ ( sudo cp monaco.ttf /usr/share/fonts/truetype/)
  3. sudo fc-cache -f -
  4. ~/.vimrc 內容中加入 set guifont=monaco\ 14
以下是我另外加的字型
  1. xfonts-terminus (sudo aptitude install xfonts-terminus)
  2. ttf-inconsolata (sudo aptitude install ttf-inconsolata)

----

參考 -

---

2010-09-21

debian mount virtaulbox 分享資料夾

2010-09-21

1. 要先裝 build-essential

sudo aptitude install build-essential

2. 下載 VBoxLinuxAdditions

mount VBoxLinuxAdditions 的 iso 檔, 其中有個 VBoxLinuxAdditions.run

3. 用 root 執行 VBoxLinuxAdditions.run

sudo ./VBoxLinuxAdditions.run

4. 重開 guest (debian)

5. 手動掛上分享資料夾 share_vbx 在 /mnt/vbx 掛載點上 (指定uid及gid)

sudo mount.vboxsf -o uid=1000,gid=1000 share_vbx /mnt/vbx


或寫在 /etc/fstab

share_vbx /mnt/vbx vboxsf rw,gid=1000,uid=1000,auto 0 0

注意: 分享資料夾名稱和掛載點不可同名

---

ref - Sharing Folders with VirtualBox

-

2010-09-02

Qt 設計的軟體字型設定

2010-09-02

這在以前就找到解決方法了, 老是忘記, 記一下.

os : debian stable(Lenny)

安裝 kcontrol

sudo aptitude install kcontrol


(qtconfig-qt4 無效)

----

2010-07-25

lighttpd: Symbol `FamErrlist' has different size in shared object, consider re-linking

2010-07-25

Debian Lenny
套件 : lighttpd 1.4.19-5+lenny

安裝完後啟動 lighttpd, 出現錯誤

Starting web server: lighttpd/usr/sbin/lighttpd: Symbol `FamErrlist' has different size in shared object, consider re-linking

在 google 上找到, 要安裝 libfam0 ,
安裝 : $ sudo aptitude install libfam0


再啟動 lighttpd
sudo /etc/init.d/lighttpd force-reload


參考 - lighttpd: Symbol `FamErrlist’ has different size in shared object, consider re-linking

---

2010-06-09

Debian Linux 下 CHM 檔轉成 HTML

套件 : archmage (stable)
安裝 : $ sudo aptitude install archmage
用法: /usr/bin/archmage [options] [destdir]

選項 :

  • -x / –extract
  • -p number / –port=number
  • -d / –dump
  • -V / –version
  • -h / –help
例 : $ archmage -x AutoHotkey.chm


註: 常用的 CHM viewer : xchm / chmsee (stable)

2010-06-09