Archive for February, 2010

How to list the status of swap in Solaris

February 26, 2010
By

List the status of all swap areas. # swap -l swapfile dev swaplo blocks free dev/dsk/c0t0d0s1 32,9 16 8425712 8425712 The output has five columns: path The path name for the swap area. dev The major/minor device number in decimal if it is a block special device; zeroes otherwise. swaplo The swaplow value for...
Read more »

Tags: , , ,
Posted in Software | 1 Comment »

How to change the IP address in Solaris 10

February 25, 2010
By

Here is a list of files that you need to edit when changing the IP address of an interface in Solaris 10. /etc/hosts /etc/hostname.interface-name /etc/nodename /etc/defaultrouter /etc/resolv.conf /etc/netmasks Add the ip address and server name to the host file. vi /etc/hosts 10.0.0.10 server-name Select the interface you want, your server may have more than...
Read more »

Tags: ,
Posted in Software | No Comments »

How to configure Samba on Solaris 10

February 11, 2010
By

If you need to find the version of Samba installed on the Solaris 10 server use the command smbstatus. # /usr/sfw/bin/smbstatus Samba version 3.0.35 PID Username Group Machine ——————————————————————- 1962 andrew users mypc (162.10.21.100) Service pid machine Connected at ——————————————————- IPC$ 1962 mypc Thu Feb 11 15:06:31 2010 andrew 1962 mypc Thu Feb 11...
Read more »

Tags: ,
Posted in Software | 1 Comment »

Got my site added to DMOZ

February 3, 2010
By

Yahoo, it only took four to five tries over a span of four years to get Games Cheat successfully added to DMOZ. I last submitted my site to DMOZ about 5 months ago and forgot about it. I was pleasantly shocked when I was able to find Games Cheat listed on DMOZ. Unfortunately it...
Read more »

Tags: ,
Posted in Technology | 2 Comments »

Using grep/egrep to find out which file contains a word or string in Unix or Linux

February 2, 2010
By

If you need to find out which file in a directory contains a specific word then the grep command is your friend. Here is an example, if you wanted to find out which file in the directory /home contains the word groundhog. grep –i “groundhog” /home/* /home/shadow:Today is groundhog day The –i option means...
Read more »

Tags: , , ,
Posted in Software | 4 Comments »