<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Technology, Computer, Network and Games Cheat</title>
	<atom:link href="http://www.gamescheat.ca/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gamescheat.ca</link>
	<description>Day to day technical how to - by Andrew Lin</description>
	<lastBuildDate>Tue, 02 Mar 2010 17:22:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Changing the default boot device on a Sparc server</title>
		<link>http://www.gamescheat.ca/2010/03/changing-the-default-boot-device-on-a-sparc-server/</link>
		<comments>http://www.gamescheat.ca/2010/03/changing-the-default-boot-device-on-a-sparc-server/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 17:21:36 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Sparc]]></category>
		<category><![CDATA[SUN]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=799</guid>
		<description><![CDATA[You can display and change the default boot device on a SUN Sparc server from the eeprom console.
List the bootable devices with the devalias command,
ok devalias
cdrom                    /pci@0,600000/pci@0/pci@0/scsi@0/disk@4,0:f
net          [...]]]></description>
			<content:encoded><![CDATA[<p>You can display and change the default boot device on a SUN Sparc server from the eeprom console.</p>
<p>List the bootable devices with the devalias command,</p>
<blockquote><p>ok devalias<br />
cdrom                    /pci@0,600000/pci@0/pci@0/scsi@0/disk@4,0:f<br />
net                      /pci@0,600000/pci@0/pci@1/pci@0/network@4<br />
disk                     /pci@0,600000/pci@0/pci@0/scsi@0/disk@0<br />
name                     aliases
</p></blockquote>
<p>List the current boot device.</p>
<blockquote><p>ok printenv boot-device<br />
boot-device =           disk </p></blockquote>
<p>Change the boot device from disk to network.</p>
<blockquote><p>ok setenv boot-device net<br />
boot-device =           net
</p></blockquote>
<p>Verify the change.</p>
<blockquote><p>ok printenv boot-device<br />
boot-device =           net</p></blockquote>
<p>Save the change.</p>
<blockquote><p>ok reset-all </p></blockquote>
<p>After the server rests, boot from he device</p>
<blockquote><p>ok boot</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/03/changing-the-default-boot-device-on-a-sparc-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to list the status of swap in Solaris</title>
		<link>http://www.gamescheat.ca/2010/02/how-to-list-the-status-of-swap-in-solaris/</link>
		<comments>http://www.gamescheat.ca/2010/02/how-to-list-the-status-of-swap-in-solaris/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 10:00:36 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Aix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=796</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>List the status of all swap areas.</p>
<blockquote><p># swap -l<br />
swapfile             dev  swaplo blocks   free<br />
dev/dsk/c0t0d0s1   32,9      16 8425712 8425712</p></blockquote>
<p>The  output  has five columns:<br />
path<br />
The path name for the swap area.</p>
<p>dev<br />
The major/minor device number in decimal if it is a block special device; zeroes otherwise.</p>
<p>swaplo<br />
The swaplow value for the area in 512-byte blocks.</p>
<p>blocks<br />
The swaplen value for the area in 512-byte blocks.</p>
<p>free<br />
The number of 512-byte blocks in this area that are not currently allocated.</p>
<p>To find the status of total swap usage use the -s option.</p>
<blockquote><p># swap -s<br />
total: 180928k bytes allocated + 28456k reserved = 209384k used, 10691424k available     </p></blockquote>
<p>List the status of all the swap areas. The output has five columns:</p>
<p>path<br />
The path name for the swap area.</p>
<p>dev<br />
The major/minor device number in decimal if it is a block special device; zeroes otherwise.</p>
<p>swaplo<br />
The swaplow value for the area in 512-byte blocks.</p>
<p>blocks<br />
The swaplen value for the area in 512-byte blocks.</p>
<p>free<br />
The number of 512-byte blocks in this area that are not currently allocated.</p>
<p>The total amount of swap space in bytes currently allocated for use as backing store.</p>
<p>reserved<br />
The total amount of swap space in bytes not currently allocated, but claimed by memory mappings for possible future use.</p>
<p>used<br />
The total amount of swap space in bytes that is either allocated or reserved.</p>
<p>available<br />
The total swap space in bytes that is currently available for future reservation and allocation.</p>
<p>These   numbers include swap space from all configured swap areas as listed by the -l option, as well swap space in the form of physical memory.                                                                                                                                  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/02/how-to-list-the-status-of-swap-in-solaris/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to change the IP address in Solaris 10</title>
		<link>http://www.gamescheat.ca/2010/02/how-to-change-the-ip-address-in-solaris-10/</link>
		<comments>http://www.gamescheat.ca/2010/02/how-to-change-the-ip-address-in-solaris-10/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 16:17:02 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=794</guid>
		<description><![CDATA[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 one network interfaces.
vi /etc/hostname.bge0
10.0.0.10 netmask 255.255.255.0
Change the node name
vi /etc/nodename
server-name
Add the [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a list of files that you need to edit when changing the IP address of an interface in Solaris 10.<br />
/etc/hosts<br />
/etc/hostname.interface-name<br />
/etc/nodename<br />
/etc/defaultrouter<br />
/etc/resolv.conf<br />
/etc/netmasks</p>
<p>Add the ip address and server name to the host file.</p>
<blockquote><p>vi /etc/hosts<br />
10.0.0.10 server-name</p></blockquote>
<p>Select the interface you want, your server may have more than one network interfaces.</p>
<blockquote><p>vi /etc/hostname.bge0<br />
10.0.0.10 netmask 255.255.255.0</p></blockquote>
<p>Change the node name</p>
<blockquote><p>vi /etc/nodename<br />
server-name</p></blockquote>
<p>Add the gateway ip address</p>
<blockquote><p>vi /etc/defaultrouter<br />
10.0.0.1</p></blockquote>
<p>Add the DNS servers ip addresses</p>
<blockquote><p>vi /etc/resolv.conf<br />
nameserver 168.20.0.10<br />
nameserver 168.20.10.22</p></blockquote>
<p>Add the network address</p>
<blockquote><p>vi /etc/netmasks<br />
10.0.0.0 255.255.255.0</p></blockquote>
<p>Now reboot the server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/02/how-to-change-the-ip-address-in-solaris-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to configure Samba on Solaris 10</title>
		<link>http://www.gamescheat.ca/2010/02/how-to-configure-samba-on-solaris-10/</link>
		<comments>http://www.gamescheat.ca/2010/02/how-to-configure-samba-on-solaris-10/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 20:31:01 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=791</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to find the version of Samba installed on the Solaris 10 server use the command smbstatus.<br />
# /usr/sfw/bin/smbstatus                                  </p>
<p>Samba version 3.0.35<br />
PID     Username      Group         Machine<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
 1962   andrew          users         mypc        (162.10.21.100)   </p>
<p>Service      pid     machine       Connected at<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
IPC$         1962   mypc         Thu Feb 11 15:06:31 2010<br />
andrew     1962   mypc         Thu Feb 11 15:06:46 2010         </p>
<p>I needed to configure Samba installed on my Solaris 10 server and came across this great article that was posted on support.moonpoint.com/os/unix/solaris/samba-solaris10-docusp.php.  Below is a copy of the instructions.</p>
<blockquote><p>If you need to share files between a Windows and a Unix or Linux system, you can use Samba, which is free software that implements the same networking protocol that Microsoft Windows use to share files between systems. If you don&#8217;t already have it on your system, you can download it from Samba &#8211; opening windows to a wider world.<br />
If you have a Solaris 10 system, the Samba software is likely already on the system and you will likely just need to configure it. If you type ls /usr/sfw/bin/smb* and see smblicent, smbstatus, etc. then you already have it on the system. If not, try find / -name smbclient to look for it. </p>
<p>If you have an account already on the Solaris system from which you wish to share files or folders you can use it and can skip to Configuring Samba support for account. But supposing you wish to create a new account specifically for sharing files to a Windows system, then follow the steps below. This explanation was written specifically for sharing files from a Xerox DocuSP system, but is generally applicable to setting up Samba on any Sun Solaris 10 system. </p>
<p>Adding a New Account </p>
<p>While logged into the system from another account, right-click somewhere on the desktop and choose Hosts then Terminal Console. </p>
<p>Switch to the root account, if you aren&#8217;t already logged into that account with su &#8211; root.</p>
<p>Add a new user account with the useradd command.</p>
<p># useradd -u 40022 -g staff -c &#8220;DocuSP folder sharing&#8221; -m -s /usr/bin/bash docusp01</p>
<p>-u specifies the userid. It should be one not already used on the system. You can type cat /etc/passwd to see all of the accounts on the system. The UID value is the number after the second colon in each line.</p>
<p>-g specifies the group the account belongs to and can be staff, if you don&#8217;t have another group you wish to use.</p>
<p>-c allows you to put a comment in the entry.</p>
<p>-m specifies that a home directory be created for the new user. In this case it will be /export/home/docusp01. It is in the form base_dir/account_name where base_dir is the base directory for the new home directories and account_name is the name for the new account.</p>
<p>-s specifies the shell to use for the new account, which in this case the BASH shell, which is located in /usr/bin.</p>
<p>The final parameter on the line is the account name to create, i.e. docusp01 in this case. It will need to be 8 characters or less in length. </p>
<p>Set a password for the account.<br />
# passwd docusp01</p>
<p>If you need to later change any parameters for the account, you can use the usermod command. </p>
<p>Now that you have created the account you wish to use, you can configure Samba support for that account. </p>
<p>Configuring Samba support for account</p>
<p>You need to edit /etc/sfw/smb.conf (You may wish to create a backup copy first), e.g. cp -p /etc/sfw/smb.conf /etc/sfw/smb.conf.old. </p>
<p>Change the line workgroup = WORKGROUP to match whatever workgroup or domain you use for your Windows systems, e.g. workgroup = SOMECOMPANY. </p>
<p>You can also change server string to be whatever you wish. I changed it from the default of server string = XXP240250 to the following: </p>
<p>server string = Xerox DocuColor 250</p>
<p>Choose which systems should have access to shared folders on the Solaris system by adding a hosts allow line. There is one in the smb.conf file to show you how to configure this line, but it is commented out.</p>
<p># hosts allow = 192.168.1. 192.168.2.0./24 192.168.3.0/255.255.255.0 127.0.0.1</p>
<p>If my systems are on a 192.168.0.0/24 subnet, i.e. systems have an address of 192.168.0.x and use a subnet mask of 255.255.255.0, I could allow access from any system on the subnet by using 192.168.0.0/24 or 192.168.0. If I only want to allow access from two specific systems, say 192.168.0.25 and 192.168.0.36, plus the Solaris system itself for testing using the loopback address 127.0.0.1, I would add the following line:<br />
hosts allow = 192.168.0.25 192.168.0.36 127.0.0.1 </p>
<p>If you wish to set a maximum size for the log file that records information about Samba connections, find #max log size = 50, remove the comment character, # and change the number to whaterver you wish to use, e.g. 16384 for 16 MB. </p>
<p>I also uncommented the line that specifies where the log file is located, but changed the line from: </p>
<p>#log file = /usr/local/samba/var/log.%m</p>
<p>To the following line instead: </p>
<p>log file = /var/log/samba/log.%m</p>
<p>I also created a samba directory under /var/log to hold the Samba logs and then changed its protection so only root can view the logs. </p>
<p># mkdir /var/log/samba<br />
# chmod 700 /var/log/samba</p>
<p>At the end of the smb.conf file, you can add information about the folder you wish to share. In this case for the DocuSP system, I want to share the folder /var/spool/XRXnps/saved. I want to make it browseable from the Windows systems to which I am granting access, but I don&#8217;t want them to be able to add files or modify files in the directory. And I only want to grant acces to the new account, docusp01, that I created, so I added the following lines: </p>
<p># DocuSP folder shared read-only to Windows systems<br />
[DocuSP]<br />
   comment = DocuSP XRXnps saved<br />
   path = /var/spool/XRXnps/saved<br />
   valid users = docusp01<br />
   browseable = yes<br />
   public = yes<br />
   writable = no<br />
   printable = no</p>
<p>The valid users = docusp01 will limit access to only the docusp01 account I created. </p>
<p>I need to grant access to the /var/spool/XRXnps/saved directory. Xerox recommends granting read, write, execute access to everyone for this directory using the command below: </p>
<p># chmod 777 /var/spool/XRXnps/saved</p>
<p>I issued that command, though I am still restricting access through /etc/smb.conf. The default permission on the directory prior to issuing that command is shown below: </p>
<p># ls -ld /var/spool/XRXnps/saved<br />
drwxr-xr-x  43 root     other       2048 Mar 23 12:55 /var/spool/XRXnps/saved</p>
<p>When I checked while setting up the system, Samba appeared to be running, i.e., I saw smbd running and when I checkd the services on the system, I saw Samba listed: </p>
<p># ps -ef | grep smb | grep -v grep<br />
    root  1005     1   0   Mar 23 ?           0:00 /usr/sfw/sbin/smbd -D<br />
    root  1007  1005   0   Mar 23 ?           0:00 /usr/sfw/sbin/smbd -D<br />
# svcs | grep samba<br />
legacy_run     Mar_23   lrc:/etc/rc3_d/S90samba</p>
<p>So I stopped and restarted it. </p>
<p># /etc/init.d/samba stop<br />
# /etc/init.d/samba start</p>
<p>Once I did that, I saw the system appear as SIP-8 in the workgroup used by the company for whom I was setting it up, when I checked on what systems were in the workgroup. But you may not always see the system show up immediately. </p>
<p>C:\>net view /domain:frostinc<br />
Server Name            Remark</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
\\FROSTINC26           Cindy&#8217;s Dell Dimension 3000<br />
\\PCWORKSTATION        Gateway Profile 4<br />
\\SIP-8                Xerox DocuColor 250<br />
The command completed successfully.</p>
<p>But to allow access from a Windows PC using the account I created, I needed to set a Samba password for the docusp01 account I created on the Solaris system. You can use the smbpasswd command to create a Samba password for the account that can be used to access the shared folder from a Windows system. This can be the same as the one you use for logging into the account under Solaris, but doesn&#8217;t necessarily have to be the same as the password for the account.</p>
<p># /usr/sfw/bin/smbpasswd -a docusp01<br />
New SMB: password:</p>
<p>The -a specifies that you are adding a new account password rather than changing an existing one. When I first ran the command I received the error message shown below. </p>
<p># /usr/sfw/bin/smbpasswd docusp01<br />
New SMB password:</p>
<p>Retype new SMB password:</p>
<p>startsmbfilepwent_internal: file /opt/XRXnps/XRXsamba/private/smbpasswd did not exist. Couldn&#8217;t create new one. Error was: No such file or directoryUnable to open passdb database.<br />
Failed to find entry for user docusp01.<br />
Failed to modify password entry for user docusp01</p>
<p>In the /etc/sfw/smb.conf file, the lines below appeared: </p>
<p># You may wish to use password encryption. Please read<br />
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.<br />
# Do not enable this option unless you have read those documents<br />
encrypt passwords = yes</p>
<p>smb passwd file = /opt/XRXnps/XRXsamba/private/smbpasswd</p>
<p>Once I realized that the directory XRXsamba did not exist, I created it and the private subdirectory beneath it. </p>
<p># ls /opt/XRXnps/XRXsamba<br />
/opt/XRXnps/XRXsamba: No such file or directory<br />
# mkdir /opt/XRXnps/XRXsamba<br />
# mkdir /opt/XRXnps/XRXsamba/private</p>
<p>I was then able to use the smbpasswd command without the prior error occurring. </p>
<p># /usr/sfw/bin/smbpasswd -a docusp01<br />
New SMB password:</p>
<p>Retype new SMB password:</p>
<p>startsmbfilepwent_internal: file /opt/XRXnps/XRXsamba/private/smbpasswd did not<br />
exist. File successfully created.<br />
Added user docusp01.</p>
<p>And when I looked in the smbd.log file, I saw an entry indicating the encrypted password file had been created. </p>
<p># cat /var/log/samba/log.smbd<br />
[2007/03/25 22:27:58, 0] passdb/pdb_smbpasswd.c:(195)<br />
  startsmbfilepwent_internal: file /opt/XRXnps/XRXsamba/private/smbpasswd did not exist. File successfully created.</p>
<p>I was then able to access the shared folder from one of the Windows PCs to which I had granted access to the shared folder by listing its IP address in /etc/smb.conf. To access the shared folder on the Solaris system from the PC, I used the username of SIP-8\docusp01 and the password for that account. </p>
<p>C:\>net view \\sip-8<br />
Shared resources at \\sip-8</p>
<p>Xerox DocuColor 250</p>
<p>Share name  Type  Used as  Comment</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
DocuSP      Disk  (UNC)    DocuSP XRXnps saved<br />
The command completed successfully.</p>
<p>And from the Solaris system, I could issue the smbstatus command and see the access from the Windows PC. </p>
<p># /usr/sfw/bin/smbstatus<br />
creating lame upcase table<br />
creating lame lowcase table</p>
<p>Samba version 3.0.11<br />
PID     Username      Group         Machine<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
 8446   docusp01      staff         pcworkstation (192.168.0.26)</p>
<p>Service      pid     machine       Connected at<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
DocuSP        8446   pcworkstation  Sun Mar 25 22:43:58 2007</p>
<p>No locked files</p>
<p>And I saw entries appear in /var/log/samba/log.pcworkstation for the connection from the PC. </p>
<p>I could also issue the smbclient command from the Solaris system to view shared directories on the Windows PC. </p>
<p># /usr/sfw/bin/smbclient -L 192.168.0.25 -U Smith</p>
<p>For the smbclient command, the -L parameter specified the address of the PC and the -U parameter specified an account on that Windows PC, for which I received a password prompt </p>
<p>I also set up Samba on a second DocuSP system, SIP-3. When I created a shortcut on the Windows PC&#8217;s desktop, I had to specify the IP address of the Solaris DocuSP system instead of SIP-3, e.g. I had to use \\192.168.0.36\docusp as the location. When prompted for the userid and password, I entered \\SIP-3\docusp-1 as the username and the password for that account set up through smbpasswd on the Solaris system. It was accepted and I was able to access files on the DocuSP system through the shortcut. But the system wasn&#8217;t showing up when I entered the command net view /domain:somecompany.</p></blockquote>
<p>You can also manage Samba via the web console, the url for this interface is http://servername:901</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/02/how-to-configure-samba-on-solaris-10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Got my site added to DMOZ</title>
		<link>http://www.gamescheat.ca/2010/02/got-my-site-added-to-dmoz-2/</link>
		<comments>http://www.gamescheat.ca/2010/02/got-my-site-added-to-dmoz-2/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 14:03:22 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[DMOZ]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=788</guid>
		<description><![CDATA[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.  [...]]]></description>
			<content:encoded><![CDATA[<p>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 is listed in a category that has zero page rank, but fortunately it is better being listed than not.</p>
<p>Many SEOs suggest that the first thing you should do is to get your site listed in DMOZ to help boot your page rank.  There are just as many SEOs who claim that getting your site listed in DMOZ is worthless.  Strangely there are many sites listed in the DMOZ that should have never been approved.  There are broken links, links that redirect to different site, and sites that looks like crap.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/02/got-my-site-added-to-dmoz-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using grep/egrep to find out which file contains a word or string in Unix or Linux</title>
		<link>http://www.gamescheat.ca/2010/02/using-grepegrep-to-find-out-which-file-contains-a-word-or-string-in-unix-or-linux/</link>
		<comments>http://www.gamescheat.ca/2010/02/using-grepegrep-to-find-out-which-file-contains-a-word-or-string-in-unix-or-linux/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 15:04:00 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Aix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=783</guid>
		<description><![CDATA[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 grep will ignore upper/lower case [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to find out which file in a directory contains a specific word then the grep command is your friend.</p>
<p>Here is an example, if you wanted to find out which file in the directory /home contains the word groundhog.</p>
<blockquote><p>grep –i “groundhog” /home/*<br />
/home/shadow:Today is groundhog day</p></blockquote>
<p>The –i option means grep will ignore upper/lower case distinction during comparisons.<br />
The word to search for is enclosed in double quotes, “groundhog”.<br />
/home is the directory to search in and the * signifies all files.<br />
The file /home/shadow contains the word groundhog, the content of the line containing the word groundhog is displayed on screen.</p>
<p>But what if you wanted to search for a string of words. Grep only searches for a single word.  Egrep will search all files for a string of words.  Here is an excerpt from the man pages of Solaris 10.</p>
<p>The egrep (expression grep) utility  searches  files  for  a<br />
pattern of characters and prints all lines that contain that<br />
pattern. egrep uses full  regular  expressions  (expressions<br />
that   has   string   values  that  use  the  full  set  of<br />
alphanumeric and special characters) to match the  patterns.<br />
It  uses a fast deterministic algorithm that sometimes needs<br />
exponential space.                                           </p>
<p>Below is an example of egrep.</p>
<blockquote><p>egrep –i “Apple announces the release of the ipad” /home/*<br />
/home/obama: Today Apple announces the release of the ipad</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/02/using-grepegrep-to-find-out-which-file-contains-a-word-or-string-in-unix-or-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Success, failure of the tar command recorded with time and date stamp</title>
		<link>http://www.gamescheat.ca/2010/01/success-failure-of-the-tar-command-recorded-with-time-and-date-stamp/</link>
		<comments>http://www.gamescheat.ca/2010/01/success-failure-of-the-tar-command-recorded-with-time-and-date-stamp/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 18:46:29 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Aix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=776</guid>
		<description><![CDATA[I needed to determine the amount of time it would take to archive large amount of data on my unix server.  If I had infinite amount of free time I could sit in front of the screen with a stop watch.  But the better way is to create a script that would record [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to determine the amount of time it would take to archive large amount of data on my unix server.  If I had infinite amount of free time I could sit in front of the screen with a stop watch.  But the better way is to create a script that would record the start time, stop time, success and failures.  Below is the script I created in the bash shell.                                             </p>
<blockquote><p>#!/bin/sh<br />
# This script archive directories and create a log file with the time and date stamp.<br />
# Andrew Lin<br />
# www.GamesCheat.ca<br />
# 27 January, 2010</p>
<p>cd /backup/archive<br />
echo &#8220;Backup start: &#8221; > backup.log 2>&#038;1<br />
date >> backup.log 2>&#038;1</p>
<p>cd /export/home</p>
<p># tar cvf /backup/archive/backup.tar dir1 dir2 >> /backup/archive/backup.log 2>&#038;1                                             </p>
<p>tar cvf /backup/archive/backup.tar dir1 dir2 2>>/backup/archive/backup.log</p>
<p>echo &#8220;Backup Stop: &#8221; >> /backup/archive/backup.log 2>&#038;1<br />
date >> /backup/archive/backup.log 2>&#038;1</p></blockquote>
<p>#!/bin/sh<br />
This indicates that the script is written to be executed in the Bash shell.</p>
<p>The # sign indicates the line is a comment.</p>
<p>cd /backup/archive<br />
Change the path /backup/archive to where this script is located on your machine.</p>
<p>echo &#8220;Backup start: &#8221; > backup.log 2>&#038;1<br />
Create a file backup.log. The text Backup start: is inserted into this file.  The file will be created in the directory<br />
/backup/archive.</p>
<p>date >> backup.log 2>&#038;1<br />
The date will be appended into the file backup.log.  This is useful if you wanted to determine the time of execution of the  script.</p>
<p>cd /export/home<br />
Go to the directory /export/home.  This directory contains the files or directories you wish to backup.</p>
<p># tar cvf /backup/archive/backup.tar dir1 dir2 >> /backup/archive/backup.log 2>&#038;1<br />
This line is commented out with the # sign.  Uncomment this line if you want a detailed log of the tar command.  Success and  failure will be recorded in the log.  Depending on the amount of files being archived this log could become very long.</p>
<p>tar cvf /backup/archive/backup.tar dir1 dir2 2>>/backup/archive/backup.log<br />
This command will copy the directories dir1 and dir2.  The copies will be stored in /backup/archive/backup.tar.  Any error will be recorded in the file backup.log.  If you wanted  both error and success recorded then comment this line out and uncomment the line above it.</p>
<p>echo &#8220;Backup Stop: &#8221; >> /backup/archive/backup.log 2>&#038;1<br />
After the completion of the tar command, insert the line Backup Stop: into the file backup.log.</p>
<p>date >> /backup/archive/backup.log 2>&#038;1<br />
Insert the date and time into the file backup.log.  This is useful for determining the completion time/date of the script.</p>
<p>Save this file with the name of backup-script.  Make sure that you make the file executable, with the chmod command, e.g.<br />
chmod 777 backup-script.log</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/01/success-failure-of-the-tar-command-recorded-with-time-and-date-stamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to delete a file or directory with special characters using the inode in Unix or Linux</title>
		<link>http://www.gamescheat.ca/2010/01/how-to-delete-a-file-or-directory-with-special-characters-using-the-inode-in-unix-or-linux/</link>
		<comments>http://www.gamescheat.ca/2010/01/how-to-delete-a-file-or-directory-with-special-characters-using-the-inode-in-unix-or-linux/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 10:33:30 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Aix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=773</guid>
		<description><![CDATA[My fat fingers inadvertently created a directory on my unix server with special characters.  I could not access this directory nor could I delete it.  When I listed the directory using the command ls –b, I could see all the funny characters.
ls –b
scritps010/010/010/010
I tried every command I could think of, rmdir “scripts”, rmdir [...]]]></description>
			<content:encoded><![CDATA[<p>My fat fingers inadvertently created a directory on my unix server with special characters.  I could not access this directory nor could I delete it.  When I listed the directory using the command ls –b, I could see all the funny characters.</p>
<p>ls –b<br />
scritps010/010/010/010</p>
<p>I tried every command I could think of, rmdir “scripts”, rmdir “scripts010/010/010/010”.  The only way to remove this directory was to delete it using the inode number.</p>
<p>To determine the inode use the  -i option with the ls command.<br />
ls –i<br />
184538 scritps</p>
<p>Below is the command syntax to delete the directory.<br />
find . –inum 184538 –exec rmdir {} \;</p>
<p>If you wanted to delete a stubborn file then simply substitute rmdir with rm.<br />
find . –inum 184538 –exec rm {} \;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/01/how-to-delete-a-file-or-directory-with-special-characters-using-the-inode-in-unix-or-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cheat Codes for Warcraft III</title>
		<link>http://www.gamescheat.ca/2010/01/cheat-codes-for-warcraft-iii/</link>
		<comments>http://www.gamescheat.ca/2010/01/cheat-codes-for-warcraft-iii/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 18:16:34 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Games Cheat]]></category>
		<category><![CDATA[Game Cheats]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=769</guid>
		<description><![CDATA[Tired of getting slaughtered by the computer, use the cheat codes.  My favourite one is GreedIsGood (not case sensitive). To activate a code simply press the enter key, type in the code (and the option if avaiable), and hit enter again. You should then see the message &#8220;Cheat Enabled&#8221; in th lower left corner. [...]]]></description>
			<content:encoded><![CDATA[<p>Tired of getting slaughtered by the computer, use the cheat codes.  My favourite one is GreedIsGood (not case sensitive). To activate a code simply press the enter key, type in the code (and the option if avaiable), and hit enter again. You should then see the message &#8220;Cheat Enabled&#8221; in th lower left corner. To diable simply repeat the steps. The cheat codes only work in single-player missions and custom maps.</p>
<p>sharpandshiny &#8211; Upgrade Everything 1 Level<br />
WarpTen &#8211; expedite construction of buildings and units<br />
IocainePowder &#8211; Die real fast<br />
itvexesme  Cannot Win<br />
riseandshine &#8211; Automatic Daylight<br />
WhosYourDaddy &#8211; God mode (reminds me of Doom, I have not played that in a long time)<br />
KeyserSoze [amount] &#8211; Get gold without having to mine it<br />
LeafitToMe [amount] &#8211; Get lumber wihout having to do any work<br />
GreedIsGood [amount] &#8211; My favourite, I give myself plenty of resourzes<br />
PointBreak &#8211; No food limit<br />
ThereIsNoSpoon &#8211; infinite amount of Mana<br />
StrengthAndHonor &#8211; No defeat mode.<br />
Motherland [race] [level] &#8211; skip to whatever level you wish to<br />
SomebodySetUpUsTheBomb &#8211; Instant defeat, like Japenese soldiers committing sucide when close to defeat, during World War II<br />
AllYourBaseAreBelongToUs &#8211; Instant victory, what&#8217;s the point ? might as wll not play<br />
WhoIsJohnGalt &#8211; Research enabled<br />
SharpAndShiny &#8211; Research upgrades<br />
IseeDeadPeople &#8211; Remove fog of war, funny sense of humor<br />
Synergy &#8211; Disable tech tree requirements<br />
RiseAndShine &#8211; change time of day to dawn<br />
LightsOut &#8211; change time of day to dusk<br />
DaylightSavings [hour] &#8211; Reset the time to the hour specificed (without a number, this toggle the day/night cycle on/off)<br />
TheDudeAbides</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/01/cheat-codes-for-warcraft-iii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change the hostname in Solaris 10</title>
		<link>http://www.gamescheat.ca/2010/01/how-to-change-the-hostname-in-solaris-10/</link>
		<comments>http://www.gamescheat.ca/2010/01/how-to-change-the-hostname-in-solaris-10/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 10:56:54 +0000</pubDate>
		<dc:creator>Andrew Lin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.gamescheat.ca/?p=757</guid>
		<description><![CDATA[To change the hostname in Solaris 10 you need to edit 3 files and appply the new name.
/etc/nodename
/etc/hostname.*interface, e.g. hostname.bge0
/etc/inet/hosts this file is a hard link to /etc/inet/ipnodes.  You will need to make /etc/inet/ipnodes writable before editing it.  To enable write use the command chmod 744 /etc/inet/ipnodes.
Finally rename directory /var/crash, the system will [...]]]></description>
			<content:encoded><![CDATA[<p>To change the hostname in Solaris 10 you need to edit 3 files and appply the new name.<br />
/etc/nodename<br />
/etc/hostname.*interface, e.g. hostname.bge0</p>
<p>/etc/inet/hosts this file is a hard link to /etc/inet/ipnodes.  You will need to make /etc/inet/ipnodes writable before editing it.  To enable write use the command chmod 744 /etc/inet/ipnodes.</p>
<p>Finally rename directory /var/crash, the system will automatically recreate this after rebooting.<br />
# cd /var<br />
# mv crash crash.old </p>
<p>Now reboot the server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gamescheat.ca/2010/01/how-to-change-the-hostname-in-solaris-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
