Setting JAVA_HOME and ANT_HOME on Ubuntu / Linux Mint

This might be helpful for the newbies who are starting their career in software development with  Java lang. And of course its not like in old school when it comes to the industry, we use application build tools for proper deployment of enterprise applications. Such commonly used build tool is ‘ apache – ant ‘. Before starting any big work with java and ant, you have to define ‘Java home’ and ‘Ant home’ to make use of them. Follow the following steps by adding few lines to your ‘.bashrc’ file,

Step 01: Locating .bashrc file.
If your on ubuntu, bashrc can be found on home directory as ‘.bashrc’ . If its Linux Mint go to /etc and open ‘bash.bashrc’ as super user mode to edit via a teminal.

sodu gedit bash.bashrc

sodu gedit bash.bashrc

Step 02: Setting ANT_HOME
Include the following block of text at the bottom of your ‘bash.bashrc’ file (if ubuntu, then .bash).

ANT_HOME

ANT_HOME

I have stored my apache-ant folder in ‘/usr/local/’. Change the path according to your apache-ant folder location.

Step 03: Setting JAVA_HOME
Same as you did for ANT_HOME, include the following block of text at the bottom of bash.bashrc file. Include the correct path of java jvm.

JAVA_HOME

JAVA_HOME

You are good to go!

 BTW I’m listening to Pretty Girl (The Way)” by sugarcult. Its really cool 😛

Setting up a LAMP Server

This post is to help the people who is willing to try out web technologies using LAMP. I think it will be more helpful to do a brief on ‘what is LAMP?’

LAMP represents the open source web platform. Its a portion of 4 resources
L – Linux (any distribution of gnu/linux).
A – Apache ( web server).
M – MySQL (relational database management system).
P – either Perl,Python or PHP (OO scripting language).
In this tutorial I’m using Linux Mint 7 Gloria, Apache2, MySQL and PHP5.

Step 01 → update your system’s package repository. So you can get the latest versions of available resources.

apt-get update

Step 02 → download and install Apache web server

apt-get install apache2

To check what the web server is running without any problems type ‘http://localhost‘ on your browser. If no problems, then it will give a test output as follows,

Step 03 → get PHP and its dependencies.

apt-get install php5 libapache2-mod-php5

after installing php you have to restart apache web server as follows,

/etc/init.d/apache2 restart

Step 04 → Now you need to make sure that PHP and Apache is working fine together. To do that use the following test php scrip and save it as phpinfo.php in server root(/var/www/).

phpinfo.php

phpinfo.php

Then call the script through the web browser. The URL should be like this, http://localhost/phpinfo.php . Then it should show all PHP configuration settings in a coloured table.

Step 05 →  get MySQL

apt-get install mysql-server

During the installation you will get a package configuration screen. Set root password for MySQl carefully. If you didn’t get that screen set password for MySQl manually,

mysql -u root
mysql> SET PASSWORD FOR ‘root’@’localhost’ = PASSWORD(‘user_pass_word’);

Step 06 → PhpMyAdmin installation

PhpMyAdmin is a web based free graphical database management and MySQL administration tool. This tool  makes all the MySQL database operations easy. Such as creating tables, creating databases inserting values, deleting values and lot more.

apt-get install phpmyadmin

during its installation it will ask what server to use. Apache or apache2 ? Select apache2 . Then it will prompt you to set a password for phpmyadmin. Done! To use Phpmyadmin type http://localhost/phpmyadmin on your browser.

PhpMyAdmin

PhpMyAdmin

Congrats! Your LAMP system is ready to do extraordinary things for you. 😀

Note: all the command line actions above are held as ‘root’.

My Crazy Idea of Future Web

Hell of work I’m doing these days. But this funny and freaking idea of future web started to ghost through my mind! May be I’m overloaded with work and started to see things. Whatever..

The future web. What would it be like? It keeps developing and developing 24 hours nonstop. Millions and billions of geeks/freaks/nerds and hackers are trying to make a new change. Speed is optimized by software+hardware and reliability is Secured by firewalls  but on other hand its not a safe place anymore to visit.

This is my crazy idea (please don’t get freaked out 😀 ).The future web may not have any browsers to browse or computer screens. Users may wear handy looking high tech “browsing goggles” . There will be nice comfortable “browsing chars” to give you those fancy vibrating and shaking real life effects. And your DTS surround system may serve as the noise of world wide web.

Then you power on your high power PC which definitely runs GNU/Linux. Then you turn on the browsing goggles…

First you will feel the empty 3D cyberspace around you, dark and silent. Then you may notice billions of tiny little particles of web sites. You may able to touch them,move them or throw them away in to the deep cyberspace as you wanted. Yeah they may Emmit beautiful colors too. I guess my favorite networks like google, youtube and wordpress will appear as giant colorful,glorious galaxies. Suddenly you wants to find something.. System takes 0.5mses to reads your brain signals and identify what you wanted and send a virtual character in front of you . Mostly it will be a kind looking lady in a pure white dress(mostly with the google logo). She identifies her self to you and asks your requirement. Then she may grab the the missing particle and give it to you…

Wow just think how it would be like! Freakingly awesome huh. I think Its better to stop now. Because you may already thinking that Dushi has gone crazy! Who knows this comic may be a prediction of the future web! What do you think of the future web? Will it be something like I mentioned ? Or is it just another freakish idea? What ever it is feel free to comment..

adios

Cyberspace in Future

Cyberspace in Future

Note : The technology mentioned above is never been built and I’m not doing cocaine or weed 😀

Design a site like this with WordPress.com
Get started