Troubleshout Open file limit
Posted on December 11, 2015
| 1 minutes
| 120 words
| Pandurang Patil
Show no of open files sorted by PID - lsof | awk '{ print $2; }' | uniq -c | sort -rn | head Check individual file limits of a process - cat /proc/<PID>/limits to obtain a precise count of the open files at given instant of time - ls /proc/<PID>/fd | wc -l This will list all open files with given process - lsof -p <PID> In some cases you might have to look at the open file limit of the process which started your process.
[Read More]Setup virtualbox on Ubuntu Server 64 Bit
Posted on July 12, 2014
| 1 minutes
| 156 words
| Pandurang Patil
Setup virtual box on ubuntu server 64bit and use phpvirtualbox to access webui of VirtualBox to manage the instances on virtualbox.
Ubuntu Server 64bit VirtualBox4.3. phpvirtualbox Running VirtualBox and phpvirtualbox on the same machine.
I mostly followed this blog http://santi-bassett.blogspot.in/2013/01/installing-virtualbox-on-ubuntu-server.html.
Except few changes.
When I installed virtual box I installed latest version 4.3.* location of phpvirtualbox has been changed to sourceforge.net http://sourceforge.net/projects/phpvirtualbox/files/ and used phpvirtualbox 4.3.1 version. However even after following all the steps right I got following error
[Read More]Eclipse getting crashed randomly on ubuntu
Posted on April 29, 2014
| 1 minutes
| 102 words
| Pandurang Patil
If your eclipse is getting crashed randomly and that too frequently look at the crash reported. This crash report will be placed in the directory from where you start the eclipse and search for /usr/lib/x86\_64-linux-gnu/gtk-2.0/modules/liboverlay-scrollbar.so. If find this string then this issues of overlay scrollbar library. This will be solved once you remove that library. Sometimes, you will not find crash report generated, even in that case it is most probably the issue of overlay scrollbar.
[Read More]Run eclipse on remote ubuntu 13.10 server using x11
Posted on March 29, 2014
| 1 minutes
| 106 words
| Pandurang Patil
To run eclipse from on remote ubuntu 13.10 server using x11 on local machine.
Prerequisites: I am assuming JDK and Eclipse is already installed.
In addition to that you need to install few libraries on remote server. Run the following command to install those libraries on remote server.
$ sudo apt-get install libgtk2.0-0:i386 libxxf86vm1:i386 libsm6:i386 lib32stdc++6 libxtst6 Once above libraries are install open another terminal and connect remote server through ssh with -X option
[Read More]UBUNTU 13.4 LD_LIBRARY_PATH is not set from /etc/environment
Posted on March 28, 2014
| 1 minutes
| 84 words
| Pandurang Patil
For some reason LD_LIBRARY_PATH value is not getting set through /etc/environment. All other variables are getting initialized properly when it is been set through /etc/environment. After searching for the solution I came to know after UBUNTU 9.04 release you are not able to set LD_LIBRARY_PATH from $HOME/.profile, /etc/profile, nor /etc/environment refer documentation
Run following command and restart the machine to workaround the issue.
echo STARTUP=\"/usr/bin/env LD_LIBRARY_PATH=\${LD_LIBRARY_PATH} \${STARTUP}\" | sudo tee /etc/X11/Xsession.
[Read More]Install ZeroMQ on ubuntu with Java Binding
Posted on March 27, 2014
| 1 minutes
| 195 words
| Pandurang Patil
First install all required tools to build zeromq library
sudo apt-get install libtool autoconf automake uuid-dev build-essential pkg-config Once you have required tools install download zeromq source code and make a build
#Download latest zermoq source code http://zeromq.org/area:download #I tried it with zeromq-3.2.4.tar.gz (http://download.zeromq.org/zeromq-3.2.4.tar.gz) $ zeromq-3.2.4.tar.gz $ tar -zxvf zeromq-3.2.4.tar.gz $ cd zeromq-3.2.4 $ ./configure $ make $ sudo make install $ cd ../ This will install zeromq libraries at location /usr/local/lib you may like to set this path with LD_LIBRARY_PATH so that the libraries will be used at the time of execution.
[Read More]Check Cron executed or not.
Posted on March 10, 2014
| 2 minutes
| 221 words
| Pandurang Patil
Many a times it happens we schedule some cron job to get executed, we do check as well whether command gets executed properly or not. And even though we tried the command your cron fail to execute. There are two possibilities either cron is not configured properly or some how command is failed. Now in this case how do we check if cron is getting executed or not. Does it gets logged some where when is last cron executed?
[Read More]Setup firewall with UFW on ubuntu
Posted on March 9, 2014
| 3 minutes
| 477 words
| Pandurang Patil
It is very easy to setup firewall using UFW on ubuntu server. First you need to check if you have UFW installed on your machine. If it is installed you can check the status of the same using
$ sudo ufw status Status: inactive In case it is installed but not enabled. If it is not installed then it will throw command not found error. If it is active then it will show out put similar like below output.
[Read More]Set environment variable which is inherited inside eclipse workspace
Posted on February 12, 2014
| 1 minutes
| 115 words
| Pandurang Patil
Ubuntu : Set required environment variable inside /etc/environment and restart the machine. This will set environment variable which can be inherited inside eclipse workspace. Above method will set the environment variable for all the users. To set environment variable for individual user set the required variable inside <user home>/.profile file. While doing so please make sure you use export keyword before variable. Alterante option to use .bashrc to set those environment variable, here as well you need to prefix export keyword.
[Read More]