Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Blogs - Entry for Admin
 Syndicate Admin's entries

2010/05/24
Install BlazeDS on Linux
Category: Tutorials : Linux

Author: Admin (3:18 pm)
Install BlazeDS on Linux

by David Welford-Costelloe (http://www.welford-costelloe.com)




This blog is for those that have an old machine and would like to make use of it. So here is something you can use it for. This Blog covers installing BlazeDS on Ubuntu Linux which is so free Ubuntu will even send you the DVD versions for Free and they pay for the postage!

What you will need:

1. Ubuntu Linux Disk or Download .iso and burn to CD
2. Download BlazeDS turnkey (includes Tomcat)

The next step is to install Ubuntu Linux I will make the assumption this has been completed.

Now we need to make sure we have everything required and any references utilities like Java JDK, Apache web server and MySQL database etc installed.

In order to visually show the procedure I am logging into my Ubuntu Linux machine using TightVNC and Ubuntu remote Desktop:

1. Log-in as The user name supplied on the installation (this will be the admin account)

Enable Remote Desktop Preferences ==> Remote DeskTop



3. Select Remote Desktop Menu Item



4. Because I have other people and from a previous blog use Public IP Monitor I allow external users to access my server via BlazeDS and Apache Web Server.
Adding a password always a good thing.

5. Download TightVNC Client for Windows (I’m using Vista)

6. Install a execute client add the IP address of the Ubuntu Box


7. Add a password



8. Click Connect Walla! Remote access to your Linux Box


10. Now for ease of use I like to enable the root account and use that for all installs.
To enable root account on Ubuntu
Open a Terminal Applications Accessories Terminal
On the prompt enter: sudo passwd root
Log –off and re-log –in using root

11. Log User Name: root and enter the password you applied above.


12. Enable Remote Desktop for the root account and re-login using VNC client


You can see the User as root far top right corner

Install Apache and MYSQL

The nice thing about Ubuntu is you can install a package for MYSQL and Apache Web Server. Follow the instructions during which you will be asked to provide a MSQL admin password (Write this down you will need it) Once complete Apach2, MYSQL database and tools will be installed for you.

sudo tasksel install lamp-server


1. Install Java JDK – Open Terminal and Enter:

sudo apt-get install sun-java6-jdk
or for Ubuntu 10 use: sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk


2. Add JAVA_HOME to Bootup – Open Terminal and enter:
vi  ~/.bashrc   (for non graphic)  
           
gedit ~/.bashrc (for graphic users like me)




3. Add the JAVA_HOME and why not add the TOMCAT_HOME too



Save the above entries

export JAVA_HOME=/usr/lib/jvm/java-6-sun  
export TOMCAT_HOME
=/usr/local/BlazeDS/tomcat


As you can see these system variables will be loaded on start-up, which is going to be important
as we continue with the BlazeDS installation. Why not re-boot the Ubuntu Server now?

5. After re-boot re-login as root and download BlazeDS turnkey
6. Create a folder in /usr/local called BlazeDS (cd /usr/local then mkdir BlazeDS)

7. Extract the contents of the zip file to /usr/local/BlazeDS folder



8. The next step is optional, but was something I wanted to do and that is to have BlazeDS load on startup of ubuntu

9. First we create a text file in /etc/init.d called blazeds

10. Open a terminal Windows and Enter: gedit /etc/init.d/blazeds



11. Add the following text and save the file


# BlazeDS auto-start 
    # 
    # description: Auto-starts tomcat on BlazeDS 
    # processname: tomcat 
    # pidfile: /var/run/tomcat.pid 

    
export JAVA_HOME=/usr/lib/jvm/java-6-sun 

    
case $1 in 
    start

            
sh /usr/local/BlazeDS/tomcat/bin/startup.sh 
            
;; 

    
stop
            
sh /usr/local/BlazeDS/tomcat/bin/shutdown.sh 
            
;; 

    
restart
            
sh /usr/local/BlazeDS/tomcat/bin/shutdown.sh 
            sh 
/usr/local/BlazeDS/tomcat/bin/startup.sh 
            
;; 
    
esac    

    
exit 


12. Next we change the permissions on the file: in the terminal window enter:

sudo chmod 755 /etc/init.d/blazeds



13. Next we link the script to the startup folders with a symbolic link. In the terminal window
enter the two commands separately

      sudo ln 
-/etc/init.d/blazeds /etc/rc1.d/K99blazeds  
      sudo ln 
-/etc/init.d/blazeds /etc/rc2.d/S99blazeds  
      


14. Re-boot a login in as a normal user

15. Open Firefox browser and enter the link as: http://localhost:8400



And there is BlazeDS running and waiting for you anytime you need it!!
Read Admin's weBLog | Comments (0) | Trackback (1) | Reads (75)
Trackback URL of this entry
http://welford-costelloe.com/modules/weblog/weblog-tb.php/4
Trackbacks to this entry
atarax drug interactions...more
2010-08-25/05:13:05
Printer Friendly Page Send this Blog to a Friend
The comments are owned by the poster. We aren't responsible for their content.
Powered by XOOPS @ 2001-2010 The XOOPS Project