0

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”

 
0

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

 
0

Balance

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 [...]

 
0

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/”> [...]

 
0

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/ [...]

Tags:

 
0

ssh without login

Posted by admin on Jun 7, 2009 in Unix

1) Generate private/public key into .ssh ssh-keygen -t dsa 2) copy public key to destn cat .ssh/id_dsa.pub | ssh <destn> “umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys”

 
0

ssh port fowarding for Toad or MySQL client

Posted by admin on Jun 7, 2009 in Database, Unix

10.1.16.8 is MySQL server 10.1.5.234 is an intermediate host Setup a tunnel bash-3.2$ ssh  -L3306:10.1.16.8:3306 howardb@10.1.5.234 Connect Toad to localhost instead of 10.1.16.8 using port 3306 and connection is made. Intermediate host has “AllowTcpForwarding yes” in /etc/ssh/sshd_config Restart server after modifying sshd_config

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