Ubuntu Logo (No Comments)

① Microsoft copies Ubuntu logo

The MSN Spaces service recently passed out of its beta phase. On visiting the service’s home page, regular readers of OSNews will likely recognise a shocking degree of similarity between the Spaces logo and that of distro-of-the-moment Ubuntu Linux. The similarity is obvious when switching between the Spaces and Ubuntu pages in separate browser tabs. In the sites’ favicons, the three circles representing human heads are in the exact same positions in both logos. There is also a blog within MSN Spaces that has been set up to show Ubuntu’s logo side by side with Microsoft’s ripped-off version. Have a look before Microsoft hears from Canonical’s lawyers.

② Sexy Ubuntu Logo

http://farm1.static.flickr.com/31/94475746_376bc86813.jpg?v=0

(No Comments)  

Ubuntu Show (7 Comments)

more:

http://farm1.static.flickr.com/190/501801887_c9575826e5_o.jpg

http://farm1.static.flickr.com/228/501801883_337980ad45_o.jpg

(7 Comments)  

企鹅E (6 Comments)

嘿嘿,不错。

(6 Comments)  

在 Ubuntu 中安装 VirtualBox (No Comments)

正在使用当中,感觉不错的说,跑了XP和Kubuntu。
FYI:Virtualbox虚拟Win的体验

VirtualBox 是一款很不错的虚拟机软件,其最令人称道的地方就在于所虚拟系统的性能比较接近于实机,感觉十分快速。另外,它还是发布在 GPL 许可协议之下的开源软件,所以你可以自由地加以使用。

安装 VirtualBox

在 Ubuntu 中安装 VirtualBox 可以按照以下的步骤进行操作:

1. 下载安装包。建议下载 Deb 包,方便直接在 Ubuntu 中安装。你需要根据所使用的 Ubuntu 版本来有选择地进行下载。如果是 Dapper 版,就下载适用于 Dapper 的安装包。其他适用于 Ubuntu 的版本还包括 Edgy 和 Feisty。我们这里以下载适用于 Ubuntu Feisty 的 VirtualBox 1.3.8 版来介绍。你可以从这里找到对应的版本。
2. 准备依赖。VirtualBox 的正常使用需要 libxalan110 和 libxerces27 这两个包。所以,你要先行安装它们,可以使用下面的指令:
sudo apt-get install libxalan110 libxerces27
3. 安装编译工具及相关包。在安装过程中,要编译 VirtualBox 所用的内核模块。为此,你需要准备基本的编译工具及包,你可以使用下列指令来安装它们:
sudo apt-get install build-essential linux-headers-`uname -r`
4. 现在,转到所保存 VirtualBox 安装包的目录,通过下面的指令来安装它:
sudo dpkg -i VirtualBox_1.3.8_Ubuntu_feisty_i386.deb
注意,我们这里是以 Ubuntu Feisty 为例,如果你在其他 Ubuntu 版本中安装,请使用相应的安装包代替。在安装的过程中,VirtualBox 会要求你接受许可协议。另外,安装程序也会创建 vboxusers 用户组,并编译所需的内核模块。
5. 现在,你还不能启动 VirtualBox,因为你的当前用户还不属于 vboxusers 用户组。你可以使用下面的指令来将当前的用户添加到 vboxusers 用户组中:
sudo adduser xu vboxusers
同样的,请使用你的用户名代替指令中的“xu”。

VirtualBox 默认是安装到 /opt/VirtualBox-x.x.x 目录,其中 x.x.x 代表 VirtualBox 的版本号。你可以直接在终端中敲入 VirtualBox 启动程序。

VirtualBox 主窗口

在 VirtualBox 中运行 Windows XP

在 VirtualBox 中运行 Kubuntu

source:http://ubuntucookbook.com/recipes/install-virtualbox-on-ubuntu.html

(No Comments)  

录制 GIF 动画 (4 Comments)

录制 GIF 动画在很多时候都会派上用场。比如说,你需要向某个朋友演示软件的用法。在 Ubuntu 中,有一个录制 GIF 动画的小工具值得一用,它的名字是 byzanz。

安装 byzanz

首先,在终端中执行指令:
sudo apt-get install byzanz
这将安装 byzanz 程序。接着,右击 GNOME 面板,在弹出的菜单中选择“Add to Panel”,然后在 Miscellaneous 中选中 Desktop Recorder,最后单击“Add”按钮,这样就将 byzanz 添加到了 GNOME 面板中,以方便下一步的使用。

byzanz 的使用

byzanz 能够录制整个桌面、矩形区域、以及窗口等三种类型。另外,如果你需要录制鼠标指针,那么可以选中“Record Mouse Cursor”选项。在录制时,我们根据自己的情况选择三种类型之一。当任务栏中的图标相应地变成了红色的圆形按钮后,你就可以开始进行预定的操作了。如果要结束录制,则点击红色的圆形按钮。这时,程序将弹出对话框提示你保存录制的 GIF 动画文件。

byzanz 的命令行用法可以参考:byzanz-record –help。

source:http://ubuntucookbook.com/recipes/record-gif-animation.html

(4 Comments)  

VirtualBox 在更新内核后的重配置 (16 Comments)

随着 Ubuntu 系统内核的更新,VirtualBox 原有的内核模块已经不再适用。于是,VirtualBox 将无法正常使用。需要重新安装 VirtualBox 吗?当然不必。我们只需重新稍加配置即可。

首先获取与当前内核版本相一致的头文件:
sudo apt-get install linux-headers-`uname -r`

接着,我们来重新编译 VirtualBox 内核模块,这可以使用下面的指令完成:
sudo /etc/init.d/vboxdrv setup

一旦编译完成,程序将会自动启动 vboxdrv 内核模块。此时,再用 VirtualBox 也就没有什么问题了。如果以后遇到内核再次重新的情况,则如法炮制即可解决。

source:http://ubuntucookbook.com/recipes/virtualbox-configuration.html

(16 Comments)  

使用 apt-file 查找缺失的包 (7 Comments)

apt-file 是一个命令行界面的 APT 包搜索工具。当我们在编译源代码时,时有缺少文件的情况发生。此时,通过 apt-file 就可以找出该缺失文件所在的包,然后将缺失的包安装后即可让编译顺利进行了。

安装 apt-file

在 Ubuntu 中,可以通过执行下列命令来安装 apt-file:
sudo apt-get install apt-file

更新包内容
在使用 apt-file 搜索包之前,需要先更新包内容,你可以使用以下指令:
sudo apt-file update

此过程将持续一会儿,以后如果修改了 sources.list,仍需执行该操作。

查找缺失的包

使用命令:
apt-file search filename

例如:apt-file search gtk.h。

根据显示的搜索结果,你可以判断哪些包是需要的。

列出包中的文件

使用以下命令:
apt-file list packagename

可以列出包中所含的文件。

source:http://ubuntucookbook.com/recipes/apt-file-usage.html

(7 Comments)  

转换文件编码 (16 Comments)

在我完全将日常所用的系统切换到了 Ubuntu 之后,打开以前从 Windows 所保留下来的文件时出现了乱码的情况。其实这种问题很常见,大多数是由于编码而造成的。为了解决掉乱码问题,就需要我们将文件从一种编码转换为另一种编码。这时候,命令行程序 iconv 将显得十分有用。

iconv 是一个文件编码转换工具,其基本用法为:
iconv -f 原始编码 -t 目的编码 要转换的文件 -o 已转换的文件

举个例子,假如我们要将 sample.txt 文件从 gb2312 转换为 utf-8 编码,并输出为 converted.txt 文件,可以这样执行命令:
iconv -f gb2312 -t utf-8 sample.txt -o converted.txt
如果想知道 iconv 支持转换哪些编码,则可以使用 -l 选项查看:
iconv -l
source:http://ubuntucookbook.com/recipes/converting-file-encoding.html

(16 Comments)  

使用 script 录制终端会话 (7 Comments)

试了一下,真的不错,Feisty默认安装了scriipt和scriptreplay,抓图就是我试验的结果。

script 真是一个神奇的小家伙,别看它小不起眼,可是却足够的好玩。script 能够将终端的会话过程录制下来,然后使用 scriptreplay 就可以将其录制的结果播放给他人观看。script 的好处就在于,你在终端中的所有操作过程,它都可以原原本本地进行录制。试想一下,我们可以将这种录制应用在很多方面,诸如教学、演示等等。

一般来说,script 和 scriptreplay 在 Linux 发行版中都有默认安装。如果你打算使用 script 开始录制终端会话,可以敲入下列指令:
script -t 2>demo.timing -a demo.session

该指令中的 -t 选项指明输出录制的时间数据,而 -a 选项则输出录制的文件。你可以将指令中的 demo 换成自己设置的名称。当终端中返回“Script started, file is demo.session”的信息时,你就可以进行需要录制的操作了。

如果需要结束录制过程,则输入 exit 即可。

要播放已录制完成的终端会话,可以使用指令:scriptreplay demo.timing demo.session

关于 script 及 scriptreplay 的更多信息,可以使用 man script 或 man scriptreplay 查询。

source:http://linuxtoy.org/archives/record-terminal-session-with-script.html

(7 Comments)