Thursday, November 29, 2007

Thunderbird+webmail

from http://forums.mozine.cn/index.php?showtopic=12483

感谢你关注本主题.

很高兴在这里把自己近期设置yahoo.com.cn和gmail.com两个邮件账号的成功路径与大家分享. 我使用版本为thunderbird 1.5.0.8. (简体中文), 系统为windows xp 5.1 (sp2).

虽 然Mozine论坛和网络各处有很多讨论,说明如何用Thunderbird设置基于web的邮件账号(webmail accounts)实现pop/smtp收发邮件, 这些层出不穷的讨论恰恰说明了在设置过程中有太多人遇见太多种不可预料, 难以归类和难以解决的问题.


我的总结只限于个人经验. 我的描述力图完整以免引起歧义,因而不免琐碎. 不需要了解相应内容的dx可以一笑而过 laugh.gif .



I. gmail设置:

(参考mozillazine.org的内容 http://kb.mozillazine.org/Using_Gmail_with..._Mozilla_Suite)

gmail本身支持用户使用thunderbird这样邮件客户端用pop/smtp方式收发邮件, 设置过程很直接, 应该不需要预先装任何插件. 设置共分为三步:

1 添加账户: 设置时选菜单> "工具"> "邮件/新闻账户设置", 即出现 "账户设置"界面 > 选择 "添加账号", 即进入"账户向导"> 选择"电子邮件账号", 依次填入各项参数等进入下一步即可. 相关参数选择:
- "电子邮件地址" 填入完整电邮地址, 即"[xxxx]@gmail.com"
- "接受服务器类型" 选 "POP"
- "接受服务器" 填入"pop.gmail.com"
- "接受用户名" 填入完整电邮地址, 即"[xxxx]@gmail.com"
- 给新加账户命名, 点击完成. 这时"账户向导"关闭,同时 "账户设置"界面左侧栏出现新设置账户的目录树.

2 完成设置:
- 在"账户设置"界面, 新设置账户的目录树上, 点击名称, 填入"回复地址", 即"[xxxx]@gmail.com"
- 在目录树上选择 "服务器", 在右侧安全设置一项选择 "SSL", 端口号将自动改为995. 不需选择 "使用安全认证"选项. 其它选择按使用需要. 建议选择"把消息留在服务器上", 使web 上保留邮件.
- 在"账户设置"界面左下点击"发送(SMTP)服务器", 在右侧选择 "添加", 出现"SMTP服务器" 窗口. 在"服务器名称"栏填入"smtp.gmail.com", "端口" 改为587; 并且在下面"安全与认证" 栏选定 "始终使用名称和密码", 并在用户名中填入完整电邮地址, 即"[xxxx]@gmail.com", 最后选择 "TLS" 安全连接, 点击确认,"SMTP服务器" 窗口关闭.
- 回到"账户设置"界面, 左下点击"发送(SMTP)服务器", 在右侧将新设置的SMTP服务器"设为默认"
- 回到新设置账户的目录树上,依次按需要设置或改动其它设置. 至此完成thunderbird的账户设置.

3 在gmail网页邮件设置中激活pop收信:
需要在浏览器网页登入gmail账号后, 在页面右上角点击"settings", 之后点击"Forwarding & POP", 在"POP Download"项下选择"Enable POP for all mail"(pop获取包括现有邮件的所有邮件), 或者"Enable POP only for mail that arrives from now on" (pop获取从现在起的邮件). 随后, 按照早先在thunderbird中设置同时保留本地和服务器邮件, 相应选择"keep Gmail's copy in the box" (邮件同时保留在Gmail上), 确认保存设置. 至此即完成所有设置.



II. yahoo.com.cn的设置

yahoo一类的web邮件提供者对于用户pop/smtp收发信有很多限制, 同时为防止垃圾邮件(spam)和其它不良邮件发送行为,smtp的安全机制相对不很透明. 因而使得thunderbird邮件客户端的设置有些复杂.

[一句话, 出现设置错误是因为这些邮件商对用户原本就有限制,而且支持不好,而不是thunderbird有任何此类缺陷].

有三种可能的路径设置yahoo 账号使thunderbird利用pop/smtp方式收发邮件,分别说明如下:

1. 直接设置, 参考第I部分gmail设置之 1 和 2 的具体过程. 区别在于:
- pop"接受服务器"的参数改为 pop.mail.yahoo.com
- "电子邮件地址" 和"回复地址" 填入 yahoo电邮地址, 即"[xxxx]@yahoo.com.cn"
- "发送(SMTP)服务器" "服务器名称"中填 "smtp.mail.yahoo.com" (不能有.cn子域后缀), 在"用户名"填入yahoo注册的id/用户名, 即"[xxxx]" (而不是"[xxxx]@yahoo.com.cn"), "使用安全连接"可选"TLS, 当可用时", 同时选择"始终使用用户名和密码",确认即完成设置.
- 如果在设置yahoo账号之前thunderbird中已有其它邮件账号设置, 需要添加yahoo的"发送(SMTP)服务器", 在 "账户设置"界面 (选菜单> "工具"> "邮件/新闻账户设置", 即出现 "账户设置"界面) 左侧栏中选择"发送(SMTP)服务器", 在右侧"添加" smtp.mail.yahoo.com,完成上一步即可, 然后在 "账户设置"界面点击新设的yahoo账号目录树顶端 (yahoo账号的名称处), 在右栏"外发(SMTP)服务器" 栏下拉可选项选择新加的smtp.mail.yahoo.com 为发送服务器. 至此完成设置.


2. 如果第1种设置后无法在thunderbird中发送yahoo邮件, 一个简单的改进发式是可以在thunderbird中给yahoo账号重新设置另一个独立的smtp服务器, 并取消/删除原先的smtp.mail.yahoo.com的所有设置. 这个独立的smtp服务器应支持用户名认证, 最好支持SSL/TLS加密. 采用gmail的smtp服务器就可以(当然,你需要一个gmail账号). 有关添加gmail的smtp服务器的方式见上第1部分. 如此设置的效果就是你可以正常用pop方式从yahoo取信, 同时有效地用gmail开放的smtp发送服务器发信.

[ 不过, 设置后所有在thunderbird上从yahoo账号外发的邮件地址被(至少在gmail web界面) 读成了"[xxxx]@gmail.com", 而且即便预先设定了不同的回复地址, 在thunderbird以外(至少在gmail web 界面), 预设回复地址是无效的. 改变这种情况的方式"据说" unsure.gif 有两种:

1) 是, 继续使用gmail smtp 服务器, 但是设立另一个默认的smtp服务器账号, 默认账号的邮件地址信息将覆盖在yahoo发信后出现的gmail 的发件人邮件地址. 可以 参考这里的讨论. 相应地, 需要去gmail 邮箱网页 "Settings"(设置) 中添加该账号的邮件地址 (Gmail's SMTP server ignores whatever "From:" address you might specify using multiple identity support unless you add it in the Gmail web page at Setting -> Accounts -> "Add another email address".)

2) 只设定一个gmail smtp账号, 但是将thunderbird中的gmail邮件账号中的电邮发件人和回复地址都改为yahoo的电邮账号, 再加上一些其它设置. 具体参见 本版讨论.

由于测试条件的局限, 我暂时无法验证.]

如果你愿意甚至希望在thunderbird的不同账号用同一个发送服务器, 使任何账号的接受人回复到你的同一个账号中,可以使用这个路径.

3. 采用thunderbird的第三方插件, "webmail" 和 "webmail - yahoo" 可以实现完全功能的pop/smtp收发. 本版似已有完整介绍. 另外参见 webmail设置说明的原始站点. 要点:
- 装完webmail插件后, 应在该扩展"选项>常规"中选择"在账户向导中添加web邮件选项", 重启thunderbird以webmail格式添加 yahoo邮件;
- smtp 的设置: 如果设为smtp.mail.yahoo.com 的话, 用户名为id名, 不需要加 "@yahoo.com.cn" 域名.

Monday, October 22, 2007

A review of Thomas L. Friedman’s book “The World Is Flat”

The world is still rugged

The world was thought of as round ever since Columbus discovered the new continent until the shocking claim made by Thomas Friedman in 2005. And all of a sudden, all the governors and entrepreneurs were reading this New York Times best seller. According to Thomas, we are experiencing a Globalization 3.0, which “shrink the world from a small one to a tiny one and flatten the playground at the same time”. Globalization nowadays, comparing to the previous two “versions”, is driven by a more diverse force and empower individuals from all over the flat world.

This transformation can be better explained by Bill Gates. Thirty years ago, he tells Friedman, “If you had to choose between being born a genius in Mumbai or Shanghai and an average person in Poughkeepsie, you would have chosen Poughkeepsie because your chances of living a prosperous and fulfilled life were much greater there”. ''Now,'' Gates says, ''I would rather be a genius born in China than an average guy born in Poughkeepsie.''

It is really stimulating to see a flat world at first glance: In this world small and less developed countries like China and India can wrestle with western countries like United States; Individuals are essential participants of global cooperation and competence and are able to cast more and more influence on global economy. Thomas concluded the ten major bulldozers of flattening the world: The fall of the Berlin Wall, Netscape's initial public offering, workflow software, Uploading, outsourcing,offshoring, supply chaining, insourcing, In-forming and the steroids. Most of them are products or phenomenon in Internet age. The way he organized the book is like a trademark: We travel with him, meet bunches of people, study various cases. All this make our reading experience pretty interesting.

The occupation of Thomas is a journalist, thanks to which he became a frequent world traveler. Bad news is that the nature of his job is to grab a few points which have the potential of making a headline and ignore the prevailing facts. As a technology determinist, Thomas judges the future of our planet simply from the perspective of science and technology, which is not justifiable though understandable. Arabian world would probably disagree when Thomas claim that the reason why the Arabian world is paranoid and less developed is due to the less popularity of Internet. Beside technology, there are still many barriers lying between the western world and the Arabian world: The fundamental opposition of ideology and religion, the contention on natural resources (esp. oil), the intervention of supremacy and the historical problems of colonialism, to name a few. I really want to agree with Mr. Friedman on his “technology flattening the world” theory since the world is so pure and fair from that point of view. But unfortunately, it’s not.

Thomas also mentioned two new-rich of the poor brotherhood of developing countries: China and India. I happened to live in China for twenty years. And I can barely recognize the China I know from the book. For someone who has never been to China and India, the impression they get from the book will probably be these this two countries will catch up with America in the near future. The fact is, there is a huge economic gap between the coast and the rural area of China or India. Big cities Shanghai, Beijing or New Delhi is on the same altitude of the world while there are still many places in China or India that are below sea level. How can a place being flattened if it cannot provide natural resource, labor or anything else useful for the technology world? Even if China and India do realize the dream of Mr. Friedman, it can’t be from simply adopting new technology. The harder part for populous countries is reforming the system. One example would be the rapid economic growth in China for the last 20 years. China wasn’t part of the globalization until Xiaoping Deng initiated “the policy of reform and opening” in 1980s.

Another novel point of the book is the so-called “The Dell theory of conflict prevention”. Thomas claimed that the strong economic tie between different countries would be a deterrent to war. However, most wars and conflicts in the world are caused by culture (Middle East) and natural resources (Iraq war) or simply politics (overthrown of a government). World supply chain seems to have little to do with all of these factors.

Generally speaking, the world is flattening from the technological point of view. But Thomas Friedman ignores the fact that there are still many other factors which serves as barriers between countries or different areas. The rich experience of the author will surely trigger the thinking of readers anyhow, which is more important than the right or wrong of the content. One thing we are sure is that the wave of globalization is unstoppable and involves us all. So get prepared!

Sunday, October 21, 2007

Ubuntu下的wine优化

ZZ自 廖宇雷的部落格

默认安装的 wine 是不大好用的,所以需要优化一下。

首先安装 0.9.36 或更新版本的 wine(在命令行下面输入 wine –version 查看版本号),这样可以避免和 scim 输入法冲突、以及 GBK 字体导致的运行缓慢问题。如果没有更新版本,那么可以自己编译一个,运行速度比默认编译的还快一点。

接下来用 ies4linux(ies4linux 官方网站) 自动安装 IE6。

之所以要使用 ies4linux 来配置 wine 环境,是因为 ies4linux 会附带安装一些基本组件和字体。这样在使用其他 Windows 程序时可以少不少麻烦。

不过 ies4linux 把 wine 配置文件放到 ~/.ies4linux 了,所以需要按照下列操作修改一下:

cd ~
rm -fr .wine
mv .ies4linux .wine
cd .wine
mv ie6/* .
rmdir ie6

这样修改后,ies4linux 在桌面上创建的 ie6 快捷方式就不能启动 ie 了,还需要修改一下 ~/bin/ie6 这个启动脚本:

cd ~/bin
rm ie6
ln -s ~/.wine/bin/ie6 ie6
gedit ie6
用搜索替换功能,将 .ies4linux/ie6 提换为 .wine,保存退出。

上面的工作做好后,从桌面启动一下 ie6,如果没问题,说明配置成功。
接下来就是设置字体,让 Wine 跑的 Windows 程序看起来好看些(参考:http://forum.openrays.org/simple/index.php?t4309.html)。

步骤:

  1. 初始设置
  2. 运行 winecfg,把模拟的 Windows 系统设置为 Windows XP 或者 Windows 2000。

  3. 准备字体
  4. 为了让 Windows 应用程序看上去更美观,所以需要 Windows 下面的字体。

    由于我已经将 simsun.ttc 复制到 /usr/share/fonts/windows/ 目录中了。所以我只需要在 ~/.wine/drive_c/windows/fonts/ 目录中为 simsun.ttc 创建一个符号连接:

    cd ~/.wine/drive_c/windows/fonts
    ln -s /usr/share/fonts/windows/simsun.ttc simsun.ttc
    ln -s /usr/share/fonts/windows/simsun.ttc simfang.ttc

    创建一个 simfang.ttc 是许多 Windows 应用默认使用 simfang.ttc 字体。

  5. 修改 ~/.wine/system.reg
  6. 装好字体后,还要修改一下 Wine 的注册表设置,指定与字体相关的设置:

    gedit ~/.wine/system.reg

    (一定要使用 gedit 或其他支持 gb2312/utf8 编码的编辑器修改这些文件,否则文件中的中文可能变乱码)

    搜索: LogPixels
    找到的行应该是:[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
    将其中的:
    “LogPixels”=dword:00000060

    改为:
    “LogPixels”=dword:00000070

    搜索: FontSubstitutes
    找到的行应该是:[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]
    将其中的:
    “MS Shell Dlg”=”Tahoma”
    “MS Shell Dlg 2″=”Tahoma”

    改为:
    “MS Shell Dlg”=”SimSun”
    “MS Shell Dlg 2″=”SimSun”

  7. 修改 ~/.wine/drive_c/windows/win.ini
  8. gedit ~/.wine/drive_c/windows/win.ini
    在文件末尾加入:

    [Desktop]
    menufontsize=13
    messagefontsize=13
    statusfontsize=13
    IconTitleSize=13

贴效果图几张,看上去还不错,就是有点慢。特别是用 ie 打开很多 js 的页面时,cpu 占用率一直 100%。

wine-ie6-01.png wine-ie6-02.png
wine-ie6-03.png wine-editplus-01.png
wine-dbdesigner4-01.png wine-mysqlman-01.png

Friday, October 19, 2007

A complete replacement software list of Ubuntu

Previz:
Storyboard Lite http://www.zebradevelopment.com/

2D Animation:
US Animation http://www.toonboom.com/products/USAnimation/
MOHO http://www.lostmarble.com/moho/
Synfig Studio (OSS) http://www.synfig.com/
KToon (OSS) http://ktoon.toonka.com/

3D Animation:
Maya http://www.alias.com/eng/index_flash.shtml
XSI http://www.softimage.com/home/
Houdini http://www.sidefx.com/
Blender (OSS) http://www.blender3d.com/
Cinema4D (Works on Wine) http://www.maxoncomputer.com/
Lightwave (Works on Wine) http://www.newtek.com/

Lip-sync for animation:
Papagayo (OSS) http://www.lostmarble.com/papagayo/index.shtml

Camera Tracking and Match Moving:
Boujou http://www.2d3.com/
3DEqualizer http://www.3dequalizer.com
Mokey/Monet http://www.imagineersystems.com/
Matchmover Pro http://www.realviz.com/
Maya Live (Included with Maya Unlimited - See Maya link above).

Compositors:
Shake http://www.apple.com/shake/
Flint http://usa.autodesk.com/
Nuke http://www.d2software.com/index.html
Halo http://www.sidefx.com/
Digital Fusion (In developement) http://www.eyeonline.com/
After Effects (Works on Wine) http://www.adobe.com/

Render Software:
Mental Ray http://www.mentalimages.com/
Renderman https://renderman.pixar.com/
Pixie (OSS) http://www.cs.berkeley.edu/~okan/Pixie/pixie.htm
3DElight http://3delight.com/index.htm
Open Render (OSS) http://openrender.sourceforge.net/
Aqsis (OSS) http://www.aqsis.com/
Radiance (OSS) http://radsite.lbl.gov/radiance/
Gelato Film Renderer http://film.nvidia.com/page/home.html
PovRay (OSS) http://www.povray.org/
Air http://www.sitexgraphics.com/
Yafray (OSS) http://www.yafray.org/
RenderDocC http://www.dotcsw.com/rdc.html
Discreet Burn http://usa.autodesk.com/
Turtle http://www.illuminatelabs.com/
Qube! http://www.pipelinefx.com/
Muster http://www.vvertex.com/
Rush http://seriss.com/rush/
GRender (OSS) http://grender.sourceforge.net/
DrQueue (OSS) http://drqueue.org/
PovMosix (OSS) http://povmosix.sourceforge.net/

Online Render Services:
Render Rocket http://www.renderrocket.com/
ResPower: http://www.respower.com/
RenderNOW http://www.rendernow.com/
EFX http://www.efxone.com/renderfarm1.htm
Rendercore http://www.rendercore.com/
Render-it http://render-it.co.uk/

NLE Software:
Smoke http://usa.autodesk.com/
Piranha HD http://www.ifx.com/piranha/
Cinelerra (OSS) http://heroinewarrior.com/cinelerra.php3
Jahshaka (OSS - In development) http://www.jahshaka.org/index.php
MainActor http://www.mainconcept.com/
PiTiVi (OSS - In developement) http://www.pitivi.org/
KDEnLive (OSS - In development) http://kdenlive.sourceforge.net/
LiVES (OSS - In development) http://www.xs4all.nl/~salsaman/lives/

Online NLE Services:
Rainmaker http://www.rainmaker.com/
Eyespost http://www.eyespost.com/
Post Producers http://www.ppd.ca/
Imarion http://www.imarion.com/

Audio Editing/Mixing:
Wired (OSS) http://bloodshed.net/wired/
Ardour (OSS) http://ardour.org/
Rosegarden (OSS) http://www.rosegardenmusic.com/
LMMS (OSS) http://lmms.sourceforge.net/

Paint/Image Editing:
GIMP (OSS) http://gimp.org/
Cinepaint (OSS) http://cinepaint.sourceforge.net/
IFX Amazon Paint http://www.ifx.com/amazon/
Adobe Photoshop 7 (Works on Wine)
Photogenics http://www.idruna.com/index.html
Pixologic ZBrush (Works on Wine) http://pixologic.com/index.cgi
BodyPaint 3D (Works on Wine) http://www.maxoncomputer.com/
Pixel http://www.kanzelsberger.com/pixel/
Panorama Tools (OSS) http://panotools.sourceforge.net/

Film Color Correction/Mastering:
Da Vinci http://www.davsys.com/
Speedgrade http://www.speedgrade.com/
Lustre http://www4.discreet.com/lustre/
Film Master http://www.digitalvision.se/
Data Conform http://www.digitalvision.se/

Video/Audio Conversion:
Konverter (OSS) http://www.kraus.tk/projects/konverter/
AudioKonverter (OSS) http://www.kde-apps.org/content/show.php?content=12608
AudioMove (OSS) http://www.lcscanada.com/audiomove/index.html

Video Playback:
Framecycler http://www.iridas.com/framecycler/
MPlayer (OSS) http://www.mplayerhq.hu
Xine (OSS) http://xinehq.de/
Helix (OSS) https://player.helixcommunity.org/
RealPlayer http://www.realnetworks.com/
MoviX (OSS) http://movix.sourceforge.net/

Vector Drawing/Illustration:
Inkscape (OSS) http://www.inkscape.org/
Sodipodi (OSS) http://www.sodipodi.com/
Skencil (OSS) http://www.nongnu.org/skencil/index.html
Adobe Illustrator (Works on Wine)

Web Design:
WireFusion http://www.demicron.com/wirefusion/index.html
Macromedia FlashMX (Works on Wine)
Flash For Linux (OSS) http://f4l.sourceforge.net/
Macromedia DreamweaverMX (Works on Wine)
Macromedia StudioMX (Works on Wine)
NVU (OSS) http://nvu.com/index.html
Quanta (OSS) http://quanta.sourceforge.net/
Bluefish (OSS) http://bluefish.openoffice.nl/

CAD:
VariCAD http://www.varicad.com/
Cycas http://www.cycas.de/
AutoCAD http://www.autodesk.com/
gCAD3D (OSS) http://www.cadcam.co.at/freiter/gCAD3D.htm

Asset Management:
NXN Alienbrain http://www.alienbrain.com/
File Maker Pro http://www.filemaker.com/
Discreet Backdraft http://www4.discreet.com/backdraft/
Gwenview (OSS) http://gwenview.sourceforge.net/
Showimg (OSS) http://www.jalix.org/projects/showimg/
KPhotoBook (OSS) http://kphotobook.sourceforge.net/
Rushplay http://www.heuris.com/hollywood/AboutRushplay.htm
F-Spot (OSS - Like iPhoto) http://www.gnome.org/projects/f-spot/

Cluster Software:
Maui http://supercluster.org/maui/
Open Mosix (OSS) http://openmosix.sourceforge.net/
OpenPBS http://www.openpbs.org/
Platform LSF http://www.platform.com/products/LSF/
OpenSSI (OSS) http://openssi.org/

Archiving/Backup:
Konserve (OSS) http://konserve.sourceforge.net/
KDar (OSS) http://kdar.sourceforge.net/
Dar (OSS) http://dar.linux.free.fr/
Amanda (OSS) http://www.amanda.org/
KArchiver (OSS) http://perso.wanadoo.fr/coquelle/karchiver/
K3B (OSS) http://www.k3b.org/
X-CD-Roast (OSS) http://www.xcdroast.org/
Drive Image http://www.drive-image.com/
Burt (OSS) http://www.cs.wisc.edu/~jmelski/burt/
Storix http://www.storix.com/
GnomeBaker (OSS) http://gnomebaker.sourceforge.net/v2/

Conference/Chat Messengers:
Kopete (OSS - video) http://kopete.kde.org/
GnomeMeeting (OSS - video/voice) http://www.gnomemeeting.org/
aMSN (OSS - video) http://amsn.sourceforge.net/
GAIM (OSS) http://gaim.sourceforge.net/
Skype (OSS - voice) http://www.skype.com/
DigiChat http://digichat.com/
Gizmo http://www.gizmoproject.com/
OpenWengo (OSS - video/voice) http://www.openwengo.com/

Office Productivity:
Evolution (OSS - Mail) http://www.gnome.org/projects/evolution/
KMail (OSS - Mail) http://kmail.kde.org/
Open Office (OSS) http://www.openoffice.org/
Star Office http://wwws.sun.com/
KDE Kontact Groupware Client (OSS) http://kontact.kde.org/
KOffice (OSS) http://koffice.kde.org/
Gnome Office (OSS) http://www.gnome.org/gnome-office/

Wine Links:
Wine (OSS) http://www.winehq.com/
Wine Tools (OSS) http://www.frankscorner.org/winetools/
CrossOver Office http://www.codeweavers.com
AclereX http://www.aclerex.com/
Cedega http://www.transgaming.com/

Help Docs:
Wine How To http://www.frankscorner.org
eLibrary http://elibrary.fultus.com/technical/index.jsp
Linux How To & Manuals http://www.linuxforum.com/
The Linux Documentation Project http://www.tldp.org/index.html
Linux Wacom Project: http://linuxwacom.sourceforge.net/

PDF Virtual Printer

在windows下经常使用pdffactory或者MS Office自带的PDF打印机把一些网页文档等打印成pdf格式。在Linux下很多地方也需要这样一个工具,尤其是linux下的一些文档和 windows下不能兼容时,把资料打印为pdf格式发给windows用户是很不错的选择。下面就是ubuntu中虚拟打印机的安装过程(我也是参考了 Hiweed网站上的一些内容搞定的,感谢开源的好处):
1. 安装cups 和cups-pdf,其中cups-pdf是虚拟打印的主要模块:
sudo apt-get install cups-pdf
2. cups-pdf 的 backend 要求 root 权限,所以设置一下权限:
sudo chmod 4755 /usr/lib/cups/backend/cups-pdf
3.通过 系统-系统管理-正在打印 启动打印机配置向导
4.右键 “新建打印机” 图表-添加 开始添加打印机
5. 使用检测到的打印机 -选择 PDF Printer-前进
6. 制造商 选择 Gneric -PostScript Printer -前进
7. 添入打印机的名称,如:PDFCreater-应用

Use SCIM Chinese input under Ubuntu

首先执行

sudo apt-get install im-switch libapt-ptk-perl
sudo apt-get install scim-pinyin
sudo apt-get install scim-tables-zh
sudo gedit /etc/X11/xinit/xinput.d/default

加入
XIM=SCIM
XIM_PROGRAM=/usr/bin/scim
XIM_ARGS="-d"
GTK_IM_MODULE=scim
QT_IM_MODULE=scim
DEPENDS="scim,scim-gtk2-immodule | scim-qtimm"
重启Gnome

Linux 下压缩命令使用指南

///// 转 superstar_gu 的百度空间
//http://hi.baidu.com/superstar_gu/blog/item/2772124e3e7f150bb3de0535.html

.tar
解包:tar xvf FileName.tar
打包:tar cvf FileName.tar DirName
(注:tar是打包,不是压缩!)
---------------------------------------------
.gz
解压1:gunzip FileName.gz
解压2:gzip -d FileName.gz
压缩:gzip FileName
.tar.gz 和 .tgz
解压:tar zxvf FileName.tar.gz
压缩:tar zcvf FileName.tar.gz DirName
---------------------------------------------
.bz2
解压1:bzip2 -d FileName.bz2
解压2:bunzip2 FileName.bz2
压缩: bzip2 -z FileName
.tar.bz2
解压:tar jxvf FileName.tar.bz2
压缩:tar jcvf FileName.tar.bz2 DirName
---------------------------------------------
.bz
解压1:bzip2 -d FileName.bz
解压2:bunzip2 FileName.bz
压缩:未知
.tar.bz
解压:tar jxvf FileName.tar.bz
压缩:未知
---------------------------------------------
.Z
解压:uncompress FileName.Z
压缩:compress FileName
.tar.Z
解压:tar Zxvf FileName.tar.Z
压缩:tar Zcvf FileName.tar.Z DirName
---------------------------------------------
.zip
解压:unzip FileName.zip
压缩:zip FileName.zip DirName
---------------------------------------------
.rar
解压:rar x FileName.rar
压缩:rar a FileName.rar DirName

rar请到:http://www.rarsoft.com/download.htm 下载!
解压后请将rar_static拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以):
[root@www2 tmp]# cp rar_static /usr/bin/rar

---------------------------------------------
.lha
解压:lha -e FileName.lha
压缩:lha -a FileName.lha FileName

lha请到:http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/下载!
>解压后请将lha拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以):
[root@www2 tmp]# cp lha /usr/bin/

---------------------------------------------
.rpm
解包:rpm2cpio FileName.rpm | cpio -div
---------------------------------------------
.deb
解包:ar p FileName.deb data.tar.gz | tar zxf -
---------------------------------------------
.tar .tgz .tar.gz .tar.Z .tar.bz .tar.bz2 .zip .cpio .rpm .deb .slp .arj .rar .ace .lha .lzh .lzx .lzs .arc .sda .sfx .lnx .zoo .cab .kar .cpt .pit .sit .sea
解压:sEx x FileName.*
压缩:sEx a FileName.* FileName

sEx只是调用相关程序,本身并无压缩、解压功能,请注意!
sEx请到: http://sourceforge.net/projects/sex下载!
解压后请将sEx拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以):
[root@www2 tmp]# cp sEx /usr/bin/



参考文献:Linux 文件压缩工具指南