Technology

Installing CloneZilla on USB drive using Ubuntu.

Clonezilla is a software that allows you to do bare metal backup and recovery. To install Clonezilla we would need following Softwares, all of which are available freely. 7zip ( p7zip-full_9.04~dfsg.1-1_i386.deb) Tuxboot (tuxboot-linux-8 ) Clonezilla (clonezilla-live-1.2.6-40-i686.iso) Here are the steps to install...

by Hitesh Bhatia
Tag: Linux
22-Oct-2011

Grails

Mysql top just like we have top command in Linux

Once in my grails project i was facing the problem of freeze of server.When this happens tomcat becomes unresponsive.Later on by analyzing the thread dump we found that this problem might be due to the database and tomcat communication. So as to analyse how many connection are active at mysql end we found a query. Show processlist; ...

by Anuj Aneja
Tag: Linux
08-Oct-2011

Technology

Making your own custom command for a script file which can be executed from any user.

One way to execute the script file via command can be making of alias and put it in .bashrc , but this will only be available to that user. So for creating a user-defined command which can be executed from any where for any user following steps need to be followed: 1. Make a script file which has the set of commands to be executed and...

by Anuj Aneja
Tag: Linux
05-Oct-2011

Technology

Find v/s Locate … Optimize your search ..

A few days back, I was on a server wherein I had to find the location of a file in the file system. Naturally like most newbies, I instantly hit the 'find' command.  Something like [shell]sudo find / -name someFileName.ext[/shell] Naturally the command took a lot of time to find the file (Local to server relay not being helpful...

by Manoj Mohan
Tag: Linux
16-Sep-2011

Grails

Setting System property from command line in grails

Hi, In one of my recent grails project, i needed to set System property from command line while running the grails application. I looked for it and found a simple solution to do so and found it worth sharing. Suppose we want to set any property, say app.property="propertyValue", then the command to set the property in grails...

by Vishal Sahu
Tag: Linux
24-Aug-2011

Technology

Organizing “.bashrc”

I have been working on Linux for almost 3 years now and have grown to love it a lot. As with every linux user, the .bashrc file becomes cumbersome and difficult to maintain over a period of time, since there are a lot of project specific aliases, paths, etc So after working on a couple of projects, I started maintaining separate...

by Himanshu Seth
Tag: Linux
17-Aug-2011

Technology

Mounting an EBS Volume to an Instance and Soft Linking a Growing Directory to it

We were having a crisis on our project the other day. The VPS on which we were running our application had some issues with kernel and Tomcat, for that matter, any java process was running unpredictably. Tomcat would explode the WAR file once in a while and even if it did, it would just pause at "Deploying app.war" forever. After spending...

by Vivek Krishna
Tag: Linux
05-May-2011

Technology

byobu: screen sessions in Linux

This post is just to talk about Screen Sessions in Linux (esp. ubuntu) using command "byobu".   What is Byobu? Byobu is a Japanese term for decorative, multi-panel screens. As an open source project, Byobu is an elegant enhancement of plain GNU Screen.   Where can it be used? You SSH to some remote machine and Run some...

by Salil
Tag: Linux
13-Apr-2011

Grails

Mysql Dump multipurpose script.

Taking MYSQL dump is usual requirement in my project . And Since some of the tables in project are huge so often I have to take dumps of selected tables and often have to ignore some tables. since we had to do it frequently in our project so I created a script  which does following for me. Takes database dump Takes dump of...

by Hitesh Bhatia
Tag: Linux
12-Jan-2011

Technology

Linux Trick for screen collaboration or shell sharing

In recent week, i got to know about really good way of collaborating the screen in a linux.   Let us take a scenario, Suppose User having name 'B' on the 5th floor of the company is having a problem/difficulty related to code execution, unable to figure out what to do?, and then he call the fellow guy who can help him out, but he...

by Tarun Pareek
Tag: Linux
14-Nov-2010

Technology

Linux – Managing applications running on system start-up

Rcconf is a tool that we recently discovered. This tool allows you to manage your start-up applications easily. We found this tool when me and my colleague Aman were trying to identify the processes that we never use but they do eat up a lot of our system resources. We found this link very useful: ...

by Himanshu Seth
Tag: Linux
14-Jul-2010

Grails

Script for Running Grails Projects of Different Versions Simultaneously

Sometimes it is required that multiple Grails projects, hosted on a different Grails version, run simultaneously. In this case, while fixing bugs, you are required to run the application after switching the Grails version each time. To handle this scenario, I wrote a utility shell script "runGrails" to use a particular version of...

by Vivek Krishna
Tag: Linux
18-Jun-2010