8月 27
Open Open Office File in MS Office
icon1 ken666 | icon2 未分類 | icon4 08 27th, 2008 @ 04:08 pm| icon3沒有留言 »

 

Download and install a plug from Sun

http://www.sun.com/software/star/odf_plugin/index.jsp

 

Then you can import or export in excel.

 

Of cause, you can install Open Office also…

8月 27
ESXi + SSH
icon1 ken666 | icon2 未分類 | icon4 08 27th, 2008 @ 02:08 pm| icon31 留言 »

 

ESXi 3.5 does ship with the ability to run SSH, but this is disabled by default (and is not supported).

1) At the console of the ESXi host, press ALT-F1 to access the console window.
2) Enter unsupported in the console and then press Enter. You will not see the text you type in.
3) If you typed in unsupported correctly, you will see the Tech Support Mode warning and a password prompt. Enter the password for the root login.
4) You should then see the prompt of ~ #. Edit the file inetd.conf (enter the command vi /etc/inetd.conf).
5) Find the line that begins with #ssh and remove the #. Then save the file. If you’re new to using vi, then move the cursor down to #ssh line and then press the Insert key. Move the cursor over one space and then hit backspace to delete the #. Then press ESC and type in :wq to save the file and exit vi. If you make a mistake, you can press the ESC key and then type it :q! to quit vi without saving the file.
6) Once you’ve closed the vi editor, run the command /sbin/services.sh restart to restart the management services. You’ll now be able to connect to the ESXi host with a SSH client.

Update for ESXi 3.5 Update 2

- With Update 2 the service.sh command no longer restarts the inetd process which enables SSH access. You can either restart your host or run

ps | grep inetd

to determine the process ID for the inetd process. The output of the command will be something like 1299 1299 busybox      inetd, and the process ID is 1299. Then run

kill -HUP <process_id>

(kill -HUP 1299 in this example) and you’ll then be able to access the host via SSH.

 

path of the database (space to store vm)

/vmfs/volumes/

8月 11
How do I use awk
icon1 ken666 | icon2 未分類 | icon4 08 11th, 2008 @ 12:08 pm| icon3沒有留言 »

 

Awk is a very powerful command as it is a programming language itself.

Of cause, most of us use it as a port of system script

To do batch remove or something I will use for loop and awk

e.g. install all newly built deb package and then remove it

for i in `ls` ; do dpkg -i $i ; sleep 3  ; echo $i | awk -F _ ‘{system("dpkg -r " $1)}’ ; done

More about Awk:

http://phi.sinica.edu.tw/aspac/reports/94/94011/  

 

 

8月 2
Ubuntu backup and restore Pidgin
icon1 ken666 | icon2 未分類 | icon4 08 2nd, 2008 @ 02:08 pm| icon3沒有留言 »

To back and restore pidgin ,

just copy .purple under the home folder !

Simple ? yes, but why not .pidgin ? who knows !