Thứ Năm, 19 tháng 3, 2009

Typing Vietnamese (VNI + Telex) In OpenSolaris Using SCIM

By default, you could type Vietnamese in OpenSolaris by following these steps:
- System -> References -> Input Methods
- In Gernal tab, choose "Use Input Method Switcher Application" form List Box.
- In Languagues/Scripts tab : Add Vietnemese
- OK
- In right top of the window, there would be a icon which allows you to use List Box to choose which langauge you would like to type.

However, the default Vietnamese Input Method use simple SCIM table and we can't type VNI or Telex, just typing boredly.

Therefore, the solution to use VNI and Telex is to follow below instructions
1) Install SCIM from Package Manager, type "SCIM" in search textbox and install all packages related to SCIM (although some packages are not neccessary).
2) Then, follow the instruction here

Then, you can use Vietnamese as you use with other OSes like Windows.

Mount NTFS / Ext2 / Ext3 / FAT 16 / FAT 32 in Solaris

Today, I came up with new binary packages to mount all types of filesystems in Solaris: NTFS / Ext2 / Ext3 / FAT 16 / FAT 32. I am using OpenSolaris 2008.11.

I cited it here for your reference

**********************************
From : http://misamapjava.blogspot.com/2009/01/mount-partition-in-opensolaris.html
**********************************
Notes: There are some adjustments from the original
1) Link to FSWfsmisc package.
2) I use /usr/bin/prtpart instead of /usr/sbin/prtpart
**********************************

* Download packages
FSWpart
FSWfsmisc

Note these are packages for x86 Solaris .

* unzip the packages and install it

root~#gzcat FSWpart.tar.gz | tar xvf -

root~#gzcat FSWfsmisc.tar.gz | tar xvf -

root~#pkgadd -d . FSWpart

root~#pkgadd -d . FSWfsmisc

* Now run the prtpart tool

root~#/usr/bin/prtpart

It would result in following output
root~#/usr/bin/prtpart


Fdisk information for device /dev/rdsk/c1d0p0

Block Size : 512 bytes
Controller : ide
Disk : cmdk
Capacity : 74 GB

# start block # nblocks startCylSecHd endCylSecHd OSType
1: 0000000063 0006152832 0/ 1/ 1 7e/7f/fe Diagnostic
2: 0006152895 0025173855 7f/41/ 0 ff/ff/fe WIN95 FAT32(LBA)
3: 0031328640 0052432128 ff/ff/fe ff/ff/fe Solaris x86
4: 0083760830 0072535555 ff/ff/fe ff/ff/fe DOS Extended

# start block # nblocks startCylSecHd endCylSecHd OSType
5: 0000000001 0031407012 ff/ff/fe ff/ff/fe Linux native
0: 0031407013 0001994202 ff/ff/fe ff/ff/fe DOS Extended

# start block # nblocks startCylSecHd endCylSecHd OSType
6: 0000000063 0001994139 ff/ff/fe ff/ff/fe Linux swap
0: 0033401215 0039134340 ff/ff/fe ff/ff/fe DOS Extended

# start block # nblocks startCylSecHd endCylSecHd OSType
7: 0000000063 0039134277 ff/ff/fe ff/ff/fe WIN95 FAT32(Upto 2047GB)


Now note the disk id. In the above example its "/dev/rdsk/c1d0p0"

Now run

root~#/usr/bin/prtpart /dev/rdsk/c1d0p0 -ldevs

Fdisk information for device /dev/rdsk/c1d0p0

** NOTE **
/dev/dsk/c1d0p0 - Physical device referring to entire physical disk
/dev/dsk/c1d0p1 - p4 - Physical devices referring to the 4 primary partitions
/dev/dsk/c1d0p5 ... - Virtual devices referring to logical partitions

Virtual device names can be used to access EXT2 and NTFS on logical partitions

/dev/dsk/c1d0p1 Diagnostic
/dev/dsk/c1d0p2 WIN95 FAT32(LBA)
/dev/dsk/c1d0p3 Solaris x86
/dev/dsk/c1d0p4 DOS Extended
/dev/dsk/c1d0p5 Linux native
/dev/dsk/c1d0p6 Linux swap
/dev/dsk/c1d0p7 WIN95 FAT32(Upto 2047GB)

The above command scan you hard-disk and displays all available filesystems. Note the required filesystems to be mounted.

To mount NTFS partition use

root~#mount -F ntfs /dev/dsk/c1d0p /mnt/windows

To mount FAT 16 / FAT 32 partition use

root~#mount -F pcfs /dev/dsk/c1d0p /mnt/windows

if the above command fails you can try the below option

root~#prtpart /dev/dsk/c1d0p0 -fat

the above command should list the available PCFS / FAT partitions in colon notation, then use the same for mounting (eg)

root~#mount -F pcfs /dev/dsk/c1d0p0:d /mnt/windows

To mount Ext2 / Ext3 partitions use

root~#mount -F ext2fs /dev/dsk/c1d0p /mnt/linux

To unmount a partition use "umount "

root~#umount /mnt/linux

**********************************

Thứ Ba, 17 tháng 3, 2009

Flash player in OpenSolaris

In OpenSolaris, in order to watch videos via Firefox such as in youtube... you have to follow the following steps:

1. When you visit youtube and do not have Flash player installed, youtube will point you to Adobe website where you download the Solaris version of flash player to your machine.

2. Untar that file.

3. Open terminal.

4. #su

5. cp /libflashplayer.so /usr/lib/firefox/plugins/

6. restart firefox

This is the instruction cited from http://blogs.sun.com/thanhson/entry/install_flash_player_in_opensolaris

Thank Thanh Son for his contribution ^^

Chủ Nhật, 8 tháng 3, 2009

NTFS-3G on Opensolaris - Mount NTFS in OpenSolaris

you are a Linux or Unix user, also you use a windows. Therefore, you may come up with the question "How can I mount NTFS in OpenSolaris"?

It's quite a arduous work but it is fascinating when I successfully mount a NTFS in OpenSolaris. Figure out how to mount NFTS in OpenSolaris at OpenSolaris Forum.

Let's do it and have fun ^^

How to mount ISO in OpenSolaris

You must have met the situation where you want to mount ISO for use in OpenSolaris.
Therefore, the best way is to have a look at mounting ISO images in Solaris.
Download + run his scripts and see how easy it is to mount ISO in OpenSolaris.

Thứ Ba, 3 tháng 3, 2009

Introduction to Zembly

Still mashup is strange definition in Vietnamese social network community; however, it is developing greatly in the world. There are so many tool to create your own mashup. And Zembly is a good one to try.

Being developed by Sun Microsystems and it becomes more and more popular in order to create a mashup.

"Zembly (styled zembly) is a browser-based development environment from Sun Microsystems [1] that enables social programming [2] of applications for Facebook, Meebo, OpenSocial, iPhone web applications, and other social platforms, as well as web widgets. Users of zembly interact with one another via zembly's social networking features to engage in co-development of applications for these platforms."

From http://en.wikipedia.org/wiki/Zembly

I tried my first Zembly mashup and i was greatly impressed by the way we create a mashup : just drag and drop ^^



Try your first Zembly mashup by follow the instructions in http://blog.zembly.com/

Have fun ^^

Thứ Hai, 2 tháng 3, 2009

Boot Environment (BE) in OpenSolaris 2008.11

Today, i came up with a great feature of OpenSolaris 2008.11 . That is Boot Environment(BE).After installing lots of packages in Package Manager, i rebooted. Then, a strange GRUB appeared as follow




After looking inside GRUB boot item "OpenSolaris-1", i recognized that that could have been a BE.





To make sure of what i guessed. After logging in, I opened Package Manager then Boot Environment. Yeah, it was there. All BEs are here, in Boot Environment of Package Manager.


BE is really helpful especially when you want to recover the system after an fail installtion. Every time you install a package using Package Manger, a new BE is to be created.Just click the BE you want to recover to and it's done.


Let's try and have fun !

Chủ Nhật, 1 tháng 3, 2009

What is JavaFX?

Nowdays, Flash is almost eveywhere, in every computer. However, with Flash, you can't write once, run everywhere. You can't use Flash in all TV + browser + computer + TV ... at the same developed code. Microsoft Silverlight is almost the same. I am sure that Silverlight will become stronger because SilverLight is Micorsoft's and Mircosoft will greatly support SilverLight like what they did with Internet Explorer. SilverLight will be popular because Microsoft may attach it with Windows OS (I guess so).

So, what is JavaFX. JavaFX is not Flash or SilverLight imitation. You can say that JavaFX is a new programming language (actually it's a new platform) supported by Sun Microsystems which inherits Java Platform in either Desktop, Mobile devices or other devices. With JavaFX, your code can be deploy everywhere, on desktop, on browser or in mobile devices and even in TV.

Let's see what JavaFX examples at http://www.javafx.com/samples/
Then, what JavaFX can do at http://www.javafx.com/launch/index-linux.jsp
Then, what you can do to start your own JavaFX applications at http://www.javafx.com/

Have fun ^^