Today a developer friend requested to trouble php mcrypt extension on his newly ordered VPS. Most of the time VPS by default comes up with very basic packages. For example, to build and add mcrypt php extension to existing php installation. You would required gcc, make, libtool, libmcrypt, libmcrypt-devel and may other packages.
mcrypt php extension necessary configuration & compilation :
View current php version
PHP 5.3.3 (cli) (built: Jul 3 2012 16:53:21)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.0.14, Copyright (c) 2002-2011, by ionCube Ltd.
Apache 2.4.1 is the latest stable version available on Apache.org download section. Since it is the latest version so it may have plenty of dependencies issues. In my case, i am installing it from source(httpd-2.4.1.tar.bz2).
Currently i am logged in using SSH on Plain CentOS 6.2 server and it has very basic packages installed.
Downloading and compiling Apache 2.4.1
tar -jxf httpd-2.4.1.tar.bz2
./configure --prefix=/usr/local/apache --enable-so --enable-deflate --enable-expires --enable-headers --enable-rewrite
Today i extracted one archive which contained .bin and .cue files and i was unable to play them with VLC Media Player, after doing google found it is archive similar to .iso. I convert it to ISO using bchunk utility and mount it as loop back device and .
bchunk – Free utility use to convert .bin, .cue files to .iso
1. Install bchunk
On ubuntu/backtrack Linux;
aptitude install bchunk
On RHEL/CentOS Linux;
yum install bchunk
2. Convert .bin .cue to iso using bchunk
bchunk iron-lycp5etg.bin iron-lycp5etg.cue iron-lycp5etg.iso
TeamViewer 6 or 7.0.9300 beta version can be run as root easily on backtrack or any Linux distribution including Ubuntu / CentOS 6 / RedHat by modifying the wrapper file which is instructed to not execute Team Viewer products as root.
When you run Teamviewer7 from console, you will get this error;
Profile: /root (root)
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
Error: TeamViewer must not be executed as root!
Find is a Linux command use for searching a file or files in a directory hierarchy. It is help full to search for a file or directory based on name, size, type and access/modified time etc and as well as can execute command on results.
Basic Syntax for Find command :
find (name/size/type/access or modified date) ..argument ..argument
Search for file ending .conf
find /etc/ -name *.conf
Search for directories ending with *conf
find /etc/ -type d
dig – Domain Information Groper is a light weight Linux utility for querying DNS records. It is widely used to diagnose DNS servers, troubleshoot DNS servers, purge DNS Cache using external DNS server and dozen of great features it provides.
Here i am sharing quick cheat sheet of dig – DNS Lookup utility that every System/Network administrator should have print out at their desk.
In our examples, 188.8.131.52 is a Google Public DNS Server that can be use in
Why to use Google Public DNS ?
If you have a DNS record with high ttl e.g 3600 seconds, your local DNS server may not purge the old record from the cache. So better you use Google public DNS server to resolve it most recent update record.