Author Archives: admin

Killing child process in shell script

Killing child process in shell script: Many time we need to kill child process which are hanged or block for some reason. eg. FTP connection issue. There are two approaches, 1) To create separate new parent for each child which … Continue reading

Posted in Shell Script | Tagged | Leave a comment

Setup solr using zookeeper ensemble on ubnutu

Setup Oracle Java: Follow quick step given below to setup java latest version on your system, java -version tar -zxvf jdk-8u45-linux-x64.tar.gz sudo mkdir -p /usr/lib/jvm/jdk1.8.0_45 sudo mv jdk1.8.0_45/* /usr/lib/jvm/jdk1.8.0_45/ sudo update-alternatives –install “/usr/bin/java” “java” “/usr/lib/jvm/jdk1.8.0_45/bin/java” 1 sudo update-alternatives –install “/usr/bin/javac” … Continue reading

Posted in Java, Solr, Uncategorized, Zookeeper | Tagged , , | Leave a comment

Setup ZooKeeper Ensemble on Ubuntu

Setup ZooKeeper Ensemble on Ubuntu: Download Apache ZooKeeper: The first step in setting up Apache ZooKeeper is, of course, to download the software. It’s available from http://zookeeper.apache.org/releases.html. #wget http://mirror.symnds.com/software/Apache/zookeeper/stable/zookeeper-3.4.6.tar.gz #tar -xvf zookeeper-3.4.6.tar.gz Configure the instance: Lets create one in conf/zoo1.cfg: … Continue reading

Posted in Zookeeper | Tagged | Leave a comment

How to install tor in ubuntu

How to install tor in ubuntu: What is Tor? Tor is free software and an open network that helps you defend against traffic analysis, a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, … Continue reading

Posted in Tor | Tagged | Leave a comment

Setup zabbix on ubuntu

Setup zabbix on ubuntu: Zabbix is the ultimate open source enterprise-level software designed for monitoring availability and performance of IT infrastructure components. For more details visit following links, www.zabbix.com www.zabbix.org Install Zabbix: # wget http://repo.zabbix.com/zabbix/2.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.2-1+precise_all.deb # sudo dpkg -i zabbix-release_2.2-1+precise_all.deb … Continue reading

Posted in Uncategorized, Zabbix | Tagged | Leave a comment

Setup vagrant on ubuntu

Setup vagrant on ubuntu: Vagrant provides easy to configure, reproducible, and portable work environments built on top of industry-standard technology and controlled by a single consistent workflow to help maximize the productivity and flexibility of you and your team. To … Continue reading

Posted in Virtualization | Tagged , | Leave a comment

Ubuntu fix Shellshock bug

Ubuntu fix Shellshock Bug : Test if your system is vulnerable, $ env X=”() { :;}; echo shellshock” `which bash` -c “echo completed” shellshock completed If you got “shellshock” in output then it is vulnerable. Bash has functions, though in … Continue reading

Posted in Uncategorized | Leave a comment

PHP multiprocessing using fork

PHP multiprocessing using fork: Process Control support in PHP implements the Unix style of process creation, program execution, signal handling and process termination. Find more details at PHP fork The pcntl_fork() function creates a child process that differs from the … Continue reading

Posted in Php | Leave a comment

Git branching model

Git branching model : Following model can be used for feature and fixes. Consideration: Servers: – Local Server – Remote Server – Production Server Branches: – Release branch : “release” – Development branch : “master” – Feature branch : “feature” … Continue reading

Posted in Revision control | Tagged | Leave a comment

Reset mysql root password

Reset mysql root password : If you set a root password previously, but have forgotten it, you can set a new password. The following sections provide instructions for Unix systems 1) Stop Mysql server. #sudo /etc/init.d/mysql stop OR #sudo kill … Continue reading

Posted in Mysql | Tagged | Leave a comment