Category : "Linux"

Check which mpm (multi processing module) apache is running

MPM (Multi processing module) is that 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 of the common mpms on Linux are : 1. Worker 2. Prefork 3. mpm-ITK 4. Peruser Each of the mpm has its own pros ...

Linux command to check distribution (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 all linux distros. So in this post we are listing out ...

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 <IfModule mpm_itk_module> AssignUserId your_username your_username </IfModule> </VirtualHost> Restart apache. Now apache should be running as that username specified ...

Check Ubuntu version from command line

Here is a simple command to get your Ubuntu version from terminal / commandline. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 11.10 Release: 11.10 Codename: oneiric or $ lsb_release -r Release: 11.10 or $ cat /etc/issue Ubuntu 11.10 n l or $ cat /etc/issue.net Ubuntu 11.10 Try ...

Monitor per process network bandwidth on linux with nethogs

Nethogs Nethogs is a command line utility for linux that displays the network bandwidth used by each application or process in realtime. It is useful in situations when a certain process uses up too much of the bandwidth and needs to be caught. Project website http://nethogs.sourceforge.net/ The website describes the tool as NetHogs is a small 'net top' tool. Instead of breaking the traffic down ...

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 a window and take screenshots. So ...

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 like Arial , Tahoma , Freesans etc. It will ...

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 type : desktop:~$ mplayer vcd:// MPlayer 1.0rc4-4.5.2 (C) 2000-2010 MPlayer Team mplayer: could not connect ...

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 somewhere. If that solves the problem , fine , otherwise continue. 2. Lets ...

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 /etc/fstab. It contains options for each drive ...



Connect with us