zawgyi keyboard on Ubuntu 9.04

ဇော်ဂျီကို Ubuntu မှာသုံးဖို့ ကို box02 က Ubuntu 9.04 အတွက် လုပ်ပေးထားတဲ့ zawgyi-keyboard-ubuntu904.tar.gz ကနေ တင်ထားတယ်။

ဒါပေမယ့် မေ့နေလို့ထင်တယ် ဘယ်လိုပြန်ဖြုတ်ရမယ် ဆိုတာ google code မှာ ရေးထားတာ မတွေ့မိဘူး။

ဒါနဲ့ MZ မှာ မေးလိုက်တယ်၊ မမေးခင်ကတည်းက ကိုbox02 တော့ ပြန်ဖြေမှာပဲလို့လဲ တွေးမိသေးတယ်။ :) နောက်ရက်ကျတော့ (ဒီနေ့ပေါ့) ပြန်ဖြေပေးထားတာ တွေ့တယ်။ keyboard ပြန်ဖြုတ်ဖို့ ဒီဟာလေးတွေကို တာမီနယ်မှာ ရိုက်ရမယ်တဲ့ဗျ။

$ sudo rm -rf /usr/share/fonts/zawgyi

$ sudo mv  /usr/share/X11/xkb/symbols/mm /usr/share/X11/xkb/symbols/mm_backup

$ sudo mv  /usr/share/X11/xkb/symbols/mm /usr/share/X11/xkb/symbols/mm_backup$ sudo mv  /usr/share/X11/xkb/symbols/mm /usr/share/X11/xkb/symbols/mm_backup

zawgyi and myanmar3 keyboard on Ubuntu 9.04

ကိုစေတန်ရဲ့ zawgyi myanmar3 keyboard ကို install လုပ်လိုက်တာ အရင်တင်ထားတာတွေနဲ့ အဆင်မပြေဖြစ်တယ်လို့ ထင်တယ်။ ဟိုဟာမရ ဒီဟာမရ ဖြစ်ကုန်တယ်။ install လည်းလုပ်လို့ မရတော့ဘူး။ :D

ဒါနဲ့ မြန်မာအိုင်တီပရိုက ကိုသူရလှိုင် post ထဲကအတိုင်း ပြန်လုပ်ကြည့်တယ်။ ဒါလည်း ဇော်ဂျီပဲ အဆင်ပြေတယ် မြန်မာသရီးက ရိုက်လို့ရဘူး။

အဆင်မပြေတာ အတူတူ ဇော်ဂျီကို ၂၀၀၈ ဗားရှင်း၊ မြန်မာသရီးကို ခုနောက်ဆုံးဗားရှင်း နဲ့ copy; paste ပဲလုပ်လိုက်တယ်။

ဒီကုတ်လေး သုံးပြီး file တွေဖွင့်ရတာပေါ့။

sudo nautilus

ခုတော့ ဇော်ဂျီနဲ့ ရေးလို့၊ ဖတ်လို့ရတယ်။ မြန်မာသရီး ကတော့ ဖတ်လို့ပဲ ရတယ်၊ ရေးလို့ အဆင်မပြေလို့ keyboard layout ဖြုတ်ထားလိုက်တယ်။

ဩော် မေ့လို့ Ubuntu 9.04 မှာနော်၊ ဝင်းဒိုးဗစ်စတာမှာ ဟုတ်ဖူး။ :)

reinstall Ubuntu 9.04

Now, I reinstall Ubuntu 9.04 with CD after damage this OS when testing Mac OS X.

During installation process,
- I choose to set partition manually.(I have 3 partitions such as vista, data and one for this installation.)
- format with ext4 file system.

After installation finished,
I see other partition from Windows Vista Business and can map drive. (This good for copy and others.)

I’m happy. :)
I can choose Vista and Ubuntu at Grub.

Mac OS, Ubuntu & Vista

Mac OS X Leopard ကြီးကောင်းလှ ဆိုလို့ install လုပ်လိုက်တာ Mac ကတက်မလာပဲနဲ့ Vista Business ရော၊ Ubuntu 9.04 ရော ပျက်သွားတယ်ဗျ :(

စိတ်ပျက်တယ်။

Vista ကိုတော့ပြန် recover လုပ်လို့ရပေမယ့် update လုပ်ထားတဲ့ SP2 မဟုတ်တော့ဘူး။

အချိန်တွေ အများကြီး အကုန်ခံပြီး windows update လုပ်ထားရတာ။

recovery disk ကိုသုံးပြီး လုပ်တာ လွယ်ပါတယ် ဆိုပြီး စာမဖတ်မိတော့ factory default အတိုင်းပဲ တက်လာတယ်ဗျာ။

Ubuntu မှာလည်း update manager ကနေ update လုပ်ထားတာ၊ လိုချင်တာလေးတွေ သွင်းထားတာ အားလုံးပါသွားတယ်။ :(

အဆင်မပြေချင်တော့လည်း ဒီလိုပဲပေါ့ဗျာ။

ကိုယ့်ကိုကိုယ် အဲဒီလိုပဲ ဖြေရတော့မှာပဲ။ :)

C++ on Ubuntu 9.04

I want to test C++ on Ubuntu 9.04.

So, follow this post from www.ubuntugeek.com. This post said that………

If you are a developer you need C and C++ Compiler for your development work. In Ubuntu you can install the build-essential for C and C++ compilers.

Install C and C++ Compilers in Ubuntu

sudo aptitude install build-essential

This will install all the required packages for C and C++ compilers

Testing C and C++ Programs

  • Compiling Your first C Programs

Now you need to open first.c file

sudo gedit first.c

add the following lines save and exit the file

#include <stdio.h>
int main()
{
printf(“Hello, World!\n”);
return 0;
}

Firstly compile the code using the following command

cc -c first.c

that would produce an object file you may need to add to the library.
then create an executable using the following command

cc -o first first.c

Now run this executable using the following command

./first

Output should show as follows

Hello, world

  • Compiling your first C++ program

If you want to run c++ program follow this procedure
g++ is the compiler that you must use.
you should use a .cpp file extension rather than a .c one
You need to create a file

sudo gedit first.cpp

add the following lines save and exit the file

#include <iostream>
int main()
{
std::cout << “Hello, World!” << std::endl;
return 0;
}

Run your C++ Program using the following command

g++ first.cpp -o test

./test

Output should show as follows

Hello World!

And I test on my Toshiba laptop.

thanwinnaing@thanwinnaing-laptop:~$ sudo apt-get install build-essential
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
dpkg-dev g++ g++-4.3 libstdc++6-4.3-dev patch
Suggested packages:
debian-keyring g++-multilib g++-4.3-multilib gcc-4.3-doc libstdc++6-4.3-dbg
libstdc++6-4.3-doc diff-doc
The following NEW packages will be installed:
build-essential dpkg-dev g++ g++-4.3 libstdc++6-4.3-dev patch
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 6270kB of archives.
After this operation, 21.4MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.tcc.edu.tw jaunty/main libstdc++6-4.3-dev 4.3.3-5ubuntu4 [1356kB]
Get:2 http://ftp.tcc.edu.tw jaunty/main g++-4.3 4.3.3-5ubuntu4 [4162kB]
Get:3 http://ftp.tcc.edu.tw jaunty/main g++ 4:4.3.3-1ubuntu1 [1438B]
Get:4 http://ftp.tcc.edu.tw jaunty/main patch 2.5.9-5 [100kB]
Get:5 http://ftp.tcc.edu.tw jaunty/main dpkg-dev 1.14.24ubuntu1 [643kB]
Get:6 http://ftp.tcc.edu.tw jaunty/main build-essential 11.4 [7172B]
Fetched 6211kB in 9min 57s (10.4kB/s)
Selecting previously deselected package libstdc++6-4.3-dev.
(Reading database … 103569 files and directories currently installed.)
Unpacking libstdc++6-4.3-dev (from …/libstdc++6-4.3-dev_4.3.3-5ubuntu4_i386.deb) …
Selecting previously deselected package g++-4.3.
Unpacking g++-4.3 (from …/g++-4.3_4.3.3-5ubuntu4_i386.deb) …
Selecting previously deselected package g++.
Unpacking g++ (from …/g++_4%3a4.3.3-1ubuntu1_i386.deb) …
Selecting previously deselected package patch.
Unpacking patch (from …/patch_2.5.9-5_i386.deb) …
Selecting previously deselected package dpkg-dev.
Unpacking dpkg-dev (from …/dpkg-dev_1.14.24ubuntu1_all.deb) …
Selecting previously deselected package build-essential.
Unpacking build-essential (from …/build-essential_11.4_i386.deb) …
Processing triggers for man-db …
Setting up patch (2.5.9-5) …
Setting up dpkg-dev (1.14.24ubuntu1) …
Setting up libstdc++6-4.3-dev (4.3.3-5ubuntu4) …
Setting up g++-4.3 (4.3.3-5ubuntu4) …
Setting up g++ (4:4.3.3-1ubuntu1) …

Setting up build-essential (11.4) …
thanwinnaing@thanwinnaing-laptop:~$

But, I test with this code only for C++ which is the same above. :)

#include<iostream>
using namespace std;
int main()
{
cout << “Hello, World!” << endl;
return 0;
}