<?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-5054575</id><updated>2012-01-29T16:13:03.808-08:00</updated><category term='Wireless'/><category term='Windows 64'/><category term='Wget'/><category term='Security scripts'/><category term='Calpop'/><category term='eth0'/><category term='firefox locked'/><category term='whm'/><category term='nss_updatedb ldap passwd'/><category term='ssh'/><category term='Open VPN Fail'/><category term='rkhunter install'/><category term='Multiple IP addresses'/><category term='rootkit'/><category term='Dlink 520+'/><category term='LDAP'/><category term='thunderbird locked'/><category term='LDAP errors'/><category term='wifi hack'/><category term='N40L Motherboard'/><category term='hacked'/><category term='java issues'/><category term='Mysql INNODB issue'/><category term='Linux'/><category term='cpanel'/><category term='lost of key linux files'/><category term='HP Microserver storage'/><title type='text'>Weird Hacks</title><subtitle type='html'>Hardware hacks that come from my brain. More Security related things now a days.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>31</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5054575.post-800542028723826971</id><published>2012-01-29T16:13:00.000-08:00</published><updated>2012-01-29T16:13:03.822-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wget'/><title type='text'></title><content type='html'>Needed this earlier. Came in handy. Its stupid stuff, but i forget the switches half the time.&lt;br /&gt;&lt;br /&gt;wget -r --no-parent --reject "index.html*" http://website.com/dir/&lt;br /&gt;&lt;br /&gt;also tar zxvf files.tar.gz -C /anotherDirectory/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-800542028723826971?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/800542028723826971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=800542028723826971' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/800542028723826971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/800542028723826971'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2012/01/needed-this-earlier.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-8627091397815055629</id><published>2012-01-27T08:43:00.000-08:00</published><updated>2012-01-27T08:45:28.775-08:00</updated><title type='text'></title><content type='html'>So your running an older version of mysql, such as 5.0. And you want to use innodb as your engine.&lt;br /&gt;&lt;br /&gt;vi /etc/my.cnf&lt;br /&gt;&lt;br /&gt;#skip-innodb&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Comment out skip-innodb and you will have the option to use it. &lt;br /&gt;&lt;br /&gt;IF you want to use innodb by default, add to my.cnf &lt;br /&gt;&lt;br /&gt;default-table-type=innodb&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reasons you may still be using an older version of mysql include having too many databases that rely on the older code or myisam engine and don't want to mess it up.&lt;br /&gt;&lt;br /&gt;Also in phpmyadmin to convert tables to innodb, once you have enabled it, click on "operations" and you can change it from there.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-8627091397815055629?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/8627091397815055629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=8627091397815055629' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/8627091397815055629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/8627091397815055629'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2012/01/so-your-running-older-version-of-mysql.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-433695020799470295</id><published>2011-12-30T00:50:00.000-08:00</published><updated>2011-12-30T01:18:50.699-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HP Microserver storage'/><title type='text'></title><content type='html'>HP Microserver storage system.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.homedepot.com/Featured-Products-Storage-Solutions-Crate-Bin-and-Cubbie-Storage/h_d1/N-5yc1vZc0wh/R-202104735/h_d2/ProductDisplay?langId=-1&amp;storeId=10051&amp;catalogId=10053&amp;superSkuId=202858033"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;http://www.homedepot.com/Featured-Products-Storage-Solutions-Crate-Bin-and-Cubbie-Storage/h_d1/N-5yc1vZc0wh/R-202104735/h_d2/ProductDisplay?langId=-1&amp;storeId=10051&amp;catalogId=10053&amp;superSkuId=202858033&lt;br /&gt;&lt;br /&gt;I bought this today, needed a way to organize some electronics, and what the heck stuff. Then when I got home I realized that the HP Microserver fits perfectly. With enough room around it for breathing. I used wood glue in the construction to make the build stronger. Habit, all cheap furniture, I use wood glue.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-_-3Tx51Q--A/Tv2B9GlXGFI/AAAAAAAAALY/gQ5vaX0DPgk/s1600/IMG-20111230-00209.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="400" width="300" src="http://3.bp.blogspot.com/-_-3Tx51Q--A/Tv2B9GlXGFI/AAAAAAAAALY/gQ5vaX0DPgk/s400/IMG-20111230-00209.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-433695020799470295?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/433695020799470295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=433695020799470295' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/433695020799470295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/433695020799470295'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2011/12/hp-microserver-storage-system.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-_-3Tx51Q--A/Tv2B9GlXGFI/AAAAAAAAALY/gQ5vaX0DPgk/s72-c/IMG-20111230-00209.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-7299055665933329505</id><published>2011-12-29T01:55:00.000-08:00</published><updated>2011-12-29T01:55:51.889-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java issues'/><title type='text'></title><content type='html'>---&gt; Package antlr.x86_64 0:2.7.6-4jpp.2 set to be updated&lt;br /&gt;---&gt; Package java-1.4.2-gcj-compat.x86_64 0:1.4.2.0-40jpp.115 set to be updated&lt;br /&gt;--&gt; Processing Dependency: /usr/bin/rebuild-security-providers for package: java-1.4.2-gcj-compat&lt;br /&gt;--&gt; Processing Dependency: /usr/bin/rebuild-security-providers for package: java-1.4.2-gcj-compat&lt;br /&gt;--&gt; Processing Dependency: /usr/bin/rebuild-security-providers for package: java-1.4.2-gcj-compat&lt;br /&gt;--&gt; Processing Dependency: /usr/bin/rebuild-security-providers for package: java-1.4.2-gcj-compat&lt;br /&gt;--&gt; Finished Dependency Resolution&lt;br /&gt;java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64 from base has depsolving problems&lt;br /&gt;  --&gt; Missing Dependency: /usr/bin/rebuild-security-providers is needed by package java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64 (base)&lt;br /&gt;Error: Missing Dependency: /usr/bin/rebuild-security-providers is needed by package java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.x86_64 (base)&lt;br /&gt; You could try using --skip-broken to work around the problem&lt;br /&gt; You could try running: package-cleanup --problems&lt;br /&gt;                        package-cleanup --dupes&lt;br /&gt;                        rpm -Va --nofiles --nodigest&lt;br /&gt;The program package-cleanup is found in the yum-utils package.&lt;br /&gt;&lt;br /&gt;I actually was trying to remove java and tomcat from the server, but this was giving me issues. So I ran:&lt;br /&gt;&lt;b&gt;&lt;br /&gt;rpm -Uvh http://plone.lucidsolutions.co.nz/linux/centos/images/jpackage-utils-compat-el5-0.0.1-1.noarch.rpm&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;yum update&lt;br /&gt;To confirm that it had been resolved.&lt;br /&gt;&lt;br /&gt;I wished I had posted the php issues I was having and how I resolved them, but deleted the notes.&lt;br /&gt;Which installed what I needed to fix those issues, then removed the packages I didn't want such as java, tomcat, and eclipse.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-7299055665933329505?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/7299055665933329505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=7299055665933329505' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/7299055665933329505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/7299055665933329505'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2011/12/package-antlr.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-1903969548398252178</id><published>2011-12-27T07:14:00.000-08:00</published><updated>2011-12-27T07:14:08.363-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='N40L Motherboard'/><title type='text'></title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-TM4QnTDSJLk/TvngeYiG4SI/AAAAAAAAALM/MM5xYev4Spw/s1600/IMG-20111206-00180.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="320" width="240" src="http://3.bp.blogspot.com/-TM4QnTDSJLk/TvngeYiG4SI/AAAAAAAAALM/MM5xYev4Spw/s320/IMG-20111206-00180.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;HP ProLiant N40L Ultra Micro Tower Server System AMD Turion II Neo N40L&lt;br /&gt;&lt;br /&gt;Wanted to post a picture of the motherboard in case anyone needed it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-1903969548398252178?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/1903969548398252178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=1903969548398252178' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/1903969548398252178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/1903969548398252178'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2011/12/hp-proliant-n40l-ultra-micro-tower.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-TM4QnTDSJLk/TvngeYiG4SI/AAAAAAAAALM/MM5xYev4Spw/s72-c/IMG-20111206-00180.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-7401558363402177166</id><published>2011-11-21T17:08:00.000-08:00</published><updated>2011-11-21T17:08:11.727-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='whm'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><category scheme='http://www.blogger.com/atom/ns#' term='cpanel'/><title type='text'></title><content type='html'>To find the ssh port on server, with the help of whm.&lt;br /&gt;&lt;br /&gt;http://ip:2086/xml-api/cpanel?user=cpanel&amp;cpanel_xmlapi_apiversion=1&amp;cpanel_xmlapi_module=SSH&amp;cpanel_xmlapi_func=getport&lt;br /&gt;&lt;br /&gt;Useful when people forget their ssh ports.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-7401558363402177166?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/7401558363402177166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=7401558363402177166' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/7401558363402177166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/7401558363402177166'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2011/11/to-find-ssh-port-on-server-with-help-of.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-597232104712007019</id><published>2011-11-03T00:06:00.000-07:00</published><updated>2011-11-03T00:51:05.721-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rkhunter install'/><title type='text'></title><content type='html'>This is for vps, dedicated, etc. Wrote the howto about 10 mins ago. &lt;br /&gt;&lt;br /&gt;Login to your server via SSH as root.&lt;br /&gt;&lt;br /&gt;Then Type: cd /usr/local/src/&lt;br /&gt;&lt;br /&gt;2. Download RKHunter Version 1.3.8&lt;br /&gt;&lt;br /&gt;Type: wget http://sourceforge.net/projects/rkhunter/files/rkhunter/1.3.8/rkhunter-1.3.8.tar.gz&lt;br /&gt;&lt;br /&gt;3. Extract files&lt;br /&gt;&lt;br /&gt;Type: tar -xzvf rkhunter-1.3.8.tar.gz&lt;br /&gt;&lt;br /&gt;4. Type: cd rkhunter-1.3.8&lt;br /&gt;&lt;br /&gt;5. Type: ./installer.sh --install&lt;br /&gt;&lt;br /&gt;6. Setup RKHunter to e-mail you you daily scan reports.&lt;br /&gt;&lt;br /&gt;Type: nano -w /etc/cron.daily/rkhunter.sh&lt;br /&gt;Add The Following:&lt;br /&gt;#!/bin/bash&lt;br /&gt;(/usr/local/bin/rkhunter -c --cronjob 2&gt;&amp;1 | mail -s "RKhunter Scan Details" name@domain.com &lt; /var/log/rkhunter.log&lt;br /&gt;&lt;br /&gt;Type: chmod +x /etc/cron.daily/rkhunter.sh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-597232104712007019?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/597232104712007019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=597232104712007019' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/597232104712007019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/597232104712007019'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2011/11/this-is-for-vps-dedicated-etc.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-2016766909376254973</id><published>2011-09-14T10:18:00.000-07:00</published><updated>2011-09-14T10:18:46.458-07:00</updated><title type='text'></title><content type='html'>Stupid expression that comes in handy.&lt;br /&gt;&lt;br /&gt;cat document |mail -s subject email@domain.com&lt;br /&gt;&lt;br /&gt;What I tend to use if for is like nmap 192.168.0.1-254 &gt;&gt; file&lt;br /&gt;Then email the document to myself. I could just probably do nmap IP's &gt;&gt;file|mail -s subject email@domain.com but I like to read through the file. But it comes in handy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-2016766909376254973?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/2016766909376254973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=2016766909376254973' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/2016766909376254973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/2016766909376254973'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2011/09/stupid-expression-that-comes-in-handy.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-3506389944257015238</id><published>2011-02-25T16:09:00.000-08:00</published><updated>2011-02-25T16:09:12.124-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rootkit'/><category scheme='http://www.blogger.com/atom/ns#' term='hacked'/><category scheme='http://www.blogger.com/atom/ns#' term='lost of key linux files'/><title type='text'></title><content type='html'>Ok, so a server was root kit'ed. Not mine, a client's. It was on a xenserver. All the /bin files hosed. Because of this (/bin/basename /bin/hostname /bin awk, etc) was out, I couldn't get the server back online to grab all the files off of it. I am grateful the client had a near identical build to one of mine. So I copied my /bin directory to a thumb drive, and copied the files over the /bin/ directory. reboot, and system came back online, then was able to use the rootkit checker to verify, and yes, there was a rootkit. The VM still has to be re-imaged, but because it could get online, we could then backup the server of its content, and re-import them when its done.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-3506389944257015238?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/3506389944257015238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=3506389944257015238' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/3506389944257015238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/3506389944257015238'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2011/02/ok-so-server-was-root-kited.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-6646177176625760499</id><published>2010-11-15T20:41:00.000-08:00</published><updated>2010-11-15T20:41:12.041-08:00</updated><title type='text'></title><content type='html'>So, I was doing something stupid in debian. Going with the testing branch for a few files, and had an issue.&lt;br /&gt;&lt;br /&gt;Setting up runit (2.1.1-6) ...&lt;br /&gt;dpkg: error processing runit (--configure):&lt;br /&gt; subprocess installed post-installation script returned error exit status 10&lt;br /&gt;Errors were encountered while processing:&lt;br /&gt; runit&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How to fix? Easy. &lt;br /&gt;Delete  /var/lib/dpkg/info/runit* and  /var/cache/apt/archives/runit* and it works fine.&lt;br /&gt;&lt;br /&gt;I actually moved the files first, just to verify it.&lt;br /&gt;&lt;br /&gt;and to get the list I did this.&lt;br /&gt;&lt;br /&gt;ls /var/cache/apt/archives/ |grep runit &gt;&gt; /root/info&lt;br /&gt;&lt;br /&gt;ls list screen |grep (search) the files that i am looking for, &gt;&gt; append it to this file. So I can look thru it later.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-6646177176625760499?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/6646177176625760499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=6646177176625760499' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/6646177176625760499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/6646177176625760499'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2010/11/so-i-was-doing-something-stupid-in.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-8597473875304989094</id><published>2010-11-03T19:59:00.001-07:00</published><updated>2010-11-03T19:59:46.998-07:00</updated><title type='text'></title><content type='html'>Debian 5.0 Grub issues I was having.&lt;br /&gt;&lt;br /&gt;Debian showed grub was installed, but I still had to use a cd to boot to it, I was a bit confused. So what I did was &lt;br /&gt;&lt;br /&gt;fdisk /dev/sda  (boot drive)&lt;br /&gt;&lt;br /&gt;p to show a list of partitions. I could see that my only partition was non-bootable, &lt;br /&gt;a added boot options, &lt;br /&gt;w save and exit. Machine booted right up. Now to fix my X issues.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-8597473875304989094?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/8597473875304989094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=8597473875304989094' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/8597473875304989094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/8597473875304989094'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2010/11/debian-5.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-1313338319547976840</id><published>2010-09-14T21:43:00.000-07:00</published><updated>2010-09-14T21:46:08.528-07:00</updated><title type='text'></title><content type='html'>I was curious with the new Blackberry 9300, what was the difference between it and the 8520, other than 3G and GPS. Found out the cpu's are different. and the 9300 supports Wifi N.&lt;br /&gt;&lt;br /&gt;8520: 512MHz&lt;br /&gt;9300: 624 MHz, Even better I have the exact chip.  Marvell PXA930 &lt;br /&gt;&lt;br /&gt;I have a spare 8520 that I am supposed to send back this week. But I just got a copy of the 9300 BB os 6.0, So I am going to load it, and see.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-1313338319547976840?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/1313338319547976840/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=1313338319547976840' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/1313338319547976840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/1313338319547976840'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2010/09/i-was-curious-with-new-blackberry-9300.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-6756763935277261501</id><published>2010-09-08T10:36:00.000-07:00</published><updated>2010-09-08T10:40:01.003-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows 64'/><category scheme='http://www.blogger.com/atom/ns#' term='Open VPN Fail'/><title type='text'></title><content type='html'>Say you are running 64 bit Windows, and you install OpenVPN, and someone gives you a script that keeps failing. You can't figure it out. I will post an example, and show you the issue I was having.&lt;br /&gt;&lt;br /&gt;##############################################&lt;br /&gt;# Sample client-side OpenVPN 2.0 config file #&lt;br /&gt;# for connecting to multi-client server.     #&lt;br /&gt;#                                            #&lt;br /&gt;# This configuration can be used by multiple #&lt;br /&gt;# clients, however each client should have   #&lt;br /&gt;# its own cert and key files.                #&lt;br /&gt;#                                            #&lt;br /&gt;# On Windows, you might want to rename this  #&lt;br /&gt;# file so it has a .ovpn extension           #&lt;br /&gt;##############################################&lt;br /&gt;&lt;br /&gt;client&lt;br /&gt;dev tap&lt;br /&gt;proto udp&lt;br /&gt;remote vpn.example.com 1194&lt;br /&gt;resolv-retry infinite&lt;br /&gt;nobind&lt;br /&gt;persist-key&lt;br /&gt;persist-tun&lt;br /&gt;remote-cert-tls server&lt;br /&gt;&lt;br /&gt;pkcs12 "&lt;span style="font-weight:bold;"&gt;C:\\Program Files&lt;/span&gt;\\OpenVPN\\config\\foo.pfx"&lt;br /&gt;&lt;br /&gt;reneg-sec 0&lt;br /&gt;comp-lzo&lt;br /&gt;verb 3&lt;br /&gt;mute 20&lt;br /&gt;#####&lt;br /&gt;&lt;br /&gt;Ok, Heres where the problem lies. &lt;br /&gt;pkcs12 "C:\\Program Files\\OpenVPN\\config\\foo.pfx"&lt;br /&gt;&lt;br /&gt;Needs to be changed to&lt;br /&gt;&lt;br /&gt;pkcs12 "C:\\Program Files (x86)\\OpenVPN\\config\\foo.pfx"&lt;br /&gt;&lt;br /&gt;The (x86) makes all the difference in the world.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-6756763935277261501?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/6756763935277261501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=6756763935277261501' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/6756763935277261501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/6756763935277261501'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2010/09/say-you-are-running-64-bit-windows-and.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-7676219245048042654</id><published>2010-08-28T23:33:00.001-07:00</published><updated>2010-08-28T23:34:12.362-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Calpop'/><category scheme='http://www.blogger.com/atom/ns#' term='eth0'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Multiple IP addresses'/><title type='text'></title><content type='html'>IPADDR_START=216.73.xxx.xxx&lt;br /&gt;IPADDR_END=216.73.xxx.xxx&lt;br /&gt;CLONENUM_START=0&lt;br /&gt;NETMAST=255.255.255.0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Name file ifcfg-eth0-range0 (or whatever the nic card is)&lt;br /&gt;Also The start IP address is the 2nd ip address in the list, the End is the last of them.&lt;br /&gt;&lt;br /&gt;Yes I stole this script/borrowed from Calpop. Actually one of the most useful things I got out of there.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-7676219245048042654?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/7676219245048042654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=7676219245048042654' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/7676219245048042654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/7676219245048042654'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2010/08/ipaddrstart216.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-1202145080367113425</id><published>2010-08-27T22:14:00.000-07:00</published><updated>2010-08-27T22:16:28.316-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Security scripts'/><title type='text'></title><content type='html'>Scripts that come in handy.&lt;br /&gt;&lt;br /&gt;Server e-mail every time someone logs in as root&lt;br /&gt;&lt;br /&gt;To have the server e-mail you every time someone logs in as root, SSH into server and login as root.&lt;br /&gt;&lt;br /&gt;At command prompt type: vi .bash_profile&lt;br /&gt;&lt;br /&gt;Scroll down to the end of the file and add the following line:&lt;br /&gt;&lt;br /&gt;echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | awk '{print $6}'`" your@email.com&lt;br /&gt;&lt;br /&gt;Save and exit. &lt;br /&gt;&lt;br /&gt; &lt;span style="font-weight:bold;"&gt;Install chkrootkit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To install chrootkit, SSH into server and login as root.&lt;br /&gt;&lt;br /&gt;At command prompt type: cd /root/&lt;br /&gt;&lt;br /&gt;At command prompt type: wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz&lt;br /&gt;&lt;br /&gt;At command prompt type: tar xvzf chkrootkit.tar.gz &lt;br /&gt;&lt;br /&gt;At command prompt type: cd chkrootkit-0.44&lt;br /&gt;&lt;br /&gt;At command prompt type: make sense&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To run chkrootkit&lt;br /&gt;&lt;br /&gt;At command prompt type: /root/chkrootkit-0.44/chkrootkit&lt;br /&gt;&lt;br /&gt;Make sure you run it on a regular basis, perhaps including it in a cron job. &lt;br /&gt;Chkrootkit is a program that scans for root kits.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To modify &lt;span style="font-weight:bold;"&gt;LogWatch&lt;/span&gt;, SSH into server and login as root.&lt;br /&gt;&lt;br /&gt;At command prompt type: vi /etc/log.d/conf/logwatch.conf &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Scroll down to&lt;br /&gt;&lt;br /&gt;MailTo = root&lt;br /&gt;&lt;br /&gt;and change to&lt;br /&gt;&lt;br /&gt;Mailto = your@email.com&lt;br /&gt;&lt;br /&gt;Note: Set the e-mail address to an offsite account incase you get hacked.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now scroll down to &lt;br /&gt;&lt;br /&gt;Detail = Low&lt;br /&gt;&lt;br /&gt;Change that to Medium, or High...&lt;br /&gt;&lt;br /&gt;Detail = 5   or   Detail = 10&lt;br /&gt;&lt;br /&gt;Note: High will give you more detailed logs with all actions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-1202145080367113425?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/1202145080367113425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=1202145080367113425' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/1202145080367113425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/1202145080367113425'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2010/08/scripts-that-come-in-handy.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-4447274495657584446</id><published>2009-04-29T11:09:00.000-07:00</published><updated>2009-04-29T11:14:52.557-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LDAP'/><category scheme='http://www.blogger.com/atom/ns#' term='nss_updatedb ldap passwd'/><category scheme='http://www.blogger.com/atom/ns#' term='LDAP errors'/><title type='text'></title><content type='html'>LDAP error i was having.&lt;br /&gt;&lt;br /&gt;root# nss_updatedb ldap passwd&lt;br /&gt;Failed to enumerate nameservice: No such file or directory&lt;br /&gt;passwd... nameservice unavailable.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;go to /etc/ldap.conf and make sure &lt;br /&gt;&lt;br /&gt;# Another way to specify your LDAP server is to this&lt;br /&gt;uri ldapi:///example.com&lt;br /&gt;&lt;br /&gt;to:&lt;br /&gt;uri ldap://example.com&lt;br /&gt;&lt;br /&gt;remove the i in ldap, and the / and your good to go.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-4447274495657584446?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/4447274495657584446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=4447274495657584446' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/4447274495657584446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/4447274495657584446'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2009/04/ldap-error-i-was-having.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-5289195434981785653</id><published>2009-04-20T09:07:00.000-07:00</published><updated>2009-04-20T09:08:52.431-07:00</updated><title type='text'></title><content type='html'>Hmm strange issue, But I figured it out.&lt;br /&gt;&lt;br /&gt;CRITICAL:yum.cli:Config Error: Parsing file failed: File contains parsing errors: file:///etc/yum.conf&lt;br /&gt; [line  3]: mysql* nsd* proftpd* pure-ftpd* ruby* spamassassin* syslinux*&lt;br /&gt;&lt;br /&gt; [line  4]: squirrelmail*&lt;br /&gt;&lt;br /&gt;The problem is that line 3 and 4 are new lines, instead of a continuation of line 2. Fix that and it works, I figure someoneone will have that issue, since I googled it and nothing came up.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-5289195434981785653?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/5289195434981785653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=5289195434981785653' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/5289195434981785653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/5289195434981785653'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2009/04/hmm-strange-issue-but-i-figured-it-out.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-279194665507245975</id><published>2009-04-16T11:20:00.000-07:00</published><updated>2009-04-16T11:26:50.045-07:00</updated><title type='text'></title><content type='html'>NIS INSTALL&lt;br /&gt;&lt;br /&gt;I did not write this. but I used it a lot.&lt;br /&gt;&lt;br /&gt;I wish I knew where I got the notes from, but I have kept them for a long time. I also used Yolinux.com for a lot of help.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;NIS is a system which is designed to allow people to use the same username and password on a group of machines. (In NIS terms this group of machines is called a domain). This small introduction will guide you through setting up a central NIS server to centralise your logins, and a client to use it.&lt;br /&gt;&lt;br /&gt;Of all the systems for sharing login details across multiple machines NIS is the oldest and possibly the most widely used. Other alternatives include database systems such as LDAP (OpenLDAP) and kerberos .&lt;br /&gt;&lt;br /&gt;For NIS to work you need a single, central, machine which contains all the username and password pairs. Other machines will query this one when it comes to validating logins - so no local usernames and passwords need to exist.&lt;br /&gt;&lt;br /&gt;For large systems this scales very well, when you wish to add a new user you only need to do it once on the central server rather than on each individual machine.&lt;br /&gt;&lt;br /&gt;Installing the server is a simple matter:&lt;br /&gt;&lt;br /&gt;name:~# apt-get install nis Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed:   portmap The following NEW packages will be installed:   nis portmap 0 packages upgraded, 2 newly installed, 0 to remove and 0  not upgraded. Need to get 190kB of archives. After unpacking 699kB will be used.&lt;br /&gt;&lt;br /&gt;Once the packages have been downloaded and installed you will need to choose a name for the domain and set this up as a master server. (In NIS terms a domain is used to refer to a group of machines, it has no connection with DNS names, or WORKGROUP names).&lt;br /&gt;&lt;br /&gt;Once you've installed the packages and given the system a domain name then you will need to set it up as a master server. You do this by editing the file /etc/defaults/nis making sure that you have the following lines:&lt;br /&gt;&lt;br /&gt;NISSERVER=true NISCLIENT=false&lt;br /&gt;&lt;br /&gt;Once this is done you need to control which machines are allowed to access the NIS server. Do this by editing the file /etc/ypserv.securenets as in the following example:&lt;br /&gt;&lt;br /&gt;# Restrict to 192.168.1.x 255.255.255.0 192.168.1.0&lt;br /&gt;&lt;br /&gt;Restart the server with /etc/init.d/nis restart and the server is ready.&lt;br /&gt;&lt;br /&gt;This now has us running an NIS server, the next thing to do is initialise its maps. This is a simple process of running an init command and giving it the name of the servers you're using. In our case this is just the one server we've just setup:&lt;br /&gt;&lt;br /&gt;root@sun:~# /usr/lib/yp/ypinit -m&lt;br /&gt;&lt;br /&gt;Now we move on to setting up the clients.&lt;br /&gt;&lt;br /&gt;Each client will also need the NIS package, so install that:&lt;br /&gt;&lt;br /&gt;apt-get install nis&lt;br /&gt;&lt;br /&gt;Enter the name of the domain you chose earlier (this is stored on the server in the file /etc/defaultdomain if ever you forget it).&lt;br /&gt;&lt;br /&gt;Once this is done you will need to setup the server to authenticate against, place it's IP address in the file /etc/yp.conf, for example:&lt;br /&gt;&lt;br /&gt;ypserver 192.168.1.1&lt;br /&gt;&lt;br /&gt;Restart NIS with /etc/init.d/nis restart and test that this machine can access the client by running:&lt;br /&gt;&lt;br /&gt;root@undecided:/etc# ypcat passwd mp3:x:1002:1002::/home/mp3: skx:x:1000:1000:Steve Kemp,,,:/home/skx:/bin/bash ipaudit:x:1001:100::/home/ipaudit:&lt;br /&gt;&lt;br /&gt;Here we see that we've received some results so we're go to go on.&lt;br /&gt;&lt;br /&gt;This is the most tricky step, upon this client you need to remove all user accounts from the password, shadow, group, and group shadow files. Here we really do mean users as people - say all the userid's above 1000. Leave the system accounts such as bin, bind, nobody alone.&lt;br /&gt;&lt;br /&gt;(If you want a login to only be available on the local machine then leave it there - certainly leave the root account alone!)&lt;br /&gt;&lt;br /&gt;For the /etc/passwd add +:::::: at the end.&lt;br /&gt;&lt;br /&gt;For the file /etc/shadow add +::::::::, and for the other files /etc/group and /etc/gshadow add +:::.&lt;br /&gt;&lt;br /&gt;Now try and login with a user!&lt;br /&gt;&lt;br /&gt;When it comes to time to add a new user to your setup you should only need to add it upon the server, and all machines will benefit. You may need to rerun the ypinit command we gave earlier for it to take effect though.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-279194665507245975?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/279194665507245975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=279194665507245975' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/279194665507245975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/279194665507245975'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2009/04/nis-install-i-did-not-write-this.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-1917265389141454268</id><published>2009-04-16T10:20:00.000-07:00</published><updated>2009-04-16T10:23:19.434-07:00</updated><title type='text'></title><content type='html'>IPtables. Preventing multiple failed logins&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -i eth0 -p tcp --dport 22 -m state --state NEW -m recent --set --name SSH&lt;br /&gt;iptables -A INPUT -i eth0 -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 10 --rttl --name SSH -j DROP&lt;br /&gt;&lt;br /&gt;Fairly easy to figure out. you fail 10 times in a min, you get booted. I should change that to much less now that I look at it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;IPtables Block&lt;br /&gt;&lt;br /&gt;Iptables block info&lt;br /&gt;&lt;br /&gt;-A INPUT -p tcp -m state --state NEW,ESTABLISHED -s 192.168.1.0/24 --dport 22 -j ACCEPT&lt;br /&gt;-A OUTPUT -p tcp -m state --state NEW,ESTABLISHED -d 192.168.2.0/24 --sport 22 -j ACCEPT&lt;br /&gt;&lt;br /&gt;Actually this only allows listed ranges to login.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-1917265389141454268?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/1917265389141454268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=1917265389141454268' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/1917265389141454268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/1917265389141454268'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2009/04/iptables.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-6963695245362109458</id><published>2009-04-16T10:17:00.001-07:00</published><updated>2009-04-16T10:17:29.416-07:00</updated><title type='text'></title><content type='html'>Java install notes:&lt;br /&gt;&lt;br /&gt;export JAVA_HOME="/usr/java/jdk1.6.0_12/"&lt;br /&gt;export JAVA_PATH="$JAVA_HOME"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jre1.6.0_12&lt;br /&gt;/usr/sbin/alternatives --config java&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-6963695245362109458?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/6963695245362109458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=6963695245362109458' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/6963695245362109458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/6963695245362109458'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2009/04/java-install-notes-export.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-4140144967029736168</id><published>2009-04-16T10:07:00.001-07:00</published><updated>2009-04-16T10:16:04.280-07:00</updated><title type='text'></title><content type='html'>YEAH More notes.&lt;br /&gt;&lt;br /&gt;So you want to ssh into boxes without typing in those pesky passwords every 2 mins.&lt;br /&gt;SSHKeys can be your friend. I do this within a local environment.&lt;br /&gt;&lt;br /&gt;user@localhost::~# &lt;span style="font-weight: bold;"&gt;ssh-keygen -t rsa&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Generating public/private rsa key pair.&lt;br /&gt;Enter file in which to save the key (/home/user/.ssh/id_rsa):&lt;br /&gt;Created directory '/home/user/.ssh'.&lt;br /&gt;Enter passphrase (empty for no passphrase):&lt;br /&gt;Enter same passphrase again:&lt;br /&gt;Your identification has been saved in /home/user/.ssh/id_rsa.&lt;br /&gt;Your public key has been saved in /home/user/.ssh/id_rsa.pub.&lt;br /&gt;The key fingerprint is:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;DO NOT CREATE A PASSPHRASE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;now Create a .ssh directory onto The other machine. SSH into the box, then SSH into something something else will create it for you.&lt;br /&gt;&lt;br /&gt;Add key to MachineB .ssh/authorized_keys, enter in MachineB password.&lt;br /&gt;&lt;br /&gt;user@localhost::~#&lt;span style="font-weight: bold;"&gt;cat .ssh/id_rsa.pub | ssh b@B 'cat &gt;&gt; .ssh/authorized_keys'&lt;/span&gt;&lt;br /&gt;user@MachineB password:&lt;br /&gt;&lt;br /&gt;now SSH into Machine B with fun!&lt;br /&gt;&lt;br /&gt;Notes:&lt;br /&gt;&lt;br /&gt;If something Fails, try this.&lt;br /&gt;&lt;br /&gt;Put the public key in .ssh/authorized_keys2&lt;br /&gt;Change the permissions of .ssh to 700&lt;br /&gt;Change the permissions of .ssh/authorized_keys2 to 640&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-4140144967029736168?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/4140144967029736168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=4140144967029736168' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/4140144967029736168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/4140144967029736168'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2009/04/yeah-more-notes.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-7117845485588042628</id><published>2009-04-16T09:09:00.000-07:00</published><updated>2009-04-16T09:11:36.081-07:00</updated><title type='text'></title><content type='html'>Eh, useful to have perl note.&lt;br /&gt;(Sometimes I forget simple things.)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;:/#perl -MCPAN -e shell&lt;br /&gt;&lt;br /&gt;perl&gt; install Bundle::CPAN&lt;br /&gt;   &lt;br /&gt;perl&gt;reload cpan&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-7117845485588042628?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/7117845485588042628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=7117845485588042628' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/7117845485588042628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/7117845485588042628'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2009/04/eh-useful-to-have-perl-note.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-4456797115910470488</id><published>2009-04-16T09:05:00.000-07:00</published><updated>2009-04-16T09:08:29.199-07:00</updated><title type='text'></title><content type='html'>Ok, stole these notes from &lt;a href="http://www.opendns.com/"&gt;OpenDNS&lt;/a&gt;. But I want my own copy of these notes that I can find when I need it.&lt;br /&gt;&lt;br /&gt;To avoid having your settings get revoked after reboots, or after periods of inactivity you may need to make the following changes via the command line:&lt;br /&gt;&lt;br /&gt;    $ sudo cp /etc/resolv.conf /etc/resolv.conf.auto&lt;br /&gt;    $ gksudo gedit /etc/dhcp3/dhclient.conf&lt;br /&gt;    # append the following line to the document&lt;br /&gt;    prepend domain-name-servers 4.2.2.2,216.73.123.59;&lt;br /&gt;    # save and exit&lt;br /&gt;    $ sudo ifdown eth0 &amp;amp;&amp;amp; sudo ifup eth0&lt;br /&gt;&lt;br /&gt;You may be required to change eth0 to your own network device's name if it uses a non-standard name.&lt;br /&gt;&lt;br /&gt;### Oh on the Prepend domain-name-servers. Please remember to change to your own DNS settings.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-4456797115910470488?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/4456797115910470488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=4456797115910470488' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/4456797115910470488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/4456797115910470488'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2009/04/ok-stole-these-notes-from-opendns.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-8055057626249239552</id><published>2009-04-16T08:55:00.000-07:00</published><updated>2009-04-16T08:59:32.219-07:00</updated><title type='text'></title><content type='html'>Eh, this is a line to a script, Useful as hell.&lt;br /&gt;&lt;br /&gt;Say you want to have a cron job run all the time, and want each update to have its own folder, etc. Each labeled by the date.&lt;br /&gt;&lt;br /&gt;backup_`date +"%Y-%m-%d"` &gt; /backup_`date +"%Y-%m-%d_%Hh%Mm%Ss"`.log&lt;br /&gt;&lt;br /&gt;## Guide for the use of the date function of bash.  Case sensitive!!&lt;br /&gt;## For use to perpend or append to a name.&lt;br /&gt;## Use a % sign between each.&lt;br /&gt;##&lt;br /&gt;## Y = Year in 4-digit format (2006)&lt;br /&gt;## M = Month number (06)&lt;br /&gt;## d = Day of the month - 2 digits (05)&lt;br /&gt;## T = Time in 24 hour format (17:45:52)&lt;br /&gt;## H = Hour in 24-hour format (17)&lt;br /&gt;## m = Minutes (35)&lt;br /&gt;## S = Seconds (05)&lt;br /&gt;##&lt;br /&gt;## %Y%M%d%H%m%S = 20090209133424&lt;br /&gt;## %Y-%M-%d_%Hh%mm%Ss = 2009-02-09_13h34m24s&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-8055057626249239552?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/8055057626249239552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=8055057626249239552' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/8055057626249239552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/8055057626249239552'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2009/04/eh-this-is-line-to-script-useful-as.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-5955460248938933711</id><published>2009-04-16T08:49:00.000-07:00</published><updated>2009-04-16T08:53:00.193-07:00</updated><title type='text'></title><content type='html'>Backup and Restore LDAP notes.&lt;br /&gt;&lt;br /&gt;Maybe useful for you, but mostly they are notes for me.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Backups: Backup data with slapcat (e.g., slapcat -v -f /usr/local/etc/openldap/slapd.conf -l /path/to/backup/$(date +%Y%m%d).ldif). To ensure consistency, slapd should not be running during backups.&lt;br /&gt;&lt;br /&gt;Restoration:To do a full restore from backup, first stop slapd and remove all ldap data (e.g., rm /usr/local/var/openldap-data/ for source installations or rm /var/lib/ldap/* for Debian installations). Then use slapadd to load data from the ldif backup (e.g., slapadd -v -c -l example.ldif -f /usr/local/etc/openldap/slapd.conf for source installations or slapadd -v -c -l backup.ldif -f /etc/ldap/slapd.conf for Debian installations). Then run slapindex and start slapd.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-5955460248938933711?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/5955460248938933711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=5955460248938933711' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/5955460248938933711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/5955460248938933711'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2009/04/backup-and-restore-ldap-notes.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-4535473370244304240</id><published>2009-04-16T08:40:00.000-07:00</published><updated>2009-04-16T08:45:02.816-07:00</updated><title type='text'></title><content type='html'>Clear Cache from a linux box.&lt;br /&gt;Works only with Kernels 2.6.16 or newer&lt;br /&gt;&lt;br /&gt;sync; echo 3 &gt; /proc/sys/vm/drop_caches&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Quick Script I use for the machine and cron jobs&lt;br /&gt;&lt;br /&gt;Named: clean.sh&lt;br /&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;###&lt;br /&gt;### Shell script to clean the cache on the machine, it also lists current memory usage, and&lt;br /&gt;### afterwards its cleared so I can compare.&lt;br /&gt;###&lt;br /&gt;###  SimonTek  April 16th, 2009&lt;br /&gt;###&lt;br /&gt;free -m&lt;br /&gt;sync; echo 3 &gt; /proc/sys/vm/drop_caches&lt;br /&gt;free -m&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-4535473370244304240?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/4535473370244304240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=4535473370244304240' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/4535473370244304240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/4535473370244304240'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2009/04/clear-cache-from-linux-box.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-7175958296076101890</id><published>2009-02-05T09:10:00.000-08:00</published><updated>2009-04-16T08:48:36.181-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox locked'/><category scheme='http://www.blogger.com/atom/ns#' term='thunderbird locked'/><title type='text'></title><content type='html'>I wrote this for a few co-workers today. We run linux, and giving options for people to fix stuff when I am late coming in.&lt;br /&gt;&lt;br /&gt;Firefox or Thunderbird won't work. How to fix.&lt;br /&gt;&lt;br /&gt;FIREFOX&lt;br /&gt;&lt;br /&gt;user@host:~$ cd .mozilla/firefox/weirdstuff.default/&lt;br /&gt;user@host:~$ rm .parentlock&lt;br /&gt;&lt;br /&gt;Commands Meanings:&lt;br /&gt;&lt;br /&gt;cd = Change Directory, also "cd ~" will put you back in your home directory.&lt;br /&gt;&lt;br /&gt;ls = List Screen, remember DOS days of dir? same thing, dir will also work.&lt;br /&gt;&lt;br /&gt;rm = remove. BE CAREFUL with that command.&lt;br /&gt;&lt;br /&gt;pwd = print working directory. Basically lets you know where you are.&lt;br /&gt;&lt;br /&gt;Also .file means hidden. you can type in ls -a for all files&lt;br /&gt;&lt;br /&gt;Notes:&lt;br /&gt;&lt;br /&gt;If you hit TAB while typing it will finish what your typing for each directory.&lt;br /&gt;&lt;br /&gt;weirdstuff.default is your profile directory, it changes on each machine.&lt;br /&gt;     &lt;br /&gt;&lt;br /&gt;THUNDERBIRD EMAIL&lt;br /&gt;&lt;br /&gt;cd .mozilla-thunderbird/weirdstuff.default/&lt;br /&gt;rm .parentlock&lt;br /&gt;&lt;br /&gt;example: cd .mozilla-thunderbird/nq92xeeb.default/&lt;br /&gt;&lt;br /&gt;P.S.&lt;br /&gt;Also If you have an issue where your bookmarks have dis-appeared and the buttons don't work, mv places.sqlite to places.sqlite2 (You can delete it, but I always like to keep it around just incase.)&lt;br /&gt;&lt;br /&gt;Also Firefox &lt;span style="font-weight: bold;"&gt;Usually&lt;/span&gt; does backups everyday, so in 3 you can just roll back. But as always make backups.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-7175958296076101890?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/7175958296076101890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=7175958296076101890' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/7175958296076101890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/7175958296076101890'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2009/02/i-wrote-this-for-few-co-workers-today.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-5344236247833065064</id><published>2009-01-30T16:01:00.000-08:00</published><updated>2009-01-30T16:08:14.496-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mysql INNODB issue'/><title type='text'></title><content type='html'>Hello. Spent the past 2 hours having an Issue with MYSQL INNODB. So I figured to post the answer.&lt;br /&gt;&lt;br /&gt;I was installing RT (Request Tracker) and any time it got to mysql it came up with INNODB not installed or turned off. I was going INSANE, looking through my.cnf and going its RIGHT THERE #### out and everything. Should work fine. No. I am like is this defined somewhere else? Nope.&lt;br /&gt;&lt;br /&gt;Guess what the issue was. Permission as usual. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Chmod 777 /tmp&lt;/span&gt; and every thing went fine. I will go and tweak it after this blog, wanted people to have an answer available. It drove me nuts. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What it SHOULD Do. &lt;br /&gt;&lt;br /&gt;:/etc/mysql# /usr/sbin/rt-setup-database-3.6 --action init --dba root --prompt-for-dba-password&lt;br /&gt;In order to create or update your RT database,this script needs to connect to your mysql instance on localhost as root.&lt;br /&gt;Please specify that user's database password below. If the user has no database&lt;br /&gt;password, just press return.&lt;br /&gt;&lt;br /&gt;Password: &lt;br /&gt;Now creating a database for RT.&lt;br /&gt;Creating mysql database rtdb.&lt;br /&gt;Now populating database schema.&lt;br /&gt;Creating database schema.&lt;br /&gt;Done setting up database schema.&lt;br /&gt;Now inserting database ACLs&lt;br /&gt;Done setting up database ACLs.&lt;br /&gt;Now inserting RT core system objects&lt;br /&gt;Checking for existing system user...not found.  This appears to be a new installation.&lt;br /&gt;Creating system user...done.&lt;br /&gt;Now inserting RT data&lt;br /&gt;Creating Superuser  ACL...done.&lt;br /&gt;Creating groups...3.4.5.6.7.8.9.done.&lt;br /&gt;Creating users...10.12.done.&lt;br /&gt;Creating queues...1.2.done.&lt;br /&gt;Creating ACL...2.3.done.&lt;br /&gt;Creating ScripActions...1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.done.&lt;br /&gt;Creating ScripConditions...1.2.3.4.5.6.7.8.9.10.done.&lt;br /&gt;Creating templates...1.2.3.4.5.6.7.8.9.10.11.12.done.&lt;br /&gt;Creating scrips...1.2.3.4.5.6.7.8.9.10.11.12.13.14.done.&lt;br /&gt;Creating predefined searches...1.2.3.done.&lt;br /&gt;Done setting up database content.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-5344236247833065064?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/5344236247833065064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=5344236247833065064' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/5344236247833065064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/5344236247833065064'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2009/01/hello.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-5100076729665414709</id><published>2008-09-16T04:35:00.001-07:00</published><updated>2008-09-16T04:37:00.634-07:00</updated><title type='text'></title><content type='html'>Later today I will stop by Digi Comp on Santa Monica to pick up parts to explain my old apple airport hack. Its 4 years old, but i never showed pictures. or wrote how to get an orinoco card to show up as airport. ($20 parts vs $125 for used card)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-5100076729665414709?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/5100076729665414709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=5100076729665414709' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/5100076729665414709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/5100076729665414709'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2008/09/later-today-i-will-stop-by-digi-comp-on.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-1686341596079666604</id><published>2008-09-11T18:24:00.000-07:00</published><updated>2009-03-13T16:26:03.028-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dlink 520+'/><category scheme='http://www.blogger.com/atom/ns#' term='Wireless'/><category scheme='http://www.blogger.com/atom/ns#' term='wifi hack'/><title type='text'></title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_uTNzWOmfyuA/SMnOuHvtRnI/AAAAAAAAAAU/Sfj6KkoZq_E/s1600-h/IMG_9510a.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_uTNzWOmfyuA/SMnOuHvtRnI/AAAAAAAAAAU/Sfj6KkoZq_E/s320/IMG_9510a.jpg" alt="" id="BLOGGER_PHOTO_ID_5244950532798105202" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:130%;"&gt;Dlink DWL 520+&lt;br /&gt;Wireless hack&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;I usually come up a quite a few hacks, but since it usually seems simple to me, i never publish them thinking others have done the same before. So i figured to start publishing them.&lt;br /&gt;&lt;br /&gt;This Hack includes how to make the Dlink DWL-520+ a bit stronger, theoretically upto 600mw+.&lt;br /&gt;&lt;br /&gt;First you will need a DWL-520+ card, another mini-pci wireless card, a phillips head screwdrivers, a soldering iron, new antenna wire, or adapter.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;First unscrew the 2 screws (the red circles where i already removed them)&lt;br /&gt;&lt;img style="width: 348px; height: 254px;" src="http://matthewmconley.com/pics/hack/IMG_9510b.JPG" /&gt;&lt;br /&gt;&lt;br /&gt;Now You will have access to the mini-pci card. Basically this entire card is a PCI to mini-pci adapter.&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img style="width: 447px; height: 254px;" src="http://matthewmconley.com/pics/hack/IMG_9512a.jpg" /&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;Lift the black tab up, and then press the release tabs of the mini-pci card.  You can unsolder the wire from the card and add your own adapter to it. or just run a new antenna wire.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;img style="width: 424px; height: 335px;" src="http://matthewmconley.com/pics/hack/IMG_9513a.jpg" /&gt;&lt;/p&gt;&lt;p&gt;A card I would love to try with this is the &lt;a href="http://www.demarctech.com/products/reliawave-rwu/reliawave-rwu-600mw-atheros-802.11g-mini-pci-card.html"&gt;Extreme Range2&lt;/a&gt; card. Its a lovely 600mw card.&lt;/p&gt;&lt;br /&gt;Once I get some new wireless cards to test more with I will update this.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;******* Follow Up.&lt;br /&gt;&lt;br /&gt;I borrowed the antenna lead off of a Linksys Wireless Cable Modem. It died, and I took it apart to see the motherboard. To my surprise it Uses a mini-pci card. And is easily upgrade-able. I swapped the card with an Intel card. Now have a neat toy. Required breaking off the old antenna post, but worth it.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_uTNzWOmfyuA/Sbrox3zDJzI/AAAAAAAAABA/47ySJT6eJzU/s1600-h/IMG00552.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 256px;" src="http://3.bp.blogspot.com/_uTNzWOmfyuA/Sbrox3zDJzI/AAAAAAAAABA/47ySJT6eJzU/s320/IMG00552.jpg" alt="" id="BLOGGER_PHOTO_ID_5312814653926221618" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-1686341596079666604?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/1686341596079666604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=1686341596079666604' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/1686341596079666604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/1686341596079666604'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2008/09/dlink-dwl-520-wireless-hack-i-usually.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_uTNzWOmfyuA/SMnOuHvtRnI/AAAAAAAAAAU/Sfj6KkoZq_E/s72-c/IMG_9510a.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5054575.post-3748293543068802578</id><published>2008-09-11T18:23:00.001-07:00</published><updated>2008-09-11T18:23:56.979-07:00</updated><title type='text'></title><content type='html'>ARGG Who the hell thinks that blogger captcha's are actually readable?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5054575-3748293543068802578?l=simontekhacks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simontekhacks.blogspot.com/feeds/3748293543068802578/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5054575&amp;postID=3748293543068802578' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/3748293543068802578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5054575/posts/default/3748293543068802578'/><link rel='alternate' type='text/html' href='http://simontekhacks.blogspot.com/2008/09/argg-who-hell-thinks-that-blogger.html' title=''/><author><name>SimonTek</name><uri>http://www.blogger.com/profile/07556270414269265999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/_uTNzWOmfyuA/Sf0aeO_UJaI/AAAAAAAAABM/QR9BUoUj_-o/S220/hair.jpg'/></author><thr:total>0</thr:total></entry></feed>
