<?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>Bob Droog &#187; Linux</title>
	<atom:link href="http://www.bobdroog.nl/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bobdroog.nl</link>
	<description>My life in this crazy world.</description>
	<lastBuildDate>Sat, 31 Jul 2010 20:33:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Convert .flv to .wmv using bash.</title>
		<link>http://www.bobdroog.nl/2009/12/14/convert-flv-to-wmv-using-bash/</link>
		<comments>http://www.bobdroog.nl/2009/12/14/convert-flv-to-wmv-using-bash/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 17:59:02 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[convert .flv to .wmv]]></category>
		<category><![CDATA[convert flash to .wmv]]></category>
		<category><![CDATA[converting flv to wmv]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[how to convert .flv to .wmv]]></category>
		<category><![CDATA[how to convert .flv to .wmv using bash]]></category>
		<category><![CDATA[how to convert .flv to .wmv using gui]]></category>
		<category><![CDATA[how to convert .flv to .wmv using linux]]></category>
		<category><![CDATA[how to convert .flv to .wmv using terminal]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[wmv]]></category>

		<guid isPermaLink="false">http://www.bobdroog.nl/?p=1432</guid>
		<description><![CDATA[Package needed: ffmpeg root@server:$ yum install ffmpeg Using the command shown underneath you can convert the movie extension .flv to .wmv real easily. user@server:$ ffmpeg -i movie.flv -vcodec wmv1 -acodec adpcm_ima_wav movie.wmv]]></description>
			<content:encoded><![CDATA[<p>Package needed: <em>ffmpeg</em></p>

<div class="wp-terminal">root@server:$ yum install ffmpeg<br/></div>

<p>Using the command shown underneath you can convert the movie extension .flv to .wmv real easily.</p>

<div class="wp-terminal">user@server:$ ffmpeg -i movie.flv -vcodec wmv1 -acodec adpcm_ima_wav movie.wmv<br/></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bobdroog.nl/2009/12/14/convert-flv-to-wmv-using-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get yum package update notifications via e-mail?</title>
		<link>http://www.bobdroog.nl/2009/12/04/how-to-get-yum-package-update-notifications-via-e-mail/</link>
		<comments>http://www.bobdroog.nl/2009/12/04/how-to-get-yum-package-update-notifications-via-e-mail/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 10:36:53 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[automated mail sending linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[e-mail]]></category>
		<category><![CDATA[e-mail notifier for CentOS]]></category>
		<category><![CDATA[e-mail notifier for Fedora]]></category>
		<category><![CDATA[e-mail notifier for RHEL]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[manually]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[users]]></category>
		<category><![CDATA[yum]]></category>
		<category><![CDATA[yum email when upgrades]]></category>
		<category><![CDATA[yum notification]]></category>

		<guid isPermaLink="false">http://www.bobdroog.nl/?p=1354</guid>
		<description><![CDATA[This will work for: Red Hat / CentOS / Fedora For Debian / Ubuntu: Please visit this website. My server sends me a notifications for everything what happens on the server through e-mail, the only thing I had to check manually every time were the updates / upgrades for my Linux system. I figured there [...]]]></description>
			<content:encoded><![CDATA[<p>This will work for: <strong>Red Hat</strong> / <strong>CentOS </strong>/ <strong>Fedora</strong><br />
For <strong>Debian </strong>/ <strong>Ubuntu</strong>: <a href="http://www.cyberciti.biz/faq/apt-get-apticron-send-email-upgrades-available/" target="_blank"><strong><em>Please visit this website.</em></strong></a></p>
<p>My server sends me a notifications for everything what happens on the server through e-mail, the only thing I had to check manually every time were the <strong>updates</strong> / <strong>upgrades</strong> for my Linux system. I figured there should be a way to get yum-update send notifications with available upgrades. So what we are going to do now is force yum to send an email when a update or upgrade is available.</p>
<p>First thing we need to do is open the yum config file.</p>

<div class="wp-terminal">root@server:$ nano /etc/yum/yum-updatesd.conf<br/></div>

<div class="codesnip-container" >
<div class="perl codesnip" style="font-family:monospace;"><span class="br0">&#91;</span>main<span class="br0">&#93;</span><br />
<span class="co1"># how often to check for new updates (in seconds)</span><br />
run_interval <span class="sy0">=</span> <span class="nu0">3600</span><br />
<span class="co1"># how often to allow checking on request (in seconds)</span><br />
updaterefresh <span class="sy0">=</span> <span class="nu0">600</span></p>
<p><span class="co1"># how to send notifications (valid: dbus, email, syslog)</span><br />
emit_via <span class="sy0">=</span> dbus<br />
<span class="co1"># should we listen via dbus to give out update information/check for</span><br />
<span class="co1"># new updates</span><br />
dbus_listener <span class="sy0">=</span> yes</p>
<p><span class="co1"># automatically install updates</span><br />
do_update <span class="sy0">=</span> <a href="http://perldoc.perl.org/functions/no.html"><span class="kw3">no</span></a><br />
<span class="co1"># automatically download updates</span><br />
do_download <span class="sy0">=</span> <a href="http://perldoc.perl.org/functions/no.html"><span class="kw3">no</span></a><br />
<span class="co1"># automatically download deps of updates</span><br />
do_download_deps <span class="sy0">=</span> <a href="http://perldoc.perl.org/functions/no.html"><span class="kw3">no</span></a></div>
</div>
<p>Add these variables, and change &#8220;<strong>email_to</strong>&#8221; to your e-mail address:</p>
<div class="codesnip-container" >
<div class="perl codesnip" style="font-family:monospace;">emit_via <span class="sy0">=</span> email<br />
<span class="co1"># who to send the email to:</span><br />
email_to <span class="sy0">=</span> email<span class="re0">@example</span><span class="sy0">.</span>com<br />
<span class="co1"># who send the notifications</span><br />
email_from <span class="sy0">=</span> yum<span class="sy0">-</span>update<span class="re0">@yourserver</span><span class="sy0">.</span>com</div>
</div>
<p>Here is my working config file. You can also just copy and use this one and change the e-mail addresses.</p>
<div class="codesnip-container" >
<div class="perl codesnip" style="font-family:monospace;"><span class="br0">&#91;</span>main<span class="br0">&#93;</span><br />
<span class="co1"># how often to check for new updates (in seconds)</span><br />
run_interval <span class="sy0">=</span> <span class="nu0">3600</span><br />
<span class="co1"># how often to allow checking on request (in seconds)</span><br />
updaterefresh <span class="sy0">=</span> <span class="nu0">600</span></p>
<p><span class="co1"># how to send notifications (valid: dbus, email, syslog)</span><br />
emit_via <span class="sy0">=</span> email<br />
<span class="co1"># who to send the email to:</span><br />
email_to <span class="sy0">=</span> email<span class="re0">@example</span><span class="sy0">.</span>com<br />
<span class="co1"># who send the notifications</span><br />
email_from <span class="sy0">=</span> yum<span class="sy0">-</span>update<span class="re0">@yourserver</span><span class="sy0">.</span>com</p>
<p><span class="co1"># should we listen via dbus to give out update information/check for</span><br />
<span class="co1"># new updates</span><br />
dbus_listener <span class="sy0">=</span> yes</p>
<p><span class="co1"># automatically install updates</span><br />
do_update <span class="sy0">=</span> <a href="http://perldoc.perl.org/functions/no.html"><span class="kw3">no</span></a><br />
<span class="co1"># automatically download updates</span><br />
do_download <span class="sy0">=</span> <a href="http://perldoc.perl.org/functions/no.html"><span class="kw3">no</span></a><br />
<span class="co1"># automatically download deps of updates</span><br />
do_download_deps <span class="sy0">=</span> <a href="http://perldoc.perl.org/functions/no.html"><span class="kw3">no</span></a></div>
</div>
<p>After saving the file. Restart notification yum-updatesd service.</p>

<div class="wp-terminal">root@server:$ /etc/init.d/yum-updatesd restart<br/></div>

<h6></h6>
<h3>E-mail notification sample sent by yum notification.</h3>
<div class="codesnip-container" >
<div class="email codesnip" style="font-family:monospace;"><span class="sc0"><span class="kw3">Subject</span><span class="sy0">:</span> yum<span class="sy0">:</span> 9 Updates Available (on yourserver.com)</span><br />
<span class="sc0"><span class="kw3">From</span><span class="sy0">:</span> yum-<span class="re2">update@example.com</span></span><br />
<span class="sc0"><span class="kw3">Date</span><span class="sy0">:</span> &nbsp;12/4/2009 11<span class="sy0">:</span>34<span class="sy0">:</span>31</span><br />
<span class="sc0"><span class="kw3">To</span><span class="sy0">:</span> <span class="re2">email@example.com</span></span></p>
<p>Hi,<br />
This is the automatic update system on yourserver.com</p>
<p>There are 9 package updates available. Please run the system updater.</p>
<p>Packages available for update:</p>
<p>&nbsp; &nbsp; firefox &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; kernel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; cscope &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; kernel-headers &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; dnsmasq &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; kernel-devel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; apr-util &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; xulrunner &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; apr-util-devel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p>
<p>Thank You,<br />
Your Computer</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.bobdroog.nl/2009/12/04/how-to-get-yum-package-update-notifications-via-e-mail/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Five ways to backup your Linux Computer or Server using bash.</title>
		<link>http://www.bobdroog.nl/2009/12/02/five-ways-to-backup-your-linux-computer-or-server-using-bash/</link>
		<comments>http://www.bobdroog.nl/2009/12/02/five-ways-to-backup-your-linux-computer-or-server-using-bash/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 14:02:02 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[5+]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[backup computer]]></category>
		<category><![CDATA[backup linux pc]]></category>
		<category><![CDATA[backup linux server]]></category>
		<category><![CDATA[backup linux system using dd]]></category>
		<category><![CDATA[backup linux system using dump]]></category>
		<category><![CDATA[backup linux system using tar]]></category>
		<category><![CDATA[backup my centos system]]></category>
		<category><![CDATA[backup my fedora system]]></category>
		<category><![CDATA[backup my red hat system]]></category>
		<category><![CDATA[backup server]]></category>
		<category><![CDATA[backup unix]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[dump]]></category>
		<category><![CDATA[easy]]></category>
		<category><![CDATA[easy way to create backups from my linux pc]]></category>
		<category><![CDATA[easy way to create backups from my linux server]]></category>
		<category><![CDATA[easy way to create backups from my pc]]></category>
		<category><![CDATA[easy way to create backups from my server]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[five]]></category>
		<category><![CDATA[how to backup linux system using dd]]></category>
		<category><![CDATA[how to backup linux system using tar]]></category>
		<category><![CDATA[how to backup my linux computer]]></category>
		<category><![CDATA[how to backup my linux pc]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://www.bobdroog.nl/?p=1338</guid>
		<description><![CDATA[Using &#8220;DD&#8221; Make a backup of a local hard disk on remote host via ssh. user@server:$ dd bs=1M if=/dev/hda &#124; gzip &#124; ssh user@ip_addr 'dd of=hda.gz' Backup content of the hard drive to a file. user@server:$ dd if=/dev/sda of=/tmp/file1 Make a copy of MBR (Master Boot Record) to floppy. user@server:$ dd if=/dev/hda of=/dev/fd0 bs=512 count=1 [...]]]></description>
			<content:encoded><![CDATA[<h3>Using &#8220;DD&#8221;</h3>
<p>Make a backup of a local hard disk on remote host via ssh.</p>

<div class="wp-terminal">user@server:$ dd bs=1M if=/dev/hda | gzip | ssh user@ip_addr 'dd of=hda.gz'<br/></div>

<p>Backup content of the hard drive to a file.</p>

<div class="wp-terminal">user@server:$ dd if=/dev/sda of=/tmp/file1<br/></div>

<p>Make a copy of MBR (Master Boot Record) to floppy.</p>

<div class="wp-terminal">user@server:$ dd if=/dev/hda of=/dev/fd0 bs=512 count=1<br/></div>

<p>Restore MBR from backup copy saved to floppy.</p>

<div class="wp-terminal">user@server:$ dd if=/dev/fd0 of=/dev/hda bs=512 count=1<br/></div>

<h6></h6>
<h3>Using &#8220;Dump&#8221;</h3>
<p>Make a full backup of directory &#8216;/home&#8217;.</p>

<div class="wp-terminal">user@server:$ dump -0aj -f /tmp/home0.bak /home<br/></div>

<p>Make a incremental backup of directory &#8216;/home&#8217;</p>

<div class="wp-terminal">user@server:$ dump -1aj -f /tmp/home0.bak /home<br/></div>

<p>Restoring a backup interactively.</p>

<div class="wp-terminal">user@server:$ restore -if /tmp/home0.bak<br/></div>

<h6></h6>
<h3>Using &#8220;Rsync&#8221;</h3>
<p>Synchronization between directories.</p>

<div class="wp-terminal">user@server:$ rsync -rogpav --delete /home /tmp<br/></div>

<p>Rsync via SSH tunnel.</p>

<div class="wp-terminal">user@server:$ rsync -rogpav -e ssh --delete /home ip_address:/tmp<br/></div>

<p>Synchronize a local directory with a remote directory via ssh and compression.</p>

<div class="wp-terminal">user@server:$ rsync -az -e ssh --delete ip_addr:/home/public /home/local<br/></div>

<p>Synchronize a remote directory with a local directory via ssh and compression.</p>

<div class="wp-terminal">user@server:$ rsync -az -e ssh --delete /home/local ip_addr:/home/public<br/></div>

<h6></h6>
<h3>Using &#8220;tar&#8221;</h3>
<p>Make a incremental backup of directory &#8216;/home/user&#8217;</p>

<div class="wp-terminal">user@server:$ tar -Puf backup.tar /home/user<br/></div>

<p>For more or better ways to backup your system using tar <a href="http://www.bobdroog.nl/2009/11/11/easy-full-server-backup-using-tar-in-bash/"><strong>look here</strong></a>.</p>
<h6></h6>
<h3>Using &#8220;SSH&#8221;</h3>
<p>Copy content of a directory on remote directory via ssh.</p>

<div class="wp-terminal">user@server:$ ( cd /tmp/local/ && tar c . ) | ssh -C user@ip_addr 'cd /home/share/ && tar x -p'<br/></div>

<p>Copy a local directory on remote directory via ssh.</p>

<div class="wp-terminal">user@server:$ ( tar c /home ) | ssh -C user@ip_addr 'cd /home/backup-home && tar x -p' <br/></div>

<p>Local copy preserving permits and links from a directory to another.</p>

<div class="wp-terminal">user@server:$ tar cf - . | (cd /tmp/backup ; tar xf - )<br/></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bobdroog.nl/2009/12/02/five-ways-to-backup-your-linux-computer-or-server-using-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eight interesting Linux/Unix commands.</title>
		<link>http://www.bobdroog.nl/2009/12/02/eight-interesting-linuxunix-commands/</link>
		<comments>http://www.bobdroog.nl/2009/12/02/eight-interesting-linuxunix-commands/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 13:41:03 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[8]]></category>
		<category><![CDATA[active]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[cool linux commands]]></category>
		<category><![CDATA[dead]]></category>
		<category><![CDATA[dig]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[domain info from terminal]]></category>
		<category><![CDATA[domain info using terminal]]></category>
		<category><![CDATA[eight]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[find disk usage]]></category>
		<category><![CDATA[freespace]]></category>
		<category><![CDATA[get disk usage]]></category>
		<category><![CDATA[get info using terminal about domain]]></category>
		<category><![CDATA[good usable commands]]></category>
		<category><![CDATA[how can I see how much is stored in my folder]]></category>
		<category><![CDATA[how to get information about who is logged in]]></category>
		<category><![CDATA[how to see how much stored on linux pc]]></category>
		<category><![CDATA[info about domain]]></category>
		<category><![CDATA[interesting linux commands]]></category>
		<category><![CDATA[linux commands]]></category>
		<category><![CDATA[linux info about user]]></category>
		<category><![CDATA[linux terminal domain info]]></category>
		<category><![CDATA[linux users info]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[nslookup]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[processes]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[runlevel]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[Terminal commands]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[Unix commands]]></category>
		<category><![CDATA[usage]]></category>
		<category><![CDATA[w]]></category>
		<category><![CDATA[who is logged on]]></category>
		<category><![CDATA[who is logged on server]]></category>
		<category><![CDATA[who is on my server]]></category>
		<category><![CDATA[whois]]></category>

		<guid isPermaLink="false">http://www.bobdroog.nl/?p=1328</guid>
		<description><![CDATA[This command shows you information about who is logged in. user@server:$ w This gathers information about a domain name. user@server:$ dig domain.com Query DNS servers for information about domain names user@server:$ nslookup domain.com Ancient command to find out more information about DNS user@server:$ whois domain.com Find the disk usage of a file or a directory. [...]]]></description>
			<content:encoded><![CDATA[<p>This command shows you information about who is logged in.</p>

<div class="wp-terminal">user@server:$ w<br/></div>

<h6></h6>
<p>This gathers information about a domain name.</p>

<div class="wp-terminal">user@server:$ dig domain.com<br/></div>

<h6></h6>
<p>Query DNS servers for information about domain names</p>

<div class="wp-terminal">user@server:$ nslookup domain.com<br/></div>

<h6></h6>
<p>Ancient command to find out more information about DNS</p>

<div class="wp-terminal">user@server:$ whois domain.com<br/></div>

<h6></h6>
<p>Find the disk usage of a file or a directory.<br />
(<strong>-sh</strong> = better readable | <strong>-ch</strong> = the same but larger output)</p>

<div class="wp-terminal">user@server:$ du  *<br/></div>


<div class="wp-terminal">user@server:$ du -sh *<br/></div>


<div class="wp-terminal">user@server:$ du -ch *<br/></div>

<h6></h6>
<p>Disk freespace, pretty much self explaining but I use it with the <strong>-h</strong> switch to convert the bytes to megabytes or gigabytes</p>

<div class="wp-terminal">user@server:$ df<br/></div>


<div class="wp-terminal">user@server:$ df -h<br/></div>

<h6></h6>
<p>Find information about users.</p>

<div class="wp-terminal">user@server:$ finger username<br/></div>

<h6></h6>
<p>Show who is logged on, and print: time of last system boot, dead processes, system login processes, active processes spawned by init, current runlevel, last system clock change.</p>

<div class="wp-terminal">user@server:$ who -a<br/></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bobdroog.nl/2009/12/02/eight-interesting-linuxunix-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add overlay .png image to video as logo using bash?</title>
		<link>http://www.bobdroog.nl/2009/12/02/how-to-add-overlay-png-image-to-video-as-logo-using-bash/</link>
		<comments>http://www.bobdroog.nl/2009/12/02/how-to-add-overlay-png-image-to-video-as-logo-using-bash/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 13:01:47 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[.mpeg]]></category>
		<category><![CDATA[.mpg]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[add logo to own movie]]></category>
		<category><![CDATA[add logo to own video]]></category>
		<category><![CDATA[add overlay image to movie]]></category>
		<category><![CDATA[add overlay image to video]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[convert movie with logo]]></category>
		<category><![CDATA[convert movie with your logo]]></category>
		<category><![CDATA[convert own movie with logo]]></category>
		<category><![CDATA[convert own video with logo]]></category>
		<category><![CDATA[convert video to movie with logo]]></category>
		<category><![CDATA[convert video with logo]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[how to add image to video]]></category>
		<category><![CDATA[how to add logo to video using terminal]]></category>
		<category><![CDATA[how to convert movie so it has a logo]]></category>
		<category><![CDATA[how to convert video so it has logo]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[movie logo]]></category>
		<category><![CDATA[movie with logo]]></category>
		<category><![CDATA[overlay]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[to]]></category>
		<category><![CDATA[use your own logo on a movie]]></category>
		<category><![CDATA[video logo]]></category>
		<category><![CDATA[watermark]]></category>

		<guid isPermaLink="false">http://www.bobdroog.nl/?p=1321</guid>
		<description><![CDATA[Using this command you can create/convert a video with your own chosen logo. Have fun. user@server:$ ffmpeg -i movie.mpg -vhook '/usr/lib/vhook/watermark.so -f overlay.png -m 1 -t 222222' -an mm.flv]]></description>
			<content:encoded><![CDATA[<p>Using this command you can create<strong>/</strong>convert a video with your own chosen logo. Have fun.</p>

<div class="wp-terminal">user@server:$ ffmpeg -i movie.mpg -vhook '/usr/lib/vhook/watermark.so -f overlay.png -m 1 -t 222222' -an mm.flv<br/></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bobdroog.nl/2009/12/02/how-to-add-overlay-png-image-to-video-as-logo-using-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to update your twitter status in linux using bash?</title>
		<link>http://www.bobdroog.nl/2009/12/02/how-to-update-your-twitter-status-in-linux-using-bash/</link>
		<comments>http://www.bobdroog.nl/2009/12/02/how-to-update-your-twitter-status-in-linux-using-bash/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 12:38:49 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[how to update twitter status with command]]></category>
		<category><![CDATA[how to update twitter using bash]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[sshd]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[to]]></category>
		<category><![CDATA[tweet]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[update twitter in linux]]></category>
		<category><![CDATA[update twitter status in linux]]></category>
		<category><![CDATA[username]]></category>

		<guid isPermaLink="false">http://www.bobdroog.nl/?p=1290</guid>
		<description><![CDATA[Updating your twitter status using the bash SHell in Linux is easier then you may think, you can update your status using &#8220;curl&#8220;, curl is a tool to transfer data from or to a server. All you have to do is execute this command showed underneath. This will transfer the status data to the twitter [...]]]></description>
			<content:encoded><![CDATA[<p>Updating your twitter status using the bash SHell in Linux is easier then you may think, you can update your status using &#8220;<strong>curl</strong>&#8220;, curl is a tool to transfer data from or to a server. All you have to do is execute this command showed underneath. This will transfer the status data to the twitter site using the <strong>Twitter API</strong>.</p>

<div class="wp-terminal">user@server:$ curl -u user:pass -d status=”Tweeting from the shell” http://twitter.com/statuses/update.xml<br/></div>

<p>But of course, you don&#8217;t want to be typing all that every time you want to update your twitter status. So I found <a href="http://binnyva.blogspot.com/2007/03/using-twitter-part-1-command-line.html" target="_blank"><strong>this website</strong></a> which has a executable twitter bash script.</p>

<div class="wp-terminal">user@server:$ curl --basic --user "user:password" --data-ascii "status=`echo $@|tr ' ' '+'`" "http://twitter.com/statuses/update.json"<br/></div>

<p>Replace the <strong>user</strong> and <strong>password</strong> with your twitter user id and password. Now save the text to a file called &#8216;<strong>twitter</strong>&#8216; and give the file execute permission. Put this file in any folder in your path. If you want to use this script everywhere on the server make sure it&#8217;s located in <strong>/usr/local/bin or ~/bin</strong>. If you are a user on the server, you may just create the file in your <strong>~/user</strong> folder.</p>
<h3>Now, how to use the script?</h3>
<p>If you have created the twitter file in <strong>/usr/local/bin or ~/bin</strong> you may use this command anywhere you are in the server.</p>

<div class="wp-terminal">user@server:$ twitter Testing and using Twitter CLI.<br/></div>

<p>For best results, enclose the message within quotes. This will prevent problems when using wild card characters like &#8216;?&#8217;</p>

<div class="wp-terminal">user@server:$ twitter "Testing and using Twitter CLI."<br/></div>

<p>And if have created the twitter file in your <strong>~/user</strong> directory, make sure you are in the <strong>same folder</strong> as the file and then you may use this command.</p>

<div class="wp-terminal">user@server:$ ./twitter "Testing and using Twitter CLI."<br/></div>

<h3>Not working?</h3>
<p>Did you make sure the file has executable rights?</p>

<div class="wp-terminal">user@server:$ chmod +x twitter<br/></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bobdroog.nl/2009/12/02/how-to-update-your-twitter-status-in-linux-using-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to unrar multiple .rar files using bash?</title>
		<link>http://www.bobdroog.nl/2009/11/28/how-to-unrar-multiple-rar-files-using-bash/</link>
		<comments>http://www.bobdroog.nl/2009/11/28/how-to-unrar-multiple-rar-files-using-bash/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 13:14:37 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[how to unpack .rar files]]></category>
		<category><![CDATA[how to unpack .rar files using bash]]></category>
		<category><![CDATA[how to unrar .rar files]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[multiple]]></category>
		<category><![CDATA[rar]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[unpack .rar files]]></category>
		<category><![CDATA[unpack .rar files in linux]]></category>
		<category><![CDATA[unrar]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[yum]]></category>
		<category><![CDATA[yum update]]></category>

		<guid isPermaLink="false">http://www.bobdroog.nl/?p=1252</guid>
		<description><![CDATA[You might need the package: unrar You can check your server using the following command if you have already installed it or not. user@server:$ rpm -q unrar If nothing shows up, install the package unrar. If you are using a Linux OS which uses yum update you can use the following command to install it. [...]]]></description>
			<content:encoded><![CDATA[<p>You might need the package: <em><strong>unrar</strong></em></p>
<p>You can check your server using the following command if you have already installed it or not.</p>

<div class="wp-terminal">user@server:$ rpm -q unrar<br/></div>

<p>If nothing shows up, install the package unrar. If you are using a Linux OS which uses <strong>yum update</strong> you can use the following command to install it.</p>

<div class="wp-terminal">user@server:$ yum install unrar<br/></div>

<p>If that does not work for you, you can simply install it manually using the next commands.</p>

<div class="wp-terminal">user@server:$ wget http://www.rarlab.com/rar/unrar-3.7.7-centos.gz<br/>gzip -d unrar-3.7.7-centos.gz<br/>chmod +x unrar-3.7.7-centos<br/>cp unrar-3.7.7-centos /usr/bin/unrar # Need to do this as admin<br/></div>

<p>When that is all done, we can start using unrar. If you want to unrar multiple .rar files at once, you may use this command.</p>

<div class="wp-terminal">user@server:$ find -type f -name '*.rar' -exec unrar x {} \;<br/></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bobdroog.nl/2009/11/28/how-to-unrar-multiple-rar-files-using-bash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Schedule Downloads using bash?</title>
		<link>http://www.bobdroog.nl/2009/11/28/how-to-schedule-downloads-using-bash/</link>
		<comments>http://www.bobdroog.nl/2009/11/28/how-to-schedule-downloads-using-bash/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 12:58:53 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[how to schedule downloads in linux]]></category>
		<category><![CDATA[how to schedule downloads using bash]]></category>
		<category><![CDATA[how to schedule downloads using putty]]></category>
		<category><![CDATA[how to schedule downloads using ssh]]></category>
		<category><![CDATA[how to schedule downloads using terminal]]></category>
		<category><![CDATA[output]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[schedule]]></category>
		<category><![CDATA[schedule downloads on server]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[to]]></category>

		<guid isPermaLink="false">http://www.bobdroog.nl/?p=1242</guid>
		<description><![CDATA[This code is incredibly handy; it allows you to schedule the time for a download to happen &#8212; say, at 3PM while you&#8217;re at work or midnight while you&#8217;re sleeping. user@server:$ echo 'wget http://www.website.com/file.tar.gz' &#124; at 03:00 For example: user@server:$ echo 'wget http://www.rarlab.com/rar/winrar-x64-390nl.exe' &#124; at 13:50 Output: job 1 at 2009-11-28 13:50]]></description>
			<content:encoded><![CDATA[<p>This code is incredibly handy; it allows you to schedule the time for a download to happen &#8212; say, at 3PM while you&#8217;re at work or midnight while you&#8217;re sleeping.</p>

<div class="wp-terminal">user@server:$ echo 'wget http://www.website.com/file.tar.gz' | at 03:00<br/></div>

<h6></h6>
<h3>For example:</h3>

<div class="wp-terminal">user@server:$ echo 'wget http://www.rarlab.com/rar/winrar-x64-390nl.exe' | at 13:50<br/></div>

<h3>Output:</h3>
<div class="codesnip-container" >
<div class="perl codesnip" style="font-family:monospace;">job <span class="nu0">1</span> at <span class="nu0">2009</span><span class="sy0">-</span><span class="nu0">11</span><span class="sy0">-</span><span class="nu0">28</span> <span class="nu0">13</span><span class="sy0">:</span><span class="nu0">50</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.bobdroog.nl/2009/11/28/how-to-schedule-downloads-using-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find and list all large files on server using bash?</title>
		<link>http://www.bobdroog.nl/2009/11/28/how-to-find-and-list-all-large-files-on-server-using-bash/</link>
		<comments>http://www.bobdroog.nl/2009/11/28/how-to-find-and-list-all-large-files-on-server-using-bash/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 12:38:31 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[find large files in linux]]></category>
		<category><![CDATA[find large files on server]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[how to find large files on server using bash]]></category>
		<category><![CDATA[how to find large files on server using ssh]]></category>
		<category><![CDATA[how to find large files on server using terminal]]></category>
		<category><![CDATA[how to list files larger then]]></category>
		<category><![CDATA[how to list files on server]]></category>
		<category><![CDATA[how to list large files on server using bash]]></category>
		<category><![CDATA[how to list large files on server using ssh]]></category>
		<category><![CDATA[how to list large files on server using terminal]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[to]]></category>

		<guid isPermaLink="false">http://www.bobdroog.nl/?p=1229</guid>
		<description><![CDATA[Looking for large files on your server or linux computer? Find them simply using one of the following commands. This example search for anything above 50MB. root@server:$ find / -type f -size +50M This example search for anything above 100MB. root@server:$ find / -type f -size +100M This example search for anything above 1000MB. root@server:$ [...]]]></description>
			<content:encoded><![CDATA[<p>Looking for large files on your server or linux computer? Find them simply using one of the following commands.</p>
<h3>This example search for anything above 50MB.</h3>

<div class="wp-terminal">root@server:$ find / -type f -size +50M<br/></div>

<h3>This example search for anything above 100MB.</h3>

<div class="wp-terminal">root@server:$ find / -type f -size +100M<br/></div>

<h3>This example search for anything above 1000MB.</h3>

<div class="wp-terminal">root@server:$ find / -type f -size +1000M<br/></div>

<p>Modify your search changing the digit between the &#8220;+&#8221; and &#8220;M&#8221;.. Make sense right?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bobdroog.nl/2009/11/28/how-to-find-and-list-all-large-files-on-server-using-bash/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install SABnzbd on Unix</title>
		<link>http://www.bobdroog.nl/2009/11/20/install-sabnzbd-on-unix/</link>
		<comments>http://www.bobdroog.nl/2009/11/20/install-sabnzbd-on-unix/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 12:24:21 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[5+]]></category>
		<category><![CDATA[5.2]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[compiler]]></category>
		<category><![CDATA[downloading on server]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[how to download from the news groups]]></category>
		<category><![CDATA[how to install sabnzbd in linux]]></category>
		<category><![CDATA[how to install sabnzbd on linux]]></category>
		<category><![CDATA[how to install sabnzbd on server]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[nzb]]></category>
		<category><![CDATA[par2cmdline]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[SABnzbd]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[server download]]></category>
		<category><![CDATA[to]]></category>
		<category><![CDATA[unrar]]></category>
		<category><![CDATA[yenc]]></category>

		<guid isPermaLink="false">http://www.bobdroog.nl/?p=1187</guid>
		<description><![CDATA[Alas, the CentOS 5.2 repositories do not have all required modules, so you need to so some work yourself. It does come with Python 2.4, which is OK for SABnzbd. Some extra packages are available if you allow access to the unofficial Dag Wieers repository: user@server:$ rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm Required compiler stuff: user@server:$ yum install [...]]]></description>
			<content:encoded><![CDATA[<p>Alas, the CentOS 5.2 repositories do not have all required modules, so you need to so some work yourself. It does come with Python 2.4, which is OK for SABnzbd. Some extra packages are available if you allow access to the unofficial <a href="http://dag.wieers.com/rpm/" target="_blank"><strong>Dag Wieers repository</strong></a>:</p>

<div class="wp-terminal">user@server:$ rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm<br/><br/></div>

<h6></h6>
<h3>Required compiler stuff:</h3>

<div class="wp-terminal">user@server:$ yum install gcc gcc-c++ python-devel<br/></div>

<h6></h6>
<h3>PyOpenSSL</h3>

<div class="wp-terminal">user@server:$ yum install pyOpenSSL<br/></div>

<h6></h6>
<h3>Cheetah</h3>

<div class="wp-terminal">user@server:$ yum install python-cheetah<br/></div>

<p><strong>OR</strong></p>

<div class="wp-terminal">user@server:$ wget http://mesh.dl.sourceforge.net/sourceforge/cheetahtemplate/Cheetah-2.0.1.tar.gz<br/>gzip zxf Cheetah-2.0.1.tar.gz<br/>cd Cheetah-2.0.1<br/>python setup.py install   # Need to do this as admin<br/>cd ..<br/><br/></div>

<h6></h6>
<h3>YEnc</h3>

<div class="wp-terminal">user@server:$ wget http://sabnzbd.sourceforge.net/yenc-0.3.tar.gz<br/>tar zxf yenc-0.3.tar.gz<br/>cd yenc-0.3<br/>python setup.py install   # Need to do this as admin<br/>cd ..<br/><br/></div>

<h6></h6>
<h3>par2cmdline</h3>

<div class="wp-terminal">user@server:$ wget http://garr.dl.sourceforge.net/sourceforge/parchive/par2cmdline-0.4.tar.gz<br/>wget http://sage.math.washington.edu/home/binegar/src/par2cmdline-0.4-gcc4.patch<br/>tar zxf par2cmdline-0.4.tar.gz<br/>cd par2cmdline-0.4<br/>patch < ../par2cmdline-0.4-gcc4.patch reedsolomon.cpp<br/>./configure<br/>make<br/>make check<br/>make install   # Need to do this as admin<br/>cd ..<br/><br/></div>

<h6></h6>
<h3>unrar</h3>
</pre>

<div class="wp-terminal">user@server:$ yum install unrar<br/></div>

<p><strong>OR</strong></p>

<div class="wp-terminal">user@server:$ wget http://www.rarlab.com/rar/unrar-3.7.7-centos.gz<br/>gzip -d unrar-3.7.7-centos.gz<br/>chmod +x unrar-3.7.7-centos<br/>cp unrar-3.7.7-centos /usr/bin/unrar    # Need to do this as admin<br/><br/></div>

<h6></h6>
<h3>Feedparser</h3>

<div class="wp-terminal">user@server:$ wget http://feedparser.googlecode.com/files/feedparser-4.1.zip<br/>mkdir feedparser-4.1<br/>cd feedparser-4.1<br/>unzip ../feedparser-4.1.zip<br/>python setup.py install    # Need to do this as admin<br/>cd ..<br/><br/></div>

<h6></h6>
<h3>SABnzbd itself</h3>

<div class="wp-terminal">user@server:$ wget http://switch.dl.sourceforge.net/sourceforge/sabnzbdplus/SABnzbd-0.4.6-src.tar.gz<br/>tar zxf SABnzbd-0.4.6-src.tar.gz<br/>cd SABnzbd-0.4.6<br/># pre-compile optimized<br/>python -OO SABnzbd.py -v<br/>cd ..<br/><br/></div>

<h6></h6>
<h3>Start SABnzbd</h3>

<div class="wp-terminal">user@server:$ ./SABnzbd.py -s 0.0.0.0:8080<br/></div>

<h6></h6>
<p>Article Source: <strong><a href="http://sabnzbd.wikidot.com/install-centos5">CentOS 5.2 (will work for RedHat 5 too)</a></strong><br />
<a href="http://sabnzbd.wikidot.com/install-ubuntuserver804" target="_blank"><strong>Ubuntu Server 8.04</strong></a><br />
<a href="http://sabnzbd.wikidot.com/install-cc42" target="_blank"><strong>ClarkConnect 4.2 Community Edition</strong></a><br />
For more information: <strong><a href="http://sabnzbd.wikidot.com/install-unix" target="blank">look here.</a></strong></p>
<h5></h5>
]]></content:encoded>
			<wfw:commentRss>http://www.bobdroog.nl/2009/11/20/install-sabnzbd-on-unix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert .mkv to .avi and merge subtitles using bash.</title>
		<link>http://www.bobdroog.nl/2009/11/13/convert-mkv-to-avi-and-merge-subtitles-using-bash/</link>
		<comments>http://www.bobdroog.nl/2009/11/13/convert-mkv-to-avi-and-merge-subtitles-using-bash/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 16:54:59 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[.mkv]]></category>
		<category><![CDATA[.srt]]></category>
		<category><![CDATA[AVI]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[convert .mkv to .avi]]></category>
		<category><![CDATA[converting movie]]></category>
		<category><![CDATA[converting video]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[how to convert .mkv to .avi with subtitles]]></category>
		<category><![CDATA[how to merge .srt file in .avi]]></category>
		<category><![CDATA[how to merge subtitles]]></category>
		<category><![CDATA[how to merge subtitles in .avi]]></category>
		<category><![CDATA[mencoder]]></category>
		<category><![CDATA[subtitles]]></category>
		<category><![CDATA[to]]></category>
		<category><![CDATA[using subtitles]]></category>

		<guid isPermaLink="false">http://www.bobdroog.nl/?p=1094</guid>
		<description><![CDATA[Converting a .mkv file to .avi is easy using this command. It should also merge the standard subtitles. The only problem is that the .avi is still large. user@server:$ mencoder "video.mkv" -ovc lavc -lavcopts vcodec=mpeg4:threads=8:vbitrate=3000 -oac copy -o video.avi]]></description>
			<content:encoded><![CDATA[<p>Converting a .mkv file to .avi is easy using this command. It should also merge the standard subtitles. The only problem is that the .avi is still large.</p>

<div class="wp-terminal">user@server:$ mencoder "video.mkv" -ovc lavc -lavcopts vcodec=mpeg4:threads=8:vbitrate=3000 -oac copy -o video.avi<br/></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bobdroog.nl/2009/11/13/convert-mkv-to-avi-and-merge-subtitles-using-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a DVD from .MPG and add subtitles using Spumux in bash.</title>
		<link>http://www.bobdroog.nl/2009/11/13/create-a-dvd-from-mpg-and-add-subtitles-using-spumux-in-bash/</link>
		<comments>http://www.bobdroog.nl/2009/11/13/create-a-dvd-from-mpg-and-add-subtitles-using-spumux-in-bash/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 09:14:41 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[.mpeg]]></category>
		<category><![CDATA[.mpg]]></category>
		<category><![CDATA[AVI]]></category>
		<category><![CDATA[burn]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[dvdauthor]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[growisofs]]></category>
		<category><![CDATA[how to create dvd from mpg]]></category>
		<category><![CDATA[how to create dvd from mpg with subtitles]]></category>
		<category><![CDATA[how to create dvd from mpg with subtitles in linux]]></category>
		<category><![CDATA[how to create dvd from mpg with subtitles using bash]]></category>
		<category><![CDATA[how to create dvd from mpg with subtitles using linux]]></category>
		<category><![CDATA[how to create dvd from mpg with subtitles using ssh]]></category>
		<category><![CDATA[how to create dvd from mpg with subtitles using terminal]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[mkisofs]]></category>
		<category><![CDATA[ntsc]]></category>
		<category><![CDATA[ntsc-dvd]]></category>
		<category><![CDATA[pal]]></category>
		<category><![CDATA[pal-dvd]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[using bash]]></category>
		<category><![CDATA[using linux]]></category>
		<category><![CDATA[using ssh]]></category>
		<category><![CDATA[using terminal]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.bobdroog.nl/?p=1049</guid>
		<description><![CDATA[Packages needed: FFmpeg, spumux, dvdauthor. And maybe mkisofs to create a dvd iso. Or growisofs to burn directly. (If you need to identify your video, install Mplayer. user@server:$ yum install ffmpeg spumux dvdauthor mkisofs growisofs mplayer First we need a .mpg or .mpeg file. For example if you have an .avi file, convert this to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Packages needed</strong>: <em>FFmpeg, spumux, dvdauthor</em>. And maybe <em>mkisofs </em>to create a dvd iso. Or <em>growisofs </em>to burn directly. (If you need to identify your video, install Mplayer.</p>

<div class="wp-terminal">user@server:$ yum install ffmpeg spumux dvdauthor mkisofs growisofs mplayer<br/></div>

<p>First we need a .mpg or .mpeg file. For example if you have an .avi file, convert this to .mpg (change pal-dvd to ntsc-dvd if needed)</p>

<div class="wp-terminal">user@server:$ ffmpeg -i movie.avi -target pal-dvd movie.mpg<br/></div>

<p>Now we have the .mpg file we can set up the XML files with the settings for the conversion. Create spumux.xml and add the following settings into it.</p>
<div class="codesnip-container" >
<div class="xml codesnip" style="font-family:monospace;"><span class="sc3"><span class="re1">&lt;subpictures<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp;<span class="sc3"><span class="re1">&lt;stream<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;textsub</span> <span class="re0">filename</span>=<span class="st0">&quot;yoursubsname.srt&quot;</span> <span class="re0">characterset</span>=<span class="st0">&quot;ISO8859-1&quot;</span> </span><br />
<span class="sc3"> &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">fontsize</span>=<span class="st0">&quot;28.0&quot;</span> <span class="re0">font</span>=<span class="st0">&quot;arial.ttf&quot;</span> <span class="re0">horizontal-alignment</span>=<span class="st0">&quot;left&quot;</span> </span><br />
<span class="sc3"> &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">vertical-alignment</span>=<span class="st0">&quot;bottom&quot;</span> <span class="re0">left-margin</span>=<span class="st0">&quot;60&quot;</span> <span class="re0">right-margin</span>=<span class="st0">&quot;60&quot;</span> </span><br />
<span class="sc3"> &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">top-margin</span>=<span class="st0">&quot;20&quot;</span> <span class="re0">bottom-margin</span>=<span class="st0">&quot;30&quot;</span> <span class="re0">subtitle-fps</span>=<span class="st0">&quot;25&quot;</span> </span><br />
<span class="sc3"> &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">movie-fps</span>=<span class="st0">&quot;25&quot;</span> <span class="re0">movie-width</span>=<span class="st0">&quot;720&quot;</span> <span class="re0">movie-height</span>=<span class="st0">&quot;576&quot;</span></span><br />
<span class="sc3"> &nbsp; &nbsp; &nbsp;<span class="re2">/&gt;</span></span><br />
&nbsp; &nbsp;<span class="sc3"><span class="re1">&lt;/stream<span class="re2">&gt;</span></span></span><br />
<span class="sc3"><span class="re1">&lt;/subpictures<span class="re2">&gt;</span></span></span></div>
</div>
<p>You have to replace the filename, movie-width and the movie-height to your video preferences. You have seen them while converting if not use this command.</p>

<div class="wp-terminal">user@server:$ mplayer -identify output.mpg<br/></div>

<p>Now before we start processing, we need <strong>arial.ttf</strong> in our .spumux folder. If you don&#8217;t have a .spumux folder, create one;</p>

<div class="wp-terminal">user@server:$ mkdir ~/.spumux<br/></div>

<p>OK &#8212; now we are all set, what you have to do now is use the following command.</p>

<div class="wp-terminal">user@server:$ spumux spumux.xml < out.mpg > output.mpg<br/></div>

<div class="codesnip-container" >
<div class="xml codesnip" style="font-family:monospace;">DVDAuthor::spumux, version 0.6.11.<br />
Build options: gnugetopt iconv freetype<br />
Send bugs to</p>
<p>INFO: Locale=en_US.UTF-8<br />
INFO: Converting filenames to UTF-8<br />
INFO: Detected subtitle file format: subviewer<br />
INFO: Opened iconv descriptor. *UTF-8* *ISO8859-1*<br />
INFO: Read 1340 subtitles<br />
INFO: Adjusted 39 subtitle(s).<br />
INFO: Unicode font: 1418 glyphs.<br />
INFO: Found EOF in .sub file.<br />
WARN: &nbsp;Read 0, expected 4<br />
INFO: 1340 subtitles added, 0 subtitles skipped, stream: 32, offset: 0.50</p>
<p>Statistics:<br />
- Processed 1340 subtitles.<br />
- The longest display line had 48 characters.<br />
- The maximum number of displayed lines was 3.<br />
- The normal display height of the font arial.ttf was 32.<br />
- The bottom display height of the font arial.ttf was 45.<br />
- The biggest subtitle box had 4470 bytes.</div>
</div>
<p>Alright, when this is done we have to make another .xml file. Create dvd.xml and put this in there.</p>
<div class="codesnip-container" >
<div class="xml codesnip" style="font-family:monospace;"><span class="sc3"><span class="re1">&lt;dvdauthor</span> <span class="re0">dest</span>=<span class="st0">&quot;DVD&quot;</span><span class="re2">&gt;</span></span><br />
&nbsp; <span class="sc3"><span class="re1">&lt;vmgm</span> <span class="re2">/&gt;</span></span><br />
&nbsp; &nbsp;<span class="sc3"><span class="re1">&lt;titleset<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp;<span class="sc3"><span class="re1">&lt;titles<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<span class="sc3"><span class="re1">&lt;pgc<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="sc3"><span class="re1">&lt;vob</span> <span class="re0">file</span>=<span class="st0">&quot;output.mpg&quot;</span><span class="re2">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<span class="sc3"><span class="re1">&lt;/pgc<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp;<span class="sc3"><span class="re1">&lt;/titles<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp;<span class="sc3"><span class="re1">&lt;/titleset<span class="re2">&gt;</span></span></span><br />
<span class="sc3"><span class="re1">&lt;/dvdauthor<span class="re2">&gt;</span></span></span></div>
</div>
<p>Obviously you have to change the vob file to your output video name. When you have done that we can do the following command.</p>

<div class="wp-terminal">user@server:$ dvdauthor -x dvd.xml<br/></div>

<div class="codesnip-container" >
<div class="xml codesnip" style="font-family:monospace;">DVDAuthor::dvdauthor, version 0.6.11.<br />
Build options: gnugetopt iconv freetype<br />
Send bugs to</p>
<p>INFO: Locale=en_US.UTF-8<br />
INFO: Converting filenames to UTF-8<br />
INFO: dvdauthor creating VTS<br />
STAT: Picking VTS 01</p>
<p>STAT: Processing output.mpg&#8230;<br />
STAT: VOBU 12080 at 4249MB, 1 PGCS<br />
INFO: Video pts = 0.500 .. 5813.060<br />
INFO: Audio[0] pts = 0.500 .. 5813.172<br />
INFO: Audio[32] pts = 5.660 .. 5760.406<br />
STAT: VOBU 12086 at 4250MB, 1 PGCS<br />
INFO: Generating VTS with the following video attributes:<br />
INFO: MPEG version: mpeg2<br />
INFO: TV standard: pal<br />
INFO: Aspect ratio: 4:3<br />
INFO: Resolution: 720&#215;576<br />
INFO: Audio ch 0 format: ac3/6ch, 48khz drc</p>
<p>STAT: fixed 12086 VOBUS<br />
INFO: dvdauthor creating table of contents<br />
INFO: Scanning DVD/VIDEO_TS/VTS_01_0.IFO</div>
</div>
<p>You have just created a dvd including subtitles which you can enable or disable. What you got to do now is simply make a ISO or burn it directly to your blank dvd.</p>
<p>To make a ISO you can use this command:</p>

<div class="wp-terminal">user@server:$ mkisofs -dvd-video -o name-your-dvd.iso DVD/<br/></div>

<div class="codesnip-container" >
<div class="xml codesnip" style="font-family:monospace;">97.40% done, estimate finish Fri Nov 13 08:53:17 2009<br />
97.63% done, estimate finish Fri Nov 13 08:53:16 2009<br />
97.86% done, estimate finish Fri Nov 13 08:53:17 2009<br />
98.09% done, estimate finish Fri Nov 13 08:53:17 2009<br />
98.32% done, estimate finish Fri Nov 13 08:53:16 2009<br />
98.55% done, estimate finish Fri Nov 13 08:53:17 2009<br />
98.78% done, estimate finish Fri Nov 13 08:53:16 2009<br />
99.01% done, estimate finish Fri Nov 13 08:53:16 2009<br />
99.24% done, estimate finish Fri Nov 13 08:53:16 2009<br />
99.46% done, estimate finish Fri Nov 13 08:53:15 2009<br />
99.69% done, estimate finish Fri Nov 13 08:53:15 2009<br />
99.92% done, estimate finish Fri Nov 13 08:53:16 2009<br />
Total translation table size: 0<br />
Total rockridge attributes bytes: 0<br />
Total directory bytes: 4096<br />
Path table size(bytes): 42<br />
Max brk space used 15000<br />
2176659 extents written (4251 MB)<br />
[user@server]$</div>
</div>
<p>If you want to burn it directly without making a .iso then use this command; (Replace /dev/scd0 with the device path to your DVD recorder)</p>

<div class="wp-terminal">user@server:$ growisofs -Z /dev/scd0 -dvd-video DVD/<br/></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bobdroog.nl/2009/11/13/create-a-dvd-from-mpg-and-add-subtitles-using-spumux-in-bash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to create a sample of a video using bash?</title>
		<link>http://www.bobdroog.nl/2009/11/12/how-to-create-a-sample-of-a-video-using-bash/</link>
		<comments>http://www.bobdroog.nl/2009/11/12/how-to-create-a-sample-of-a-video-using-bash/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 15:41:48 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[.mp3]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[converting]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[create movie sample using linux]]></category>
		<category><![CDATA[creating movie sample]]></category>
		<category><![CDATA[creating movie sample using bash]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[how to create sample of movie]]></category>
		<category><![CDATA[how to create sample of video]]></category>
		<category><![CDATA[lame]]></category>
		<category><![CDATA[mencoder]]></category>
		<category><![CDATA[movie sample]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[preview]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[sample]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshd]]></category>
		<category><![CDATA[to]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[video sample]]></category>

		<guid isPermaLink="false">http://www.bobdroog.nl/?p=1045</guid>
		<description><![CDATA[With this code you can simply create a preview/sample of your video. Starts at 5.00 and ends on 8.00. Package needed: Mencoder user@server:$ mencoder movie.mkv -o movie.avi -ovc lavc -oac mp3lame -ss 5:00 -endpos 8:00]]></description>
			<content:encoded><![CDATA[<p>With this code you can simply create a preview/sample of your video. Starts at 5.00 and ends on 8.00.</p>
<p>Package needed: <em>Mencoder</em></p>

<div class="wp-terminal">user@server:$ mencoder movie.mkv -o movie.avi -ovc lavc -oac mp3lame -ss 5:00 -endpos 8:00<br/></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bobdroog.nl/2009/11/12/how-to-create-a-sample-of-a-video-using-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy full server backup using tar in bash.</title>
		<link>http://www.bobdroog.nl/2009/11/11/easy-full-server-backup-using-tar-in-bash/</link>
		<comments>http://www.bobdroog.nl/2009/11/11/easy-full-server-backup-using-tar-in-bash/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 13:46:58 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[creating backup]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[easy]]></category>
		<category><![CDATA[exclude]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[full]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[how to create backup from linux system]]></category>
		<category><![CDATA[how to create backup from server]]></category>
		<category><![CDATA[how to create backup using linux]]></category>
		<category><![CDATA[how to create backup using tar]]></category>
		<category><![CDATA[important]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[to]]></category>

		<guid isPermaLink="false">http://www.bobdroog.nl/?p=1014</guid>
		<description><![CDATA[If you decide to use &#8220;tar&#8221; as your backup solution, you should probably take the time to get to know the various command-line options that are available; type &#8220;man tar&#8221; for a comprehensive list. The following code will create a full backup of your entire server. Excluding, /media, /proc and /var/spool/squid you might want to [...]]]></description>
			<content:encoded><![CDATA[<p>If you decide to use &#8220;tar&#8221; as your backup solution, you should probably take the time to get to know the various command-line options that are available; type &#8220;<strong>man tar</strong>&#8221; for a comprehensive list.</p>
<p>The following code will create a full backup of your entire server. Excluding, <strong>/media</strong>, <strong>/proc</strong> and <strong>/var/spool/squid</strong> you might want to add or delete some excludes. Like <strong>/mnt</strong>, most servers mount devices in that folder. You need to exclude these as well. Also, You need to make sure you are creating your backup in a excluded folder/area. I make my backups in a mounted 30GB HD Device located in <strong>/media</strong> which is excluded.</p>

<div class="wp-terminal">user@server:$ tar -cvpzf ServerBackup-`date '+%d-%B-%Y'`.tar.bz2 / --exclude=media --exclude=proc --exclude=var/spool/squid<br/></div>

<p>If you only want to make a Backup from your <strong>/home</strong> and <strong>/root</strong> directory (which are probably the most important) just use this command:</p>

<div class="wp-terminal">user@server:$ tar -cvpzf ServerBackup-`date '+%d-%B-%Y'`.tar.bz2 /root /home<br/></div>

<p>Hope it works for you like it did for me, if you have any questions regarding to this post, please leave a comment so others can read it too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bobdroog.nl/2009/11/11/easy-full-server-backup-using-tar-in-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add .srt subtitles to .avi using bash.</title>
		<link>http://www.bobdroog.nl/2009/10/12/add-srt-subtitles-to-avi-using-bash/</link>
		<comments>http://www.bobdroog.nl/2009/10/12/add-srt-subtitles-to-avi-using-bash/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 19:33:57 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[.srt]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[AVI]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[how to add .srt subtitles to .avi using bash]]></category>
		<category><![CDATA[how to add .srt subtitles to .avi using server]]></category>
		<category><![CDATA[how to add .srt subtitles to .avi using ssh]]></category>
		<category><![CDATA[how to add .srt subtitles to .avi using terminal]]></category>
		<category><![CDATA[how to merg subtitles to .avi]]></category>
		<category><![CDATA[how to merg subtitles to .avi in linux]]></category>
		<category><![CDATA[how to merg subtitles to .avi using bash]]></category>
		<category><![CDATA[how to merg subtitles to .avi using server]]></category>
		<category><![CDATA[how to merg subtitles to .avi using ssh]]></category>
		<category><![CDATA[how to merg subtitles to .avi using terminal]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[mencoder]]></category>
		<category><![CDATA[mergin .srt]]></category>
		<category><![CDATA[mergin subtitles]]></category>
		<category><![CDATA[movie]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[xvid]]></category>

		<guid isPermaLink="false">http://www.bobdroog.nl/?p=917</guid>
		<description><![CDATA[Package needed: Mencoder It is actually easier then I thought, I have been spending almost a whole day to figure out how to add subtitles to an .avi file using bash. (Terminal) So I hope I can help you out with this one! user@server:$ mencoder -sub sub_name.srt -subcp iso-8857-9 -ovc xvid -xvidencopts bitrate=687 -oac copy [...]]]></description>
			<content:encoded><![CDATA[<p>Package needed: <a href="http://en.wikipedia.org/wiki/MEncoder"><em>Mencoder</em></a></p>
<p>It is actually easier then I thought, I have been spending almost a whole day to figure out how to add subtitles to an .avi file using bash. (Terminal) So I hope I can help you out with this one!</p>

<div class="wp-terminal">user@server:$ mencoder -sub sub_name.srt -subcp iso-8857-9 -ovc xvid -xvidencopts bitrate=687 -oac copy -o Movie-IN.avi Movie-OUT.avi<br/></div>

<p>If it&#8217;s not working for you or you know other cool ways to do it, please leave a comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bobdroog.nl/2009/10/12/add-srt-subtitles-to-avi-using-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
