还是那个 9.04 中新增的酷酷的通知系统。
只需要用命令 notify-send 就可以了,直接输入命令
notify-send “Done” “东西下载完了”
看看效果。
第一个参数是标题,第二个参数是通知的内容。
其他参数大家 man 一下就晓得了,很简单的
9.04 发布好几天了,这几天一直被 mail-notification 的新邮件对话框头疼,根本不是宣传中的那个酷酷的新提醒方式,总是弹出一个对话框,烦死人。
终于在 http://ubuntuforums.org/showpost.php?p=6962165&postcount=11 这里看到了解决方法,其实也很简单,运行 gconf-editor,把 /apps/mail-notification/popups 里的 actions 里的三个东西清空,然后世界清静了。
现在知道如下三个
- toilet
- boxes
- cowsay
可以执行下面几个命令看看效果
cowsay -f dragon ChaiFeng.com
boxes -d boy <<< ChaiFeng.com
toilet ChaiFeng.com
更详细的内容就去 man 吧
需要安装一个名叫”vrms”的软件,vrms 其实就是 “virtual Richard M. Stallman” 的缩写 😀
使用也很简单,直接运行 vrms 就可以。
看看我用了哪些非自由的软件:
taylor@taylor-desktop:~$ vrms Non-free packages installed on taylor-desktop fglrx-modaliases Identifiers supported by the ATI graphics driver human-icon-theme Human Icon theme linux-generic Complete Generic Linux kernel linux-restricted-modules- Non-free Linux 2.6.24 modules on x86/x86_64 linux-restricted-modules- Non-free Linux 2.6.27 modules helper script linux-restricted-modules- Restricted Linux modules for generic kernels nvidia-173-modaliases Modaliases for the NVIDIA binary X.Org driver nvidia-177-kernel-source NVIDIA binary kernel module source nvidia-177-modaliases Modaliases for the NVIDIA binary X.Org driver nvidia-180-modaliases Modaliases for the NVIDIA binary X.Org driver nvidia-71-modaliases Modaliases for the NVIDIA binary X.Org driver nvidia-96-modaliases Modaliases for the NVIDIA binary X.Org driver nvidia-glx-177 NVIDIA binary Xorg driver opera The Opera Web Browser picasa Image management application from Google pptview view PowerPoint slide shows rar Archiver for .rar files skype Skype - Take a deep breath sun-java6-bin Sun Java(TM) Runtime Environment (JRE) 6 (architecture sun-java6-jdk Sun Java(TM) Development Kit (JDK) 6 sun-java6-jre Sun Java(TM) Runtime Environment (JRE) 6 (architecture sun-java6-plugin The Java(TM) Plug-in, Java SE 6 tangerine-icon-theme Tangerine Icon theme tango-icon-theme Tango Icon theme Reason: Creative Commons Attribution-ShareAlike 2.5 License unrar Unarchiver for .rar files (non-free version) Reason: Modifications problematic Non-free packages with status other than installed on taylor-deskto linux-restricted-modules- ( dei) Non-free Linux 2.6.24 modules on x86/x86_64 Contrib packages installed on taylor-desktop flashplugin-nonfree Adobe Flash Player plugin installer gstreamer0.10-pitfdll GStreamer plugin for using MS Windows binary codecs msttcorefonts Installer for Microsoft TrueType core fonts nvidia-common Find obsolete NVIDIA drivers nvidia-kernel-common NVIDIA binary kernel module common files nvidia-settings Tool of configuring the NVIDIA graphics driver 26 non-free packages, 1.4% of 1897 installed packages. 6 contrib packages, 0.3% of 1897 installed packages.
今天 InfoQ 上《QCon北京站2009相关之博客+照片=春色满园》一文的最后有我的相册链接。当然了,我不是来说这个的。是关于最后面的”白璧微瑕”里面提到
无线网络一直不够稳定,电源插座准备也不足
电源插座不足确实是个挺大的问题,要不然就是坐在最后面。然后…………(看全文)
这次去参加 QCon 最让我失望的是手中的相机,过年的时候把用了好几年的相机给了我妹妹。这次借了一个卡片机,不知道是太傻瓜了我不会用,还是相机就有问题,大部分照片要么是模糊要么是重影,奇怪的是人像基本上都还不错。
平时经常用 curl 和 wget 下载一些东西,但是有的网站要判断 User-Agent。
我们可以使用 curl 和 wget 的 –user-agent,但每次都加参数也很不方便,修改配置文件就是一劳永逸的办法了。
把下面的代码添加到 ~/.curlrc
–user-agent=Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8
把下面的代码添加到 ~/.wgetrc
header = User-Agent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8
虽然说为了环保为了节省,还是少打印,多看电子书。可是为了自己的身体,整天坐在电脑前面腰酸背痛的,打印出来就可以舒舒服服的躺在床上随手翻阅了。但是也有不少的 PDF 文档禁止打印,Windows 上有很多现成的工具,Linux 也有,而且是合法的。
解除 PDF 的打印限制其实很简单,就是把 PDF 转换成 PostScript,然后再转换回来。
首先,需要确认安装了 xpdf-utils,Debian/Ubuntu 中安装就很简单,sudo aptitude install xpdf-utils。
然后执行 pdf2ps filename.pdf 就可以生成一个 filename.ps 的文件。如果打开 PDF 需要口令,那就加上 -upw 参数,类似这样 pdf2ps -upw yourpassword filename.pdf
最后再 ps2pdf filename.ps filename-1.pdf 就会生成一个 filename-1.pdf 的文件了,这个 PDF 就没有了以上的那些限制。
12点37分准时发车,下午4点准时到站,出了西站就打车,4点半的时候已经到了酒店。
如家的网速也没有传说中的那么慢,觉得挺快啊。
屋子里面果然很温馨,粉红色的床单上面满是心,暖色调的灯光,只可惜我们是两个大老爷们睡一个屋。
电视也很大,壁挂的。
今天 man mount 的时候,发现一个参数 –bind,可以用来 mount 普通目录,在 2.4.0 以上的 Linux 中可以使用。
比如,现在有个目录 doc,然后再建一个新目录 Documents,运行命令 sudo mount –bind doc Documents 就可以把 doc 目录挂载到 Documents 上,这两个目录的内容一模一样,就像做了一个符号链接。
运行 mount 查看一下当前的挂载列表,会发现有这么一条
/home/chaifeng/doc on /home/chaifeng/Documents type none (rw,bind)
Recent Comments