Posts Tagged ‘ubuntu’:

ubuntu下wine中文乱码的简单解决方法

公司里传文件用一个叫“飞鸽传书”的软件,但有时我有些工作(比如用planner)得在ubuntu里完成,这样在给同事传 文件的时候就有点麻烦了。本来把飞鸽传书的那个文件ipmsg.exe拷过来,在wine里运行就应该可以了,但是我习惯用英文界面,这样wine的中文乱码这个经典问题就出现了。网上搜一搜大多都是说要拷字体,链接字体,还有删注册表键值什么的。都试过了,对ipmsg没用。最后用了一个简单的方法给解决了。分享一下:

在屏幕上方panel的空白处点右键,选择Add to Panel…,弹出Add to Panel的窗口。

在窗口中选择Custom Application Launcher,单击Add,弹出Create Launcher窗口。

Name可以随便填,比如我填入IP Messenger。

在Command那一行先点Browse…在弹出的窗口中找到ipmsg.exe或者你想要用的其它windows程序,点Open回到Create Launcher窗口,在Command后的框里就填入了刚才找到的程序的路径。

这时在这个路径前面加上”env LANG=zh_CN.UTF-8 wine “,注意代码最后的wine之后有一个空格不能丢了。

查看全文–425 字

Ubuntu下修改hosts解决xmarks被墙

我就不骂闲街了,大家都明白,骂了也没用。

刚升级ubuntu9.10不久,不能用xmarks真让人恼火,下面是解决办法:

#sudo gedit /etc/hosts

然后再加入下面的IP,保存即可。

#xmarks

64.147.188.86 www.xmarks.com

64.147.188.92 api.xmarks.com

64.147.188.89 login.xmarks.com

查看全文–101 字

Using SCIM in English interface

惭愧啊,在ubuntu里搞定中文输入法竟然花费了近一天的时间。其实如果是把语言设置为中文的话也没那么多麻烦。只是我个人偏好英语的界面(再说 ubuntu的中文界面下字体很难看),问题就出在这里了。只要切换到英语的界面,scim就不管用了。在网上看到了解决办法:

先用这句来安装im-switch和scim

sudo apt-get install im-switch scim

然后用下面两句来进行设置:

sudo im-switch -s scim -z all_ALL
im-switch -s scim -z all_ALL

结果我的问题就出在这里了,其实有错误提示,但我一直没有看到,提示内容是:

No system wide default defined just for locale en_US .
Use "all_ALL" quasi-locale and set IM.
update-alternatives: Cannot find alternative `/etc/X11/xinit/xinput.d/scim’.

没 注意这里的提示我还到处找别的原因,又试着装了fcitx,接着卸了又装,装了又卸,还手动修改/usr/lib/gtk-2.0/2.10.0 /immodule-files.d/libgtk2.0-0.immodules,都不起作用。直到看到错误提示,才想起,原来是要update- alternatives。用下面这句:

update-alternatives –install /etc/X11/xinit/xinput.d/all_ALL xinput-all_ALL /etc/X11/xinit/xinput.d/scim 30

完了之后再用上面那两句来设置,没有错误提示了,重启就OK了。

Ubuntu (pronounced "oo-boon-too")

Ubuntu is a South African ethical ideology focusing on people’s allegiances and relations with each other. The word comes from the Zulu and Xhosa languages. Ubuntu (pronounced "oo-boon-too") is seen as a traditional African concept, is regarded as one of the founding principles of the new republic of South Africaband is connected to the idea of an African Renaissance.

A rough translation of the principle of Ubuntu is "humanity towards others". Another translation could be: "the belief in a universal bond of sharing that connects all humanity".

         "A person with ubuntu is open and available to others, affirming of others, does not feel threatened that others are able and good, for he or she has a proper self-assurance that comes from knowing that he or she belongs in a greater whole and is diminished when others are humiliated or diminished, when others are tortured or oppressed."

Archbishop Desmond Tutu

As a platform based on Linux, the Ubuntu operating system brings the spirit of ubuntu to the software world.

(Above is from the document "About Ubuntu")

Tags: , , ,
© 赵金海
CyberChimps