Tuesday, October 28, 2008

HowTo SVN (Sub Version) on JeOS

Can you imagine a development environment without a source codes repository ? I can remember a site listing the top ten reasons not to use VSS, but I was unable to locate it by search. I have personally worked with VSS and I agree with it most of the time. I have been told that even Microsoft does not use VSS internally. I do not know if that statement is true, but no Microsoft engineer with whom I'm acquainted uses it. How ever I wish to see a sophisticated source repository from Microsoft soon !

By the way I decided to deploy a SVN instant onn JeOS and I feel it's working birrlient with optimized kernal.

Let's start !!! Install JeOS on make it uptodate !
$ sudo apt-get update

Best thing is to install curl and it's help us to troubleshoot if something gose worng.
$ sudo apt-get install curl

I assume your system already have vim editing tool or type and install it using below command
$ sudo apt-get install vim

Install Apache
$ sudo apt-get install apache2

Now use curl and check whether it's up and running

And you shoud see some like below, then you good to go with next step
"It's works!" with some html tags
Install SVN
$ sudo apt-get install subversion

Install required lib for theApache
$ sudo apt-get install libapache2-svn

Now you can create SVN folders as you wish
$ sudo mkdir /svn
$ sudo mkdir /svn/projects

And setup the folders usin below commands
$ sudo svnadmin create /svn/projects
$ sudo chown -R www-data /svn/projects

Create a password file and enter the first user in to your password file
$ sudo htpasswd -cm /etc/apache2/dav_svn.passwd user01

Add you will be asked the password and confirm password

And please note if you need to add more users in later;
$ sudo htpasswd /etc/apache2/dav_svn.passwd user02

No we configure Apache by editing the following file with Vim that we installed at the beginning
$ sudo vim /etc/apache2/mods-enabled/dav_svn.conf

All you really need to do is remove the comments "#" in the apropriate areas, finally dav_svn.conf should looks alike below;
DAV svn
SVNPath /svn/projects
AuthType BasicAuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user

Restart Apache
$ sudo /etc/init.d/apache2 restart

Thats it, you're done. You can get to your repository via your hosts browser by going to http://{your VM IP}/svn. You should get a username/password dialog which to enter the details you created in.

You can always use a third party software to make your life easier !!! http://tortoisesvn.tigris.org/

Thursday, October 23, 2008

HowTo BugZilla on JeOS ! (on VMware Infrastructure)

I have spent several hours with my one and only reliable friend (google) to find on resources on installing Bugzilla installation on JeOS/Ubuntu. And spent several hours on following some HOWTOs.

But finally I got my own way of doing this simply !

Follow the steps defined below for the easy steps of deploying Bugzilla on JeOS.

Download JeOS install: http://cdimage.ubuntu.com/jeos/ My environment was VMware ESX 3 and you can try this on VMware Workstation too.
The complete guide of installing and initial configuration can be found: https://help.ubuntu.com/community/JeOS and I strictly advice you to follow this guide including “Installing VMware Tools” subheading, before you begin any configurations on it.
After you done with initial confirmation please don’t forget to do a snapshot of you current virtual machine.

Installing Apache: sudo apt-get install apache2
After you finished please check typing the hostname/IP on the browser whether you getting the Apache default page “It’s works!” Then you good to start next step.

Installing PhpMyAdmin: sudo apt-get install phpmyadmin
But after this installation I got a error when I accessing http://hostname/phpmyadmin and creating symbolic link from [/etc/phpmyadmin/apache.conf] to [/etc/apache2/conf.d/phpmyadmin.conf]

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 restart (do a restart to effect the change)

Now you should be able to access the login page at http://hostname/phpmyadmin and now you can do another snapshot in your virtual machine.

Now install MySQL: sudo apt-get install mysql-server
Please follow the instructions during the installation and provide a root password for the MySQL DB.

After this finished restart Apache: sudo /etc/init.d/apache2 restart
Restart MySQL: sudo /etc/init.d/mysql restart

Now you should be able to log in to the http://hostname/phpmyadmin using root password you have given during the MySQL installation. Well done ! and do another snapshot for your own safety ! :) And now we’ll start Bugzilla installation ! it’s simple as you seen so far !

Installing Bugzilla: sudo apt-get install bugzilla

  • Set the email to anything you like you can always change it later.
  • Set the administrator's real name. YES (use dbcommon) for db creation, it is not recommended to use the manual way unless you know what is happening
  • Admin password : provide the password you have entered during the MySQL installation
  • Application password: provide a password Install the package maintainer's version ( this may happen during the install)

After this finished you can log in to the phpmyadmin and check whether it has created the DB and the tables. Do a restart for services if necessary.
Now should be able to login to your new instant of Bugzilla. Enjoy !

Wednesday, October 22, 2008

WOT is JeOS (Just Enough Operating System)???

Good old days I was playing with Rad Hat distros all the time, Web sphere, Oracle were my best buddies. But recently (from 2, 3 years back) I was bit away from LINUX and forced to stay with Windows. (who did that ?, poor me !)

From couple of week’s back I had a imagination to recompile a LINUX kernel in to a very light build and to be used on VMware ESX. Yes, there are some light LINUX kernels in the industry. But really wanted to make it very light and tune for VMware virtual infrastructure.

Thanks to google, I found JeOS which meets all the expectations I have been looking for. This is compiled by Ubuntu team. And I don't forget to thank to Ubuntu team as well :)

“Ubuntu Server Edition JeOS (pronounced "Juice") is an efficient variant of our server operating system, configured specifically for virtual appliances. Currently available as a CD-Rom ISO for download, JeOS is a specialised installation of Ubuntu Server Edition with a tuned kernel that only contains the base elements needed to run within a virtualized environment.”

Users deploying virtual appliances built on top of JeOS will benefit from:

  • better performances on the same hardware compared to a full non-optimized OS
  • smaller footprint of the virtual appliance on their valuable disk space
  • fewer updates and therefore less maintenance than a full server installation

Tech Specs - v 8.04:

  • Less than 100Mo ISO image
  • Less than 300Mo installed footprint
  • Specialised -virtual Kernel 2.6.24
  • Optimised for VMWare ESX, VMWare Server and KVM
  • Intel or AMD x86 architecture
  • Minimum memory 128M
  • No graphical environment preloaded as it is aimed at server virtual appliance
  • Working knowledge of linux administration and debian packages recommended to start building your own appliance

Start testing it right now, download the image today from http://cdimage.ubuntu.com/jeos/
Learn how to use JeOS to create your own appliance at https://help.ubuntu.com/community/JeOS
Canonical ISV programme
Interested in joining Canonical's ISV programme? Please go to: http://www.canonical.com/partners/isv

I'm so surprised with it !