Random Notes...

Miscellaneous

SA8300HD DVR - Additional Recording Space
Used a NexStar 3 External SATA Hard Drive Enclosure from Vantec and put in a WD 500GB 7200 RPM drive. I think the SA box has a 125GB drive because it went from 97% filled to 21% with the addition of the 500GB drive. The sata cable that comes with the NexStar works fine. First unplug the power to the cable box, connect the esata drive, then power up the esata drive. Plug the cable box back in and let it reboot. Once it's rebooted (time appears again), turn it on. It should display a message asking if you want to format the drive. Click yes (takes only a few seconds). Once this is done, reboot the cable box again.
How to fix the MBR
fdisk /mbr
Recursive grep
find . -type f -print | xargs grep [PATTERN]
Removing a file by inode
	  find . -inum 12345 -ok mv '{}' new-file-name \;
	  < mv ... ./new-file-name >?  y
	  
	  Now we can
	  rm new-file-name
	  
	  Or to remove a file named *pl
	  rm ./\*pl
	
Manual http get
	  telnet 1.1.1.1 8880
	  GET /index.html HTTP/1.0
	  
	  HEAD / HTTP/1.0
	
http redirect
	  <html>
	  <head>
	  <title>Title of Page</title>
	  <meta http-equiv="refresh" content="5; url=http://url" />
	  </head>
	  You should be redirected to <a href="http://url">site</a>
	  </html>
	
Sendmail hangs on Redhat 9
Need to use FQDN in these files:
	    
	  /etc/hosts 
	  /etc/sysconfig/network
	
Redhat on Compaq Presario 5150
The biggest problem was getting the second ethernet configured. Had to manually create the /etc/sysconfig/network-scripts/ifcfg-eth1 file along with modifying the /etc/modules.conf file:
	  alias eth1 ne
	  options ne io=0x240
	
© 2003-2011 Michael F. Hutt. All Rights Reserved.