<?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>Hack Admin &#187; Education</title>
	<atom:link href="http://www.hackadmin.com/category/education/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hackadmin.com</link>
	<description></description>
	<lastBuildDate>Tue, 16 Mar 2010 21:31:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Make Sendmail Relay Everything</title>
		<link>http://www.hackadmin.com/2009/07/10/how-to-make-sendmail-relay-everything/</link>
		<comments>http://www.hackadmin.com/2009/07/10/how-to-make-sendmail-relay-everything/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 23:44:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Workaround]]></category>
		<category><![CDATA[directive]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[email relay]]></category>
		<category><![CDATA[inbound email]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[relay]]></category>
		<category><![CDATA[relay email]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://www.hackadmin.com/?p=146</guid>
		<description><![CDATA[I knew I had done this before, but all the explanations I found today were amazingly long and convoluted, which is not what I remembered from the first go around.
Basically, I wanted sendmail to take all inbound email and immediately relay it to another host.  In my situation it makes sense because my servers [...]]]></description>
			<content:encoded><![CDATA[<p>I knew I had done this before, but all the explanations I found today were amazingly long and convoluted, which is not what I remembered from the first go around.</p>
<p>Basically, I wanted sendmail to take all inbound email and immediately relay it to another host.  In my situation it makes sense because my servers have no direct access to the outside world (security thing).  But in reality with the complexities involved in sending email these days, why bother setting up every host or every NAT to be capable of dependably delivering email.</p>
<p>So the solution is, setup one host that you know is a good mail host, and one host that you can monitor for throughput, then point all your other hosts at it for delivery.  Piece of cake right?  Odd that it took me 30 minutes and then a final trip to the sendmail documentation to find it.</p>
<p><span id="more-146"></span>In the end we&#8217;re talking about 1 line in your sendmail.mc (I&#8217;ve consistently found that most of life&#8217;s problems can be solved with 5 to 50 characters in the right text file).</p>
<p>At any rate, the directive you are looking for is:</p>
<p><code>define(`SMART_HOST', `smart.host.com')dnl</code></p>
<p>Just replace &#8220;smart.host.com&#8221; with the smtp server you intend to use as the relay.</p>
<p>For those of you who don&#8217;t use the sendmail.mc, you need to modify the DS variable in your sendmail.cf (but really, find something better to do with your time than edit that file).</p>
<p>For all you sendmail.mc users, once that line is in place, run a &#8220;make&#8221; in your /etc/mail directory and then restart sendmail.</p>
<p>Actually, I was using this mess of a line to test:</p>
<p><code>touch /tmp/mail.txt; /etc/init.d/sendmail restart ; mail -s "Test2" me@myemail.com &lt; /tmp/mail.txt ; tail -f /var/log/maillog</code></p>
<p>You&#8217;ll come up in a tail of maillog and you should watch for the relay host accepting your message.  If it doesn&#8217;t get delivered, it&#8217;s time to look at the relay server.</p>
<p>That is all, have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackadmin.com/2009/07/10/how-to-make-sendmail-relay-everything/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Strip MP3s from YouTube with ffmpeg.</title>
		<link>http://www.hackadmin.com/2009/07/09/strip-mp3s-from-youtube-with-ffmpeg/</link>
		<comments>http://www.hackadmin.com/2009/07/09/strip-mp3s-from-youtube-with-ffmpeg/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 01:47:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.hackadmin.com/?p=134</guid>
		<description><![CDATA[Here&#8217;s a nifty little script that will take a YouTube URL as an argument, pull down the associated flv and convert it into mp3 format.  It&#8217;s basically all shell but I wrapped it with php.
First:
Take the YouTube URL as an argument
$url = $argv[1];
Next:
Use a little shell magic to grab the video arguments for later [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a nifty little script that will take a YouTube URL as an argument, pull down the associated flv and convert it into mp3 format.  It&#8217;s basically all shell but I wrapped it with php.</p>
<p>First:</p>
<p>Take the YouTube URL as an argument</p>
<p><code>$url = $argv[1];</code></p>
<p><span id="more-134"></span>Next:</p>
<p>Use a little shell magic to grab the video arguments for later use:</p>
<p><code>$vid_args = `lynx -source "$url" | grep video_id | grep fullscreen | awk -F'video_id=' '{print $2}' | awk -F'&amp;title'</code></p>
<p>Next:</p>
<p>use basically the same command to grab the title of the video:</p>
<p><code>$title = 'lynx -source "$url" | grep video_id | grep fullscreen | awk -F'video_id=' '{print $2}' | awk -F'&amp;title=' '{print $2}' ';</code></p>
<p>Then:</p>
<p>Do a little formatting of the title to make it useable:</p>
<p><code>$title = preg_replace("| |", "_", $title);<br />
$title = trim($title);<br />
$title = preg_replace("/^[^a-z0-9]?(.*?)[^a-z0-9]?$/i", "$1", $title);<br />
$title = preg_replace("|'|", "", $title);<br />
$title = preg_replace("|\)|", "", $title);<br />
$title = preg_replace("|\(|", "", $title);<br />
$title = preg_replace("|\/|", "_", $title);</code></p>
<p>Then:</p>
<p>Grab the flv with the video arguments you captured from the line above:</p>
<p><code>'wget -O /tmp/$title.flv "http://www.youtube.com/get_video?video_id=$vid_args"';</code></p>
<p>Next:</p>
<p>Use ffmpeg to break it down to mp3 format:</p>
<p><code>'ffmpeg -i /tmp/$title.flv -ar 44100 -ab 160k -ac 2 /tmp/$title.mp3';</code></p>
<p>Finally:</p>
<p>Dump the flv and enjoy:</p>
<p><code>'rm -f /tmp/$title.flv';</code></p>
<p>These files are of course only for educational purposes when you are finished so make sure you delete them <img src='http://www.hackadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.hackadmin.com/downloads/tubeconverter.php.txt">Download The Whole Script</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackadmin.com/2009/07/09/strip-mp3s-from-youtube-with-ffmpeg/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>RHCT</title>
		<link>http://www.hackadmin.com/2009/02/11/rhct/</link>
		<comments>http://www.hackadmin.com/2009/02/11/rhct/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 21:37:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Hack Admin]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[general]]></category>
		<category><![CDATA[red hat certification training]]></category>
		<category><![CDATA[red hat training]]></category>
		<category><![CDATA[rhct]]></category>
		<category><![CDATA[training]]></category>

		<guid isPermaLink="false">http://www.hackadmin.com/rhct/</guid>
		<description><![CDATA[The owners of HackAdmin.com are in the process of building an online training series that will focus on getting our users Red Hat certified.  The course will include the following:

Over 100 video lessons covering every aspect of the certification exam.
Practice tests for every section and for the exam as a whole.
Live online learning sessions that [...]]]></description>
			<content:encoded><![CDATA[<p>The owners of HackAdmin.com are in the process of building an online training series that will focus on getting our users Red Hat certified.  The course will include the following:</p>
<ul>
<li>Over 100 video lessons covering every aspect of the certification exam.</li>
<li>Practice tests for every section and for the exam as a whole.</li>
<li>Live online learning sessions that will be broadcast for each exam topic on a rotating schedule.</li>
<li>Live Q&amp;A during the learning sessions as well as Open Sessions that will cover any topics desired.</li>
<li>An open chat server for our users where they can interact with each other and with our admins when they are online.</li>
</ul>
<p>If you would be interested in participating in our pilot program please send an email to admin@hackadmin.com and let us know.  The pilot program will be free but limited to 15 people or less.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackadmin.com/2009/02/11/rhct/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

