Skip to main content

Posts

Showing posts from May, 2014

Install Spring Tool Suite on Ubuntu

This post is about installing Spring Tool Suite (STS) on Ubuntu. The Spring Tool Suite is an Eclipse-based development environment that is customized for developing Spring applications. Step 1: Download the latest Spring Tool Suite for Linux from STS official website: http://spring.io/tools/sts/all  Step 2: Extract into any folder which you prefer. My extracted Spring Tool Suite locations is /home/harishshan/springsource Step 3: Create the Menu icon for quick access sudo nano /usr/share/applications/STS.desktop Step 4: Enter the following content [Desktop Entry] Name=SpringSource Tool Suite Comment=SpringSource Tool Suite Exec=/home/harishshan/springsource/sts-3.4.0-RELEASE/STS Icon=/home/harishshan/springsource/sts-3.4.0-RELEASE/icon.xpm StartupNotify=true Terminal=false Type=Application Categories=Development;IDE;Java; Step 5: Now you can check from Quick Menu by typing " Spring "

Database Replication Master Slave

This post is about how to perform to Database Replication Slave to Master. I have used the  Green Font to represent  Master Server  and  Red Font to represent  Slave Server. Step 1:CHANGING MySQL CONFIGURATION  We need to add some extra configuration properties in the my.ini/my.cnf file. This step is must to perform replication.The following sub steps will describe in detail. Open my.ini file for windows or  my.cnf file for Linux Search for [mysqld] Add the following properties under [mysqld] section server-id=1 log-bin=mysql-bin save the my.ini file and Restart the mysql services To check the result execute the following command in mysql console  show binary logs; If it shows logs, Binary logging has been initiated and we can configure mirroring   Perform the same steps on slave database. Step 2: CRATE USER AND GRANT RELICATION AND PREVILEGES Create user create user 'replication'@'%' identified by 'PASSWORD'; Grant r...

Schedule Task on Ubuntu Using Cron Jobs

This article is about the Cron Job and how to schedule task on Ubuntu machine using Cron jobs. The cron is a time-based job scheduler in Unix-like computer operating systems. The word " Crontab " is derived from chronos (Time in Greeks) and tab stands for table. Crontab is useful for scheduling the task automatically run at regular interval as the background process. Crontabs are useful for taking backups, synchronizing files, etc. Before doing all other stuffs, first we will change the default editor to nano editor by typing the following command in terminal. export EDITOR="nano" To schedule new /edit crontab entries for specific time crontab -e This will open the nano editor with the default commented scheduling with five stars to allow our task scheduling. we can schedule our tasks here as follows * * * * * /home/harishshan/example.sh This will execute the example.sh for every minute. The following is an easy way to remember the crontab fo...