搜尋此網誌

2010年11月22日 星期一

pidgin MSN 認證問題

直接參考pidgin網站:
http://developer.pidgin.im/viewmtn/revision/info/cd236baf6d00f3e1561a40974ce1828b793ea187

下載旁邊的兩個Addfile
Microsoft_Internet_Authority_2010.pem
Microsoft_Secure_Server_Authority_2010.pem

然後覆蓋原來的/usr/share/ca-certs/的同名檔案就可

2010年9月29日 星期三

將好讀的文章轉換為EPUB存到nook去

先加Calibre辨別PDB檔案的外掛
http://kanru.github.com/calibre-haodoo/

使用Calibre
大量批次轉換

每個檔案加入額外CSS如下:
@font-face { font-family: "DroidFont", serif, sans-serif; font-weight: normal; font-style: normal; src: url(res:///system/fonts/DroidSansFallback.ttf); }
@font-face { font-family: "DroidFont", serif, sans-serif; font-weight: bold; font-style: normal; src: url(res:///system/fonts/DroidSansFallback.ttf); }
@font-face { font-family: "DroidFont", serif, sans-serif; font-weight: normal; font-style: italic; src: url(res:///system/fonts/DroidSansFallback.ttf); }
@font-face { font-family: "DroidFont", serif, sans-serif; font-weight: bold; font-style: italic; src: url(res:///system/fonts/DroidSansFallback.ttf); }

body{
font-family:"DroidFont", serif, sans-serif;
}
p{
text-indent: 1.5em;
line-height:140%;
margin:0.5em;
}


另外點選不加入封面

Calibre可以直接辨識nook, 可以直接將檔案傳送到nook去
注意傳送的內容是以Calibre Library資料夾內的epub檔案
所以要在用calibre打開nook確認

2010年9月16日 星期四

Nook中文與CSS設定--使用Droid字型

Nook本身就是Android系統, 內建的Droid字體就可以支援

所有中文EPUB檔案都要加入如下CSS設定就可以正確顯示中文

@font-face { font-family: "DroidFont", serif, sans-serif; font-weight: normal; font-style: normal; src: url(res:///system/fonts/DroidSansFallback.ttf); }
@font-face { font-family: "DroidFont", serif, sans-serif; font-weight: bold; font-style: normal; src: url(res:///system/fonts/DroidSansFallback.ttf); }
@font-face { font-family: "DroidFont", serif, sans-serif; font-weight: normal; font-style: italic; src: url(res:///system/fonts/DroidSansFallback.ttf); }
@font-face { font-family: "DroidFont", serif, sans-serif; font-weight: bold; font-style: italic; src: url(res:///system/fonts/DroidSansFallback.ttf); }


body{
font-family:"DroidFont", serif, sans-serif;
margin:20px;
}
p{
line-height:140%;
margin:1px;
}


nook可以顯示分欄, table框線
不過圖案過大就無法顯示?

繼續測試

2010年5月26日 星期三

使用img檔案作USB開機碟

用MeeGo安裝檔案作例子
確認好USB的裝置名稱

下指令:
dd if=meego-netbook-ia32-1.0.0.20100524.1.img of=.dev/sdb1

查詢USB碟或其他裝置

使用: sudo fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xde1730a4

Device Boot Start End Blocks Id System
/dev/sda1 1 6528 52436128+ 7 HPFS/NTFS
/dev/sda2 6529 16147 77264617+ f W95 Ext'd (LBA)
/dev/sda3 * 16148 19457 26587575 83 Linux
/dev/sda5 6529 16147 77264586 7 HPFS/NTFS

Disk /dev/sdb: 8032 MB, 8032091136 bytes
131 heads, 48 sectors/track, 2494 cylinders
Units = cylinders of 6288 * 512 = 3219456 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 2 2495 7839743 b W95 FAT32


這就告訴你, usb碟是 在 /dev/sdb1

查看mount點
使用: mount

/dev/sda3 on / type ext4 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda1 on /media/sda1 type fuseblk (rw,allow_other,blksize=4096)
/dev/sda5 on /media/sda5 type fuseblk (rw,allow_other,blksize=4096)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/sdb1 on /media/Transcend type vfat (rw,nosuid,nodev,uhelper=hal,uid=1000,shortname=winnt)

就可以看到/dev/sdb1 是mount在
/media/Transcend 之上


2010年4月19日 星期一

iBus 新酷音 標點符號輸入

「`」鍵(也就是 ~ 的位置)叫出符號表,鍵盤最左上方的那個鍵

或是 [shift]+[英文按鍵] 就會有符號出來

2010年4月15日 星期四

#!crunchbang linux 10 安裝筆記

安裝 crunchbang linux 10 beta 1 步驟

install
選ext4

安裝vim
設定sources.list為Taiwan source

安裝完
安裝文泉驛中文字型
ibus
新酷音
安裝nvidia顯示
sudo vi /etc/apt/sources.list
加入
# Unstable Sid
deb http://http.us.debian.org/debian/ unstable main contrib non-free
# Unstable Sources
deb-src http://http.us.debian.org/debian/ unstable main contrib non-free
sudo apt-get update
sudo apt-get -t unstable install nvidia-kernel-source
sudo m-a a-i nvidia-kernel-source
sudo apt-get -t unstable install nvidia-glx
安裝完後,將sources. list中的unstable來源移除
掛載ntfs磁區
sudo apt-get intall ntfs-config
無線網卡
安裝open office
移除abiword, excel
安裝xmind
安裝pidgin
安裝stardict + 字典檔
sudo apt-get install stardict
字典檔要改去stardict論壇下載
下載字典檔後解壓縮到/usr/share/stardict/dic

設定檔 --> openbox tint2, terminator
安裝印表機 CUPS
sudo apt-get install cups
sudo adduser $使用者 lpadmin
sudo service cups restart
localhost:631
windows網域使用ipp protocal
安裝virtual box + windows xp
下載VirtualBox for all linux platform的 *.run檔案
sudo chmod 755 *.run
執行run安裝

2010年4月14日 星期三

crunchbang linux 10 -- 新增印表機

使用CUPS
利用套件管理員增加 cups

將user加到prnter admins:
sudo adduser $USERNAME lpadmin
sudo service cups restart

然後進到 localhost:631/admin
新增印表機即可

2010年3月29日 星期一

登入windows網域 及 網路芳鄰

使用 likewise open 和 pyNeighborhood
不過還是登入不進去windows網域 ...

http://antontw.blogspot.com/2009/07/linuxubuntu-windows-domain-server.html
https://help.ubuntu.com/8.04/serverguide/C/likewise-open.html

http://ithelp.ithome.com.tw/question/10031086

2010年3月22日 星期一

openoffice 中文直排

格式 --> 頁面 --> 頁
選取"文字方向"  '由右至左' 即可

2010年3月17日 星期三

dropbox

使用dropbox
在ubuntu gnome下, 它是binding在Nautilus下面的,
所以若是使用非Nautilus的file manager就要額外安裝

2010年1月17日 星期日

新增Openbox佈景主題

openbox 主題可以來這邊找:
http://www.box-look.org/index.php?xcontentmode=7402

下載tar.gz檔案後, 解壓縮到  ~/.themes
之後打開obconf就可以選擇新的佈景主題了