Posted by limuxy on 六月 7, 2010

Ubuntu下的PDF打印机

把文档内容打印成PDF文档在Windows系统下最好的方法就是安装Adobe Acrobat Professional,当然在使用盗版的情况下有点麻烦。不过这事儿在ubuntu里就方便多了。下面是ubuntu打印的测试页,比Windows加的好看多了……

Read the rest of this entry »

Categories: Linux手记
Tags: , ,
Posted by limuxy on 二月 1, 2010

基于ubuntu server的openbox安装笔记

一. 安装ubuntu server 并更新

这个没什么好说明的,所有服务器组件都不装。

二. 解决依赖问题

openbox在debian/ubuntu系统下的依赖如下,共约50M:

build-essential
pkg-config
libpango1.0-dev
libglib2.0-dev
libxml2-dev
libxcursor-dev
libstartup-notification0-dev
xlibs-dev
libxext-dev
x11proto-randr-dev
menu
menu-xdg

其中xlibs-dev在karmic中似乎是不需要的,我在源里没有找到这个包,但也编译成功了.

三. 编译安装

首先获得源码,直接从官网下。ubuntu server刚装完没有图形界面的浏览器,就用w3m吧。

编译过程很简单:

./configure –prefix=/usr –sysconfdir=/etc
make
sudo make install

官方说明: If you do not want to install to /usr, then you should use ./configure –prefix= –sysconfdir=/etc –datarootdir=/usr/share. If you don’t do this, the Openbox log in options will not be available, because they need to be installed to /usr/share/xsessions.

四.安装xserver

sudo apt-get install x11-xserver-utils xinit

新建~/.xinitrc文件,写入openbox-session 这样startx的时候就能启用openbox了.

暂时不考虑用登陆管理器了,所以在~/.profile文件最后添加一行starx 每次登陆之后就能自动startx了

五. Openbox配置

上面所有过程完成之后, openbox就OK了。具体的配置下次再继续吧~

Categories: Linux手记
Tags: , ,
Posted by limuxy on 十二月 7, 2009

Ubuntu下tor的使用

那啥。。。废话不多说了。。。那这一段是什么呢。。。 = =||| 语无伦次的进入正题吧。。。。(注:此文是到处复制粘贴文。。。) Read the rest of this entry »

Categories: Linux手记
Tags: ,
Posted by limuxy on 十二月 4, 2009

Reinstall Ubuntu With A Single Command [Quick Tip]

The following command will reinstall all the packages and reconfigures them automatically:
 

sudo dpkg-reconfigure -phigh -a

This is very useful in case of an unsuccessful upgrade or when something went very bad and you don't have a back-up.

If, however, you have some minor dependency errors, instead of the command above (which will take about an hour to finish), use this command instead (I'm sure you already know it):
 

sudo apt-get install -f


 

[tip via aldeby.org]
Categories: Linux手记
Tags: ,
Posted by limuxy on 十月 6, 2009

用zsync把Ubuntu Karmic(9.10) ISO“更新”到最新版本

来源:http://webupd8.blogspot.com/2009/10/how-to-upgrade-your-karmic-iso-with.html

Ubuntu Karmic已经进入beta阶段,如果我们之前下载的是alpha6,重新下载整个beta的ISO文件的确很麻烦。还好,有zsync这个工具,可以直接“更新”ISO。

用下面的命令安装zsync:

sudo apt-get install zsync

举例说明用法,比如把alpha6升级到beta:

zsync -i karmic-desktop-i386.iso http://releases.ubuntu.com/karmic/ubuntu-9.10-beta-desktop-i386.iso.zsync

这个命令会把读取原来的karmic-desktp-i386.iso的内容,并与服务器上的ubuntu-9.10-beta-desktop-i386.iso进行对比,并下载更新文件。这样ISO就更新到最新的版本啦~

Categories: Linux手记
Tags: ,
Posted by limuxy on 十月 2, 2009

Bit.ly URL Shortening Applet For Gnome

来自:http://webupd8.blogspot.com/2009/10/bitly-url-shortner-applet-for-gnome.html

gbitly-applet

gbitly-applet is an applet for Gnome which enables creation of short urls without logging into bit.ly. Its still in its development stage but alpha version is available.

How it works: you will need to right click your Gnome panel, select “Add to Panel” and add gbitly-applet, then right clicking the applet you will see a form in which you must fill in the long URL which you want to get shortened. Also, the applet automatically detects a long URL you previously copied (from the clipboard) and adds it to the long URL field.

You can download it from HERE

To install it is pretty easy. First, make sure you have libcurl-devel,panel-applet-devel and gtk-devel installed. For Ubuntu:

sudo apt-get install libcurl-devel panel-applet-devel gtk-devel

Then:

make
sudo make install
Posted by limuxy on 九月 28, 2009

英文ubuntu大作战!(二. 输入法)

Previously in 英文ubuntu大作战!…… 中文字体搞定了……

现在就开始装输入法吧,我用的是fcitx 20090918的版本,装完之后重启X。问题出现了……输入法的状态栏和选字框里的字都是方框框。。。嗯,还是字体的问题。于是来改fcitx的配置……

打开~/.fcitx/config 发现都是乱码 = =||| 这个是编码的问题……好吧,不管它乱码不乱码了。把第二行xxxxxx=*里的星号改成iYaHei(就是那个灰度雅黑的中文字体,见上文)这样就OK啦~

好了,输入法也搞定~

PS,“英文ubuntu大作战”是个人笔记性质的。。。备忘记录而已……

Categories: Linux手记
Tags: , ,