Ubuntu下关闭UTC

Oct 30, 2008 10:12:10 PM

时间不同步,相差了8个小时,就是因为Linux开启了UTC,关闭后就不存在这个问题了。

在Ubuntu下,使用下面的方法:

sudo vim /etc/default/rcS


修改:UTC=yes
为:UTC=no

Clonezilla Live

Oct 28, 2008 02:55:56 AM

大量部署作业系统的时候(不管是微软Windows或是Linux),用 Norton Ghost® 制作成印象挡再复制到每台用户端是现行最常使用的方法。然而适合用来做大量复制的 Symantec Ghost Corporate Edition® 需要不少的费用,而且电脑越多,费用越高。此外,因为它不是自由软体,所以灵活度不高,不能自己客制化修改。若是使用 Norton Ghost® 又必须一台台的做, 颇为旷时费日。
再生龙Clonezilla提供您一个完整的环境,这是一个整合的系统,包含还原程式以及作业系统。搭配网路开机功能,你可以忘了软碟或是光碟...
以国家高速网路与计算中心C教室为例,共有41台机器同时进行还原的动作,还原一个5.6 GBytes的微软Windows XP image到41台客户端电脑,以群播(multicast)的方式处理,只要10分钟左右(若采用unicast的话,约需50分钟)。

一、再生龙特点:

· 自由软体,国网中心所开发。

· 可还原再生多种作业系统,包含Linux (ext2, ext3, reiserfs, xfs, jfs), 微软Windows (fat, ntfs)。这些档案系统只备份有存资料的硬碟空间,因此可以节省备份时间与硬碟空间。其他不支援的档案系统Clonezilla采用全部复制(dd)的方式处理。

· 支援GNU/Linux下的LVM2 (尚未支援LVM1)

· 支援群播(Multicast)。配合PXE网路开机,搭配DRBL的Clonezilla可以使用播(multicast)的方式,适合用来大备份与还原。硬体设备功能足够时(用户端支援Wake on LAN与PXE),可以远端操作,人不需到现场

· 不同于Partimage或是ntfsclone只能处理分割区,Clonezilla包含其他程式的撰写与整合,因此可以备份与复制分割区或是整颗硬碟

· 透过本实验室开发的另外一套自由软体drbl-winroll,可以指定还原后微软Windows的主机名称、工作群组,亦可写入随机的SID。

二、再生龙的安装与使用:

· 免安装的单机版还原系统Clonezilla live(使用CD/USB随身碟开机)的使用请参考Clonezilla live

· 适合大量备份与还原的伺服器版再生龙(Clonezilla server edition)(使用PXE网路开机)详见DRBL

hc.cyc.edu.tw/exe/clonezilla_live/index.html

Wxpython跨平台安装

Oct 27, 2008 12:22:41 AM

简介:wxPython is a GUI toolkit for the Python programming language. It allows Python programmers to create programs with a robust, highly functional graphical user interface, simply and easily. It is implemented as a Python extension module (native code) that wraps the popular wxWidgets cross platform GUI library, which is written in C++.

Like Python and wxWidgets, wxPython is Open Source which means that it is free for anyone to use and the source code is available for anyone to look at and modify. Or anyone can contribute fixes or enhancements to the project.

wxPython is a cross-platform toolkit. This means that the same program will run on multiple platforms without modification. Currently supported platforms are 32-bit Microsoft Windows, most Unix or unix-like systems, and Macintosh OS X.

Since the language is Python, wxPython programs are simple, easy to write and easy to understand. Here is an example.

How to Learn wxPython

在Ubuntu平台上安装指南

wiki.wxpython.org/InstallingOnUbuntuOrDebian

Ubuntu自动挂载ntfs分区

Oct 26, 2008 11:23:22 PM

安装8.04后发现Ubuntu不能自动挂载本地的ntfs硬盘。

1.傻瓜方法

sudo apt-get install ntfs-config
sudo ntfs-config

2.使用UUID,修改/etc/fstab

sudo apt-get install gparted

安装分区编辑器,查看分区信息

ls -l /dev/disk/by-uuid/

查看分区对应的UUID信息,其中短的就是ntfs格式的了。

sudo gedit /etc/fstab

编辑fstab,添加对应的信息,比如我的

#/dev/sda5
UUID=F2E8742FE873EFE9 /media/work ntfs-3g defaults,locale=zh_CN.UTF-8 0 0
#/dev/sda6
UUID=BC648CFC648CBAA2 /media/game ntfs-3g defaults,locale=zh_CN.UTF-8 0 0
#/dev/sda7
UUID=A4949D33949D0946 /media/film ntfs-3g defaults,locale=zh_CN.UTF-8 0 0

重启就ok了。