Friday, June 19, 2020

simple




马来西亚

马来西亚


Thursday, March 4, 2010

Waiting for Google Checkout to be improve.

I am building an e-commerce website (now working on www.javaroof.com) and been using paypal for few years. So far so good. I am a big fan of google apps and still waiting for Google Checkout to be improve. Currently, Google Checkout only accepting merchant account from US and UK. Claim from Google, they still work on it and hope to enable widely. Therefore, paypal is the best choice for making online pay for online.

Friday, October 17, 2008

Remote Connect MySQL On OpenSUSE 11 From Different Host

Unlike to Ubuntu 8, OpenSuse 11 is equipped with Firewall and ON by default. You may need to grant the permission to allow remote access to the MySQL server from the client.

Computer --> YaST (at system menu) --> Security and Users --> Firewall

At the firewall configuration panel --> Allowed Services --> At Service to Allow, select MySQL Remote Access --> Click Add button --> Click Next button.

Be sure to start the mysql services. If not you can go to the terminal and type this command:
sudo /etc/init.d/mysql start

Also, make sure the user had the privilege to access the MySQL database from different host. If not you add the user using MySQL command:

GRANT ALL PRIVILEGES ON *.* TO 'some_user'@'%' IDENTIFIED BY 'some_password' WITH GRANT OPTION;

Thats all..

Install Java, Tomcat and MySQL On OpenSUSE 11

We will install the JRE, Tomcat and MySQL for hosting JSP application website. Most of the installation will be done through the YaST management tools.

Launch YaST

Computer --> YaST (at system menu) --> enter root password --> Software (at YaST control center) --> Software Management.

Install JRE

1. We will require JRE in order to run Tomcat later. If you wish to do a development using Java programming, you may install both JDK and JRE together. At the filter field, type jdk.

2. Select java-1_6_0-openjdk for JRE (or java-1_6_0-openjdk-devel for JDK – for development). Next, click the Install button. Click Apply to download and install.

Install Tomcat
1. Download the tomcat 5.5 from http://tomcat.apache.org/ and saved it to desktop. Here, apache-tomcat-5.5.26.tar.gz been used. Right click on the file and click on Extract Here.

2. Rename the folder to tomcat for easier to remember the folder name. It is good idea to move the tomcat to /usr/local directory.

3. Type the command sudo mv tomcat-on-your-desktop-path /usr/local

4. You need to tell the tomcat where the JRE has been installed and to do this you need to define the JAVA_HOME environment variable in .bashrc file.

5. At the terminal, type the command gedit ~/.bashrc
6. At the end of the file type export JAVA_HOME=your/java/home and save the file.

7. Start the tomcat with the command: sh /usr/loca/tomcat/bin/startup.sh

8. Open the Mozilla Firefox browser and browse to http://localhost:8080 and should see the Tomcat welcome screen.

9. To stop the tomcat, type: sh /usr/loca/tomcat/bin/shutdown.sh

Install MySQL
1. Launch YaST. At the filters field type mysql and select the mysql package to install.

2. You may prompt to insert the openSuse-DVD 11. Insert the DVD and click retry to continue.

3. The installation process will take place.