2010年4月5日 星期一

不錯的 10個 Ubuntu 佈景主題





1 – Add the key for the repository
Open a terminal and do:

gpg --keyserver hkp://keyserver.ubuntu.com:11371 --recv-key 881574DE && gpg -a --export 881574DE | sudo apt-key add -
if the server doesn’t respond, just wait a few minutes and try again
2 – Add the repository
Add those lines at the end of your sources.list (always in a terminal):
sudo gedit /etc/apt/sources.list

for Ubuntu 9.10
## Themes
deb http://ppa.launchpad.net/bisigi/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/bisigi/ppa/ubuntu karmic main

3 - Install Themes
Update your software sources: (In a terminaln do):
sudo aptitude update
Then install themes: (this command install all themes. If you want to install only one theme, go look here)
sudo aptitude install bisigi-themes
or click on apt://bisigi-themes



Liste des commandes pour installer les thèmes:
AquaDreams: sudo aptitude install aquadreams-theme
Ubuntu Sunrise: sudo aptitude install ubuntu-sunrise-theme
Bamboo-Zen: sudo aptitude install bamboo-zen-theme
Step into Freedom: sudo aptitude install step-into-freedom-theme
Tropical: sudo aptitude install tropical-theme
Exotic: sudo aptitude install exotic-theme
Balanzan: sudo aptitude install balanzan-theme
Wild Shine: sudo aptitude install wild-shine-theme

Infinity: sudo aptitude install infinity-theme
Showtime: sudo aptitude install showtime-theme
Orange: sudo aptitude install orange-theme
Ellanna: sudo aptitude install ellanna-theme
AirLines: sudo aptitude install airlines-theme

彩色化 man command

vim ~/.bashrc

於最後加入

# colorful man page
export PAGER="`which less` -s"
export BROWSER="$PAGER"
export LESS_TERMCAP_mb=$'\E[0;34m'
export LESS_TERMCAP_md=$'\E[0;34m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[0;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[0;33m'

2010年4月4日 星期日

BrazilFW 台灣的Timezone設定

最近發現家中的Brazilfw時區設定一直無法正常,差了 8hrs

原來時區是要設定成 UCT-8 而非 UTC-8

用Open Source工具開發軟體-電子書

新軟體開發關念 黃郁熙 餃子出版社 Link

解決ubuntu 9.10 用wubi安裝,upgrade kernel 後GRUB2毀損的問題




insmod ntfs


set root=(hd0,1)

loopback loop0 /ubuntu/disks/root.disk

set root=(loop0)

linux /boot/vmlinuz-2.6.31-20-generic root=/dev/sda3 loop=/ubuntu/disks/root.disk ro

initrd /boot/initrd/initrd.img-2.6.31-20-generic

boot


開機完成後執行 "sudo update-grub2" 即可

2010年4月3日 星期六

How to recover GRUB Debian Sarge after reinstalling Windows

Many Debian newbies often have to reinstall Windows on the same machine on where Debian is installed. Usually the Windows installation does not take care of our Debian system booting process, overwriting the master boot record with Windows.

To get back our grub first stage boot, here a procedure you can use.

* Boot from debian CD choosing linux2.4 kernel (default)
* Change to console 2 with alt + F2 keystrokes
* Make a new dir to mount the boot partition, for example /disk
* mount the root partition on /disk.
* Do a chroot to the root partition: issuing chroot /disk
* Run grub command to enter grub shell
* Type in the root disk for grub, for example root (hd0,1). This is /dev/hda2 on my system
* Type the following command to install grub on /dev/hda: setup (hd0).
* Last step, type quit, exit from chroot, unmount all disks and reboot

Some notes:

The boot partition is where you put the boot files, normally newbies use only one partition that is mounted on /. Some advanced users store boot files in a separate partition and mount it under /boot. In that case, is the partition that is mounted under /boot the known-to-grub root partition.


from:http://www.debian-administration.org/articles/325

How to repair and clone disk with ddrescue

  ddrescue  is a tool that can be used to repair and clone disks on a  Linux system . This includes hard drives, partitions, DVD discs, flas...