Setting Static IP of NAT network interface in VirtualBox

Posted by admin on Feb 9, 2012 in Unix

In NAT mode, the guest network interface is assigned to the IPv4 range 10.0.x.0/24 by default where x corresponds to the instance of the NAT interface +2. So x is 2 when there is only one NAT instance active. In that case the guest is assigned to the address, the gateway is set to […]


Reset MySQL root password

Posted by admin on Jul 7, 2011 in Database, Unix

First things first. Log in as root and stop the mysql daemon. Now lets start up the mysql daemon and skip the grant tables which store the passwords. mysqld_safe –skip-grant-tables You should see mysqld start up successfully. If not, well you have bigger issues. Now you should be able to connect to mysql without a […]


Add a user to a group in linux

Posted by admin on May 9, 2011 in Unix

Simple things I always forget Add a user useradd -p howardb howardb Add a user to the wheel group gpasswd -a howardb wheel Edit sudoers visudo


Ampersand in SOAP body

Posted by admin on Feb 17, 2011 in perl, Unix

Broadworks OCI interface uses SOAP as its transport. In the past, I’m sure I replaced ampersands in the request body with the html equivalent & just using the encode function. $req = HTML::Entities::encode($xmlrequest); This has stopped working and hangs the request. I have found a work around using $req = HTML::Entities::encode($xmlrequest); $req =~ s/&/&/g;


Read a file backwards in linux – the elegant way

Posted by admin on Feb 3, 2011 in Unix

Sometimes you may need to read a file such as a log file backwards to see the most recent events first. This can be easily done using tac – cat backwards e.g. tac soapserver.log


How much memory has a Solaris box got ?

Posted by admin on Aug 27, 2010 in Unix

To find out how much physical memory is installed in a Solaris server, use the query… # /usr/sbin/prtconf | grep “Memory size”


udev: renamed network interface eth0 to eth1

Posted by admin on May 25, 2010 in Unix

After copying a colinux directory from one server to another and trying to start it. It decided to rename all the interfaces. The solution lies in deleting the entries from the file /etc/udev/rules.d/70-persistent-net.rules



Posted by admin on May 12, 2010 in Database, Unix

Balance (http://www.inlab.de/balance.html) is a useful tool to route TCP to another server. Consider a server A that can not get to server C directly due to firewall rules but can get to Server B. Server B will act as a proxy. If I am routing oracle commands on port 1521, I would start it up […]


Compiling PHP on Centos

Posted by admin on Nov 30, 2009 in Database, Unix

The precompiled PHP binary does not include MySQL support so it must be recompiled from source. Download the PHP package and untar it Download the httpd headers yum install httpd-devel Configure ./configure –with-mysql=/usr/bin/ –with-libdir=lib64 –with-apxs2 –with-pic –without-aolserver make make test make install edit http.conf LoadModule php5_module /usr/lib64/httpd/modules/libphp5.so AddType application/x-httpd-php .php Alias /php/ “/var/www/html/php/htdocs/” <Directory “/var/www/html/php/htdocs/”> […]


Adding Raize font in Linux

Posted by admin on Nov 23, 2009 in Unix

Raize is a great font for programming because it is clean and clear. Download it here http://www.raize.com/devtools/tools/raize_font_linux-1.0.tar.gz or here http://www.raize.com/devtools/tools/rzfont.asp and install as follows Step 1 Untar to ~./fonts or /usr/share/fonts Step 2 You need to remove the “no-bitmap” link and replace it with the “yes-bitmap” one # rm /etc/fonts/conf.d/70-no-bitmaps.conf # ln -s /etc/fonts/conf.avail/70-yes-bitmaps.conf /etc/fonts/conf.d/ […]


Copyright © 2008-2018 Brinsmead Data Services All rights reserved.