<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2881175338349528924</id><updated>2011-12-24T04:12:35.760-08:00</updated><category term='Yottabyte'/><category term='tools'/><category term='dd'/><category term='mdstat'/><category term='pf'/><category term='lvm'/><category term='sed'/><category term='session manager'/><category term='rhel'/><category term='plagurism'/><category term='redhat'/><category term='batch file programming'/><category term='awk'/><category term='configuration'/><category term='darwin ports'/><category term='mdadm'/><category term='freebsd'/><category term='deep water swell'/><category term='solaris'/><category term='browser hardening'/><category term='patch'/><category term='pki'/><category term='network access control'/><category term='ntfs'/><category term='span'/><category term='veritas file system'/><category term='puppet'/><category term='squid'/><category term='cybercrime'/><category term='citrix'/><category term='Snort'/><category term='power'/><category term='large'/><category term='HA pair'/><category term='network'/><category term='ubuntu'/><category term='blogging'/><category term='baktun'/><category term='prevent'/><category term='google'/><category term='DOD 5520'/><category term='virtualization'/><category term='etherchannel'/><category term='selinux'/><category term='authenication'/><category term='ani data'/><category term='cryptography'/><category term='goodluckwiththat'/><category term='IDS'/><category term='esxi'/><category term='NTP'/><category term='macosx'/><category term='web servers'/><category term='perl'/><category term='iso'/><category term='ports'/><category term='vmware ace'/><category term='tty'/><category term='port-forward'/><category term='incident handling'/><category term='tor'/><category term='grammar'/><category term='Petabyte'/><category term='ios'/><category term='native vlan'/><category term='iphone hacking'/><category term='ca'/><category term='system hardening'/><category term='latin'/><category term='physics'/><category term='firewall'/><category term='ifconfig'/><category term='screen'/><category term='ethtool'/><category term='vrts'/><category term='backdoor'/><category term='english'/><category term='SMTP Codes'/><category term='deployment'/><category term='system engineering'/><category term='migration'/><category term='ssh'/><category term='version'/><category term='ddos'/><category term='firefox hardening'/><category term='botnet'/><category term='vmware workstation'/><category term='regex'/><category term='inode'/><category term='vmware converter'/><category term='blackberry'/><category term='google earth'/><category term='unix'/><category term='bookmark'/><category term='snmpv3'/><category term='server'/><category term='samba'/><category term='esx'/><category term='storage foundation'/><category term='network tap'/><category term='DNS'/><category term='installation'/><category term='documentation'/><category term='loopback'/><category term='ServerTech'/><category term='pecl'/><category term='mssql sa password'/><category term='Terabyte'/><category term='firefox'/><category term='cisco'/><category term='encryption'/><category term='yum'/><category term='mqueue'/><category term='rack'/><category term='CERN'/><category term='security options'/><category term='IP'/><category term='performance'/><category term='backup'/><category term='lame'/><category term='openbsd'/><category term='gdm'/><category term='shell scripting'/><category term='mysql'/><category term='security'/><category term='vmware'/><category term='CentOS'/><category term='health check'/><category term='barnyard'/><category term='LHC'/><category term='package manager'/><category term='caller id'/><category term='extend'/><category term='content filtering'/><category term='bash'/><category term='sendmail'/><category term='rootkit'/><category term='unix time'/><category term='loop-aes-utils'/><category term='oracle'/><category term='nfdump'/><category term='mailq'/><category term='slowloris'/><category term='passmark'/><category term='iscsi'/><category term='operations'/><category term='snmp'/><category term='redundancy'/><category term='requirements'/><category term='cert'/><category term='Zettabyte'/><category term='trunking'/><category term='setup'/><category term='system administrator'/><category term='zfs'/><category term='javascript'/><category term='fuse'/><category term='i.e. vs. e.g.'/><category term='geology'/><category term='converter'/><category term='netscaler'/><category term='AJAX'/><category term='mirror'/><category term='postfix'/><category term='offsite'/><category term='rpm'/><category term='gnome'/><category term='vmware player as a service'/><category term='find'/><category term='script'/><category term='windows'/><category term='otp'/><category term='carp'/><category term='file'/><category term='dshield'/><category term='pxe'/><category term='linux'/><category term='apache'/><category term='gnupg'/><category term='attack signature'/><category term='negation'/><category term='php'/><category term='mount'/><category term='bsd'/><category term='chaining'/><category term='nagios'/><category term='Exabyte'/><category term='monitoring'/><category term='skey'/><category term='website'/><category term='route'/><category term='policies'/><category term='sniff'/><category term='Web 2.0'/><category term='northern california'/><category term='bold'/><category term='esxupdate'/><category term='history'/><category term='microsoft'/><category term='opensolaris'/><category term='netflow'/><category term='netcat'/><category term='mail queue'/><category term='system administration'/><title type='text'>random sub rosa</title><subtitle type='html'>random work-related stuff that's useful to me...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default?start-index=101&amp;max-results=100'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>163</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-2887659412295080174</id><published>2011-12-24T04:12:00.001-08:00</published><updated>2011-12-24T04:12:35.787-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='openbsd'/><title type='text'>Set up bind (caching-nameserver) on OpenBSD 4.9</title><content type='html'>&lt;a href="http://www.nohair.net/news/2011/set-up-dns-on-openbsd-4-9/"&gt;http://www.nohair.net/news/2011/set-up-dns-on-openbsd-4-9/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-2887659412295080174?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/2887659412295080174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=2887659412295080174' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2887659412295080174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2887659412295080174'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/12/set-up-bind-caching-nameserver-on.html' title='Set up bind (caching-nameserver) on OpenBSD 4.9'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-466377081489565326</id><published>2011-10-28T22:44:00.000-07:00</published><updated>2011-10-28T22:44:29.285-07:00</updated><title type='text'>ruby installation with rvm on Ubuntu 10.04.3 LTS</title><content type='html'>:~# PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/rvm/bin"&lt;br /&gt;:~# apt-get install git-core curl build-essential openssl libssl-dev libyaml-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev&lt;br /&gt;:~# bash &amp;lt; &amp;lt;(curl -s &lt;a href="https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer"&gt;https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;#something was broken here during package management above, not sure...&lt;br /&gt;echo "export PATH=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/rvm/bin\"" &amp;gt; &amp;gt;&amp;gt; ./.bashrc&lt;br /&gt;&lt;br /&gt;:~# rvm pkg install zlib&lt;br /&gt;:~# rvm install 1.9.2&lt;br /&gt;:~# rvm use 1.9.2&lt;br /&gt;:~# rvm default 1.9.2&lt;br /&gt;:~# rvm all do gem install eventmachine&lt;br /&gt;:~# echo "[[ -s \"/usr/local/rvm/scripts/rvm\" ]] &amp;amp;&amp;amp; . \"/usr/local/rvm/scripts/rvm\"" &amp;gt;&amp;gt; ./.profile&lt;br /&gt;&lt;br /&gt;&lt;a href="mailto:root@sssid1"&gt;root@sssid1&lt;/a&gt;:~# ruby -v&lt;br /&gt;ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]&lt;br /&gt;&lt;a href="mailto:root@sssid1"&gt;root@sssid1&lt;/a&gt;:~#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-466377081489565326?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/466377081489565326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=466377081489565326' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/466377081489565326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/466377081489565326'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/10/ruby-installation-with-rvm-on-ubuntu.html' title='ruby installation with rvm on Ubuntu 10.04.3 LTS'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-2522158858871424848</id><published>2011-10-13T15:08:00.001-07:00</published><updated>2011-10-13T15:08:58.127-07:00</updated><title type='text'>HTTP Range Header Info</title><content type='html'>&lt;a href="http://zoompf.com/blog/2010/03/performance-tip-for-http-downloads"&gt;http://zoompf.com/blog/2010/03/performance-tip-for-http-downloads&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-2522158858871424848?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/2522158858871424848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=2522158858871424848' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2522158858871424848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2522158858871424848'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/10/http-range-header-info.html' title='HTTP Range Header Info'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-589202149305502682</id><published>2011-10-11T16:14:00.000-07:00</published><updated>2011-10-11T16:16:07.129-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOD 5520'/><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>how to securely wipe a drive in linux</title><content type='html'>&lt;pre&gt;&lt;span class="Apple-style-span"&gt;option 1&lt;br /&gt;# shred -n 7 -z /dev/sdb&lt;br /&gt;&lt;br /&gt;option 2&lt;br /&gt;# dd if=/dev/urandom of=/dev/sdb bs=4096 count=7&lt;/span&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;# dd if=/dev/zero of=/dev/sdb bs=4096 count=7&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-589202149305502682?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/589202149305502682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=589202149305502682' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/589202149305502682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/589202149305502682'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/10/how-to-securely-wipe-drive-in-linux.html' title='how to securely wipe a drive in linux'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-8933028589712767308</id><published>2011-09-30T13:49:00.001-07:00</published><updated>2011-09-30T14:47:33.853-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mail queue'/><category scheme='http://www.blogger.com/atom/ns#' term='mailq'/><category scheme='http://www.blogger.com/atom/ns#' term='postfix'/><category scheme='http://www.blogger.com/atom/ns#' term='mqueue'/><title type='text'>clear postfix mail queue</title><content type='html'>for f in ` mailq |grep .com -B 2 |grep ^[A-Z0-9]|awk '{print $1}'` ; do postsuper -d $f; done&lt;br /&gt;&lt;br /&gt;Also, fun times here:&lt;br /&gt;&lt;a href="http://www.postfix.org/docs.html"&gt;http://www.postfix.org/docs.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-8933028589712767308?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/8933028589712767308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=8933028589712767308' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8933028589712767308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8933028589712767308'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/09/clear-postfix-mail-queue.html' title='clear postfix mail queue'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-4446190822471321559</id><published>2011-09-28T17:58:00.000-07:00</published><updated>2011-09-30T14:47:50.561-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='encryption'/><title type='text'>Comparison of Disk Encryption Software</title><content type='html'>&lt;div class="MsoNormal"&gt;http://en.wikipedia.org/wiki/Comparison_of_disk_encryption_software&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-4446190822471321559?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/4446190822471321559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=4446190822471321559' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4446190822471321559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4446190822471321559'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/09/comparison-of-disk-encryption-software.html' title='Comparison of Disk Encryption Software'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-8536232151960135953</id><published>2011-08-31T17:31:00.001-07:00</published><updated>2011-08-31T17:31:50.521-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='history'/><title type='text'>delete a range of lines from your history</title><content type='html'>have you ever pasted a shitload of lines into a terminal? ya, lame. sucks. embarassing.&lt;br /&gt;&lt;br /&gt;here is how to get rid of a whole bunch of em all at once.&lt;br /&gt;&lt;br /&gt;history -d `echo {675..1081}`&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-8536232151960135953?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/8536232151960135953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=8536232151960135953' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8536232151960135953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8536232151960135953'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/08/delete-range-of-lines-from-your-history.html' title='delete a range of lines from your history'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-4053847191287385586</id><published>2011-08-31T16:59:00.001-07:00</published><updated>2011-08-31T17:00:55.638-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='monitoring'/><category scheme='http://www.blogger.com/atom/ns#' term='nagios'/><title type='text'>Nagios - ERROR opening session: An empty privacy password was specified.</title><content type='html'>in Nagios® Core™ 3.2.3 i got this error when running checks with "check_snmp_load":&lt;br /&gt;"ERROR opening session: An empty privacy password was specified."&lt;br /&gt;&lt;br /&gt;on the command line, after executing this:&lt;br /&gt;../libexec/snmp/check_snmp_load.pl -l readpriv -x xxxxxx -X xxxxxx -H hostname  -w 3,3,2 -c 4,4,3 -T netsl&lt;br /&gt;&lt;br /&gt;i got this:&lt;br /&gt;Argument "v6.0.1" isn't numeric in numeric lt (&amp;lt;) at ./check_snmp_load.pl_old line 348.&lt;br /&gt;Load : 0.00 0.00 0.00 : OK&lt;br /&gt;&lt;br /&gt;I changed line 348 from:&lt;br /&gt;my $resultat = (Net::SNMP-&amp;gt;VERSION &amp;lt; 4) ?&lt;br /&gt;&lt;br /&gt;&amp;nbsp;to:&lt;br /&gt;my $resultat = (Net::SNMP-&amp;gt;VERSION lt 4) ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;..works&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-4053847191287385586?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/4053847191287385586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=4053847191287385586' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4053847191287385586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4053847191287385586'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/08/nagios-error-opening-session-empty.html' title='Nagios - ERROR opening session: An empty privacy password was specified.'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-3652911762612319569</id><published>2011-08-17T23:50:00.001-07:00</published><updated>2011-08-17T23:50:53.302-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><title type='text'>automatically bring up the openvpn client</title><content type='html'># /etc/rc.local&lt;br /&gt;echo 0 &gt; /proc/sys/net/ipv4/conf/tun0/rp_filter&lt;br /&gt;echo 0 &gt; /proc/sys/net/ipv4/conf/all/rp_filter&lt;br /&gt;echo 1 &gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;/usr/local/sbin/openvpn --config /etc/openvpn/client.conf --daemon &amp;&lt;br /&gt;&lt;br /&gt;#i use this to do all kinds of stuff...&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-3652911762612319569?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/3652911762612319569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=3652911762612319569' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3652911762612319569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3652911762612319569'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/08/automatically-bring-up-openvpn-client.html' title='automatically bring up the openvpn client'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-811096142795857428</id><published>2011-08-17T13:15:00.001-07:00</published><updated>2011-08-17T13:15:33.329-07:00</updated><title type='text'>clearing a mail queue</title><content type='html'>for f in ` mailq |grep hostname.com -B 2 |grep ^[A-Z0-9]|awk '{print $1}'` ; do postsuper -d $f; done &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-811096142795857428?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/811096142795857428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=811096142795857428' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/811096142795857428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/811096142795857428'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/08/clearing-mail-queue_17.html' title='clearing a mail queue'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-7495361916952939431</id><published>2011-08-15T15:25:00.001-07:00</published><updated>2011-08-15T15:25:20.041-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='rhel'/><category scheme='http://www.blogger.com/atom/ns#' term='yum'/><title type='text'>mrepo</title><content type='html'>http://dag.wieers.com/home-made/mrepo/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-7495361916952939431?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/7495361916952939431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=7495361916952939431' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7495361916952939431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7495361916952939431'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/08/mrepo.html' title='mrepo'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-8547352913120104255</id><published>2011-08-13T20:50:00.001-07:00</published><updated>2011-08-13T20:50:29.978-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SMTP Codes'/><title type='text'>SMTP Codes</title><content type='html'>&lt;br /&gt;211 - A system status message.&lt;br /&gt;214 - A help message for a human reader follows.&lt;br /&gt;220 - SMTP Service ready.&lt;br /&gt;221 - Service closing.&lt;br /&gt;250 - Requested action taken and completed.&lt;br /&gt;251 - The recipient is not local to the server, but the server will accept and forward the message.&lt;br /&gt;252 - The recipient cannot be VRFYed, but the server accepts the message and attempts delivery.&lt;br /&gt;&lt;br /&gt;354 - Start message input and end with .. This indicates that the server is ready to accept the message itself&lt;br /&gt;&lt;br /&gt;421 - The service is not available and the connection will be closed.&lt;br /&gt;450 - The requested command failed because the user’s mailbox was unavailable (such as being full). Try again later.&lt;br /&gt;451 - The command has been aborted due to a server error. (on their side)&lt;br /&gt;452 - The command has been aborted because the server has insufficient system storage.&lt;br /&gt;&lt;br /&gt;500 - The server could not recognize the command due to a syntax error.&lt;br /&gt;501 - A syntax error was encountered in command arguments.&lt;br /&gt;502 - This command is not implemented.&lt;br /&gt;503 - The server has encountered a bad sequence of commands.&lt;br /&gt;504 - A command parameter is not implemented.&lt;br /&gt;550 - The requested command failed because the user’s mailbox was unavailable (such as not found)&lt;br /&gt;551 - The recipient is not local to the server.&lt;br /&gt;552 - The action was aborted due to exceeded storage allocation.&lt;br /&gt;553 - The command was aborted because the mailbox name is invalid.&lt;br /&gt;554 - The transaction failed for some unstated reason&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-8547352913120104255?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/8547352913120104255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=8547352913120104255' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8547352913120104255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8547352913120104255'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/08/smtp-codes.html' title='SMTP Codes'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-8509569296114852221</id><published>2011-08-12T10:44:00.000-07:00</published><updated>2011-08-12T10:44:22.459-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='redhat'/><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='rpm'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>compare packages between two RHEL systems</title><content type='html'>#generate package list on hostname1&lt;br /&gt;rpm -qa --qf "%{NAME}\n" &gt; hostname1.rpm.txt&lt;br /&gt;cat ./hostname1.rpm.txt | sort | uniq &gt; ./hostname1_final.rpm.txt&lt;br /&gt;&lt;br /&gt;#generate package list on hostname2&lt;br /&gt;rpm -qa --qf "%{NAME}\n" &gt; hostname2.rpm.txt&lt;br /&gt;cat ./hostname2.rpm.txt | sort | uniq &gt; ./hostname2_final.rpm.txt&lt;br /&gt;&lt;br /&gt;#you want the difference between systems - show diffs on the right and trim leading whitespace&lt;br /&gt;sdiff ./hostname1.rpm.txt ./hostname2.rpm.txt | grep '&gt;' | sed -e 's/^[&gt; \t]*//'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#you want the difference between systems - show diffs on the left and trim trailing whitespace&lt;br /&gt;sdiff ./hostname1.rpm.txt ./hostname2.rpm.txt | grep '&lt;' | sed -e 's/[ \t&lt;]*$//'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-8509569296114852221?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/8509569296114852221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=8509569296114852221' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8509569296114852221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8509569296114852221'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/08/compare-packages-between-two-rhel.html' title='compare packages between two RHEL systems'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-468945906930877175</id><published>2011-08-03T14:53:00.000-07:00</published><updated>2011-08-03T14:53:42.253-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='sendmail'/><category scheme='http://www.blogger.com/atom/ns#' term='mailq'/><title type='text'>clearing a mail queue</title><content type='html'>#sendmail&lt;br /&gt;sendmail -qS -v subdomain.test.com&lt;br /&gt;&lt;br /&gt;#postfix&lt;br /&gt;for f in ` mailq |egrep subdomain.test.com -B 2 |grep ^[A-Z0-9]|awk '{print $1}'` ; do postsuper -d $f; done&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-468945906930877175?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/468945906930877175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=468945906930877175' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/468945906930877175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/468945906930877175'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/08/clearing-mail-queue.html' title='clearing a mail queue'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-5824118351327593216</id><published>2011-07-28T12:09:00.000-07:00</published><updated>2011-07-28T12:09:45.005-07:00</updated><title type='text'>GPG key error when updating RHEL 5.x system</title><content type='html'>when running a `yum update -y`, i got:&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 897da07a&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Public key for nash-5.1.19.6-71.el5.i386.rpm is not installed&lt;br /&gt;--&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I had to install:&lt;br /&gt;&lt;br /&gt;rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta&lt;br /&gt;&lt;br /&gt;then run again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;also, check this:&lt;br /&gt;&lt;br /&gt;rpm -qa |grep gpg&lt;br /&gt;&lt;br /&gt;if you have multiple of the same gpg keys installed use the following:&lt;br /&gt;&lt;br /&gt;rpm -e --allmatches gpg-pubkey*&lt;br /&gt;rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release&lt;br /&gt;rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-5824118351327593216?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/5824118351327593216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=5824118351327593216' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5824118351327593216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5824118351327593216'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/07/gpg-key-error-when-updating-rhel-5x.html' title='GPG key error when updating RHEL 5.x system'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-1839950864485695138</id><published>2011-07-25T12:21:00.000-07:00</published><updated>2011-10-05T10:41:40.026-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='mdadm'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='mdstat'/><category scheme='http://www.blogger.com/atom/ns#' term='nagios'/><title type='text'>mdadm notes</title><content type='html'>mdadm --remove /dev/md0 /dev/sdb&lt;br /&gt;#pull disk, replace with new one&lt;br /&gt;&lt;br /&gt;# you have to fail a disk before you remove it&lt;br /&gt;# however, if the system wont release the raid partner, you need to slide the offending disks out and boot off a good disk.&lt;br /&gt;&lt;br /&gt;#here you can review the layout&lt;br /&gt;[root@host~]# fdisk -l /dev/sda&lt;br /&gt;&lt;br /&gt;Disk /dev/sda: 250.0 GB, 250059350016 bytes&lt;br /&gt;255 heads, 63 sectors/track, 30401 cylinders&lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;Device Boot &amp;nbsp; &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; &amp;nbsp; &amp;nbsp;Blocks &amp;nbsp; Id &amp;nbsp;System&lt;br /&gt;/dev/sdb1 &amp;nbsp; * &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16 &amp;nbsp; &amp;nbsp; &amp;nbsp;128488+ &amp;nbsp;fd &amp;nbsp;Linux raid autodetect&lt;br /&gt;/dev/sdb2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;17 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1291 &amp;nbsp; &amp;nbsp;10241437+ &amp;nbsp;fd &amp;nbsp;Linux raid autodetect&lt;br /&gt;/dev/sdb3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1292 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2566 &amp;nbsp; &amp;nbsp;10241437+ &amp;nbsp;83 &amp;nbsp;Linux&lt;br /&gt;/dev/sdb4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2567 &amp;nbsp; &amp;nbsp; &amp;nbsp; 30401 &amp;nbsp; 223584637+ &amp;nbsp; 5 &amp;nbsp;Extended&lt;br /&gt;/dev/sdb5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2567 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2827 &amp;nbsp; &amp;nbsp; 2096451 &amp;nbsp; fd &amp;nbsp;Linux raid autodetect&lt;br /&gt;/dev/sdb6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2828 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2860 &amp;nbsp; &amp;nbsp; &amp;nbsp;265041 &amp;nbsp; fd &amp;nbsp;Linux raid autodetect&lt;br /&gt;/dev/sdb7 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2861 &amp;nbsp; &amp;nbsp; &amp;nbsp; 30401 &amp;nbsp; 221223051 &amp;nbsp; fd &amp;nbsp;Linux raid autodetect&lt;br /&gt;&lt;br /&gt;#review the descriptions of the disks&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-----------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@host ~]# sfdisk -d /dev/sda&lt;br /&gt;# partition table of /dev/sda&lt;br /&gt;unit: sectors&lt;br /&gt;&lt;br /&gt;/dev/sda1 : start= &amp;nbsp; &amp;nbsp; &amp;nbsp; 63, size= &amp;nbsp; 256977, Id=fd, bootable&lt;br /&gt;/dev/sda2 : start= &amp;nbsp; 257040, size= 20482875, Id=fd&lt;br /&gt;/dev/sda3 : start= 20739915, size= 20482875, Id=83&lt;br /&gt;/dev/sda4 : start= 41222790, size=449113140, Id= 5&lt;br /&gt;/dev/sda5 : start= 41222853, size= &amp;nbsp;4192902, Id=fd&lt;br /&gt;/dev/sda6 : start= 45415818, size= &amp;nbsp; 530082, Id=fd&lt;br /&gt;/dev/sda7 : start= 45945963, size=444389967, Id=fd&lt;br /&gt;[root@host ~]# sfdisk -d /dev/sdb&lt;br /&gt;&lt;br /&gt;sfdisk: ERROR: sector 0 does not have an msdos signature&lt;br /&gt;&amp;nbsp;/dev/sdb: unrecognized partition table type&lt;br /&gt;No partitions found&lt;br /&gt;-----------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#this command is similar to `sfdisk -l`, but you can use it to copy the layout to the new replacement disk&lt;br /&gt;#its destructive to sdb, be sure you know what you're doing. read man page, right? &amp;nbsp;:)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-----------&lt;br /&gt;&lt;br /&gt;[root@host~]# sfdisk -d /dev/sda | sfdisk /dev/sdb&lt;br /&gt;Checking that no-one is using this disk right now ...&lt;br /&gt;OK&lt;br /&gt;&lt;br /&gt;Disk /dev/sdb: 30522 cylinders, 255 heads, 63 sectors/track&lt;br /&gt;&lt;br /&gt;sfdisk: ERROR: sector 0 does not have an msdos signature&lt;br /&gt;&amp;nbsp;/dev/sdb: unrecognized partition table type&lt;br /&gt;Old situation:&lt;br /&gt;No partitions found&lt;br /&gt;New situation:&lt;br /&gt;Units = sectors of 512 bytes, counting from 0&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;Device Boot &amp;nbsp; &amp;nbsp;Start &amp;nbsp; &amp;nbsp; &amp;nbsp; End &amp;nbsp; #sectors &amp;nbsp;Id &amp;nbsp;System&lt;br /&gt;/dev/sdb1 &amp;nbsp; * &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;63 &amp;nbsp; &amp;nbsp;257039 &amp;nbsp; &amp;nbsp; 256977 &amp;nbsp;fd &amp;nbsp;Linux raid autodetect&lt;br /&gt;/dev/sdb2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;257040 &amp;nbsp;20739914 &amp;nbsp; 20482875 &amp;nbsp;fd &amp;nbsp;Linux raid autodetect&lt;br /&gt;/dev/sdb3 &amp;nbsp; &amp;nbsp; &amp;nbsp;20739915 &amp;nbsp;41222789 &amp;nbsp; 20482875 &amp;nbsp;83 &amp;nbsp;Linux&lt;br /&gt;/dev/sdb4 &amp;nbsp; &amp;nbsp; &amp;nbsp;41222790 490335929 &amp;nbsp;449113140 &amp;nbsp; 5 &amp;nbsp;Extended&lt;br /&gt;/dev/sdb5 &amp;nbsp; &amp;nbsp; &amp;nbsp;41222853 &amp;nbsp;45415754 &amp;nbsp; &amp;nbsp;4192902 &amp;nbsp;fd &amp;nbsp;Linux raid autodetect&lt;br /&gt;/dev/sdb6 &amp;nbsp; &amp;nbsp; &amp;nbsp;45415818 &amp;nbsp;45945899 &amp;nbsp; &amp;nbsp; 530082 &amp;nbsp;fd &amp;nbsp;Linux raid autodetect&lt;br /&gt;/dev/sdb7 &amp;nbsp; &amp;nbsp; &amp;nbsp;45945963 490335929 &amp;nbsp;444389967 &amp;nbsp;fd &amp;nbsp;Linux raid autodetect&lt;br /&gt;Successfully wrote the new partition table&lt;br /&gt;&lt;br /&gt;Re-reading the partition table ...&lt;br /&gt;&lt;br /&gt;If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)&lt;br /&gt;to zero the first 512 bytes: &amp;nbsp;dd if=/dev/zero of=/dev/foo7 bs=512 count=1&lt;br /&gt;(See fdisk(8).)&lt;br /&gt;[root@host~]# sfdisk -d /dev/sdb&lt;br /&gt;# partition table of /dev/sdb&lt;br /&gt;unit: sectors&lt;br /&gt;&lt;br /&gt;/dev/sdb1 : start= &amp;nbsp; &amp;nbsp; &amp;nbsp; 63, size= &amp;nbsp; 256977, Id=fd, bootable&lt;br /&gt;/dev/sdb2 : start= &amp;nbsp; 257040, size= 20482875, Id=fd&lt;br /&gt;/dev/sdb3 : start= 20739915, size= 20482875, Id=83&lt;br /&gt;/dev/sdb4 : start= 41222790, size=449113140, Id= 5&lt;br /&gt;/dev/sdb5 : start= 41222853, size= &amp;nbsp;4192902, Id=fd&lt;br /&gt;/dev/sdb6 : start= 45415818, size= &amp;nbsp; 530082, Id=fd&lt;br /&gt;/dev/sdb7 : start= 45945963, size=444389967, Id=fd&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-----------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#check the status of the set&lt;br /&gt;cat /proc/mdstat&lt;br /&gt;&lt;br /&gt;#now, add the partition slices back to the set&lt;br /&gt;mdadm --add /dev/md0 /dev/sdb1&lt;br /&gt;mdadm --add /dev/md1 /dev/sdb5&lt;br /&gt;mdadm --add /dev/md3 /dev/sdb6&lt;br /&gt;mdadm --add /dev/md4 /dev/sdb7&lt;br /&gt;mdadm --add /dev/md2 /dev/sdb2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#review&lt;br /&gt;mdadm --detail /dev/md0&lt;br /&gt;&lt;br /&gt;#review progress&lt;br /&gt;cat /proc/mdstat&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;healthy output:&lt;br /&gt;&lt;br /&gt;[root@host ~]# cat /proc/mdstat&lt;br /&gt;Personalities : [raid1]&lt;br /&gt;md0 : active raid1 sda1[0] sdb1[1]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 128384 blocks [2/2] [UU]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;md1 : active raid1 sda5[0] sdb5[1]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2096384 blocks [2/2] [UU]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;md3 : active raid1 sda6[0] sdb6[1]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 264960 blocks [2/2] [UU]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;md4 : active raid1 sda7[0] sdb7[1]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 221222976 blocks [2/2] [UU]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;md2 : active raid1 sda2[0] sdb2[1]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 10241344 blocks [2/2] [UU]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;unused devices: &lt;none&gt;&lt;/none&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;UNhealthy output:&lt;br /&gt;&lt;br /&gt;[root@host ~]# cat /proc/mdstat&lt;br /&gt;Personalities : [raid1]&lt;br /&gt;md0 : active raid1 sdb1[1]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 128384 blocks [2/2] [_U]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;md1 : active raid1 sdb5[1]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2096384 blocks [2/2] [_U]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;md3 : active raid1 sdb6[1]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 264960 blocks [2/2] [_U]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;md4 : active raid1 sdb7[1]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 221222976 blocks [2/2] [_U]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;md2 : active raid1 sdb2[1]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 10241344 blocks [2/2] [_U]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;unused devices: &lt;none&gt;&lt;/none&gt;&lt;br /&gt;&lt;br /&gt;#have a nice day&lt;br /&gt;&lt;br /&gt;&lt;none&gt;&lt;none&gt; &lt;br /&gt;&lt;br /&gt;--------------------------------------------------------&lt;br /&gt;[root@somehost ~]# mdadm --detail /dev/md0&lt;br /&gt;/dev/md0:&lt;br /&gt;Version : 00.90.03&lt;br /&gt;Creation Time : Sat Oct 31 03:08:47 2009&lt;br /&gt;Raid Level : raid1&lt;br /&gt;Array Size : 128384 (125.40 MiB 131.47 MB)&lt;br /&gt;Device Size : 128384 (125.40 MiB 131.47 MB)&lt;br /&gt;Raid Devices : 2&lt;br /&gt;Total Devices : 2&lt;br /&gt;Preferred Minor : 0&lt;br /&gt;Persistence : Superblock is persistent&lt;br /&gt;&lt;br /&gt;Update Time : Mon Jul 25 04:48:26 2011&lt;br /&gt;State : clean&lt;br /&gt;Active Devices : 2&lt;br /&gt;Working Devices : 2&lt;br /&gt;Failed Devices : 0&lt;br /&gt;Spare Devices : 0&lt;br /&gt;&lt;br /&gt;UUID : xxxxxx:xxxxxxxx:xxxxxxx:dd7a13a5&lt;br /&gt;Events : 0.74&lt;br /&gt;&lt;br /&gt;Number   Major   Minor   RaidDevice State&lt;br /&gt;0       8        1        0      active sync   /dev/sda1&lt;br /&gt;1       8       17        1      active sync   /dev/sdb1&lt;br /&gt;--------------------------------------------------------&lt;br /&gt;&lt;br /&gt;nagios check: check_by_ssh!"sudo /bin/cat /proc/mdstat | grep _ /proc/mdstat -c | grep 0 -c&lt;/none&gt;&lt;/none&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-1839950864485695138?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/1839950864485695138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=1839950864485695138' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1839950864485695138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1839950864485695138'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/07/mdadm-notes.html' title='mdadm notes'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-9139475439618860330</id><published>2011-07-21T13:43:00.000-07:00</published><updated>2011-07-21T13:44:12.194-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='ethtool'/><title type='text'>ethtool command</title><content type='html'>/sbin/ethtool -s eth0 speed 100 duplex full autoneg off&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-9139475439618860330?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/9139475439618860330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=9139475439618860330' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/9139475439618860330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/9139475439618860330'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/07/ethtool-command.html' title='ethtool command'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-7950844466745925114</id><published>2011-07-21T11:38:00.000-07:00</published><updated>2011-07-21T11:40:02.268-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='operations'/><title type='text'>mail alert when script is finished</title><content type='html'>echo y | ./deploy.sh -s xxxx -f '/root/xxxxx.tgz' &amp;&amp; mail -s "deployment complete on `hostname`" me@overthere.com &lt; /dev/null&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-7950844466745925114?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/7950844466745925114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=7950844466745925114' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7950844466745925114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7950844466745925114'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/07/mail-alert-when-script-is-finished.html' title='mail alert when script is finished'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-7990826269523346210</id><published>2011-07-18T10:43:00.000-07:00</published><updated>2011-07-18T10:44:17.754-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>logrotate script</title><content type='html'>#!/bin/sh&lt;br /&gt;&lt;br /&gt;/usr/sbin/logrotate /etc/logrotate.conf&lt;br /&gt;EXITVALUE=$?&lt;br /&gt;if [ $EXITVALUE != 0 ]; then&lt;br /&gt;    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"&lt;br /&gt;fi&lt;br /&gt;exit 0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-7990826269523346210?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/7990826269523346210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=7990826269523346210' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7990826269523346210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7990826269523346210'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/07/logrotate-script.html' title='logrotate script'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-1118349468751015021</id><published>2011-07-18T10:40:00.000-07:00</published><updated>2011-07-18T10:41:48.202-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='system hardening'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>create a list of all packages</title><content type='html'>#!/bin/sh&lt;br /&gt;&lt;br /&gt;/bin/rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}.rpm\n' 2&gt;&amp;1 \&lt;br /&gt;        | /bin/sort &gt; /var/log/rpmpkgs&lt;br /&gt;&lt;br /&gt;The idea would be to take a sha1 hash of this file and then check it periodically to be sure that the package list has not changed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-1118349468751015021?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/1118349468751015021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=1118349468751015021' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1118349468751015021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1118349468751015021'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/07/create-list-of-all-packages.html' title='create a list of all packages'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-6920377720143744973</id><published>2011-06-22T15:03:00.000-07:00</published><updated>2011-06-23T08:54:27.117-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='system hardening'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>oracle linux links</title><content type='html'>http://www.oracle.com/us/technologies/linux/index.htm&lt;br /&gt;http://www.oracle.com/us/technologies/linux/unbreakable-enterprise-kernel-ds-173416.pdf&lt;br /&gt;http://www.oracle.com/us/technologies/linux/ubl-edison-066204.pdf&lt;br /&gt;http://public-yum.oracle.com/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-6920377720143744973?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/6920377720143744973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=6920377720143744973' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6920377720143744973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6920377720143744973'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/06/oracle-linux-links.html' title='oracle linux links'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-3282690145832302148</id><published>2011-06-14T01:19:00.000-07:00</published><updated>2011-06-14T01:20:53.255-07:00</updated><title type='text'>sending logs to splunk</title><content type='html'>#* * * * * root lockfile -l5 -s5 /tmp/mysql_error_log.lock &amp;&amp; /usr/sbin/logtail /dbhost2_logs/dbhost2.err | /usr/bin/nc -w2 -v dblogs1 10001 &amp;&amp; rm -rf /tmp/mysql_error_log.lock &gt; /dev/null 2&gt;&amp;1&lt;br /&gt;&lt;br /&gt;#* * * * * root lockfile -l5 -s5 /tmp/messages_log.lock &amp;&amp; /usr/sbin/logtail /var/log/messages | /usr/bin/nc -w2 -v dblogs1 10002 &amp;&amp; rm -rf /tmp/messages_log.lock &gt; /dev/null 2&gt;&amp;1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-3282690145832302148?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/3282690145832302148/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=3282690145832302148' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3282690145832302148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3282690145832302148'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/06/sending-logs-to-splunk.html' title='sending logs to splunk'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-8245447542163837897</id><published>2011-06-13T12:37:00.001-07:00</published><updated>2011-06-13T12:37:44.322-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>top 10 memory hogs</title><content type='html'>ps -eo pmem,pid,comm --no-headers | sort -k1 -rn | head -10&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-8245447542163837897?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/8245447542163837897/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=8245447542163837897' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8245447542163837897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8245447542163837897'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/06/top-10-memory-hogs.html' title='top 10 memory hogs'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-374159979791264924</id><published>2011-03-23T00:05:00.000-07:00</published><updated>2011-03-23T00:07:32.776-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='openbsd'/><title type='text'>unable to build ports in OpenBSD 4.8 - SOLVED</title><content type='html'>From root's .profile, comment this out:&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;if [ -x /usr/bin/tset ]; then &lt;br /&gt;       if [ X"$XTERM_VERSION" = X"" ]; then &lt;br /&gt;               eval `/usr/bin/tset -sQ '-munknown:?vt220' $TERM` &lt;br /&gt;       else &lt;br /&gt;               eval `/usr/bin/tset -IsQ '-munknown:?vt220' $TERM` &lt;br /&gt;       fi &lt;br /&gt;fi &lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;and add this:&lt;br /&gt;&lt;br /&gt;export TERM=vt100&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-374159979791264924?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/374159979791264924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=374159979791264924' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/374159979791264924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/374159979791264924'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/03/unable-to-build-ports-in-openbsd-48.html' title='unable to build ports in OpenBSD 4.8 - SOLVED'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-1692763945531070807</id><published>2011-03-23T00:01:00.001-07:00</published><updated>2011-03-23T00:01:50.335-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ports'/><category scheme='http://www.blogger.com/atom/ns#' term='openbsd'/><title type='text'>reinstall openbsd ports</title><content type='html'>tar -xvzpf base48.tgz -C/ &lt;br /&gt;tar -xvzpf comp48.tgz -C/ &lt;br /&gt;tar -xvzpf xbase48.tgz -C/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-1692763945531070807?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/1692763945531070807/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=1692763945531070807' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1692763945531070807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1692763945531070807'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/03/reinstall-openbsd-ports.html' title='reinstall openbsd ports'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-4167263230857151845</id><published>2011-03-11T12:28:00.001-08:00</published><updated>2011-03-11T12:29:07.193-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='baktun'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='unix time'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><title type='text'>unix time coolness</title><content type='html'>[root@elcap ~]# date&lt;br /&gt;Fri Mar 11 11:26:52 PST 2011&lt;br /&gt;&lt;br /&gt;[root@elcap ~]# date +%s&lt;br /&gt;1299871617&lt;br /&gt;&lt;br /&gt;[root@elcap ~]# date -R -d @1300000000&lt;br /&gt;Sat, 12 Mar 2011 23:06:40 -0800&lt;br /&gt;[root@elcap ~]#&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-4167263230857151845?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/4167263230857151845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=4167263230857151845' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4167263230857151845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4167263230857151845'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/03/unix-time-coolness.html' title='unix time coolness'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-3824628142524563582</id><published>2011-02-26T00:17:00.000-08:00</published><updated>2011-02-26T00:19:04.979-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>how many InnoDB rows are read per second in mysql</title><content type='html'>mysqladmin extended-status -i 1 -r -p -uroot | grep -e "Com_select"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-3824628142524563582?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/3824628142524563582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=3824628142524563582' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3824628142524563582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3824628142524563582'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/02/queries-per-second-in-mysql.html' title='how many InnoDB rows are read per second in mysql'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-3593592755186138788</id><published>2011-02-17T11:03:00.000-08:00</published><updated>2011-02-17T12:20:11.114-08:00</updated><title type='text'>how to help out heartbeat</title><content type='html'>/sbin/arping -q -A -c 1 -I eth0 -s 10.6.1.10 10.6.1.10&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-3593592755186138788?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/3593592755186138788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=3593592755186138788' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3593592755186138788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3593592755186138788'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/02/how-to-help-out-heartbeat.html' title='how to help out heartbeat'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-2272384203987889239</id><published>2011-01-06T13:04:00.001-08:00</published><updated>2011-01-06T13:04:26.187-08:00</updated><title type='text'>quick check of top current process</title><content type='html'>top -b -n1 -d 3 | sed 1,7d |head -1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-2272384203987889239?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/2272384203987889239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=2272384203987889239' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2272384203987889239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2272384203987889239'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2011/01/quick-check-of-top-current-process.html' title='quick check of top current process'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-9142164278963307271</id><published>2010-10-08T14:57:00.000-07:00</published><updated>2010-10-08T22:11:59.609-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='shell scripting'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><title type='text'>ctrap script</title><content type='html'>#!/bin/bash&lt;br /&gt;ctrap(){&lt;br /&gt;echo -ne "\033]0;"puppet"\007" &lt;br /&gt;}&lt;br /&gt;if [ $# -eq 1 ];then&lt;br /&gt;trap ctrap SIGINT&lt;br /&gt;echo -ne "\033]0;"$1"\007" &lt;br /&gt;ssh $1&lt;br /&gt;ctrap&lt;br /&gt;exit 0&lt;br /&gt;fi&lt;br /&gt;ssh $*&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-9142164278963307271?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/9142164278963307271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=9142164278963307271' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/9142164278963307271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/9142164278963307271'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/10/ctrap-script.html' title='ctrap script'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-3565053097709880890</id><published>2010-09-20T17:21:00.000-07:00</published><updated>2010-09-20T17:22:19.415-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ntfs'/><category scheme='http://www.blogger.com/atom/ns#' term='mount'/><category scheme='http://www.blogger.com/atom/ns#' term='openbsd'/><title type='text'>mount ntfs in *bsd</title><content type='html'>http://lordhendrix.wordpress.com/2008/01/13/mounting-ntfs-to-freebsd-or-unix/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-3565053097709880890?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/3565053097709880890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=3565053097709880890' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3565053097709880890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3565053097709880890'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/09/mount-ntfs-in-bsd.html' title='mount ntfs in *bsd'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-7859976757167633422</id><published>2010-07-30T10:16:00.000-07:00</published><updated>2010-07-30T10:18:40.466-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='performance'/><category scheme='http://www.blogger.com/atom/ns#' term='monitoring'/><category scheme='http://www.blogger.com/atom/ns#' term='openbsd'/><title type='text'>symon/symux/syweb installation on openbsd 4.4</title><content type='html'>&lt;pre&gt;&lt;br /&gt;mkdir /mnt/cdrom&lt;br /&gt;mount /dev/cd0c /mnt/cdrom/&lt;br /&gt;cd /&lt;br /&gt;tar -zxvf /mnt/cdrom/4.4/i386/xbase44.tgz&lt;br /&gt;ldconfig /usr/X11R6/lib /usr/local/lib&lt;br /&gt;pkg_add -v http://ftp.openbsd.org/pub/OpenBSD/4.4/packages/i386/libart-2.3.20p0.tgz&lt;br /&gt;pkg_add -v http://ftp.openbsd.org/pub/OpenBSD/4.4/packages/i386/png-1.2.28.tgz&lt;br /&gt;pkg_add -v http://ftp.openbsd.org/pub/OpenBSD/4.4/packages/i386/rrdtool-1.2.23p0.tgz&lt;br /&gt;pkg_add -v http://ftp.openbsd.org/pub/OpenBSD/4.4/packages/i386/wget-1.11.3.tgz&lt;br /&gt;pkg_add -v http://ftp.openbsd.org/pub/OpenBSD/4.4/packages/i386/pcre-7.7p0.tgz&lt;br /&gt;pkg_add -v http://ftp.openbsd.org/pub/OpenBSD/4.4/packages/i386/php5-fastcgi-5.2.6.tgz&lt;br /&gt;pkg_add -v http://ftp.openbsd.org/pub/OpenBSD/4.4/packages/i386/php5-mbstring-5.2.6.tgz&lt;br /&gt;echo "env -i PHP_FCGI_CHILDREN=5 PHP_FCGI_MAX_REQUESTS=1000 /usr/local/bin/php-fastcgi -q -c /var/www/conf/ -b 127.0.0.1:8888 &amp;" &gt; /root/run_php-fastcgi.sh &amp;&amp; chmod 700 /root/run_php-fastcgi.sh&lt;br /&gt;ln -s /var/www/conf/modules.sample/php5.conf /var/www/conf/modules&lt;br /&gt;ln -fs /var/www/conf/php5.sample/mbstring.ini /var/www/conf/php5/mbstring.ini&lt;br /&gt;mkdir /var/www/tmp&lt;br /&gt;&lt;br /&gt;tar zxvf ./syweb-0.59.tar.gz &lt;br /&gt;tar zxvf ./symon-2.80.tar.gz &lt;br /&gt;cd symon&lt;br /&gt;make &amp;&amp; make install&lt;br /&gt;cp ./symon/symon.conf /etc/symon.conf&lt;br /&gt;cp ./symux/symux.conf /etc/symux.conf&lt;br /&gt;cp ./symon/hifn_test.layout /var/www/symon/&lt;br /&gt;useradd -d /var/empty -L daemon -c 'symon Account' -s /sbin/nologin _symon&lt;br /&gt;/usr/local/libexec/symon&lt;br /&gt;mkdir /var/www/symon /var/www/symon/rrds /var/www/symon/rrds/localhost&lt;br /&gt;#fix up symux.conf here&lt;br /&gt;./symux/c_smrrds.sh all&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;echo &gt; /etc/symon.conf &lt;&lt;EOF&lt;br /&gt;#&lt;br /&gt;# Demo configuration for symon. See symon(8) for BNF.&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;monitor { cpu(0),  mem,&lt;br /&gt;          if(lo0),&lt;br /&gt;          pf,&lt;br /&gt;          mbuf,&lt;br /&gt;#         sensor(0),&lt;br /&gt;          proc(sshd),&lt;br /&gt;          if(em0),&lt;br /&gt;          io(wd0)&lt;br /&gt;} stream to 127.0.0.1 2100&lt;br /&gt;EOF&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;echo &gt; /etc/symux.conf &lt;&lt;EOF&lt;br /&gt;#&lt;br /&gt;mux 127.0.0.1 2100&lt;br /&gt;     source 127.0.0.1 {&lt;br /&gt;         accept { cpu(0), mem, pf,&lt;br /&gt;               if(em0), &lt;br /&gt;               if(lo0), &lt;br /&gt;               io(wd0),&lt;br /&gt;               df(sd0a) }&lt;br /&gt;&lt;br /&gt;         datadir "/var/www/symon/rrds/localhost"&lt;br /&gt;     }&lt;br /&gt;EOF&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-7859976757167633422?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/7859976757167633422/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=7859976757167633422' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7859976757167633422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7859976757167633422'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/07/symonsymuxsyweb-installation-on-openbsd.html' title='symon/symux/syweb installation on openbsd 4.4'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-5989768002615020529</id><published>2010-06-17T14:34:00.000-07:00</published><updated>2010-06-17T14:35:38.225-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='ifconfig'/><category scheme='http://www.blogger.com/atom/ns#' term='regex'/><title type='text'>regex for IP addresses</title><content type='html'>&lt;h4 style="font-weight: normal;"&gt;ifconfig | sed -n ‘/^[A-Za-z0-9]/ {N;/dr:/{;s/.*dr://;s/ .*//;p;}}’&lt;/h4&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-5989768002615020529?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/5989768002615020529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=5989768002615020529' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5989768002615020529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5989768002615020529'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/06/regex-for-ip-addresses.html' title='regex for IP addresses'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-930578362435886645</id><published>2010-05-25T15:55:00.001-07:00</published><updated>2010-05-25T15:56:22.976-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vrts'/><category scheme='http://www.blogger.com/atom/ns#' term='storage foundation'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><category scheme='http://www.blogger.com/atom/ns#' term='veritas file system'/><title type='text'>Storage Foundation / VRTS Licensing Info</title><content type='html'># vxlicrep &gt; report.txt&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-930578362435886645?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/930578362435886645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=930578362435886645' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/930578362435886645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/930578362435886645'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/05/storage-foundation-vrts-licensing-info.html' title='Storage Foundation / VRTS Licensing Info'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-5911288368083598214</id><published>2010-05-18T13:43:00.000-07:00</published><updated>2010-05-18T13:45:41.872-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><title type='text'>convert vmdk from thick to thin</title><content type='html'>vmkfstools -i /vmfs/volumes/datastore1/somehost/somehost.vmdk /vmfs/volumes/datastore1/somehost/somehost-thin.vmdk -d 'thin' -a lsilogic&lt;br /&gt;&lt;br /&gt;# adjust vmx and away you go.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-5911288368083598214?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/5911288368083598214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=5911288368083598214' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5911288368083598214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5911288368083598214'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/05/convert-vmdk-from-thick-to-thin.html' title='convert vmdk from thick to thin'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-4495267859374786998</id><published>2010-05-10T12:57:00.001-07:00</published><updated>2010-05-10T12:57:34.203-07:00</updated><title type='text'>my fave prompt</title><content type='html'>PS1='[\t][\u@\h:\w]$ '&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-4495267859374786998?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/4495267859374786998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=4495267859374786998' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4495267859374786998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4495267859374786998'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/05/my-fave-prompt.html' title='my fave prompt'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-5695787428114102596</id><published>2010-04-24T17:24:00.000-07:00</published><updated>2010-04-24T20:23:58.309-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dd'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='netcat'/><category scheme='http://www.blogger.com/atom/ns#' term='mount'/><category scheme='http://www.blogger.com/atom/ns#' term='openbsd'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>backup your failing system hard drive and mount it under ubuntu</title><content type='html'>i heard some clicking coming from the hard drive of my openbsd firewall the other day. i have put a lot of time into this thing and i dont want to lose it. I have more hard drives, but i dont want to lose everything on this one. this system run on an an old Dell b733r, PIII w/256MB RAM. I love it. Its Perfect.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#on failing host, do not skip this critical step&lt;br /&gt;disklabel -v wd0c &gt; failing_host_disklabel.info &amp;amp;&amp;amp; scp ./failing_host_disklabel.info root@stable_host:.&lt;br /&gt;&lt;br /&gt;#on stable host&lt;br /&gt;nc -p 2222 -l | bzip2 -d | dd of=/root/failing_host.img&lt;br /&gt;&lt;br /&gt;#on failing host&lt;br /&gt;bzip2 -c /dev/wd0c | nc stable_host 2222&lt;br /&gt;&lt;br /&gt;#wait for completion ...&lt;br /&gt;&lt;br /&gt;#on stable host&lt;br /&gt;&lt;br /&gt;#test to see if image is good&lt;br /&gt;sfdisk -l failing_host.img&lt;br /&gt;sfdisk -d failing_host.img&lt;br /&gt;fdisk -l -u failing_host.img&lt;br /&gt;&lt;br /&gt;#take offset from disklabel.info: offset * bytes/sector = [value]&lt;br /&gt;#default value for dd block size (bytes/sector) is 512, adjust as necessary&lt;br /&gt;&lt;br /&gt;mount -v -o ro,loop,offset=[value],ufstype=44bsd -t ufs ./failing_host.img /mnt/failing_host&lt;br /&gt;&lt;br /&gt;#if it fails and you get a message in dmesg that says: &lt;br /&gt;#&lt;br /&gt;#[some.date] ufs_read_super: bad magic number&lt;br /&gt;#&lt;br /&gt;# it means you have the wrong offset value&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-5695787428114102596?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/5695787428114102596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=5695787428114102596' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5695787428114102596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5695787428114102596'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/04/backup-your-openbsd-system-hard-drive.html' title='backup your failing system hard drive and mount it under ubuntu'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-4886945442580742460</id><published>2010-04-14T17:09:00.000-07:00</published><updated>2010-04-14T17:15:27.867-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cryptography'/><category scheme='http://www.blogger.com/atom/ns#' term='system hardening'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='loop-aes-utils'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>loop-aes-utils, smbfs and Ubuntu</title><content type='html'>The following was experienced on Ubuntu Desktop 9.10&lt;br /&gt;&lt;br /&gt;if you install loop-aes-utils, and then install smbfs, the cryptoloop.ko is removed from the kernel. &lt;br /&gt;&lt;br /&gt;`mount` will give you errors like:&lt;br /&gt;&lt;br /&gt;ioctl: LOOP_SET_STATUS: Invalid argument, requested cipher or key length (256 bits) not supported by kernel&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;`modprobe loop` will give you:&lt;br /&gt;&lt;br /&gt;FATAL: Module loop not found&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;well, not sure what the whole story is, but the following fixes it.&lt;br /&gt;&lt;br /&gt;`modprobe cryptoloop`&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-4886945442580742460?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/4886945442580742460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=4886945442580742460' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4886945442580742460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4886945442580742460'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/04/loop-aes-utils-smbfs-and-ubuntu.html' title='loop-aes-utils, smbfs and Ubuntu'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-6653671386692581268</id><published>2010-04-05T23:46:00.000-07:00</published><updated>2010-04-05T23:48:46.573-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pf'/><category scheme='http://www.blogger.com/atom/ns#' term='openbsd'/><title type='text'>resolve IP's of established connections using pfctl</title><content type='html'>&lt;code&gt;&lt;br /&gt;pfctl -s state | grep 'EST' | grep -v '&lt;-' | awk '{print $6}' | cut -d":" -f1 | xargs dig +short -x&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-6653671386692581268?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/6653671386692581268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=6653671386692581268' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6653671386692581268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6653671386692581268'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/04/resolve-ips-of-established-connections.html' title='resolve IP&apos;s of established connections using pfctl'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-3444254415099903785</id><published>2010-03-31T23:59:00.003-07:00</published><updated>2010-03-31T23:59:53.780-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox hardening'/><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='browser hardening'/><title type='text'>Firefox Autoconfig</title><content type='html'>http://mit.edu/~firefox/www/maintainers/autoconfig.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-3444254415099903785?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/3444254415099903785/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=3444254415099903785' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3444254415099903785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3444254415099903785'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/03/firefox-autoconfig_31.html' title='Firefox Autoconfig'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-4081224225135372223</id><published>2010-03-29T07:54:00.000-07:00</published><updated>2010-03-29T08:05:43.451-07:00</updated><title type='text'>Install nginx with php-frm and mysql</title><content type='html'>&lt;code&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;sudo apt-get install nginx&lt;br /&gt;cd /tmp&lt;br /&gt;wget http://us.archive.ubuntu.com/ubuntu/pool/main/k/krb5/libkrb53_1.6.dfsg.4~beta1-5ubuntu2_i386.deb&lt;br /&gt;wget http://us.archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu38_3.8-6ubuntu0.2_i386.deb&lt;br /&gt;sudo dpkg -i *.deb&lt;br /&gt;sudo echo "deb http://php53.dotdeb.org stable all" &gt;&gt; /etc/apt/sources.list&lt;br /&gt;sudo apt-get update&lt;br /&gt;sudo apt-get install php5-cli php5-common php5-suhosin php5-mysql php5-curl php-pear php5-imap php5-memcache php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl&lt;br /&gt;sudo apt-get install php5-fpm php5-cgi&lt;br /&gt;&lt;br /&gt;echo &amp;gt; /etc/nginx/sites-enabled/default &amp;lt;&amp;lt; EOF&lt;br /&gt;&lt;br /&gt;server&lt;br /&gt;{    &lt;br /&gt;listen   80;    &lt;br /&gt;server_name  localhost;    &lt;br /&gt;access_log  /var/log/nginx/localhost.access.log; &lt;br /&gt;&lt;br /&gt;## Default location    &lt;br /&gt;location /&lt;br /&gt;{        &lt;br /&gt;root   /var/www/nginx-default;        &lt;br /&gt;index  index.php;    &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;## Images and static content is treated different    &lt;br /&gt;location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$&lt;br /&gt;{      &lt;br /&gt;access_log        off;      &lt;br /&gt;expires           30d;      &lt;br /&gt;root /var/www/nginx-default;    &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;## Parse all .php file in the /var/www directory    &lt;br /&gt;location ~ .php$&lt;br /&gt;{        &lt;br /&gt;fastcgi_split_path_info ^(.+\.php)(.*)$;        &lt;br /&gt;fastcgi_pass   backend;        &lt;br /&gt;fastcgi_index  index.php;        &lt;br /&gt;fastcgi_param  SCRIPT_FILENAME  /var/www/nginx-default$fastcgi_script_name;        &lt;br /&gt;include fastcgi_params;        &lt;br /&gt;fastcgi_param  QUERY_STRING     $query_string;        &lt;br /&gt;fastcgi_param  REQUEST_METHOD   $request_method;        &lt;br /&gt;fastcgi_param  CONTENT_TYPE     $content_type;        &lt;br /&gt;fastcgi_param  CONTENT_LENGTH   $content_length;        &lt;br /&gt;fastcgi_intercept_errors        on;        &lt;br /&gt;fastcgi_ignore_client_abort     off;&lt;br /&gt;fastcgi_connect_timeout 60;&lt;br /&gt;fastcgi_send_timeout 180;&lt;br /&gt;fastcgi_read_timeout 180;&lt;br /&gt;fastcgi_buffer_size 128k;        &lt;br /&gt;fastcgi_buffers 4 256k;        &lt;br /&gt;fastcgi_busy_buffers_size 256k;        &lt;br /&gt;fastcgi_temp_file_write_size 256k;     } &lt;br /&gt;&lt;br /&gt;## Disable viewing .htaccess &amp;amp; .htpassword    &lt;br /&gt;location ~ /\.ht { deny  all;     }&lt;br /&gt;}&lt;br /&gt;upstream backend {         server 127.0.0.1:9000; }&lt;br /&gt;EOF&lt;br /&gt;/etc/init.d/php5-fpm start&lt;br /&gt;/etc/init.d/nginx start  &lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-4081224225135372223?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/4081224225135372223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=4081224225135372223' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4081224225135372223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4081224225135372223'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/03/install-nginx-with-php-frm-and-mysql.html' title='Install nginx with php-frm and mysql'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-1970741890894926780</id><published>2010-03-23T14:29:00.000-07:00</published><updated>2010-03-23T14:30:29.172-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>generate reasonable passwords at the commmand line</title><content type='html'>&lt;code&gt;&lt;br /&gt;cat /dev/urandom| tr -dc 'a-zA-Z0-9-_!@#$%^&amp;*()_+{}|:&lt;&gt;?='|fold -w 12| head -n 4| grep -i '[!@#$%^&amp;*()_+{}|:&lt;&gt;?=]'&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-1970741890894926780?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/1970741890894926780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=1970741890894926780' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1970741890894926780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1970741890894926780'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/03/generate-reasonable-passwords-at.html' title='generate reasonable passwords at the commmand line'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-6719732585450174444</id><published>2010-03-23T14:26:00.000-07:00</published><updated>2010-03-23T14:29:52.248-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>generate strong random passwords at the command line</title><content type='html'>&lt;code&gt;&lt;br /&gt;cat /dev/urandom| tr -dc 'a-zA-Z0-9-_!@#$%^&amp;amp;*()_+{}|:&amp;lt;&amp;gt;?='|fold -w 12| head -n 4| grep -i '[!@#$%^&amp;amp;*()_+{}|:&amp;lt;&amp;gt;?=]'&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-6719732585450174444?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/6719732585450174444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=6719732585450174444' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6719732585450174444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6719732585450174444'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/03/generate-random-passwords-at-command.html' title='generate strong random passwords at the command line'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-1489377320757848768</id><published>2010-03-23T11:51:00.000-07:00</published><updated>2010-03-23T11:53:52.627-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rootkit'/><category scheme='http://www.blogger.com/atom/ns#' term='system hardening'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='backdoor'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>remove serverbeach backdoor</title><content type='html'>when you lease a server from ServerBeach, they install a backdoor on your server. Here's how to remove it when you choose CentOS or similar redhat type system.&lt;br /&gt;&lt;br /&gt;service sbadm stop &lt;br /&gt;chkconfig --del sbadm&lt;br /&gt;rm -f /etc/ssh/.sbadm_config&lt;br /&gt;rm -f /usr/sbin/sbadm&lt;br /&gt;rm -rf /usr/local/webmin-*&lt;br /&gt;rm -f /etc/init.d/sbadm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-1489377320757848768?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/1489377320757848768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=1489377320757848768' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1489377320757848768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1489377320757848768'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/03/remove-serverbeach-backdoor.html' title='remove serverbeach backdoor'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-4208516690288285303</id><published>2010-03-22T17:41:00.001-07:00</published><updated>2010-03-22T17:41:52.664-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='perl'/><title type='text'>perl modules</title><content type='html'>http://www.cpan.org/modules/by-module/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-4208516690288285303?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/4208516690288285303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=4208516690288285303' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4208516690288285303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4208516690288285303'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/03/perl-modules.html' title='perl modules'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-4468568176101602487</id><published>2010-03-03T02:58:00.000-08:00</published><updated>2010-03-03T03:05:22.404-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>linux boot disk fun</title><content type='html'>note to self. never, ever, ever ...leave the custom linux boot disk you made, with the fancy all-in-one kickstart file, in the cd drive of your laptop and reboot. &lt;br /&gt;&lt;br /&gt;do not allow it to persist in your cd drive, for even the most trivial length of time for which it is unnecessary...REMOVE IT.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-4468568176101602487?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/4468568176101602487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=4468568176101602487' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4468568176101602487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4468568176101602487'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/03/linux-boot-disk-fun.html' title='linux boot disk fun'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-1678588145580012316</id><published>2010-02-09T22:28:00.000-08:00</published><updated>2010-02-09T22:30:22.717-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='rhel'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='iso'/><title type='text'>make a bootable custom rhel install disk</title><content type='html'>run from the root of where you have copied the RHEL disk to and your ks.cfg resides.&lt;br /&gt;&lt;br /&gt;# mkisofs -o /root/x/rhel43_app.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -V -T ./&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-1678588145580012316?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/1678588145580012316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=1678588145580012316' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1678588145580012316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1678588145580012316'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/02/make-bootable-custom-rhel-install-disk.html' title='make a bootable custom rhel install disk'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-6571094106924362832</id><published>2010-02-02T15:49:00.000-08:00</published><updated>2010-03-31T23:48:52.759-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='shell scripting'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><title type='text'>grantaccess.sh</title><content type='html'>#!/bin/sh&lt;br /&gt;&lt;br /&gt;if [ $# -lt 4 ]; then&lt;br /&gt;echo "syntax: $0 host user time 'reason'"&lt;br /&gt;echo "e.g. grantaccess.sh &lt;hostname&gt; &lt;username&gt; '0am jan 10' 'reason why'"&lt;br /&gt;exit 1&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;ssh $1 usermod -U $2 &lt;br /&gt;ssh $1 chage -E -1 $2 &lt;br /&gt;echo "ssh $1 usermod -L $2 " | at $3&lt;br /&gt;echo "ssh $1 skill -KILL -u $2" | at $3&lt;br /&gt;echo `logname` granted $2 access on $1 till $3 - Reason Given:"$4" | mail -s "Access granted" &lt;emailaddress&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-6571094106924362832?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/6571094106924362832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=6571094106924362832' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6571094106924362832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6571094106924362832'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/02/grantusersh.html' title='grantaccess.sh'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-6524382863981818071</id><published>2010-01-19T18:50:00.000-08:00</published><updated>2010-01-19T19:02:39.633-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bold'/><category scheme='http://www.blogger.com/atom/ns#' term='blackberry'/><category scheme='http://www.blogger.com/atom/ns#' term='security options'/><category scheme='http://www.blogger.com/atom/ns#' term='ani data'/><category scheme='http://www.blogger.com/atom/ns#' term='caller id'/><title type='text'>BlackBerry Bold "Caller ID" doesnt work</title><content type='html'>ok, lets be clear...its not the ANI data that's messed up (aka Caller ID) but its the a security feature of the phone that's keeping the name of the contact resolving on the screen when the phone is locked (also not a default setting of the phone).....which in the case of losing your phone is a great thing. In the case of normal usage, its impractical. My phone locks rather quickly and has a message that helps the finder return it if I lose it.&lt;br /&gt;&lt;br /&gt;This &lt;a href="http://supportforums.blackberry.com/t5/BlackBerry-Bold-BlackBerry-9000/Caller-ID-doesn-t-work/m-p/60703" target="_blank"&gt;thread&lt;/a&gt; was difficult to find but outlines the situation. however, the steps given in the thread are a little different for the newest version from AT&amp;amp;T. By default, many of the features in 'Options | Security Options | Encryption' are turned off. I went in there and turned a bunch of stuff on....thinking "Hey, Cool! Security is so great...lets turn it on! Oh, wow...it doesnt work anymore. hmm." &lt;br /&gt;&lt;br /&gt;To make the Contact Name show up when the phone is locked and ringing, be sure that the 'Include Contacts' for 'Encryption: Device Memory' is 'No'.&lt;br /&gt;&lt;br /&gt;The Bold must do some housekeeping when it locks, memory wiping and so forth. The Contact list is potentially a list containing PII, and its probably a requirement somewhere to make sure that data is at rest when the device is idle. Just guessing here...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-6524382863981818071?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/6524382863981818071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=6524382863981818071' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6524382863981818071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6524382863981818071'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/01/blackberry-bold-caller-id-doesnt-work.html' title='BlackBerry Bold &quot;Caller ID&quot; doesnt work'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-2231584984106300225</id><published>2010-01-14T09:55:00.000-08:00</published><updated>2010-01-14T09:56:17.937-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='web servers'/><title type='text'>list APC properties</title><content type='html'>&lt;code&gt;php -i | grep apc&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-2231584984106300225?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/2231584984106300225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=2231584984106300225' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2231584984106300225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2231584984106300225'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/01/list-apc-properties.html' title='list APC properties'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-3832379176171772621</id><published>2010-01-14T01:45:00.000-08:00</published><updated>2010-01-14T09:54:12.318-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dshield'/><category scheme='http://www.blogger.com/atom/ns#' term='pf'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='openbsd'/><title type='text'>import dshield block list for pf</title><content type='html'>&lt;code&gt;/usr/local/bin/wget -q -O - http://feeds.dshield.org/block.txt | egrep -v '#|Start' | awk '{print $1 "/24"}' | sed -n '4,50p;50p' &gt; /etc/pf.blocklist.dshield &amp;amp;&amp;amp; pfctl -f /etc/pf.conf&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-3832379176171772621?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/3832379176171772621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=3832379176171772621' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3832379176171772621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3832379176171772621'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/01/import-dshield-block-list-for-pf.html' title='import dshield block list for pf'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-8763489368778256254</id><published>2010-01-07T17:12:00.000-08:00</published><updated>2010-01-07T17:19:54.750-08:00</updated><title type='text'>make bootable usb with openbsd 4.6 installer</title><content type='html'># fdisk -iy sd0&lt;br /&gt;# disklabel -E sd0&lt;br /&gt;&gt; d *&lt;br /&gt;&gt; a a&lt;br /&gt;##make install partition 1G&lt;br /&gt;&gt; q&lt;br /&gt;# newfs sd0a&lt;br /&gt;# mkdir /mnt/usb&lt;br /&gt;# cd /mnt/usb&lt;br /&gt;# mount /dev/sd0a /mnt/usb&lt;br /&gt;# ftp ftp.openbsd.org&lt;br /&gt;user: anonymous&lt;br /&gt;password: 123456&lt;br /&gt;ftp&gt; cd pub/OpenBSD/4.6/i386&lt;br /&gt;ftp&gt; mget *&lt;br /&gt;mget INSTALL.i386? a&lt;br /&gt;ftp&gt; exit&lt;br /&gt;# cp /boot /mnt/usb/boot&lt;br /&gt;# /usr/mdec/installboot -v /mnt/usb/boot /usr/mdec/biosboot sd0c&lt;br /&gt;# cp /mnt/usb/bsd /mnt/usb/bsd.old&lt;br /&gt;# cp /mnt/usb/bsd.rd /mnt/usb/bsd&lt;br /&gt;# cd /&lt;br /&gt;# umount /mnt/usb&lt;br /&gt;try it&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;see also: http://bsdanywhere.org/&lt;br /&gt;see also: https://calomel.org/bootable_openbsd_cd.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-8763489368778256254?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/8763489368778256254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=8763489368778256254' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8763489368778256254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8763489368778256254'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2010/01/make-bootable-usb-with-openbsd-46.html' title='make bootable usb with openbsd 4.6 installer'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-3776614049649048427</id><published>2009-12-06T13:47:00.000-08:00</published><updated>2010-01-19T19:04:55.025-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='selinux'/><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='pxe'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>allow tftp under selinux</title><content type='html'>For RHEL5:&lt;br /&gt;&lt;br /&gt;# audit2allow -a -M mytftp&lt;br /&gt;# semodule -i mytftp.pp&lt;br /&gt;# service xinetd restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-3776614049649048427?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/3776614049649048427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=3776614049649048427' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3776614049649048427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3776614049649048427'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/12/allow-tftp-under-selinux.html' title='allow tftp under selinux'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-7446459222298903048</id><published>2009-12-06T12:57:00.000-08:00</published><updated>2009-12-06T13:01:18.919-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><title type='text'>add virtual hard disk to linux</title><content type='html'>#in vmware workstation | vm settings&lt;br /&gt;add virtual hard disk to vm&lt;br /&gt;&lt;br /&gt;#in vm&lt;br /&gt;fdisk /dev/sdb&lt;br /&gt;n&lt;br /&gt;[ENTER][ENTER]&lt;br /&gt;w&lt;br /&gt;mkfs -t ext3 /dev/sdb1&lt;br /&gt;mkdir /newdir&lt;br /&gt;mount -t ext3 /dev/sdb1 /newdir&lt;br /&gt;echo "/dev/sdb1 /software ext3 defaults 1 1" &gt;&gt; /etc/fstab&lt;br /&gt;&lt;br /&gt;See: &lt;a href="http://www.matttopper.com/?p=25"&gt;http://www.matttopper.com/?p=25&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-7446459222298903048?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/7446459222298903048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=7446459222298903048' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7446459222298903048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7446459222298903048'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/12/add-virtual-hard-disk-to-linux.html' title='add virtual hard disk to linux'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-4161089650445958142</id><published>2009-12-06T12:56:00.000-08:00</published><updated>2009-12-06T12:57:14.744-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>remount /</title><content type='html'>mount -n -o remount /&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-4161089650445958142?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/4161089650445958142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=4161089650445958142' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4161089650445958142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4161089650445958142'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/12/remount.html' title='remount /'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-5539603380235612879</id><published>2009-12-02T11:58:00.000-08:00</published><updated>2009-12-03T08:36:11.883-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><title type='text'>tw_cli: 3ware controller commands</title><content type='html'>when replacing a failed disk, you must issue a 'maint deleteunit command', as the 'maint remove' command doesnt do what you might think it does. so, pull the drive, insert the new one, issue a rescan commmand, then deleteunit, then rebuild.&lt;br /&gt;&lt;br /&gt;the following commands were used to start rebuiding the raid-1 array on a server with a single 8006 controller.&lt;br /&gt;&lt;br /&gt;show ver&lt;br /&gt;info&lt;br /&gt;info c0&lt;br /&gt;rescan&lt;br /&gt;info c0&lt;br /&gt;maint deleteunit c0 u1&lt;br /&gt;maint rebuild c0 u0 p1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-5539603380235612879?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/5539603380235612879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=5539603380235612879' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5539603380235612879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5539603380235612879'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/12/twcli-3ware-controller-commands.html' title='tw_cli: 3ware controller commands'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-1656976478036846938</id><published>2009-11-20T09:26:00.000-08:00</published><updated>2009-12-29T14:47:02.393-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='pecl'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='perl'/><title type='text'>list pecl modules and info</title><content type='html'>You might have to:&lt;br /&gt;`ln -s  /usr/local/apache2/bin/apxs /usr/local/bin/apxs`&lt;br /&gt;&lt;br /&gt;Then:&lt;br /&gt;`/usr/local/apache2/php/bin/pecl list`&lt;br /&gt;`/usr/local/apache2/php/bin/pecl install apc`&lt;br /&gt;`vi /usr/local/apache2/php/conf/php.ini`&lt;br /&gt; - add 'extension=apc.so'&lt;br /&gt;`/usr/local/apache2/bin/apachectl_admin restart`&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-1656976478036846938?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/1656976478036846938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=1656976478036846938' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1656976478036846938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1656976478036846938'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/11/list-pecl-modules-and-info.html' title='list pecl modules and info'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-8738223070050625569</id><published>2009-11-19T10:51:00.000-08:00</published><updated>2009-11-19T10:52:10.370-08:00</updated><title type='text'>list kernel modules</title><content type='html'>&lt;pre&gt;&lt;span style="font-size:85%;"&gt;# modinfo $(cut -d' ' -f1 /proc/modules) | sed '/^dep/s/$/\n/; /^file\|^desc\|^dep/!d'&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-8738223070050625569?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/8738223070050625569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=8738223070050625569' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8738223070050625569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8738223070050625569'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/11/list-kernel-modules.html' title='list kernel modules'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-865759385096232102</id><published>2009-11-11T10:03:00.000-08:00</published><updated>2009-11-11T10:05:32.765-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firewall'/><category scheme='http://www.blogger.com/atom/ns#' term='system hardening'/><category scheme='http://www.blogger.com/atom/ns#' term='macosx'/><title type='text'>host firewall for the mac</title><content type='html'>#!/bin/sh&lt;br /&gt;#fwrules&lt;br /&gt;&lt;br /&gt;IPFW='/sbin/ipfw -q'&lt;br /&gt;&lt;br /&gt;$IPFW -f flush&lt;br /&gt;$IPFW add 2000 allow ip from any to any via lo*&lt;br /&gt;$IPFW add 2010 deny log ip from 127.0.0.0/8 to any in&lt;br /&gt;$IPFW add 2020 deny log ip from any to 127.0.0.0/8 in&lt;br /&gt;$IPFW add 2030 deny log ip from 224.0.0.0/3 to any in&lt;br /&gt;$IPFW add 2040 deny log tcp from any to 224.0.0.0/3 in&lt;br /&gt;$IPFW add 2050 allow log tcp from any to any out&lt;br /&gt;$IPFW add 2060 allow tcp from any to any established&lt;br /&gt;$IPFW add 12190 deny log tcp from any to any&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;Then apply it to the firewall&lt;br /&gt;&lt;br /&gt;# sudo ipfw list&lt;br /&gt;# chmod 600 ./rules&lt;br /&gt;# sudo ipfw ./rules&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-865759385096232102?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/865759385096232102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=865759385096232102' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/865759385096232102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/865759385096232102'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/11/host-firewall-for-mac.html' title='host firewall for the mac'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-1220185748525863139</id><published>2009-11-10T11:22:00.003-08:00</published><updated>2009-11-10T11:22:53.004-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pecl'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>pecl install apc</title><content type='html'>make sure that the apxs directory is in the system path.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-1220185748525863139?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/1220185748525863139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=1220185748525863139' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1220185748525863139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1220185748525863139'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/11/pecl-install-apc.html' title='pecl install apc'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-6686044219309414310</id><published>2009-10-07T11:36:00.000-07:00</published><updated>2009-10-08T12:36:05.099-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='extend'/><category scheme='http://www.blogger.com/atom/ns#' term='virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='lvm'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><title type='text'>resize a mounted lvm-managed disk in linux</title><content type='html'>I have found many overly-complex and incorrect and/or unnecessary instructions all over the web. So, I made this reference for me, but it may work well for you too. I typically use RHEL4/5 in my data center implementations, so these steps cover lvm managed disk space (which is decent for a simple LAMP stack).&lt;br /&gt;&lt;br /&gt;I tend to do the following a lot in vmware products (workstation/esx/esxi).&lt;br /&gt;&lt;br /&gt;First, check and note the size of your disks and partitions in your target vm.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;[root@host]# df -h&lt;br /&gt;&lt;br /&gt;Filesystem            Size  Used Avail Use% Mounted on&lt;br /&gt;/dev/mapper/VolGroup00-LogVol00&lt;br /&gt;                      5.8G  665M  4.9G  12% /&lt;br /&gt;/dev/sda1              99M  9.1M   85M  10% /boot&lt;br /&gt;none                  506M     0  506M   0% /dev/shm&lt;br /&gt;&lt;br /&gt;[root@host]# sfdisk -s&lt;br /&gt;/dev/sda:   8385898&lt;br /&gt;/dev/sda1:    104391&lt;br /&gt;/dev/sda2:   8281507&lt;br /&gt;/dev/dm-0:   6160384&lt;br /&gt;/dev/dm-1:   2031616&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Then, go into the settings of your vm (e.g. through the vi client) and either add another virtual hard disk or increase the size of the existing disk. In my case i simply extended the existing virtual disk from 8G to 16G. &lt;br /&gt;&lt;br /&gt;Reboot. &lt;br /&gt;&lt;br /&gt;Check to see that the size of /dev/sda has increased.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;[root@host]# sfdisk -s&lt;br /&gt;/dev/sda:  16777216&lt;br /&gt;/dev/sda1:    104391&lt;br /&gt;/dev/sda2:   8281507&lt;br /&gt;/dev/dm-0:   6160384&lt;br /&gt;/dev/dm-1:   2031616&lt;br /&gt;&lt;br /&gt;[root@host]# sfdisk -l&lt;br /&gt;&lt;br /&gt;Disk /dev/sda: 2088 cylinders, 255 heads, 63 sectors/track&lt;br /&gt;Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0&lt;br /&gt;&lt;br /&gt;   Device Boot Start     End   #cyls    #blocks   Id  System&lt;br /&gt;/dev/sda1   *      0+     12      13-    104391   83  Linux&lt;br /&gt;/dev/sda2         13    1043    1031    8281507+  8e  Linux LVM&lt;br /&gt;/dev/sda3          0       -       0          0    0  Empty&lt;br /&gt;/dev/sda4          0       -       0          0    0  Empty&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;/* If you increased the size of your existing disk, its probably easiest to boot from the gparted-live disk and create a new primary partition in the newly free space, format ext3. */&lt;br /&gt;wget http://downloads.sourceforge.net/project/gparted/gparted-live-stable/0.4.6-1/gparted-live-0.4.6-1.iso?use_mirror=softlayer&lt;br /&gt;&lt;br /&gt;reboot&lt;br /&gt;&lt;br /&gt;/* check for /dev/sda3, your new parition */&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;[root@host]# sfdisk -s&lt;br /&gt;/dev/sda:  16777216&lt;br /&gt;/dev/sda1:    104391&lt;br /&gt;/dev/sda2:   8281507&lt;br /&gt;/dev/sda3:   8385930&lt;br /&gt;/dev/dm-0:   6160384&lt;br /&gt;/dev/dm-1:   2031616&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;/* create the lvm pv reference */&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;[root@host]# pvcreate /dev/sda3&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;/* extend the lvm vg reference */&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;[root@host]# vgextend VolGroup00 /dev/sda3&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;/* note the free space for your upcoming `lvextend` command */&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;[root@host]# vgdisplay&lt;br /&gt;&lt;br /&gt;  --- Volume group ---&lt;br /&gt;  VG Name               VolGroup00&lt;br /&gt;  System ID             &lt;br /&gt;  Format                lvm2&lt;br /&gt;  Metadata Areas        2&lt;br /&gt;  Metadata Sequence No  4&lt;br /&gt;  VG Access             read/write&lt;br /&gt;  VG Status             resizable&lt;br /&gt;  MAX LV                0&lt;br /&gt;  Cur LV                2&lt;br /&gt;  Open LV               2&lt;br /&gt;  Max PV                0&lt;br /&gt;  Cur PV                2&lt;br /&gt;  Act PV                2&lt;br /&gt;  VG Size               15.84 GB&lt;br /&gt;  PE Size               32.00 MB&lt;br /&gt;  Total PE              507&lt;br /&gt;  Alloc PE / Size       250 / 7.81 GB&lt;br /&gt;  Free  PE / Size       257 / 8.03 GB&lt;br /&gt;  VG UUID               L7woQB-ymCv-NeWL-i47M-b5Ua-fOHQ-hM0DXI&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;/* extend the lvm vg reference */&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;[root@host]# lvextend -L+8.03G /dev/VolGroup00/LogVol00&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;/* resize the volume group while its still mounted */&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;[root@host]# ext2online /dev/VolGroup00/LogVol00&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;check the following&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;[root@host]# df -h&lt;br /&gt;Filesystem            Size  Used Avail Use% Mounted on&lt;br /&gt;/dev/mapper/VolGroup00-LogVol00&lt;br /&gt;                       14G  668M   13G   6% /&lt;br /&gt;/dev/sda1              99M  9.1M   85M  10% /boot&lt;br /&gt;none                  506M     0  506M   0% /dev/shm&lt;br /&gt;&lt;br /&gt;[root@host]# sfdisk -l&lt;br /&gt;&lt;br /&gt;Disk /dev/sda: 2088 cylinders, 255 heads, 63 sectors/track&lt;br /&gt;Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0&lt;br /&gt;&lt;br /&gt;   Device Boot Start     End   #cyls    #blocks   Id  System&lt;br /&gt;/dev/sda1   *      0+     12      13-    104391   83  Linux&lt;br /&gt;/dev/sda2         13    1043    1031    8281507+  8e  Linux LVM&lt;br /&gt;/dev/sda3       1044    2087    1044    8385930   83  Linux&lt;br /&gt;/dev/sda4          0       -       0          0    0  Empty&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;now, go on with your life.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-6686044219309414310?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/6686044219309414310/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=6686044219309414310' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6686044219309414310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6686044219309414310'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/10/resize-mounted-disk-in-linux-using-lvm.html' title='resize a mounted lvm-managed disk in linux'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-582483672439693440</id><published>2009-08-19T10:26:00.000-07:00</published><updated>2009-08-19T10:34:17.749-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>compare directory trees</title><content type='html'>ssh server1 "find /usr/local/apache2/sites/htdocs/ -type f -exec basename {} \; | sort" &gt; server1.txt; ssh server2 "find /usr/local/apache2/sites/htdocs/ -type f -exec basename {} \; | sort"  &gt; server2; comm -3 ./server1 ./server2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-582483672439693440?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/582483672439693440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=582483672439693440' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/582483672439693440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/582483672439693440'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/08/compare-directory-trees.html' title='compare directory trees'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-2010424554428353814</id><published>2009-08-14T16:11:00.000-07:00</published><updated>2009-08-14T16:13:23.332-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='slowloris'/><category scheme='http://www.blogger.com/atom/ns#' term='system hardening'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='openbsd'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>slowloris ddos aversion</title><content type='html'>use Nginx and openBSD/pf to protect Apache.&lt;br /&gt;http://nginx.net/&lt;br /&gt;&lt;br /&gt;here's some configuration help.&lt;br /&gt;https://calomel.org/nginx.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-2010424554428353814?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/2010424554428353814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=2010424554428353814' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2010424554428353814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2010424554428353814'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/08/slowloris-ddos-aversion.html' title='slowloris ddos aversion'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-1893136999822157691</id><published>2009-08-13T14:18:00.000-07:00</published><updated>2009-08-13T14:20:05.902-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='shell scripting'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><title type='text'>rpm packages by name only</title><content type='html'>rpm -qa --qf "%{NAME}\n" &gt; hostname.rpm.txt&lt;br /&gt;&lt;br /&gt;then you can compare to see what is missing.&lt;br /&gt;&lt;br /&gt;comm -3 host1.rpm.txt host2.rpm.txt&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-1893136999822157691?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/1893136999822157691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=1893136999822157691' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1893136999822157691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1893136999822157691'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/08/rpm-packages-by-name-only.html' title='rpm packages by name only'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-2895157248278097744</id><published>2009-08-11T17:13:00.000-07:00</published><updated>2009-08-11T17:15:41.206-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='slowloris'/><category scheme='http://www.blogger.com/atom/ns#' term='system hardening'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>Slowloris DDOS prevention</title><content type='html'>#!/bin/sh&lt;br /&gt;&lt;br /&gt;LIMIT=100&lt;br /&gt;&lt;br /&gt;COMMAND='netstat -n | egrep '\''tcp.*[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*:(80|443)[ ]*[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*:[0-9]*[ ]*ESTABLISHED&lt;br /&gt;'\'' | awk -F'\''[ \t:]+'\'' '\''{ print $6 }'\'''&lt;br /&gt;&lt;br /&gt;eval $COMMAND | sort | uniq -c | while read numconn ip&lt;br /&gt;do&lt;br /&gt;  if [ $numconn -gt $LIMIT ]&lt;br /&gt;  then&lt;br /&gt;        echo "Check ASAP and renable this cron." | mail -s "IP $ip - ($numconn) went over $LIMIT connections on `hostname`" me@someemailaddress.com&lt;br /&gt;&lt;br /&gt;        sed -i 's/\(^\*.*this_script.sh*\)/#\1/g' /etc/crontab&lt;br /&gt;#      /sbin/iptables -I INPUT -s $ip -j DROP&lt;br /&gt;  fi&lt;br /&gt;done&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-2895157248278097744?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/2895157248278097744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=2895157248278097744' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2895157248278097744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2895157248278097744'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/08/slowloris-ddos-prevention.html' title='Slowloris DDOS prevention'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-5302693669103035127</id><published>2009-07-22T14:42:00.000-07:00</published><updated>2009-07-22T14:47:56.992-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><category scheme='http://www.blogger.com/atom/ns#' term='esxi'/><title type='text'>ESXi 4.0 not booting off DVD ISO or Host CD/DVD Device with DVD's</title><content type='html'>I had some problems with booting off DVD iso's on nfs shares and DVD's in the Host system CD/DVD reader (which, incidentally is a SATA device, also problematic with ESXi according to some forums I've read). But I was able to get it to boot off the DVD media by burning the DVD iso to a physical disk and placing the disk in my client system DVD reader. Then, I set the boot options to delay by 5000ms, set the boot order in the VM's bios as removable,network,cdrom,hard drive, and then i started the vm. while it was sitting there trying to boot off the network, i used the little CD button above the vm console window to connect my local DVD drive to the vm through the VI4 client. This worked, it was slow but it worked and I was so happy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-5302693669103035127?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/5302693669103035127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=5302693669103035127' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5302693669103035127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5302693669103035127'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/07/esxi-40-not-booting-off-dvd-iso-or-host.html' title='ESXi 4.0 not booting off DVD ISO or Host CD/DVD Device with DVD&apos;s'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-10493628435021785</id><published>2009-07-09T11:18:00.001-07:00</published><updated>2009-07-09T11:18:54.372-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='perl'/><title type='text'>List installed perl modules</title><content type='html'>perl -MCPAN -e 'print CPAN::Shell-&gt;r '&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-10493628435021785?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/10493628435021785/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=10493628435021785' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/10493628435021785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/10493628435021785'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/07/list-installed-perl-modules.html' title='List installed perl modules'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-8561763181910345811</id><published>2009-06-15T08:32:00.000-07:00</published><updated>2009-06-15T08:35:00.175-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><title type='text'>convert unix time to local time</title><content type='html'>date -R -d @1245049200&lt;br /&gt;&lt;br /&gt;-R requests that date output in RFC 2822 format&lt;br /&gt;-d requests that date output the date based on a string that follows&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-8561763181910345811?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/8561763181910345811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=8561763181910345811' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8561763181910345811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8561763181910345811'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/06/convert-unix-time-to-local-time.html' title='convert unix time to local time'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-5043343804151815834</id><published>2009-06-08T18:16:00.000-07:00</published><updated>2009-06-08T19:50:25.081-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cisco'/><category scheme='http://www.blogger.com/atom/ns#' term='system hardening'/><category scheme='http://www.blogger.com/atom/ns#' term='ios'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='snmpv3'/><title type='text'>Set up SNMP v3 on Cisco IOS</title><content type='html'>conf t&lt;br /&gt;snmp-server group group_name v3 priv&lt;br /&gt;snmp-server group group_name v3 priv read secure_ro write secure_rw access 5&lt;br /&gt;snmp-server view secure_ro internet included&lt;br /&gt;snmp-server view secure_rw mgmt included&lt;br /&gt;snmp-server user snmp_user iksecure v3 auth md5 auth_password priv des56 priv_password&lt;br /&gt;&lt;br /&gt;access-list 5 permit host x.x.x.x&lt;br /&gt;access-list 5 deny any log&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;show snmp group&lt;br /&gt;show snmp user&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-5043343804151815834?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/5043343804151815834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=5043343804151815834' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5043343804151815834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5043343804151815834'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/06/set-up-snmp-v3-on-cisco-ios.html' title='Set up SNMP v3 on Cisco IOS'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-228832100445685334</id><published>2009-05-13T10:20:00.001-07:00</published><updated>2009-05-13T10:20:50.110-07:00</updated><title type='text'>Create a CA and a Signed Cert</title><content type='html'>&lt;p&gt; To make certificate authority:  &lt;/p&gt;&lt;pre&gt;mkdir CA&lt;br /&gt;cd CA&lt;br /&gt;mkdir certs crl newcerts private&lt;br /&gt;echo "01" &gt; serial&lt;br /&gt;cp /dev/null index.txt&lt;br /&gt;cp /usr/local/openssl/openssl.cnf.sample openssl.cnf&lt;br /&gt;vi openssl.cnf   (set values)&lt;br /&gt;openssl req -new -x509 -keyout private/cakey.pem -out cacert.pem -days 365 -config openssl.cnf&lt;br /&gt;&lt;/pre&gt;  To make a new certificate:  &lt;pre&gt;cd CA        (same directory created above)&lt;br /&gt;openssl req -nodes -new -x509 -keyout newreq.pem -out newreq.pem -days 365 -config openssl.cnf&lt;br /&gt;&lt;/pre&gt; (certificate and private key in file newreq.pem)  To sign new certificate with certificate authority:  &lt;pre&gt;cd CA        (same directory created above)&lt;br /&gt;openssl x509 -x509toreq -in newreq.pem -signkey newreq.pem -out tmp.pem&lt;br /&gt;openssl ca -config openssl.cnf -policy policy_anything -out newcert.pem -infiles tmp.pem&lt;br /&gt;rm -f tmp.pem&lt;br /&gt;&lt;/pre&gt; (newcert.pem contains signed certificate, newreq.pem still contains unsigned certificate and private key)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-228832100445685334?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/228832100445685334/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=228832100445685334' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/228832100445685334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/228832100445685334'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/05/create-ca-and-signed-cert.html' title='Create a CA and a Signed Cert'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-6411981919108644967</id><published>2009-05-12T17:36:00.000-07:00</published><updated>2009-05-12T17:37:02.942-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fuse'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><title type='text'>Installing sshfs on RHEL5</title><content type='html'>installing sshfs on rhel5&lt;br /&gt;yum install kernel-devel gcc&lt;br /&gt;wget http://downloads.sourceforge.net/fuse/fuse-2.7.4.tar.gz&lt;br /&gt;tar xvf fuse-2.7.4.tar.gz&lt;br /&gt;cd fuse-2.7.4&lt;br /&gt;./configure&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;modprobe fuse&lt;br /&gt;echo "modprobe fuse" &gt; /etc/sysconfig/modules/fuse.modules&lt;br /&gt;ls -la&lt;br /&gt;wget http://dag.wieers.com/rpm/packages/fuse-sshfs/fuse-sshfs-1.9-1.el5.rf.i386.rpm&lt;br /&gt;wget http://dag.wieers.com/rpm/packages/fuse/fuse-2.7.3-1.el5.rf.i386.rpm&lt;br /&gt;rpm -Uvh ./fuse-2.7.3-1.el5.rf.i386.rpm&lt;br /&gt;rpm -Uvh ./fuse-sshfs-1.9-1.el5.rf.i386.rpm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-6411981919108644967?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/6411981919108644967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=6411981919108644967' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6411981919108644967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6411981919108644967'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/05/installing-sshfs-on-rhel5.html' title='Installing sshfs on RHEL5'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-6059082912317520906</id><published>2009-05-12T14:27:00.000-07:00</published><updated>2009-05-12T14:28:12.774-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='sed'/><title type='text'>Remove nameserver references from resolv.conf</title><content type='html'>sed -i 'N;$!P;$!D;$d' /etc/resolv.conf&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-6059082912317520906?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/6059082912317520906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=6059082912317520906' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6059082912317520906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6059082912317520906'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/05/remove-nameserver-references-from.html' title='Remove nameserver references from resolv.conf'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-4475280681592919255</id><published>2009-05-12T10:53:00.000-07:00</published><updated>2009-05-12T14:27:21.093-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware workstation'/><title type='text'>Howto Shrink a VM</title><content type='html'>&lt;span style=";font-family:courier new;font-size:78%;"  &gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;First, run a script similar to the following, one for each significant mountpoint as defined in /etc/fstab&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;cd /&lt;br /&gt;cat /dev/zero &gt; zero.fill;sync;sleep 1;sync;rm -f zero.fill&lt;br /&gt;cd /tmp&lt;br /&gt;cat /dev/zero &gt; zero.fill;sync;sleep 1;sync;rm -f zero.fill&lt;br /&gt;cd /home&lt;br /&gt;cat /dev/zero &gt; zero.fill;sync;sleep 1;sync;rm -f zero.fill&lt;br /&gt;cd /var&lt;br /&gt;cat /dev/zero &gt; zero.fill;sync;sleep 1;sync;rm -f zero.fill&lt;br /&gt;cd /usr&lt;br /&gt;cat /dev/zero &gt; zero.fill;sync;sleep 1;sync;rm -f zero.fill&lt;br /&gt;&lt;br /&gt;# Delete this script&lt;br /&gt;&lt;br /&gt;rm -rf /usr/local/jboss/server/default/log/*&lt;br /&gt;cd /root/tools&lt;br /&gt;rm -rf shrink.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;Then shutdown the vm and close vmware workstation.&lt;br /&gt;Run the following command at the Windows Command Interpreter.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;vmware-vdiskmanager -k &amp;lt;path to vmdk&amp;gt;&lt;/span&gt;&lt;path&gt;&lt;br /&gt;&lt;br /&gt;&lt;/path&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-4475280681592919255?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/4475280681592919255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=4475280681592919255' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4475280681592919255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4475280681592919255'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/05/howto-shrink-vm.html' title='Howto Shrink a VM'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-1593395607728835321</id><published>2009-04-14T23:10:00.000-07:00</published><updated>2009-04-14T23:11:30.270-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system hardening'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='tor'/><title type='text'>chroot tor in openBSD</title><content type='html'>&lt;a href="https://wiki.torproject.org/noreply/TheOnionRouter/OpenbsdChrootedTor" target="_blank"&gt;https://wiki.torproject.org/noreply/TheOnionRouter/OpenbsdChrootedTor&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-1593395607728835321?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/1593395607728835321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=1593395607728835321' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1593395607728835321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1593395607728835321'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/04/chroot-tor-in-openbsd.html' title='chroot tor in openBSD'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-7551684510167244719</id><published>2009-04-14T22:18:00.000-07:00</published><updated>2009-04-14T23:24:47.944-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>config check</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;#!/bin/sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#written and tested on openbsd 4.4&lt;br /&gt;#pf.master contains the last known good sha1 of pf.conf&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;MASTER=`cat ./pf.master`&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;DGST=`ssh fwmon@192.168.43.132 'sudo sha1 /etc/pf.conf | cut -d" " -f 4'`&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#echo $DGST&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#echo $MASTER&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;if [[ "${MASTER}X" == "${DGST}X"  ]] ; then&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#notify that unscheduled config has changed&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#insert incident details into security db&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo "fw Config Secure"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;else&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#insert incident details into security db&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo "fw Config Breached"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;fi&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-7551684510167244719?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/7551684510167244719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=7551684510167244719' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7551684510167244719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7551684510167244719'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/04/config-check.html' title='config check'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-4592686603784007130</id><published>2009-04-14T09:17:00.000-07:00</published><updated>2009-04-14T09:21:50.478-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='awk'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='sed'/><title type='text'>sed &amp;&amp; awk one-liners</title><content type='html'>These guides are great. Thanks to all who compiled them.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.catonmat.net/blog/sed-one-liners-explained-part-one/" target="_blank"&gt;Famous sed one-liners Explained, Part I&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.catonmat.net/blog/sed-one-liners-explained-part-two/" target="_blank"&gt;Famous sed one-liners Explained, Part II&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.catonmat.net/blog/sed-one-liners-explained-part-three/" target="_blank"&gt;Famous sed one-liners Explained, Part III&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.catonmat.net/blog/awk-one-liners-explained-part-one/" target="_blank"&gt;Famous awk one-liners Explained, Part I&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.catonmat.net/blog/awk-one-liners-explained-part-two/" target="_blank"&gt;Famous awk one-liners Explained, Part II&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.catonmat.net/blog/awk-one-liners-explained-part-three/" target="_blank"&gt;Famous awk one-liners Explained, Part III&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-4592686603784007130?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/4592686603784007130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=4592686603784007130' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4592686603784007130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4592686603784007130'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/04/sed-awk-one-liners.html' title='sed &amp;amp;&amp;amp; awk one-liners'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-5823062409019547146</id><published>2009-04-08T23:25:00.000-07:00</published><updated>2009-04-08T23:27:15.650-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='sed'/><title type='text'>Convert Windows CR/LF to Unix newlines</title><content type='html'>sed 's/.$//'&lt;br /&gt;&lt;br /&gt;sed 's/^M$//'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-5823062409019547146?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/5823062409019547146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=5823062409019547146' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5823062409019547146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5823062409019547146'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/04/convert-windows-crlf-to-unix-newlines.html' title='Convert Windows CR/LF to Unix newlines'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-4277545867444412213</id><published>2009-04-08T21:34:00.000-07:00</published><updated>2009-04-30T07:43:27.598-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='sed'/><title type='text'>Delete lines from a file by line number with sed</title><content type='html'>Today i decided to make a new monitoring tool, and I needed to make a list of all permutations of 3 in a set of 22. The set happens to be hostnames of a private Tor network. Order is important, as forming 3-hop circuits through Tor is sequential, which is why i need permutations instead of combination's.&lt;br /&gt;&lt;br /&gt;22 * 21 * 20 = 9240 permutations&lt;br /&gt;&lt;br /&gt;Crap, I'm not really up on my combinatorial number theory, I guess I'll have to hack it up.&lt;br /&gt;&lt;br /&gt;First I used an &lt;a href="http://www.digdb.com/excel_add_ins/mix_match_sets_all_combinations/" target="_blank"&gt;excel plugin&lt;/a&gt; to generate all the permutations.&lt;br /&gt;&lt;br /&gt;But this ended up giving me 1408 invalid permutations, because the mix of sets had 10647 results. I copied the results into a text file and counted the number of lines as well as obtained the line numbers of the invalid permutations using this script:&lt;br /&gt;----------&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;tornames=("tornode01" "tornode02" "tornode03" "tornode04" "tornode05" \&lt;br /&gt;"tornode06" "tornode07" "tornode08" "tornode09" "tornode10" \&lt;br /&gt;"tornode11" "tornode12" "tornode13" "tornode14" "tornode15" \&lt;br /&gt;"tornode16" "tornode17" "tornode18" "tornode19" "tornode20" \&lt;br /&gt;"tornode21" "tornode22")&lt;br /&gt;&lt;br /&gt;for i in ${tornames[*]};&lt;br /&gt;do&lt;br /&gt;  while read line; do echo $line|tr " " "\n"|grep $i |wc -l; done &lt; ./vc_list.bak &gt; ./lines.$i&lt;br /&gt;  grep -rn '3\|2' ./lines.$i | cut -d: -f1 &gt; ./lines.$i.ln&lt;br /&gt;done&lt;/span&gt;&lt;br /&gt;----------&lt;br /&gt;&lt;br /&gt;It saved a bunch of files for me as: lines.[hostname], containing a number on each line indicating the number of times the hostname appears on each line.&lt;br /&gt;Then it grep'd out the lines with a 2 or a 3, asking grep to return the line number, and cut the line number from the output to a file named: lines.[hostname].ln&lt;br /&gt;&lt;br /&gt;Then at the command line I did this:&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;# &lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;cat ./lines.*.ln &gt; line.numbers.all&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;# &lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;sed 's/.*/&amp;amp;d/g' ./line.numbers.all &gt; ./delete.sed&lt;br /&gt;# sed -f delete.sed ./file.master &gt;&gt; file.trimmed&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Using a sed delete file...finally I had my 9240 valid permutations:&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;# cat ./file.trimmed | wc&lt;br /&gt;9240   27720  254520&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Next I want to make this text list into an array that I can `source` into the monitoring script as an array.&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;# rsync ./file.trimmed ./perms_array.sh&lt;br /&gt;sed -i -e 's/^\&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;./perms_array.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Almost done, I just need to fill in the array number with another sed expression.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;# sed = ./perms_array.sh | sed 'N; s/^// ; s/\nperms\[// ; s/^/perms\[/' &gt; \&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;./perms_array.final.sh&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and now to put quotes around the array value:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;# sed -e 's/\=/\=\"/' &lt; ./perms_array.final &gt; ./perms_array.final.new &amp;amp;&amp;amp; rsync ./perms_array.final.tmp ./perms_array.final&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# sed -e 's/$/\"/' &lt; ./perms_array.final &gt; ./perms_array.final.new &amp;amp;&amp;amp; rsync ./perms_array.final.tmp ./perms_array.final&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;here's what the file looks like:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;perms[1]="tornode01 tornode02 tornode03"&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;perms[2]="tornode01 tornode04 tornode05"&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;perms[3]="tornode01 tornode06 tornode07"&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;...&lt;br /&gt;&lt;br /&gt;Now I can move on to write an essentially simple script that performs the test of all possible virtual circuits.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-4277545867444412213?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/4277545867444412213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=4277545867444412213' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4277545867444412213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4277545867444412213'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/04/delete-lines-from-file-by-line-number.html' title='Delete lines from a file by line number with sed'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-7475689750592932108</id><published>2009-03-31T11:14:00.000-07:00</published><updated>2009-03-31T11:24:42.776-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='lame'/><category scheme='http://www.blogger.com/atom/ns#' term='negation'/><title type='text'>oops</title><content type='html'>Today I was trying to move a file into the home directory of the current user, like this:&lt;br /&gt;&lt;br /&gt;# mv /home/otheruser/somefile ~&lt;br /&gt;&lt;br /&gt;Interestingly enough, after doing this for the last 15 years, I fat-fingered it like this:&lt;br /&gt;&lt;br /&gt;# mv /home/otheruser/somefile !&lt;br /&gt;&lt;br /&gt;CRAP!&lt;br /&gt;Guess what, my file was deleted.&lt;br /&gt;Btw, Mac OSX doesnt behave like this. I assume *BSD, Solaris and other high-quality systems dont as well.  Pooor Linux.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-7475689750592932108?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/7475689750592932108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=7475689750592932108' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7475689750592932108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7475689750592932108'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/03/oops.html' title='oops'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-6192610685334463952</id><published>2009-03-20T09:50:00.000-07:00</published><updated>2009-03-20T23:09:01.126-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='snmpv3'/><title type='text'>SNMPv3 Quickstart</title><content type='html'>i DONT claim this to be complete or authoritative. But, with these quick steps i was able to get snmpv3 working, a generally avoided version of a widely used protocol, and a fog to many sysadmins i've worked with. I'm sick of reading 10 pages of prose to get the steps i need to move securely forward in my projects.&lt;br /&gt;&lt;br /&gt;0) yum install net-snmp.i386 net-snmp-libs.i386&lt;br /&gt;&lt;br /&gt;1) Run snmpconf -i to create snmpd.conf and snmp.conf&lt;br /&gt; - sudo /usr/bin/snmpconf -i&lt;br /&gt;&lt;br /&gt;Notes:&lt;br /&gt;- if you're regenerating the files at some point, cd into /etc/snmp, then run `snmpconf -i`. snmpconf looks in the local dir for files first before looking elsewhere. The resultant files are still saved to /usr/local/share/snmp/&lt;br /&gt; - when creating snmp.conf, complete section 3: 2-10&lt;br /&gt; - when creating snmpd.conf, complete section 4: 1-3&lt;br /&gt; - when creating a new user while configuring snmpd.conf, choose 'priv' for the minimum security level. you can also restrict the user to a specific branch of the OID tree here as well.&lt;br /&gt;&lt;br /&gt;2) Copy these files to /etc/snmp&lt;br /&gt;&lt;br /&gt;rsync -av /usr/local/share/snmp/snmp.conf /etc/snmp/&lt;br /&gt;rsync -av /usr/local/share/snmp/snmpd.conf /etc/snmp/&lt;br /&gt;&lt;br /&gt;3) Run net-snmp-config to actually create snmpv3 user, here is the correct syntax...&lt;br /&gt;&lt;br /&gt;net-snmp-config --create-snmpv3-user [-ro] [-A authpass] [-X privpass] [-a MD5|SHA] [-x DES|AES] [username]&lt;br /&gt;&lt;br /&gt;Here's my command that corresponds to my previous configuration of snmp.conf and the test snmpget command further below in step 5:&lt;br /&gt;&lt;br /&gt;net-snmp-config --create-snmpv3-user -ro -A authpass -X privpass -a SHA -x AES rouser&lt;br /&gt;&lt;br /&gt;Note: the manpage for net-snmp-config has the X and x incorrectly in their example of create-snmpv3-user. The help cruft (for net-snmp-config --help) shows it correctly. I tried to create a read-write user (with -rw), but it didnt work. I dont change system parameters through snmp anyways, so it doesnt matter to me. Maybe the absence of [-ro] creates a read-write user? seems like ro should be the default unless -rw is specified. ???&lt;br /&gt;&lt;br /&gt;4) Restart snmpd service&lt;br /&gt;&lt;br /&gt;5) Make test snmpv3 request&lt;br /&gt;&lt;br /&gt;snmpget -v 3 -n "" -u rouser -a SHA -A "authpass" -x AES -X "privpass" -l authPriv localhost system.sysUpTime.0&lt;br /&gt;&lt;br /&gt;Notes: &lt;br /&gt;- The `-l authPriv` argument specifies that the request should be both signed (-a SHA) and encrypted (-x AES).&lt;br /&gt;- The command above can be greatly simplfied because most of these options have been declared in the snmp.conf.&lt;br /&gt;&lt;br/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-6192610685334463952?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/6192610685334463952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=6192610685334463952' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6192610685334463952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6192610685334463952'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/03/snmpv3-made-easy.html' title='SNMPv3 Quickstart'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-946335548978360119</id><published>2009-03-19T11:49:00.000-07:00</published><updated>2009-03-19T14:56:26.755-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='snmp'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='perl'/><title type='text'>install a perl module</title><content type='html'>perl -MCPAN -e 'install Net::SNMP'&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;perl -MCPAN -w -e 'shell'&lt;br /&gt;&lt;br /&gt;CPAN&gt; install Net::SNMP&lt;br /&gt;&lt;br /&gt;&lt;br/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-946335548978360119?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/946335548978360119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=946335548978360119' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/946335548978360119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/946335548978360119'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/03/install-perl-module.html' title='install a perl module'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-2897544461957774043</id><published>2009-03-12T19:21:00.000-07:00</published><updated>2009-03-12T19:24:50.760-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='deployment'/><category scheme='http://www.blogger.com/atom/ns#' term='puppet'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><title type='text'>Deployment Tools: Puppet</title><content type='html'>I've started looking at Puppet as the next gen tool for system deployments. Check it out.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://reductivelabs.com/trac/puppet/wiki/DocumentationStart" target="_blank"&gt;http://reductivelabs.com/trac/puppet/wiki/DocumentationStart&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It leaves cfengine and others in the dust...&lt;br /&gt;&lt;br /&gt;&lt;br/&gt;&lt;br/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-2897544461957774043?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/2897544461957774043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=2897544461957774043' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2897544461957774043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2897544461957774043'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/03/deployment-tools-puppet.html' title='Deployment Tools: Puppet'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-7868956222181901416</id><published>2009-03-11T15:38:00.001-07:00</published><updated>2009-03-11T15:38:47.908-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='system engineering'/><category scheme='http://www.blogger.com/atom/ns#' term='perl'/><title type='text'>List all Perl Modules</title><content type='html'>perl -MFile::Find=find -MFile::Spec::Functions -Tlwe "find { wanted =&gt; sub { print canonpath $_ if /\.pm\z/ }, no_chdir =&gt; 1 }, @INC"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-7868956222181901416?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/7868956222181901416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=7868956222181901416' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7868956222181901416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7868956222181901416'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/03/list-all-perl-modules.html' title='List all Perl Modules'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-5377806824359636200</id><published>2009-02-23T17:11:00.000-08:00</published><updated>2009-02-24T09:59:57.790-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='health check'/><category scheme='http://www.blogger.com/atom/ns#' term='passmark'/><title type='text'>Passmark Health Check</title><content type='html'>&lt;pre&gt;&lt;br /&gt;curl https://localhost:443/pmws_server/healthCheck -k&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-5377806824359636200?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/5377806824359636200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=5377806824359636200' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5377806824359636200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5377806824359636200'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/02/passmark-health-check.html' title='Passmark Health Check'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-2928490437856503197</id><published>2009-02-20T18:30:00.000-08:00</published><updated>2009-02-20T19:31:03.265-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vmware player as a service'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware workstation'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware ace'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><title type='text'>Running VMware ACE Player as a Windows Service</title><content type='html'>First, read &lt;a __lkid="8969" href="http://research.stowers-institute.org/dct/docs/admin/VMwarePlayerService.htm"&gt;this&lt;/a&gt;. I wasnt able to use the resource kit tools because Macrosh@ft wont allow you to redistribute their tools. So, we instead bought a tool that offered an OEM license. If you dont know what ACE is, its vmware's option pack for VMware Workstation. Its basically a bunch of security features and packaging options, meaning, you can build vm and then package it up and install it on another system. I wanted to use it because I wanted to make sure the server could not be copied and run somewhere else by anyone except the people I choose and authorize.&lt;br /&gt;&lt;br /&gt;One of the features in an ACE policy is that allows you to run a script or executable instead of enter a password when the vm is started. The VMware ACE Player, interestingly enough, will accept a string from STDOUT of this script or exe in order to attempt the decryption of the encrytion key thats used to read the vmdk files as the vm runs. Using &lt;a __lkid="9355" href="http://www.firedaemon.com/"&gt;FireDaemon&lt;/a&gt; and the FireDaemon features of Pre-Post Service commands, I was able to use vmrun.exe stop command to shut down the vm when the host system is rebooted. I also made lanmanworkstation a service that the Firedaemon service depends on. This way, the vm is not started until the network is full up on the host system...other people have mentioned using this technique and it seemed like a good one.&lt;br /&gt;&lt;br /&gt;The executeable, written in VC++ STL, accepts two args, a meaningful 9 digit number and a secret. If either of these args fail a number of tests performed on them, the exe quietly exits. If the args pass, a SHA512 hash (using &lt;a __lkid="9522" href="http://www.openssl.org/"&gt;openssl&lt;/a&gt;) is performed and a 64 character string is printed out to STDOUT. Its this string that the vmplayer.exe uses to encrypt/decrypt the AES keys that encrypt/decrypt the vmdk's when the vm starts.&lt;br /&gt;&lt;br /&gt;These files, the exe and the openssl libs (dll's) and the VC manifest and their dll's and any other script and stuff you want to use in the Firedaemon service configuration, reside in the "ACE Resources" directory, under the parent directory of the vm Master.&lt;br /&gt;&lt;br /&gt;Also, i got snagged by this: each time a package is built, the packager drops an ace.sig file into the "ACE Resources" directory of the package it generates. Make sure this ace.sig file doesnt get copied back into the Master "ACE Resources" directory. If it does, all the packages that you make will have this invalid file in there. Its easy to get into this situation when you delete the files in that directory in order to make a test package that may be updated with a policy update package, which &lt;span style="font-weight: bold;"&gt;would&lt;/span&gt; contain the authentication module and scripts. VMware should fix this by checking for this file and deleting it from within the Master's dir structure each time the packager runs, but it doesn't at this time. Anyhow, there is a policy option called Resource Signing that does check this file, and if its set to check it, which it is by default, the activation of the package (or policy update) will fail.&lt;br /&gt;&lt;br /&gt;There was one more terribly annoying thing with setting up the service. When I attempted to shutdown or reboot the host system (unforced), the vmplayer.exe would abort the shutdown/reboot operation and display a modal dialog box that says "virtual machine is in use." I got around this by using &lt;a __lkid="9182" href="http://www.autoitscript.com/autoit3/index.shtml"&gt;AutoIT&lt;/a&gt;, a freeware application that allows you to create a simple script to operate windows and applications. So far its been a breeze and a very sensible and intuitive scripting language. Good docs help a lot too. Anyhow, this script ran as a Firedaemon pre-service and sits there waiting for that stupid dialog box to activate. It checks for this window every 250ms. Then, when the shutdown sequence starts, it gets rid of the dialog box and reboots the host system. Pretty slick.&lt;br /&gt;&lt;br /&gt;Its too bad vmware says they wont support ACE vm's anytime soon on ESX or VMware Server. It would be pretty simple to get this working and I think that vm volumes that remain encrypted on-disk at all times solves a very difficult security challenge in operating system virtualization. no longer can someone make a copy of your entire filesystem and mount it somewhere else.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-2928490437856503197?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/2928490437856503197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=2928490437856503197' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2928490437856503197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2928490437856503197'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/02/running-vmware-ace-player-as-windows.html' title='Running VMware ACE Player as a Windows Service'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-1077705244086439421</id><published>2009-02-04T22:14:00.000-08:00</published><updated>2009-02-04T22:16:15.981-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pf'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='openbsd'/><title type='text'>How to view pflog</title><content type='html'>Viewing the pflog file:&lt;br /&gt;# tcpdump -n -e -ttt -r /var/log/pflog &lt;br /&gt;&lt;br /&gt;A real-time display of logged packets:&lt;br /&gt;# tcpdump -n -e -ttt -i pflog0&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-1077705244086439421?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/1077705244086439421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=1077705244086439421' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1077705244086439421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1077705244086439421'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/02/how-to-view-pflog.html' title='How to view pflog'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-9203462228895369381</id><published>2009-01-27T09:13:00.000-08:00</published><updated>2009-01-27T09:55:47.880-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='package manager'/><category scheme='http://www.blogger.com/atom/ns#' term='gnupg'/><category scheme='http://www.blogger.com/atom/ns#' term='darwin ports'/><category scheme='http://www.blogger.com/atom/ns#' term='macosx'/><title type='text'>Install a package manager in MacOSX (Darwin Ports) and install GnuPG port</title><content type='html'>First, get the package manager:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;$ wget http://www.portcode.com/darwinports/DarwinPorts-1.5.0-10.4.dmg&lt;/code&gt;&lt;br /&gt;or&lt;br /&gt;&lt;code&gt;$ curl http://www.portcode.com/darwinports/DarwinPorts-1.5.0-10.4.dmg -O&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Mount dmg image and install, then open a Terminal window:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;$ sudo port -d selfupdate&lt;br /&gt;$ cd /opt/local/var/macports/&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;$ port search gnupg&lt;br /&gt;$ sudo port install gnupg&lt;br /&gt;Password:&lt;br /&gt;$ gpg --gen-key&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;conf file is:  ~/.gnupg*, add keyservers, change your default fingerprint, and other stuff there.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-9203462228895369381?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/9203462228895369381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=9203462228895369381' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/9203462228895369381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/9203462228895369381'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/01/install-package-manager-in-macosx.html' title='Install a package manager in MacOSX (Darwin Ports) and install GnuPG port'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-8926047577134429068</id><published>2009-01-05T23:26:00.000-08:00</published><updated>2009-01-05T23:27:51.299-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='deep water swell'/><title type='text'>Deep Water Swell for Northern California</title><content type='html'>&lt;a href="http://cdip.ucsd.edu/?nav=recent&amp;amp;sub=nowcast&amp;amp;units=metric&amp;amp;tz=UTC&amp;amp;pub=public&amp;amp;xitem=sf" target="_blank"&gt;http://cdip.ucsd.edu/?nav=recent⊂=nowcast&amp;amp;units=metric&amp;amp;tz=UTC&amp;amp;pub=public&amp;amp;xitem=sf&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-8926047577134429068?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/8926047577134429068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=8926047577134429068' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8926047577134429068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8926047577134429068'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/01/deep-water-swell.html' title='Deep Water Swell for Northern California'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-3790076527995070325</id><published>2009-01-05T12:19:00.000-08:00</published><updated>2009-01-05T12:20:39.301-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='geology'/><category scheme='http://www.blogger.com/atom/ns#' term='northern california'/><category scheme='http://www.blogger.com/atom/ns#' term='google earth'/><title type='text'>Geologic Overlays of Northern California for Google Earth</title><content type='html'>&lt;a href="http://geomaps.wr.usgs.gov/sfgeo/geologic/downloads.html" target="_blank"&gt;http://geomaps.wr.usgs.gov/sfgeo/geologic/downloads.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-3790076527995070325?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/3790076527995070325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=3790076527995070325' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3790076527995070325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/3790076527995070325'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/01/geologic-overlays-of-northern.html' title='Geologic Overlays of Northern California for Google Earth'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-6062658952860048182</id><published>2009-01-05T09:20:00.000-08:00</published><updated>2009-01-05T09:21:46.150-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='squid'/><title type='text'>Squid Fact Sheet</title><content type='html'>&lt;a href="http://www.tonmo.com/science/public/giantsquidfacts.php" target="_blank"&gt;http://www.tonmo.com/science/public/giantsquidfacts.php&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-6062658952860048182?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/6062658952860048182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=6062658952860048182' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6062658952860048182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6062658952860048182'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2009/01/squid-fact-sheet.html' title='Squid Fact Sheet'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-5880441822330359114</id><published>2008-12-16T08:12:00.000-08:00</published><updated>2008-12-16T08:15:59.729-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='system hardening'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>Change runlevel Settings for a Group of Services</title><content type='html'>The following command changes all services set to run at runlevel 5 and sets them to off.&lt;br /&gt;&lt;pre&gt;chkconfig --list | grep 5:on | awk '{ print $1 }' | \&lt;br /&gt; while read LINE; do chkconfig --level 12345 $LINE off; done&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-5880441822330359114?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/5880441822330359114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=5880441822330359114' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5880441822330359114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/5880441822330359114'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2008/12/change-runlevel-settings-for-group-of.html' title='Change runlevel Settings for a Group of Services'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-7422210688499164252</id><published>2008-12-14T13:32:00.000-08:00</published><updated>2008-12-14T13:35:16.466-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='network access control'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>Network Access Control</title><content type='html'>Enterasys has a mature and unmatched product offering, today.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.enterasys.com/products/index.aspx" target="blank"&gt;http://www.enterasys.com/products/index.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-7422210688499164252?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/7422210688499164252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=7422210688499164252' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7422210688499164252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/7422210688499164252'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2008/12/network-access-control.html' title='Network Access Control'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-250721111476783609</id><published>2008-12-14T13:05:00.000-08:00</published><updated>2008-12-14T13:12:27.113-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='cryptography'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>Fact Sheet NSA Suite B Cryptography [08dec2008]</title><content type='html'>Key length recommendations from the NSA for companies making products for Gov't use.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.keylength.com/en/6/" target="_blank"&gt;http://www.keylength.com/en/6/&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-250721111476783609?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/250721111476783609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=250721111476783609' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/250721111476783609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/250721111476783609'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2008/12/fact-sheet-nsa-suite-b-cryptography.html' title='Fact Sheet NSA Suite B Cryptography [08dec2008]'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-2385773611811942274</id><published>2008-12-05T13:22:00.000-08:00</published><updated>2008-12-06T22:26:31.267-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='operations'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><category scheme='http://www.blogger.com/atom/ns#' term='web servers'/><title type='text'>Apache Worker vs. Prefork</title><content type='html'>This is a good post.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.camelrichard.org/apache-prefork-vs-worker" target="_blank"&gt;http://www.camelrichard.org/apache-prefork-vs-worker&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Good Hints:&lt;br /&gt;Worker is superior in 2+ cpu applications&lt;br /&gt;Compile PHP5 after installing Apache&lt;br /&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-2385773611811942274?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/2385773611811942274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=2385773611811942274' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2385773611811942274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/2385773611811942274'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2008/12/apache-worker-vs-prefork.html' title='Apache Worker vs. Prefork'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-8959837307438534683</id><published>2008-12-04T11:43:00.000-08:00</published><updated>2008-12-04T12:07:03.399-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='inode'/><title type='text'>Restoring Hard Links to Protected Files in Linux</title><content type='html'>&lt;span style="font-size:85%;"&gt;I got this syslog message today:&lt;br /&gt;&lt;br /&gt;Dec 4 9:47:56 [hostname] restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) Invalid argument&lt;br /&gt;&lt;br /&gt;Here is how I resolved it:&lt;br /&gt;&lt;br /&gt;$ sudo ls -i /etc/resolv.conf # find innode&lt;br /&gt;[inode number] /etc/resolv.conf&lt;br /&gt;&lt;br /&gt;$ sudo find /etc -inum [inode number] # find hard links&lt;br /&gt;$ /usr/sbin/lsof  | grep resolv.conf # check if file is open&lt;br /&gt;$ mv /etc/sysconfig/networking/profiles/default/resolv.conf ~ # move&lt;br /&gt;$ sudo restorecon /etc/resolv.conf # set selinux defaults&lt;br /&gt;$ sudo ln /etc/resolv.conf /etc/sysconfig/networking/profiles/default/resolv.conf #recreate hard link&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-8959837307438534683?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/8959837307438534683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=8959837307438534683' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8959837307438534683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8959837307438534683'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2008/12/restoring-hard-links-to-protected-files.html' title='Restoring Hard Links to Protected Files in Linux'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-8940632401916164982</id><published>2008-12-03T11:40:00.000-08:00</published><updated>2008-12-03T11:43:00.178-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ddos'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='incident handling'/><title type='text'>DDOS Incident Cheat Sheet</title><content type='html'>This is very well put together:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.zeltser.com/network-os-security/ddos-incident-cheat-sheet.pdf" target="_new"&gt;http://www.zeltser.com/network-os-security/ddos-incident-cheat-sheet.pdf&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-8940632401916164982?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/8940632401916164982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=8940632401916164982' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8940632401916164982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/8940632401916164982'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2008/12/ddos-incident-cheat-sheet.html' title='DDOS Incident Cheat Sheet'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-4978304666195850839</id><published>2008-12-02T15:25:00.000-08:00</published><updated>2008-12-03T11:40:38.059-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>Using SSH  Remote and Local Tunnels</title><content type='html'>The following example demonstrates how to use Remote and Local SSH tunneling to access a service on your highly secure home computer (that's not exposed explicitly through a firewall at your home) from a remote location.&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;On Home Computer, before traveling:&lt;br /&gt;ssh -R 44444:localhost:22 user@remote.computer.ip.address&lt;br /&gt;&lt;br /&gt;On Remote Computer, after arriving at work:&lt;br /&gt;ssh -L 22222:localhost:44444 user@remote.computer.ip.address (possibly rfc1918 ip)&lt;br /&gt;ssh user@localhost -p22222 &lt;br /&gt;&lt;br /&gt;Wa la, you now have a SSH session to your home computer from work.&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-4978304666195850839?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/4978304666195850839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=4978304666195850839' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4978304666195850839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/4978304666195850839'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2008/12/using-ssh-to-get-to-your-home-computer.html' title='Using SSH  Remote and Local Tunnels'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-1348801353987097962</id><published>2008-11-23T19:21:00.000-08:00</published><updated>2008-11-23T19:24:22.433-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CERN'/><category scheme='http://www.blogger.com/atom/ns#' term='LHC'/><category scheme='http://www.blogger.com/atom/ns#' term='physics'/><title type='text'>LHC VR Coolness</title><content type='html'>&lt;a href="http://www.petermccready.com/portfolio/07041601.html" target="_new"&gt;http://www.petermccready.com/portfolio/07041601.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-1348801353987097962?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/1348801353987097962/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=1348801353987097962' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1348801353987097962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1348801353987097962'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2008/11/lhc-vr-coolness.html' title='LHC VR Coolness'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-1362670044531518125</id><published>2008-11-19T08:27:00.000-08:00</published><updated>2008-11-23T20:08:47.409-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='openbsd'/><title type='text'>SSH Remote Command Execution</title><content type='html'>The following example allows you to execute a command on a remote system and return the results of the command without a shell session.&lt;br /&gt;&lt;br /&gt;Simply include the command immediately after the normal ssh session request. Here's an easy one for a periodic secure rule integrity check on openBSD using pf.&lt;br /&gt;&lt;br /&gt;ssh someuser@ip.add.re.ss 'pfctl -s rules | openssl sha1'&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-1362670044531518125?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/1362670044531518125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=1362670044531518125' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1362670044531518125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/1362670044531518125'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2008/11/ssh-remote-command-execution.html' title='SSH Remote Command Execution'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2881175338349528924.post-6521422325561166769</id><published>2008-11-17T08:44:00.000-08:00</published><updated>2008-12-06T22:20:27.614-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='system administration'/><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>How to set up Apache, MySQL and PHP on FreeBSD</title><content type='html'>&lt;pre&gt;&lt;br /&gt;# cd /usr/ports/www/apache13-modssl&lt;br /&gt;# make install&lt;br /&gt;# echo 'apache_enable ="YES"' &gt;&gt; /etc/rc.conf&lt;br /&gt;# echo 'apache_flags ="-DSSL"' &gt;&gt; /etc/rc.conf&lt;br /&gt;# echo 'mysql_enable ="YES"' &gt;&gt; /etc/rc.conf&lt;br /&gt;# /usr/local/etc/rc.d/mysql-server start&lt;br /&gt;# mysqladmin -u root password newpassword&lt;br /&gt;# cd /usr/ports/www/mod_php4&lt;br /&gt;# make install clean&lt;br /&gt;# cd /usr/ports/lang/php4-extensions&lt;br /&gt;# make install clean&lt;br /&gt;# vi /usr/local/etc/apache/httpd.conf&lt;br /&gt;AddType application/x- httpd-php . php&lt;br /&gt;AddType application/x- httpd-php-source . phps&lt;br /&gt;# /usr/local/etc/rc.d/apache.sh start&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# whoami&lt;br /&gt;root&lt;br /&gt;# cd ~&lt;br /&gt;# openssl genrsa -des3 -out server.key 1024&lt;br /&gt;# openssl req -new -key server.key -out server.csr &lt;br /&gt;# openssl x509 -req -days 365 \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-in /root/server.csr \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-signkey /root/server.key \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-out /root/server.crt&lt;br /&gt;# cp ~/ ./server.key /usr/local/etc/apache/ssl.key/&lt;br /&gt;# cp ~/ ./server.crt /usr/local/etc/apache/ssl.crt/&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2881175338349528924-6521422325561166769?l=randsubrosa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://randsubrosa.blogspot.com/feeds/6521422325561166769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2881175338349528924&amp;postID=6521422325561166769' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6521422325561166769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2881175338349528924/posts/default/6521422325561166769'/><link rel='alternate' type='text/html' href='http://randsubrosa.blogspot.com/2008/11/how-to-set-up-apache-mysql-and-php-on.html' title='How to set up Apache, MySQL and PHP on FreeBSD'/><author><name>random guy</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
