Feb
10
2010

Ubuntu: Where to find Apache Error log?

Location where the Apache error log entries can be found in Ubuntu

user@server:~# less /var/log/apache2/error.log

  • Share/Save/Bookmark

Feb
05
2010

MySQL: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’

Reason why this error might occur:

i) Incomplete MySQL implementation
ii) MySQL setting mis-configuration

Solution:

root@myserver:/# vi /etc/mysql/my.cnf

Comment out the below line in my.cnf file to make MySQL listen on ALL interfaces
#bind-address = 127.0.0.1

root@myserver:/# netstat -tap | grep mysql
tcp 0 0 *:mysql *:* LISTEN 17785/mysqld

Note that above line which indicates MySQL listening on all interfaces.

  • Share/Save/Bookmark

Feb
03
2010

SSL Error: Revocation information for the security certificate for this site is not available.

SSL Error: Revocation information for the security certificate for this site is not available. Do you want to proceed?

Solutions:
i) Install the root CA under Trusted Certificate Authority or,
ii) Add an exception to the browser filter not to check certificate revocation or,
iii) Programatically handle the SSL stream when request is made from the server

  • Share/Save/Bookmark

Feb
01
2010

Choosing version control system (VCS): Git vs Subversion

Git

- Distributed repository system (adaptive work flow models)
- Source control taxonomy: DAG storage
- URI to git directory is where the repository is stored and it always has branches and tags
- Repository root folder contains a .git directory which maintains file history
- Scalability
- Faster, Efficient branching and merging
- License: Copyleft

Subversion (SVN)

- Centralized repository system
- Source control taxonomy: Delta storage
- URI to a subversion depository most commonly adopts /trunks, /branches and /tags directories
- Each folder maintains a .svn directory to store the file history
- Not efficient in scaling
- Not efficient in branching and merging
- License: Copyfree

  • Share/Save/Bookmark

Jan
20
2010

PDF Split and Merge (pdfsam)

PDF Split and Merge (pdfsam) - an elegant tool that establishes the tasks stated in the name of the product.

pdfsam is distributed under GPL license and requires Java Virtual Machine 1.4.2 or higher.

This tools helps you in splitting PDF documents into individual pages, merge many pages into a single document, extract odd/even pages and many other features in its basic version.

To learn more about this tool or to download a copy of it visit pdfsam.org

  • Share/Save/Bookmark

Jan
01
2010

CentOS Multimedia Flash MPlayer installation steps

One of the clean and easy installation steps can be found at http://www.sklav.com/?q=node/2

I have added this in the blog to help a newbie land in a page that is easy to follow. The steps cover

i) Adding rpmforge
ii) Adding adobe repo
iii) Installation command to install libraries, flash plugin and other streaming medias
iv) MPlayer codec installation

  • Share/Save/Bookmark

Dec
27
2009

Linux: Determining IP information for eth0… failed

When setting up a workstation to connect to internet, you may come across a message
Determining IP information for eth0… failed

The above error message basically means that eth0 i.e your network interface card is not setup correctly.

Some of the commands that can come handy in troubleshooting where the error lies are listed below

$ dmesg | grep eth0
(displays information about the ethernet controller card, mac address etc.)

$ cat /etc/sysconfig/network(displays the network settings)
NETWORKING=yes
HOSTNAME=localhost.localdomain
GATEWAY=192.168.122.1

$ cat /etc/sysconfig/network-scripts/ifcfp-eth0

$ ifconfig eth0 down (to down the nic)
$ ifconfig eth0 up (to start the nic)
$ netstat -rn (display kernel routing IP table)
$ cat ifcfg-eth0 (eth0 configuration settings)
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:16:18:33:B3:CF
ONBOOT=yes

$ service network restart (restart the network settings)

$ ping -c4 google.ca(to check if the internet connection works)

$ traceroute google.ca (to check how the IP navigation path is set)

Refer Red Hat linux 5 configure network article for additional info

  • Share/Save/Bookmark

Dec
06
2009

HTTP-Header: User-agent modification

When a browser makes a request to the server, it sends information such as its operating system name, version in addition to the type of the browser from which the request originates in the header variable “user-agent”.

Depending on the request made, server responds back with specific details which can range from browser specific css layout to calling certain javascriptsfor certain browsers.

Changing the user-agent also helps us in understanding how spider-agents or bots will see the pages that we build. It also helps us design applications that will mimic a request as originating from a mobile phone and helps us in viewing the behavior of the application in different mobile clients.

To read more about HTTP-Headers check ietf

  • Share/Save/Bookmark

Dec
05
2009

Virtual World: with VMWare Player

VMWare Player is a free software available from VMWare Inc. enabling the creation
of guest OS within an existing OS

Notes for a beginner …
* VMWare Player and VMWare Server are available for free
* A .vmdk file is the virtual hard drive for the guest OS
* A .nvram file stores the BIOS settings of the virtual machine
* A .vmx file stores the configuration settings for the virtual machine. All you
need is a text editor to edit the VMWare configuration settings.
* A .vmsd file stores information about VMWare snapshots.
(Read more…)

  • Share/Save/Bookmark

Dec
04
2009

LogMeIn, Hamachi: Create VPN in minutes

Managed or Unmanaged networks? Create a VPN in minutes with this software which is available FREE of cost for non-commercial use.

Setting up a Virtual Private Networks is as easy as clicking through the buttons. Check out this product at LogMeIn

  • Share/Save/Bookmark