Category Archives: Linux
How to Install Jailkit on Ubuntu/Debian
Install Quanta on Ubuntu 11.10
I upgraded my ubuntu few hours back from 11.04 to 11.10 ; it all went fine. After the upgrade I noticed that Quanta – my favorite php development tool had vanished. Doing few searches on google lead to the information that its now deprecated and not maintained in the repos anymore. So I got it… Read More »
Compile wxwebconnect on Ubuntu 11.04 64 bit
wxwebconnect is a control for wxwidgets that allows to embed a gecko browser in a wxwidgets application. So lets try to install it on Ubuntu 11.04 wxWidgets can be installed from synaptic. Look for packages called libwxgtk2.8-* 1. Download wxwebconnect source from http://www.kirix.com/labs/wxwebconnect/downloads.html Extract them in home directory. Inside the webconnect directory you would see… Read More »
Traceroute command not working on Ubuntu
The traceroute utility can be installed from synaptic : $ sudo apt-get install traceroute Some Information : $ traceroute -V Modern traceroute for Linux, version 2.0.15, Oct 17 2010 Copyright (c) 2008 Dmitry Butskoy, License: GPL v2 or any later Doing some test runs $ traceroute www.google.com traceroute to www.google.com (74.125.235.20), 30 hops max, 60… Read More »
How to Check which MPM (Multi Processing Module) Apache is Running
MPM (Multi processing module) is a component of apache server, that determines how multiple clients or connections shall be handled. Apache is flexible by design and there are different mpms that can be used with apache depending on the needs. Some MPMs create a separate process to handle each request, whereas some create separate threads…. Read More »
5 Linux Commands to Check Distro Name and Version
Linux distro name and version When working with an unknown server, the first task of a sys admin is to gather some information about the system, like what OS is it running, what version, what services are running and so on. And there is no single command that can detect distribution specific information consistently across… Read More »
Run Apache as a specific user with mpm itk on Ubuntu Linux
Install mpm itk On ubuntu mpm itk can be installed from synaptic. Look for the package called apache2-mpm-itk sudo apt-get install apache2-mpm-itk Configure Configuration for mpm itk can be done in the file sites-enabled/000-default $ gksudo gedit /etc/apache2/sites-enabled/000-default In the VirtualHost *:80 section add this just before the end of the VirtualHost tag [xml] <IfModule… Read More »
How to Install Suphp with Apache on Ubuntu / Linux
Suphp Suphp php handler is an apache module (mod_suphp) that runs php scripts with ownership and permission of a specific user. This is seen as a security enhancement since the system can keep track of which user’s php script is running (and causing problems if any). In shared hosting environments suphp is very popular since… Read More »
Monitor per process network bandwidth on linux with nethogs
Take webpage screenshot from command line in Ubuntu Linux
There are many instances when you want to take the screenshot of a webpage from within a php script or the command line. On ubuntu there are several ways to do it and most of them produce a webkit , gecko or khtml rendered screenshot image. Some of the methods require X session to open… Read More »
Install vnc server and client on Ubuntu
VNC stands for Virtual Network Computing or in simple terms its ‘Remote Desktop’. It allows a system to access the desktop of another system. Now lets see how vnc can be done on ubuntu. Install Packages $ sudo apt-get install vnc4server xvnc4viewer 1. vnc4server – This is the vnc server application. It is run on… Read More »
Top Port Scanners on Ubuntu Linux
Here is a list of port scanners that work on Ubuntu/Linux. 1. Angry IP Scanner Download and Install from http://www.angryip.org/ Fast and easy to use network scanner and port scanner. To scan ports got to Tools > Preferences > Ports > Port Selection Enter the ports you want to scan Start the scan. 4. Nmap… Read More »
Get smooth and beautiful fonts on Ubuntu
To get beautiful and smooth fonts on Ubuntu : 1. Install ttf-mscorefonts-installer from synaptic This will provide the fonts like microsoft arial , tahoma , verdana , courier etc. 2. Get the xml file by Obi Bok from https://wiki.ubuntu.com/Fonts The above xml file provides special finetuned settings for antialiasing and hinting parameters for various fonts… Read More »
Play VCD on Ubuntu
If Totem , the default movie player does not play vcds properly , showing file permission errors , then try : 1. SMPlayer Install from synaptic : sudo apt-get install smplayer 2. mplayer Install from synaptic : sudo apt-get install mplayer 3. KPlayer Install from synaptic : sudo apt-get install kplayer To play from terminal… Read More »
Display hindi unicode fonts on Google Chrome on Ubuntu Linux
Google Chrome has problem displaying hindi/unicode and other Indian language fonts. For example bold hindi fonts might be displayed as square boxes. http://code.google.com/p/chromium/issues/detail?id=32109 http://code.google.com/p/chromium/issues/detail?id=21320 It is some kind of font selection bug. Lets try fixing it. 1. You may want to install the packages ttf-devanagari-fonts and ttf-indic-fonts. Also get that mangal.ttf thing from windows or… Read More »
Convert vcd dat file to mpeg on ubuntu
VCDs that are played on vcd players often contain the video in dat format. The dat format is internally mpeg only but has some additional header information attached. So the mpeg portion has to be ripped off to get the mpeg format. Once converted to mpeg format, it can be processed inside any video editor…. Read More »
Ubuntu – automatically mount partition at startup with fstab
Auto mount partitions On linux the hard drive partitions are generally not mounted at boot. Clicking on the drive icon inside a file manager like nautilus or dolphin mounts them first and then shows the files. But it is possible to get the drives mounted right at boot. The configuration file in this case is… Read More »
How to Fix .htaccess “php_flag not allowed here” Error
The php_flag directive can be used to set options that are specific to the php interpreter, directly from the .htaccess file. It is a good way to setup parameters across entire site, without having to repeat them in each php script or code. The following code, turns off the register globals setting in php. <IfModule… Read More »
Install Ruby 1.9.2 on Ubuntu
As you all know Ruby is one of the most popular programming language on the web. It is recommended to install ruby 1.9.2 instead of 1.8.x I tried to install ruby from the package manager on Ubuntu, but ruby 1.9.2 is not there in the repo. So, I am going to show you how to… Read More »