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

<channel>
	<title>Hacktopia &#187; Linux</title>
	<atom:link href="http://www.hacktopia.net/wp/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hacktopia.net/wp</link>
	<description>The zen of hacking</description>
	<lastBuildDate>Thu, 26 Jan 2012 17:35:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>determine CPU and Memroy top users</title>
		<link>http://www.hacktopia.net/wp/determine-cpu-and-memroy-top-users/</link>
		<comments>http://www.hacktopia.net/wp/determine-cpu-and-memroy-top-users/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 18:09:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=212</guid>
		<description><![CDATA[So your system is acting screwy and you are tying to figure out what is going wrong.  Listing the processes in order to determine who the CPU or memory hogs are. List how much CPU percent and time each process is uing ps -e -o pcpu,cpu,nice,state,cputime,args &#8211;sort pcpu &#124; sed &#8216;/^ 0.0 /d&#8217; In order [...]]]></description>
			<content:encoded><![CDATA[<p>So your system is acting screwy and you are tying to figure out what is going wrong.  Listing the processes in order to determine who the CPU or memory hogs are.</p>
<p>List how much CPU percent and time each process is uing</p>
<p style="padding-left: 30px;">ps -e -o pcpu,cpu,nice,state,cputime,args &#8211;sort pcpu | sed &#8216;/^ 0.0 /d&#8217;</p>
<p>In order to list the process with how much memory each process is using, listed from lease to most memory hogs.</p>
<p style="padding-left: 30px;">ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/determine-cpu-and-memroy-top-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>list installed packages on debian</title>
		<link>http://www.hacktopia.net/wp/list-installed-packages-on-debian/</link>
		<comments>http://www.hacktopia.net/wp/list-installed-packages-on-debian/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 17:17:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=200</guid>
		<description><![CDATA[I just want to share this simple command to show you how to list out all installed packages on a system.  It is often useful when you need to compare two system, or easily check to see if you installed a package already. dpkg &#8211;get-selections server:/var/log/openvpn# dpkg &#8211;get-selections acpi-support-base                               install acpid                                           install adduser                                         install apache2                                         [...]]]></description>
			<content:encoded><![CDATA[<p>I just want to share this simple command to show you how to list out all installed packages on a system.  It is often useful when you need to compare two system, or easily check to see if you installed a package already.</p>
<p style="padding-left: 30px;">dpkg &#8211;get-selections</p>
<p style="padding-left: 30px;">server:/var/log/openvpn# dpkg &#8211;get-selections<br />
acpi-support-base                               install<br />
acpid                                           install<br />
adduser                                         install<br />
apache2                                         install<br />
apache2-mpm-prefork                             install<br />
apache2-utils                                   install<br />
apache2.2-common                                install<br />
apt                                             install<br />
&#8230; and losts more</p>
<p>This also works on Debian like operating systems like Ubuntu.  Below is a example from my Debian desktop.</p>
<p style="padding-left: 30px;">user@server:~$ dpkg &#8211;get-selections|grep xserver<br />
x11-xserver-utils                               install<br />
xserver-common                                  install<br />
xserver-xorg                                    install<br />
xserver-xorg-core                               install<br />
xserver-xorg-input-all                          install<br />
xserver-xorg-input-evdev                        install<br />
xserver-xorg-input-mouse                        install<br />
xserver-xorg-input-synaptics                    install<br />
xserver-xorg-input-vmmouse                      install<br />
xserver-xorg-input-wacom                        install<br />
xserver-xorg-video-all                          install<br />
xserver-xorg-video-apm                          install<br />
xserver-xorg-video-ark                          install<br />
xserver-xorg-video-ati                          install<br />
xserver-xorg-video-chips                        install<br />
xserver-xorg-video-cirrus                       install<br />
xserver-xorg-video-fbdev                        install<br />
xserver-xorg-video-geode                        install<br />
xserver-xorg-video-i128                         install<br />
xserver-xorg-video-i740                         install<br />
xserver-xorg-video-intel                        install<br />
xserver-xorg-video-mach64                       install<br />
xserver-xorg-video-mga                          install<br />
xserver-xorg-video-neomagic                     install<br />
xserver-xorg-video-nv                           install<br />
xserver-xorg-video-openchrome                   install<br />
xserver-xorg-video-r128                         install<br />
xserver-xorg-video-radeon                       install<br />
xserver-xorg-video-rendition                    install<br />
xserver-xorg-video-s3                           install<br />
xserver-xorg-video-s3virge                      install<br />
xserver-xorg-video-savage                       install<br />
xserver-xorg-video-siliconmotion                install<br />
xserver-xorg-video-sis                          install<br />
xserver-xorg-video-sisusb                       install<br />
xserver-xorg-video-tdfx                         install<br />
xserver-xorg-video-trident                      install<br />
xserver-xorg-video-tseng                        install<br />
xserver-xorg-video-v4l                          install<br />
xserver-xorg-video-vesa                         install<br />
xserver-xorg-video-vmware                       install<br />
xserver-xorg-video-voodoo                       install</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/list-installed-packages-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easiest way to relay mail through GMail using Postfix and Debian</title>
		<link>http://www.hacktopia.net/wp/easiest-way-torelay-mail-through-gmail-using-postfix-and-debian/</link>
		<comments>http://www.hacktopia.net/wp/easiest-way-torelay-mail-through-gmail-using-postfix-and-debian/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 21:41:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=188</guid>
		<description><![CDATA[There are times when you need need to send E-Mail from your Linux server.  The reason that I had to set up E-Mail was because I had a php script that E-Mailed me once some one filled out their information on the website.  The easiest way to get your server sending mail is using GMail [...]]]></description>
			<content:encoded><![CDATA[<p>There are times when you need need to send E-Mail from your Linux server.  The reason that I had to set up E-Mail was because I had a php script that E-Mailed me once some one filled out their information on the website.  The easiest way to get your server sending mail is using GMail to send the mail.  This tutorial will describe how to set it up on Ubuntu / Debian.</p>
<blockquote><p><code>sudo aptitude install postfix libsasl2 ca-certificate libsasl2-modules</code></p></blockquote>
<p>You want to add the fowling lines to your /etc/postfix/main.cf</p>
<blockquote><p><code>relayhost = [smtp.gmail.com]:587<br />
smtp_sasl_auth_enable = yes<br />
smtp_sasl_password_maps = hash:/etc/postfix/</code>gmail_passwd<br />
<code> smtp_sasl_security_options = noanonymous<br />
smtp_tls_CAfile = /etc/postfix/cacert.pem<br />
smtp_use_tls = yes</code></p></blockquote>
<p>You need to edit <code>/etc/postfix/</code>gmail_passwd and add the fowling information below, edit it to fit your needs.</p>
<blockquote><p>[smtp.gmail.com]:587    UserMame@gmail.com:PassWord</p></blockquote>
<p>Next you need to turn the gmai_passwd file into something that postfix can understand, you can use the command below to accomplish that.</p>
<blockquote><p><code>sudo chmod 400 /etc/postfix/sasl_passwd<br />
sudo postmap /etc/postfix/sasl_passwd</code></p></blockquote>
<p>Now you can restart postfix but it will complain about not being able to authenticate the certificate.  In order to fix the problem we will use the ca-certificate package we installed earlier to tell it where it can validate the certificate.</p>
<blockquote><p><code>cat /etc/ssl/certs/Thawte_Premium_Server_CA.pem | sudo tee -a /etc/postfix/cacert.pem</code></p></blockquote>
<p>Now restart postfix for the final time.</p>
<blockquote><p>/etc/init.d/postfix</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/easiest-way-torelay-mail-through-gmail-using-postfix-and-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix &#8211; Delete special charaters by inode</title>
		<link>http://www.hacktopia.net/wp/unix-delete-special-charaters-by-inode/</link>
		<comments>http://www.hacktopia.net/wp/unix-delete-special-charaters-by-inode/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 13:17:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=134</guid>
		<description><![CDATA[Here we see that we have a back slash created by mistake. user:/var/www/core# ls -l total 56 -rw-r&#8211;r&#8211; 1 root     root      213 2009-06-01 07:14 \ -rw-r&#8211;r&#8211; 1 user user 378 2009-05-21 09:14 ads.php We try to delete it but it is not possible because the back slash is a special charter. user:/var/www/core# rm \ &#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Here we see that we have a back slash created by mistake.</p>
<blockquote><p>user:/var/www/core# ls -l<br />
total 56<br />
-rw-r&#8211;r&#8211; 1 root     root      213 2009-06-01 07:14 \<br />
-rw-r&#8211;r&#8211; 1 user user 378 2009-05-21 09:14 ads.php</p></blockquote>
<p>We try to delete it but it is not possible because the back slash is a special charter.</p>
<blockquote><p>user:/var/www/core# rm \<br />
&gt;</p></blockquote>
<p>So we have to go and list out the inode numbers.  Those are the inode numbers in the first collum.</p>
<blockquote><p>user:/var/www/core# ls -li<br />
total 56<br />
458132 -rw-r&#8211;r&#8211; 1 root     root      213 2009-06-01 07:14 \<br />
457759 -rw-r&#8211;r&#8211; 1 user user 378 2009-05-21 09:14 ads.php</p></blockquote>
<p>So now we use find to delete the inode number which in turn deletes the file.</p>
<blockquote><p>user:/var/www/core# find . -inum 458132 -exec rm -i {} \;<br />
rm: remove regular file `./\\&#8217;? y<br />
user:/var/www/core# ls -l<br />
total 52<br />
-rw-r&#8211;r&#8211; 1 user user 378 2009-05-21 09:14 ads.php</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/unix-delete-special-charaters-by-inode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Through you cell Phone</title>
		<link>http://www.hacktopia.net/wp/internet-through-you-cell-phone/</link>
		<comments>http://www.hacktopia.net/wp/internet-through-you-cell-phone/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 03:51:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=12</guid>
		<description><![CDATA[When you go and ask the smiley commission paid sales agent what operating systems they support you are just setting your self for the line “no we only support Windows”. Let me start by explaining that all your phone is doing when it is connecting from your phone, what ever weird prosperity connector you have [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">
<p class="MsoNormal">When you go and ask the smiley commission paid sales agent what operating systems they support you are just setting your self for the line “no we only support Windows”.<span> </span>Let me start by explaining that all your phone is doing when it is connecting from your phone, what ever weird prosperity connector you have to your phone to the usb on your computer on.<span> </span>Even if you have to be one of the special few that has enough money to spend on a pcmcia EV-DO card.<span> </span>They use ppp through the USB interface standard.<span> </span>The reason that the companies who deployed these deices decided to use two of most widely known, understood and devolved on no matter what OS you are using, is because it was easy.<span> </span>It is as simple as that, the two standards where arlready out there and devoped so why not use them.<span> </span>That same reason the ppp and USB are used is the very reason that even though the silly sales person tells you that it is not supported does not mean that it will not work great.<span> </span></p>
<p class="MsoNormal">
<p class="MsoNormal">Apple – I just wanted to start off with apple for the very fact that with OSX there is not additional software that needs to be installed.<span> </span>It is the easiest out of the operating systems out there to set you pone up to the internet.<span> </span>I wish I could include some screen shots but the only time I did use OSX for any sort of extended time was the company that I worked for let me take home one for their laptops.<span> </span>It was really a beautiful thing, it also easily integrated with the built in blue tooth where it could just leave my phone in my pocket while I rode on the train to and from work and the computer could dial the internet completely wirelessly.<span> </span></p>
<p class="MsoNormal">
<p class="MsoNormal">Then there is Windows the only operating systems that is supported by Any of the cariers.<span> </span>One of the benefits that Verizon does offer when using Windows is that they offer a program the not only makes it very easy to connect to the Verizon Wireless ISP but they make it possible to download compressed data.<span> </span></p>
<p class="MsoNormal">
<p class="MsoNormal">I have to admit that Verizon Wireles is the one that I am most fimilar with, I have done research into some of the competitors.<span> </span></p>
<p class="MsoNormal">Some of the other competitors to verizon are Sprint which also uses the cdma standard.<span> </span>But under the Sprint TOS (Term of Service) states they are not allowed to connect a computer to their phone.<span> </span>They are only suppose to use their phone to connect to the internet using the browser that is installed directly on their phone.<span> </span>Now you are saying tht a http request is a http request, and how is Sprint supose to tell the difference.<span> </span>Well the second that you start using any internet application Sprint knows that does not run on your phone such as IRC.  They would be within their rights to cut of your service, and or charge you for your internet usage.</p>
<p class="MsoNormal">
<p class="MsoNormal">Then there is Cingular / At &amp; T which is happy to let you your phone service to connect to the internet but just be ready to pay through the roof on per kb charges.<span> </span>Yes you heard that correctly Cingular charges per the kb unless you buy the unlimited plan which is in my opinion just too expensive.</p>
<p class="MsoNormal">
<p class="MsoNormal">Then there is the third cellular carier in the US Nextel which uses iDen.<span> </span>I am not fimilar with how well nextel works with their data plans.</p>
<p class="MsoNormal">
<p class="MsoNormal">You are already paying through the roof for you cell phone.<span> </span>Why not get the most of it that is possible.<span> </span></p>
<p class="MsoNormal">This is <span> </span>neat little trick that I have been using for a couple of year</p>
<p class="MsoNormal">
<p class="MsoNormal">Dial up codes</p>
<p class="MsoNormal">Verizon</p>
<p class="MsoNormal">Number to dial: #777</p>
<p class="MsoNormal">Username: phonenumber@vzw3g.com</p>
<p class="MsoNormal">Password: vzw</p>
<p class="MsoNormal">Sprint</p>
<p class="MsoNormal">Number to dial: #777</p>
<p class="MsoNormal">Username: username@sprint.com  (vision login)<br />
Password: Vision Password</p>
<p class="MsoNormal">
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/internet-through-you-cell-phone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

