4月 30

1. Create a FAT32 Partition if don’t have (you can do a mkfs.vfat to format the partiiton, take your own risk !)

2. Create a mount point e.g. /home/ken666/data

3. sud vi /etc/fstab

4. add a line in fstab

/dev/sda4    /home/ken666/data    vfat    user,auto,exec,utf8,rw,uid=100000
(/dev/sda4 is the partition , find it yourself by try fdisk /dev/xxx)

(uid is user id of ken666 , it is the first user id in ubuntu)

5. you can now mount the folder with user right and rw it

mount /home/ken666/data

6. Enjoy !

4月 30

1. Create a Partition that both OS can access , Fat32 is a good choose

2. Copy the existing profile to the partition e.g. /data

3  firefox -ProfileManager /  thunderbird -ProfileManager

to create a new profile and browse to the existing profile

do it on both windows and Linux

4. Enjoy !

Ref: http://support.mozilla.com/en-US/kb/Managing+profiles

4月 26

1. Install Windows

2. Install Linux and install boot loader in linux systems disk root partition

dd if=<root partition> of=<boot pointer file> bs=512 count=1

3. copy the boot pointer file e.g. linux.bin to windows folder e.g. c:\

•        On Windows Vista, launch a command prompt with administrative privileges (by right clicking on cmd and choosing Run as Administrator)

•        Copy Linux boot sector on the root of the Windows boot (active) partition, namely the one containing bootmgr. If you don’t know for sure you can use diskpart or diskmgmt.msc to find out which one it is.

•        Create an entry for GRUB :

o   bcdedit /create /d “GRUB” /application BOOTSECTOR

o   Note: bcdedit will return an ID for this entry that we will call {LinuxID} below. You will need to replace {LinuxID} by the returned identifier in this step. An example of {LinuxID} is {81ed7925-47ee-11db-bd26-cbb4e160eb27}

•        Specify which device hosts a copy of the Linux boot sector

o   bcdedit /set {LinuxID} device boot

•        Specify the path to a copy of the Linux boot sector

o   bcdedit /set {LinuxID}  PATH \linux.bin

•        Add Linux entry to the displayed menu at boot time

o   bcdedit /displayorder {LinuxID} /addlast

•        Let the menu be displayed 10 seconds to allow for OS selection

o   bcdedit /timeout 10

Ref: http://port25.technet.com/archive/2006/10/13/Using-Vista_2700_s-Boot-Manager-to-Boot-Linux-and-Dual-Booting-with-BitLocker-Protection-with-TPM-Support.aspx

4月 25

lazyeeepc contains a GUI for execute script and a scripts collection, so you can add other scripts to lazyeeepc. there is a lazyeeepc script example for install amsn:

#!/bin/bash
# name: aMSN
# description: Alvaro’s Messenger, A instant message software which support MSN and webcam
# depends: xepcresp, enable_webcam

sudo apt-get -y –force-yes install amsn

sudo utils/addparcel -s “Internet” -e “/usr/bin/amsn” -i “messenger” –en=”amsn” –zhtw=”amsn”

lazyeeepc script require some comments:

  • name: the script name which display in lazyeeepc GUI
  • description: the script description which display in lazyeeepc GUI
  • depends: depends scripts, lazyeeepc can handle dependency bewteen scripts. for example, amsn script need two scripts: xepcresp and enable_webcam.
  • invisible: script doesn’t display in lazyeeepc GUI. (you can refer lazyeeepc/scripts/enhancement/enable_webcam)

lazyeeepc also had some utility in lazyeeepc/utils/:

  • addparcel: add a shortcut to Asus Launcher.
  • backup_simpleui: backup simpleui.rc file, backup in lazyeeepc/backup/ directory
  • restore_simpleui: restore simpleui.rc file from lazyeeepc/backup/, and copy /opt/xandros/share/AsusLauncher/simpleui.rc, ~/.AsusLauncher/simple.rc to lazyeeepc/backup/.
  • del_dupline: original simpleui.rc has duplicate line, this script can fix it.

Download: http://sourceforge.net/project/platformdownload.php?group_id=219390

4月 22
MySQL suggested compile option
icon1 ken666 | icon2 未分類 | icon4 04 22nd, 2008 @ 12:04 pm| icon3沒有留言 »

./configure –prefix=/usr/local/mysql –enable-assembler –with-mysqld-ldflags=-all-static –with-client-ldflags=-all-static –disable-shared –with-charset=utf8

4月 21
mmm
icon1 ken666 | icon2 未分類 | icon4 04 21st, 2008 @ 06:04 pm| icon3沒有留言 »

Master-Master Replication Example using MMM

reference http://blog.kovyrin.net/2007/04/23/master-master-replication-example-using-mmm/

4月 21
2046 ?
icon1 ken666 | icon2 未分類 | icon4 04 21st, 2008 @ 06:04 pm| icon3沒有留言 »

VMWare got problem will make the clock go very fast !

sync the clock with HK gov !

yum install ntp.i386 (some is ntp-client, check by yum list | grep ntp)

add “ntpdate stdtime.gov.hk ” in a file in /etc/corn.hourly

chmod 755 done

In fact, all server should sync the time !

4月 15
游壽司
icon1 ken666 | icon2 未分類 | icon4 04 15th, 2008 @ 03:04 pm| icon3沒有留言 »

游壽司

台北市麗水街 18-2號
TEL: 02-23225531

地方很細 10 個位左右,

主要是食壽司,wasabi ,湯,小菜,壽司魚生全部都好有水準

1000台幣的價錢有 香港1000 多港元的quality !

因為地方細而且只做兩輪,所以一定要先訂位

要到台灣玩的朋友, 可以試試!

4月 12


4月 12
How ESET new building is built !
icon1 ken666 | icon2 未分類 | icon4 04 12th, 2008 @ 06:04 am| icon3沒有留言 »


« 上一頁