Wednesday, October 07, 2009

Install Ubuntu Linux on Windows Vista using Sun Virtual Box ..:: වින්ඩෝස් විස්ටා මත උබුන්ටු ::..

How to use both Windows and Ubuntu at the same time (not with dual boot)? ඉස්සර ගොඩක් කස්ටිය පාවිච්චි කලේ වින්ඩෝස් - ලිනක්ස් ද්විත්ව ස්ථාපන (dual boot) යනෙ. දැන් ඉතින් එහෙම ඕනා නෑ, Virtualization වලට පිංසිද්ද වෙන්න. screen-shot එක උඩ ඔබලා බලන්න.



With virtual environment you can create and run several operating systems("virtual machines") such as Linux, Windows, FreeBSD, Novell etc. under a host operating system. This has the benefit that you can run multiple operating systems on the same Machine.(not with dual boot)

ඒත් ඉතින් මේවා කරන්න ඔයාගේ මැෂිම හොද වෙන්න ඕනා. අඩුම තරමේ RAM එක 1GB වත් තියෙන්න ඕනා. 512KB වලිනුත් පුලුවන්. ඒත් ඉතින් පට්ට slow. Core 2 Duo තියෙනවනම් හොදයි, ඒත් PIVතිබ්බත් කමක් නෑ.

VMware , VirtualBox , and QEMU are the most popular virtualization environments today. My choice is VirtualBox, is the lack of direct access to the hardware. VMware is not open source software. But VMware Server2 interface is web based and can be accessed by loclly or remotely going to https://:8333 or http://:8222. QEMU is fully free, but noticeably slower than VMware & VirtualBox.

ඒත් ඉතින් vmware කචල් ගොඩායි.
මල චාටර්... මගේ හොද fit එකක් තමයි මේක(sun virtual box) මට කියලා දුන්නේ. මම අද කියන්න යන්නේ Sun VirtualBox පාවිච්චි කරලා windows vista මත ubuntu ස්ථාපනය කරන ආකාරයයි.

A. ඉස්සෙල්ලම http://www.ubuntu.com/GetUbuntu/download එකට ගිහිල්ලා Ubuntu 9.04 Desktop එක ඩවුන්ලෝඩ් කරගන්න. ( ubuntu 9.10 ලගදීම එනවා...)

B. ඊට පස්සේ http://www.virtualbox.org/wiki/Downloads එකට ගිහිල්ලා VirtualBox 3.0.8 for Windows hosts එක ඩවුන්ලෝඩ් කරගන්න. (මේක vmware වගේමයි,
ඒත් opensource)

දැන් ඉතින් දෙයියනේ කියලා වින්ඩෝස් වලට ගිහිල්ලා VirtualBox154Winx86.exe එක ස්ථාපනය කරගන්න.(ඩවුන්ලෝඩ් වෙච්ච ubuntu-9.04-desktop-i386.iso එක CD එකකට write කර ගන්න ඕනා නෑ. ඒක windows වලම තියා ගන්න.) ඊට පස්සේ ස්ථාපනය වූ virtualbox එක open කරගන්න.

1. දැන් ඉතින්
මෙනුවෙ Machine --> New ක්ලික් කරන්න.



2. Next කරලා Name එකට කැමති නමක් දෙන්න, OS එක Linux, version එක උබුන්ටු කරලා Next කරන්න.
3. Base Memory size එක වෙනස් කරන්න.(තියෙන ගාන උනත් කමක් නෑ)
4. ඊට පස්සේ Create new hard disk එක සිලෙක්ට් කරලා Next කරන්න.
5. දැන් Dynamically expanding storage එක සිලෙක්ට් කරලා Next කරන්න.( ඔයාගේ hard disk එකේ ඉඩ නැත්නම් Fixed-size storage එක සිලෙක්ට් කරන්න)
6. ඊට පස්සේ Location එකට ඔයා කැමති තැනක් හා Size එකක් දෙන්න. Next කරන්න.
7. දැන් Finish කරන්න.


දැන් ඉතින් උබුන්ටු මෙහෙයුම් පද්ධතිය ස්ථාපනය කරමු.

1. දැන් Settings ක්ලික් කරන්න.
2. ඊට පස්සේ CD/DVD-ROM එකට ගිහිල්ලා Mount CD/DVD Drive එක සිලෙක්ට් කරන්න.
දැන් ISO Image File එක සිලෙක්ට් කරලා, Aහි ඩවුන්ලෝඩ් වෙච්ච ubuntu-9.04-desktop-i386.iso
එකේ Location එක දෙන්න.( උබුන්ටු CD එකක් තියෙනවානම් Host CD/DVD Drive එක සිලෙක්ට්
කරන්න)
3. දැන් OK කරන්න.
4. දැන් Start කරන්න.


හොදට මතක තියා ගන්න, virtual box එකෙන් එලියට එන්න Ctrl Key එක ක්ල්ක් කරන්න. Ubuntu ස්ථාපනය කරගෙන යන්න. දැන් ඉතින් දෙයියනේ කියලා Sun Virtual Box මැෂිම රීස්ටාට් කරන්න.(close & open)

Settings --> CD/DVD-ROM එකට ගිහිල්ලා Mount CD/DVD Drive එක un සිලෙක්ට් කරන්න. දැන්Start කරන්න.

දැන් ඉතින් ගොඩම තමා. ඒත් තවම ගොඩ නෑ.තව drivers ස්ථාපනය කරන්න ඕනා. full screen එන්නේ නෑ. ඒකට කරන්න ඕනා පොඩි දෙයක්. යන්න Devices -> Install Guest Additions එකට. මුකුත් වෙන්නේ නෑ නේද? බය වෙන්න දෙයක් නෑ. බලන්න CD එකක් mount වුනාද කියලා. (more info pl go to Help --> Contents, in Sun Virtual Box)

ඔක්කොටම කලින් කරන්න ඕන root වලට මුර පදයක් දෙන එක. ටර්මිනල්(Applications --> Accessories --> Terminal) එකක් අරගෙන මේ විධානය දෙන්න. root ලෙස වැඩ කරද්දී පරිස්සමින් වැඩ කරන්න.

$sudo passwd root

කැමති මුර පදයක් දීලා ඉන්පසු /media/ ගොනුවට යන්න.ඊට පස්සේ මේ විධාන දෙන්න.

#cd /media
#ls
#cd cdrom
#sh ./VBoxLinuxAdditions-x86.run



දැන් Sun Virtual Box මැෂිම රීස්ටාට් කරන්න.

Full Screen ආවේ නැත්නම් මෙන්න මෙහෙම කරන්න. ටර්මිනල් එකක් අරගෙන මේ විධාන දෙන්න. xorg.conf එක මෙන්න මේ විදියට වෙනස් කරන්න. මගේ නම් තියෙන්නේ Display resolution 1366x768.

#cd /etc/X11/
#vim xorg.conf

Section "Screen"
Identifier "Default Screen"
Device "VirtualBox graphics card"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1366x768" "1280x768" "800x600"
EndSubSection
EndSection



දැන් Sun Virtual Box මැෂිම රීස්ටාට් කරන්න.ඔන්න දැන් නම් ආවේ නැත්නම් දමලා ගහලා පොඩි fun එකක් දාන්න යන්න. ඊට පස්සේ ඇවිත් ආයෙම කරලා බලන්න. මොනවා හරි ඕනානම් කියන්න.

10 comments:

Anonymous said...

Nice post. learn loads of new gadgets. We always used Dual-boot for Ubuntu. දැන් ඉතින් මේ විදියට කරන්න පුලුවන්. මේක නම් මරු, මොකද මම හදන ප්‍රොර්ග්‍රෑම්ස් දැන් ඉතින් එකවර ටෙස්ට් කර ගන්න පුලුවන්.

baba said...

මේක නම් මරු.මේක fullscreen ගන්න බෑ නෙ මචන්. මොකක්ද කරන්න ඔන.

Ruki said...

මචෝ full screen ගන්න මේක try කලාද?

#cd /media
#ls
#cd cdrom
#sh ./VBoxLinuxAdditions-x86.run

මේක වැඩ කලේ නැත්නම් මෙහෙම කරන්න. etc එකේ X11 එකට ගිහිල්ලා
#cd /etc/X11/
#vim xorg.conf

Section "Screen"
Identifier "Default Screen"
Device "VirtualBox graphics card"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1366x768" "1280x768" "800x600"
EndSubSection
EndSection

Ranzyth said...

XP වලට ඔය විදිහට උබුන්ටු දාන්න බැරිද දන්නෑනෙ?

Ruki said...

XP වලටත් ලේසියෙන්ම දාන්න පුලුවන්. Try කරලා බලන්න.

Anonymous said...

Bonjorno, sandunfernando.blogspot.com!
[url=http://viagraycla.pun.pl/ ]Acquistare viagra [/url] [url=http://cialisonya.pun.pl/ ]Compra cialis in Italia[/url] [url=http://viagrareta.pun.pl/ ]Acquistare viagra [/url] [url=http://cialisybea.pun.pl/ ]Acquisto cialis in Italia[/url] [url=http://athe.pun.pl/ ]Acquistare in Italia[/url] [url=http://viagraradf.pun.pl/ ]Compra viagra generico[/url]

Anonymous said...

Good day, sun shines!
There have been times of hardship when I felt unhappy missing knowledge about opportunities of getting high yields on investments. I was a dump and downright pessimistic person.
I have never thought that there weren't any need in large initial investment.
Now, I feel good, I started take up real income.
It's all about how to select a proper partner who uses your money in a right way - that is incorporate it in real business, and shares the profit with me.

You can get interested, if there are such firms? I have to tell the truth, YES, there are. Please get to know about one of them:
http://theinvestblog.com [url=http://theinvestblog.com]Online Investment Blog[/url]

Anonymous said...

[... ] is one another relavant source of tips on this topic[...]

Anonymous said...

prescription drugs zybanmeridia canada pharmacy

[url=http://www.bebo.com/buylevitraonline1]buy levitra online in 24 hours[/url]

Anonymous said...

Im looking in to getting one, who has ever bought one of these:

http://www.tvosz.com/view_video.php?viewkey=9579475f3734e8bd0e14