<?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>Mohanjith&#039;s Blog &#187; Linux</title> <atom:link href="http://mohanjith.net/blog/topics/linux/feed" rel="self" type="application/rss+xml" /><link>http://mohanjith.net/blog</link> <description>MOHA blogging news and thoughts...</description> <lastBuildDate>Wed, 14 Dec 2011 14:18:18 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>Samsung ML-1640 on Linux</title><link>http://mohanjith.net/blog/2010/08/samsung-ml-1640-on-linux.html</link> <comments>http://mohanjith.net/blog/2010/08/samsung-ml-1640-on-linux.html#comments</comments> <pubDate>Sun, 01 Aug 2010 19:49:51 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[GDI]]></category> <category><![CDATA[laser]]></category> <category><![CDATA[printing]]></category> <category><![CDATA[Samsung]]></category> <category><![CDATA[SPL]]></category> <category><![CDATA[SpliX]]></category><guid
isPermaLink="false">http://mohanjith.net/blog/?p=676</guid> <description><![CDATA[TweetI got my self a shiny new laser printer because the old Lexmark X1110 was getting old and giving little too many paper jams. I went with Samsung ML-1640 mainly because of it&#8217;s initial lower price, lower running costs and good reviews online. I had also read that the printer comes with Linux driver, that [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2010/08/samsung-ml-1640-on-linux.html" data-text="Samsung ML-1640 on Linux" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2010%2F08%2Fsamsung-ml-1640-on-linux.html&#038;text=Samsung%20ML-1640%20on%20Linux" >Tweet</a></span>I got my self a shiny new laser printer because the old Lexmark X1110 was getting old and giving little too many paper jams. I went with Samsung ML-1640 mainly because of it&#8217;s initial lower price, lower running costs and good reviews online. I had also read that the printer comes with Linux driver, that was one of the first I have seen.</p><p>To much to my surprise as soon as I plugged the printer Ubuntu recognized the printer and installed it, with in few seconds without any clicks or key presses the printer was ready for printing. I never bothered testing on Windows 7 but I&#8217;m sure I would have had to install drivers (Samsung claims it takes only 4 clicks).</p><p>However I ran to some trouble sharing the printer with Snow Leopard as the driver selected by Ubuntu needed to be used as a raw printer queue and I could get around how to set it up on Snow Leopard. Instead I flipped around the setup, I shared the printer as a raw printer queue and used the built in driver on Snow Leopard for the printer. I had to do the same for my notebook as well. Everything was working perfectly, finally <img
src='http://cdn.mohanjith.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . In the process I also figured out that Generic GDI driver works as long as the print job fits the printer memory (8 MB), if you send a larger job it will fail with nothing printed (but the printer receives the job).</p><p>For anyone wondering, on Linux the driver used is (automatically selected by Ubuntu) is Samsung ML-1640, <a
href="http://splix.ap2c.org/" target="_blank" rel="nofollow">SpliX</a> V. 2.0.0 , which covers all capabilities of the printer (may be except for toner level).</p><p>I&#8217;m really happy with the printer, I think it was a very good purchase. I really like the idea the cartridge comes with a handle to push it into place. Then the fact that I can print the demo page by pressing and holding the reset/cancel button on the printer to get the toner level and other printer details. Only thing I miss is fully duplex printing, but with the lower cost I don&#8217;t mind working upto the printer to feed the paper when the printer is done printing one side of the pages.</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2010/08/samsung-ml-1640-on-linux.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2010/08/samsung-ml-1640-on-linux.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Load balanced and High Availability cluster for your web site under USD 60 pm &#8211; Part 2</title><link>http://mohanjith.net/blog/2009/04/load-balanced-and-high-availability-cluster-for-your-web-site-under-usd-60-pm-part-2.html</link> <comments>http://mohanjith.net/blog/2009/04/load-balanced-and-high-availability-cluster-for-your-web-site-under-usd-60-pm-part-2.html#comments</comments> <pubDate>Tue, 14 Apr 2009 14:21:13 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[Lighttpd]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[authentication keys]]></category> <category><![CDATA[config]]></category> <category><![CDATA[High Availability]]></category> <category><![CDATA[keygen]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[public key]]></category> <category><![CDATA[root logins]]></category> <category><![CDATA[rsa]]></category> <category><![CDATA[SSH]]></category> <category><![CDATA[ssh tunnel]]></category> <category><![CDATA[tunnels]]></category> <category><![CDATA[vpn]]></category><guid
isPermaLink="false">http://mohanjith.net/blog/?p=273</guid> <description><![CDATA[TweetUpdate 2009-09-02: Now I&#8217;m using a single Linode and a Xen VPS from my very own hosting service. This means the VPSes have one less thing in common; hosting company. As I promised, here is the post that will discuss in detail how I configured my cluster of 2 nodes to host my sites. Setting [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2009/04/load-balanced-and-high-availability-cluster-for-your-web-site-under-usd-60-pm-part-2.html" data-text="Load balanced and High Availability cluster for your web site under USD 60 pm &#8211; Part 2" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2009%2F04%2Fload-balanced-and-high-availability-cluster-for-your-web-site-under-usd-60-pm-part-2.html&#038;text=Load%20balanced%20and%20High%20Availability%20cluster%20for%20your%20web%20site%20under%20USD%2060%20pm%20%26%238211%3B%20Part%202" >Tweet</a></span><strong>Update 2009-09-02:</strong> Now I&#8217;m using a single Linode and a Xen VPS from my very own <a
href="http://mohanjith.com/xen-linux-vps.html">hosting service</a>. This means the VPSes have one less thing in common; hosting company.</p><p>As I promised, here is the post that will discuss in detail how I configured my cluster of 2 nodes to host my sites.</p><p><strong>Setting up SSH tunnels</strong></p><p>You have to setup a SSH tunnel between the nodes. In order to do that you need to allow restricted root logins into your nodes. Using your favourite text editor edit <code>/etc/ssh/sshd_config</code> and change the line <code>PermitRootLogin</code> to <code>PermitRootLogin forced-commands-only</code>.</p><p>Then generate SSH authentication keys for all your nodes and add the public keys to <code>/root/.ssh/authorized_keys</code> on other nodes. Keys can be generated by running <code>ssh-keygen</code>. By default your private key is stored in <code>/root/.ssh/id_rsa</code> and public key in <code>/root/.ssh/id_rsa.pub</code>. Your public key will look similar to bellow (Key shortened for brevity)</p><p><code><pre class="brush: plain; toolbar: false; gutter: false;">
ssh-rsa AAAA...w== root@example.com
</pre><p></code></p><p>To enable tunnel only access via root you need to add <code>tunnel="0",command="/sbin/ifdown tun0;/sbin/ifup tun0" </code> before your public key in <code>/root/.ssh/authorized_keys</code>. Your <code>/root/.ssh/authorized_keys</code> will look something like bellow.</p><p><code><pre class="brush: plain; toolbar: false; gutter: false;">
tunnel=&#039;0&#039;,command=&#039;/sbin/ifdown tun0;/sbin/ifup tun0&#039; ssh-rsa AAAA...w== root@example.com
</pre><p></code></p><p>Now setup the actual tunnel. Add following lines to <code>/etc/network/interfaces</code> in the &#8220;server&#8221;</p><p><code><pre class="brush: plain; ">

auto tun0
iface tun0 inet static
address 10.100.2.1
netmask 255.255.255.0
pointopoint 10.100.2.2
</pre><p></code></p><p>and the following in the &#8220;client&#8221;</p><p><code><pre class="brush: plain; ">

auto tun0
iface tun0 inet static
pre-up ssh -S /var/run/ssh-myvpn-tunnel-control -M -f -w 0:0 example.com true
pre-up sleep 5
address 10.100.2.2
pointopoint 10.100.2.1
netmask 255.255.255.0
up route add -net 10.100.2.0 netmask 255.255.255.0 gw 10.100.2.0 tun0
post-down ssh -S /var/run/ssh-myvpn-tunnel-control -O exit example.com
</pre><p></code></p><p>Now you only have to restart  networking to enable the tunnel. Now your nodes will be in their own VPN.</p><p><strong>Setting up document root replication (<code>rsync</code>)</strong></p><p>Share /var/www via rsync. You need to install rsync and add following to /etc/rsyncd.conf if they are not already there.</p><p><code><pre class="brush: plain; ">
max connections = 2
log file = /var/log/rsync.log
timeout = 300

[www]
comment = DOC Root
path = /var/www
read only = yes
list = yes
uid = www-data
gid = www-data
auth users = replicator
secrets file = /etc/rsyncd.secrets
</pre><p></code></p><p>Add following cron jobs to www-data crontab (crontab -e)</p><p><code><pre class="brush: plain; gutter: false; toolbar: false;">

1/10 *  *   *   *    test -r /tmp/rsync.docroot.lock || touch /tmp/rsync.docroot.lock &amp;&amp; rsync -aP rsync://replicator@10.100.2.2/www/ /var/www/ --password-file=/etc/rsync.secrets  --contimeout=30  &gt; /dev/null 2&gt;1 &amp;&amp; rm /tmp/rsync.docroot.lock
</pre><p></code></p><p><code><pre class="brush: plain; gutter: false; toolbar: false;">

1/10 *  *   *   *    test -r /tmp/rsync.docroot.lock || touch /tmp/rsync.docroot.lock &amp;&amp; rsync -aP rsync://replicator@10.100.2.1/www/ /var/www/ --password-file=/etc/rsync.secrets  --contimeout=30 &gt; /dev/null 2&gt;1 &amp;&amp; rm /tmp/rsync.docroot.lock
</pre><p></code></p><p><strong>Setting up <code>session_mysql</code></strong></p><p>Next let us setup <code>session_mysql</code> such that we can forget  about replicating PHP session <img
src='http://cdn.mohanjith.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p><p>Install php5-dev and libmysql++-dev, download <a
href="http://websupport.sk/~stanojr/projects/session_mysql/" target="_blank"><code>session_mysql</code></a> and extract it, running following commands as root within the extracted location.</p><p><code><pre class="brush: bash; ">
export PHP_PREFIX=&#039;/usr&#039;
$PHP_PREFIX/bin/phpize
./configure --enable-session-mysql --with-php-config=$PHP_PREFIX/bin/php-config --with-mysql=$PHP_PREFIX
make
make install
</pre><p></code></p><p>Create the database to store the session data with the following SQL</p><p><code><pre class="brush: sql; ">

create database phpsession;
grant all privileges on phpsession.* to phpsession identified by &#039;phpsession&#039;; -- CHANGE DEFAULT PASSWORD
create table phpsession(
sess_key char(64) not null,
sess_mtime int(10) unsigned not null,
sess_host char(64) not null,
sess_val mediumblob not null,

index i_key(sess_key(6)),
index i_mtime(sess_mtime),
index i_host(sess_host)
);
</pre><p></code></p><p>Add the following to your <code>php.ini</code> (or <code>/etc/php5/conf.d/session_mysql.ini</code>)</p><p><code><pre class="brush: plain; ">

session.save_handler = &#039;mysql&#039;
session_mysql.db=&#039;host=localhost db=phpsession user=phpsession pass=phpsession&#039;
</pre><p></code></p><p>Do not forget to change the default password. Restart Apache or Lighttpd (or any other web server you are using).</p><p><strong>MySQL asynchronous two way replication</strong></p><p>I&#8217;m sure some of you are asking why I went for asynchronous replication. Main reasons being flexibility and lack of nodes (My cluster is just 2 nodes).</p><p>Stop MySQL from listening only to local connections. Remember to review your user table (<code>mysql.user</code>) to make sure you don&#8217;t grant wild card access like <code>'user'@'%'</code>. Comment out bind-address in<code>/etc/mysql/my.cnf</code> in all nodes. Then add following to node1</p><p><code><pre class="brush: plain; ">
server-id               = 1
replicate-same-server-id = 0
auto-increment-increment = 2
auto-increment-offset   = 1
log_bin                 = /var/log/mysql/mysql-bin.log
expire_logs_days        = 10
max_binlog_size         = 100M

master-host = 10.100.2.2
master-user = slave_user_0
master-password = your$password
master-connect-retry = 60
</pre><p></code></p><p>and following to node2</p><p><code><pre class="brush: plain; ">
server-id               = 2
replicate-same-server-id = 0
auto-increment-increment = 2
auto-increment-offset   = 2
log_bin                 = /var/log/mysql/mysql-bin.log
expire_logs_days        = 10
max_binlog_size         = 100M

master-host = 10.100.2.1
master-user = slave_user_1
master-password = your$password
master-connect-retry = 60
</pre><p></code></p><p>Now create the users only granting them with replication rights. Also make sure you specify the hostname or the IP to make sure someone is not offloading your data <img
src='http://cdn.mohanjith.net/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . Following SQL will create the users given in the example. You will have to run the command in both nodes as the data in either node is identical.</p><p><code><pre class="brush: sql; ">
CREATE USER &#039;slave_user_1&#039;@&#039;10.100.2.1&#039; IDENTIFIED BY &#039;your$password&#039;;

GRANT REPLICATION SLAVE ON * . * TO &#039;slave_user_1&#039;@&#039;10.100.2.1&#039; IDENTIFIED BY &#039;your$password&#039; WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;

CREATE USER &#039;slave_user_2&#039;@&#039;10.100.2.2&#039; IDENTIFIED BY &#039;your$password&#039;;

GRANT REPLICATION SLAVE ON * . * TO &#039;slave_user_2&#039;@&#039;10.100.2.2&#039; IDENTIFIED BY &#039;your$password&#039; WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
</pre><p></code></p><p>Now start MySQL and run following in <code>mysql</code> prompt on each of the nodes.</p><p><code><pre class="brush: sql; ">
reset master;
stop slave;
start slave;
</pre><p></code></p><p><strong>Finally</strong></p><p>Now you have a cluster of 2 nodes where you can run your PHP site. Your databases are replicated, your user  session data is replicated and your document root is replicated. Have fun, if you have issues please post it as a comment.</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2009/04/load-balanced-and-high-availability-cluster-for-your-web-site-under-usd-60-pm-part-2.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2009/04/load-balanced-and-high-availability-cluster-for-your-web-site-under-usd-60-pm-part-2.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Use KernelCheck to build the latest kernel for debian/ubuntu</title><link>http://mohanjith.net/blog/2009/01/use-kernelcheck-to-build-the-latest-kernel-for-debianubuntu.html</link> <comments>http://mohanjith.net/blog/2009/01/use-kernelcheck-to-build-the-latest-kernel-for-debianubuntu.html#comments</comments> <pubDate>Mon, 19 Jan 2009 05:58:43 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Automatic]]></category> <category><![CDATA[Kernel]]></category><guid
isPermaLink="false">http://mohanjith.net/blog/?p=193</guid> <description><![CDATA[TweetI recently found this awesome project called KernelCheck that allows you to build the latest Linux Kernel for your distribution. It requires very little interaction from the user and automatically optimizes the kernel to user&#8217;s needs. Currently it only supports Debian based distributions but support for RPM and Slackware based distributions is planned. KernelCheck is [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2009/01/use-kernelcheck-to-build-the-latest-kernel-for-debianubuntu.html" data-text="Use KernelCheck to build the latest kernel for debian/ubuntu" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2009%2F01%2Fuse-kernelcheck-to-build-the-latest-kernel-for-debianubuntu.html&#038;text=Use%20KernelCheck%20to%20build%20the%20latest%20kernel%20for%20debian%2Fubuntu" >Tweet</a></span>I recently found this awesome project called <a
href="http://kcheck.sourceforge.net/">KernelCheck</a> that allows you to build the latest Linux Kernel for your distribution. It requires very little interaction from the user and automatically optimizes the kernel to user&#8217;s needs. Currently it only supports Debian based distributions but support for RPM and Slackware based distributions is planned. KernelCheck is build around the AutoKernel idea by PinguinZ.</p><p>Building the Linux Kernel was never easier on Debian (and derivatives) before. I just compiled the 2.6.28.1, it wasn&#8217;t a pain at all.</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2009/01/use-kernelcheck-to-build-the-latest-kernel-for-debianubuntu.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2009/01/use-kernelcheck-to-build-the-latest-kernel-for-debianubuntu.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>v4l supports Avermedia PCI pure analog (M135A)</title><link>http://mohanjith.net/blog/2009/01/v4l-supports-avermedia-pci-pure-analog-m135a.html</link> <comments>http://mohanjith.net/blog/2009/01/v4l-supports-avermedia-pci-pure-analog-m135a.html#comments</comments> <pubDate>Sat, 10 Jan 2009 16:05:19 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[video4linux]]></category><guid
isPermaLink="false">http://mohanjith.net/blog/?p=189</guid> <description><![CDATA[TweetI bought a Avermedia PCI pure analog (M135A) recently (26th December) and to much to my delight it was just plug and play on my home media center running Debian testing with custom built Linux kernel 2.6.28 (Released on 24th December). TV tuner was working with no issues. All local TV channels we accessible .  [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2009/01/v4l-supports-avermedia-pci-pure-analog-m135a.html" data-text="v4l supports Avermedia PCI pure analog (M135A)" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2009%2F01%2Fv4l-supports-avermedia-pci-pure-analog-m135a.html&#038;text=v4l%20supports%20Avermedia%20PCI%20pure%20analog%20%28M135A%29" >Tweet</a></span>I bought a Avermedia PCI pure analog (M135A) recently (26th December) and to much to my delight it was just plug and play on my home media center running Debian testing with custom built Linux kernel 2.6.28 (Released on 24th December). TV tuner was working with no issues. All local TV channels we accessible <img
src='http://cdn.mohanjith.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .  Even the remote was working (not all but the most critical ones like volume control and channel selection are working). Since my sound card didn&#8217;t have a mixer I had to use sox to redirect the sound from the TV tuner to the sound card. Running the following at start up did the job.</p><pre>sox -r 32000 -w -t alsa hw:1,0 -t alsa hw:0,0</pre><p>Just in case not all required modules are loaded in your case, the required modules to use this radio tuner are:</p><ul><li>saa7134</li><li>saa7134_alsa</li><li>tda827x</li><li>tda8290</li></ul><p>I&#8217;m really happy that now most of the hardware I can find in local shop is just plug and play on GNU/Linux. My kudos to v4l (video4linux) and the Linux kernel developers <img
src='http://cdn.mohanjith.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2009/01/v4l-supports-avermedia-pci-pure-analog-m135a.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2009/01/v4l-supports-avermedia-pci-pure-analog-m135a.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>CUPS spool in devices with limited space</title><link>http://mohanjith.net/blog/2008/12/cups-spool-in-devices-with-limited-space.html</link> <comments>http://mohanjith.net/blog/2008/12/cups-spool-in-devices-with-limited-space.html#comments</comments> <pubDate>Wed, 24 Dec 2008 01:45:38 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[CUPS]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[print]]></category><guid
isPermaLink="false">http://mohanjith.net/blog/2008/12/cups-spool-in-devices-with-limited-space.html</guid> <description><![CDATA[TweetI was trying to print a large document, and it would never print. A small print job had no issues. To add to that I was printing a stupid PDF form that will only open with Acrobat Reader. The print job was passing through many places, VMWare guest, my notebook, and finally print server. I [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2008/12/cups-spool-in-devices-with-limited-space.html" data-text="CUPS spool in devices with limited space" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2008%2F12%2Fcups-spool-in-devices-with-limited-space.html&#038;text=CUPS%20spool%20in%20devices%20with%20limited%20space" >Tweet</a></span>I was trying to print a large document, and it would never print. A small print job had no issues. To add to that I was printing a stupid PDF form that will only open with Acrobat Reader. The print job was passing through many places, VMWare guest, my notebook, and finally print server. I spent hours looking for what&#8217;s wrong.</p><p>Finally after many hours lost the issue was found to be lack of storage space in the print server; specifically print job spool was filling the disk.</p><p>I was unable to find a work around or a fix other than printing in smaller batches. I believe not many people come across this issue, IMHO this is not even worth fixing. I just blogged it for my own reference.</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2008/12/cups-spool-in-devices-with-limited-space.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2008/12/cups-spool-in-devices-with-limited-space.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Going multi uplink</title><link>http://mohanjith.net/blog/2008/11/going-multi-uplink.html</link> <comments>http://mohanjith.net/blog/2008/11/going-multi-uplink.html#comments</comments> <pubDate>Sat, 22 Nov 2008 23:28:20 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[Dialog]]></category> <category><![CDATA[Firewall]]></category> <category><![CDATA[Lanka Bell]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Shorewall]]></category><guid
isPermaLink="false">http://mohanjith.net/blog/?p=171</guid> <description><![CDATA[TweetLast Friday I got a 2nd connection for my home-office. Now I have 1Mbit/s WiMAX uplink from Dialog Broadband and 512Kbit/s (Soon will be upgraded to 1Mbit/s) WiMAX uplink from Lanka Bell. I have setup one of my old PCs as the router. I couldn&#8217;t find a single router with multi-uplink here in Sri Lanka, [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2008/11/going-multi-uplink.html" data-text="Going multi uplink" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2008%2F11%2Fgoing-multi-uplink.html&#038;text=Going%20multi%20uplink" >Tweet</a></span>Last Friday I got a 2nd connection for my home-office. Now I have 1Mbit/s WiMAX uplink from <a
href="http://www.dialog.lk/en/broadband/products/homenetplus.html">Dialog Broadband</a> and 512Kbit/s (Soon will be upgraded to 1Mbit/s) WiMAX uplink from <a
href="http://www.lankabell.net/home_broadband.html">Lanka Bell</a>.</p><p>I have setup one of my old PCs as the router. I couldn&#8217;t find a single router with multi-uplink here in Sri Lanka, but PC router is more flexible, IMO. I&#8217;m running <a
href="http://debian.org/">Debian</a> on the router and using <a
href="http://www.shorewall.net/">Shoreline Firewall</a> aka Shorewall for firewalling and traffic shaping/control. It took a good few hours to setup mainly because I mixed up the ethernet interfaces <img
src='http://cdn.mohanjith.net/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . Shorewall documentation on <a
href="http://www.shorewall.net/MultiISP.html">multiple internet connections</a> and <a
href="http://www.shorewall.net/traffic_shaping.htm">traffic shaping/control</a> by Tom Eastep helped me a lot in setting up my router.</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2008/11/going-multi-uplink.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2008/11/going-multi-uplink.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Get Monit to repair your server!</title><link>http://mohanjith.net/blog/2008/10/get-monit-to-repair-your-server.html</link> <comments>http://mohanjith.net/blog/2008/10/get-monit-to-repair-your-server.html#comments</comments> <pubDate>Fri, 31 Oct 2008 00:39:41 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Monit]]></category> <category><![CDATA[Monitor]]></category> <category><![CDATA[Unix]]></category><guid
isPermaLink="false">http://mohanjith.net/blog/?p=153</guid> <description><![CDATA[TweetMonit is an open source utility for managing and monitoring, processes, files, directories and filesystems on a UNIX system. Monit is capable of automatic maintenance and repair and can execute meaningful causal actions in error situations. It takes less than 15 minutes to setup and run this wonderful tool on most Unix servers. It also [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2008/10/get-monit-to-repair-your-server.html" data-text="Get Monit to repair your server!" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2008%2F10%2Fget-monit-to-repair-your-server.html&#038;text=Get%20Monit%20to%20repair%20your%20server%21" >Tweet</a></span><a
href="http://mmonit.com/monit/" target="_blank">Monit</a> is an open source utility for managing and monitoring, processes, files, directories and filesystems on a UNIX system. Monit is capable of automatic maintenance and repair and can execute meaningful causal actions in error situations. It takes less than 15 minutes to setup and run this wonderful tool on most Unix servers. It also comes with a buit in web based service manager.</p><p>I personally prefer Monit over <a
href="http://www.nagios.org/" target="_blank">Nagios</a> or <a
href="http://www.zabbix.com/" target="_blank">ZABBIX</a>. They are pain to install and not as flexible as Monit. AFAIK, Nagios only notifies and records events. It is unable to take a casual maintainance action such as restarting the service.</p><p>You will find some useful Monit scripts <a
href="http://www.debian-administration.org/users/Steve/weblog/32" target="_blank">here</a>.</p><p>My Kudos to the <a
href="http://mmonit.com/monit/who/" target="_blank">Monit team</a>. I&#8217;m one happy Monit user <img
src='http://cdn.mohanjith.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2008/10/get-monit-to-repair-your-server.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2008/10/get-monit-to-repair-your-server.html/feed</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Ubuntu 8.10 on Lenovo 3000 N200</title><link>http://mohanjith.net/blog/2008/10/ubuntu-810-on-lenovo-3000-n200.html</link> <comments>http://mohanjith.net/blog/2008/10/ubuntu-810-on-lenovo-3000-n200.html#comments</comments> <pubDate>Fri, 31 Oct 2008 00:05:44 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Lenovo]]></category><guid
isPermaLink="false">http://mohanjith.net/blog/?p=145</guid> <description><![CDATA[TweetFew hours ago I upgraded my Ubuntu 8.04 to 8.10. Upgrade it self was a smooth one. Download took around 1.5 hours and the installation was around 45 minutes. Ubuntu 8.10 Human theme looks sexy. New wireless driver for Intel 3945ABG has support for the LED indicator as well. Only issues were: ALSA was locked [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2008/10/ubuntu-810-on-lenovo-3000-n200.html" data-text="Ubuntu 8.10 on Lenovo 3000 N200" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2008%2F10%2Fubuntu-810-on-lenovo-3000-n200.html&#038;text=Ubuntu%208.10%20on%20Lenovo%203000%20N200" >Tweet</a></span>Few hours ago I upgraded my Ubuntu 8.04 to 8.10. Upgrade it self was a smooth one. Download took around 1.5 hours and the installation was around 45 minutes. Ubuntu 8.10 Human theme looks sexy. New wireless driver for Intel 3945ABG has support for the LED indicator as well.</p><p>Only issues were:</p><ol><li> <span
class="status_text">ALSA was locked while it&#8217;s being used by any application.<br
/> </span></li><li><span
class="status_text">OpenVPN Client was not routing all traffic through the tunnel (There was no obvious option to do add the routes in the NetworkManager)</span></li></ol><p>ALSA issue was fixed with almost no effort but the solution for the OpenVPN client issue was not so obvious (at least for me).</p><p>Adding the following line to <code>/etc/modprobe.d/alsa-base</code> fixed the ALSA locking issue.</p><pre>options snd-hda-intel model=lenovo</pre><p>In NetworkManager 0.7 all traffic will not be routed through the tunnel if the OpenVPN serve pushes any routes or all of the rules that are pushed through are ignored. You can make NetworkManager to route all traffic through the tunnel by pushing a route similar to <code>0.0.0.0 0.0.0.0 gw 172.16.1.5</code> by adding a line similar to bellow to <code>/etc/openvpn/openvpn.conf</code> in the OpenVPN server</p><pre>push "route 0.0.0.0 0.0.0.0 gw 172.16.1.5"</pre><p>or by making NetworkManager to ignore all routes pushed from the server. Check the &#8220;Ignore automatically obtained routes&#8221; checkbox in the Routes dialog in the VPN editing dialog (IPv4 Setting).</p><p><a
href="http://cdn.mohanjith.net/blog/wp-content/uploads/2008/10/screenshot-editing-ipv4-routes-for-moha-vpn.png"><img
class="aligncenter size-full wp-image-148" title="screenshot-editing-ipv4-routes-for-moha-vpn" src="http://cdn.mohanjith.net/blog/wp-content/uploads/2008/10/screenshot-editing-ipv4-routes-for-moha-vpn.png" alt="" width="460" height="279" /></a></p><p>That&#8217;s it and my notebook is working better than it was before the upgrade. <img
src='http://cdn.mohanjith.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>References: <a
href="http://bugzilla.gnome.org/show_bug.cgi?id=552594" target="_blank">http://bugzilla.gnome.org/show_bug.cgi?id=552594</a> | <a
href="https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/136810" target="_blank">https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/136810</a></p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2008/10/ubuntu-810-on-lenovo-3000-n200.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2008/10/ubuntu-810-on-lenovo-3000-n200.html/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>One more day for Ubuntu 8.10 release</title><link>http://mohanjith.net/blog/2008/10/one-more-day-for-ubuntu-810-release.html</link> <comments>http://mohanjith.net/blog/2008/10/one-more-day-for-ubuntu-810-release.html#comments</comments> <pubDate>Wed, 29 Oct 2008 13:46:29 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[open source]]></category> <category><![CDATA[Ubuntu]]></category><guid
isPermaLink="false">http://mohanjith.net/blog/?p=124</guid> <description><![CDATA[TweetUbuntu 8.10 named Intrepid Ibex will be released on 30th October 2008. I&#8217;m looking forward for the release tomorrow. I&#8217;ll be upgrading my machines to Ibex. New features in 8.10 are: GNOME 2.24 X.Org 7.4 Linux kernel 2.6.27 Encrypted private directory Guest session Network Manager 0.7 Samba 3.2 PAM authentication framework Totem BBC plugin Server [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2008/10/one-more-day-for-ubuntu-810-release.html" data-text="One more day for Ubuntu 8.10 release" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2008%2F10%2Fone-more-day-for-ubuntu-810-release.html&#038;text=One%20more%20day%20for%20Ubuntu%208.10%20release" >Tweet</a></span><a
href="http://ubuntu.com/" target="_blank">Ubuntu</a> 8.10 named Intrepid Ibex will be released on 30th October 2008. I&#8217;m looking forward for the release tomorrow. I&#8217;ll be upgrading my machines to Ibex. New features in 8.10 are:</p><p
style="float: right;"><a
href="http://www.ubuntu.com/"><br
/> <img
id="ubuntucountdownimage" width="180" height="150" border="0" alt="Ubuntu 8.10 is here" src="http://cdn.mohanjith.net/blog/wp-content/uploads/2008/10/countdown_8_10_c_00_days_a_here.png"/><br
/> </a></p><ul><li>GNOME 2.24</li><li>X.Org 7.4</li><li>Linux kernel 2.6.27</li><li>Encrypted private directory</li><li>Guest session</li><li>Network Manager 0.7</li><li>Samba 3.2</li><li>PAM authentication framework</li><li>Totem BBC plugin</li><li>Server Virtualization</li></ul><p>There is more, you can check out <a
href="http://www.ubuntu.com/testing/810rc" target="_blank">http://www.ubuntu.com/testing/810rc</a>.</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2008/10/one-more-day-for-ubuntu-810-release.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2008/10/one-more-day-for-ubuntu-810-release.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Duplicity chokes on OSError: [Errno 24] Too many open files</title><link>http://mohanjith.net/blog/2008/02/duplicity-chokes-on-oserror-errno-24.html</link> <comments>http://mohanjith.net/blog/2008/02/duplicity-chokes-on-oserror-errno-24.html#comments</comments> <pubDate>Sun, 17 Feb 2008 18:51:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[Amazon]]></category> <category><![CDATA[Duplicity]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[S3]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=44</guid> <description><![CDATA[TweetIt was little bit too scary. Duplicity backup scripts were failing on the EC2 instances again, this time around it was not about not able to reach S3, but having too many files open. That was weird because it didn&#8217;t give such a error in the past. However the work around was to increase the [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2008/02/duplicity-chokes-on-oserror-errno-24.html" data-text="Duplicity chokes on OSError: [Errno 24] Too many open files" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2008%2F02%2Fduplicity-chokes-on-oserror-errno-24.html&#038;text=Duplicity%20chokes%20on%20OSError%3A%20%5BErrno%2024%5D%20Too%20many%20open%20files" >Tweet</a></span>It was little bit too scary. Duplicity backup scripts were failing on the EC2 instances again, this time around it was not about not able to reach S3, but having too many files open. That was weird because it didn&#8217;t give such a error in the past. However the work around was to increase the maximum number of file descripters allowed for the user that was running the backup script.</p><p>How ever finding this solution was tought, actually it was a FreeBSD forum that had the  solution. I though I would just write it down for Linux.</p><p>Step 1: Find out the current limit</p><p>To find out the current file descripter limit for a given use, log in as the particular user and run the following command.<pre> $ ulimit -n</pre><p> By default on Debian it would be 1024.</p><p>Step 2: Increase the limit</p><p>You would have to edit /etc/security/limits.conf. You will find details on how to setup different limits in limits.conf itself. The record that you have to put in should look like the following.<pre>username hard nofile 2048</pre><p> Step 3: Log out and Log back in</p><p>You would have to log out and log back in as the user that we updated the file descripter limit. Then run the following command.<pre> $ ulimit -n</pre><p> You should see the updated file descripter limit.</p><p>Hope this helps someone like me in desperation to get the backups in track. I would be doing more investigation as to why there are so many files open. If I find anything interesting I would definitely blog about it. Also for everyone&#8217;s reference there is a <a
href="https://savannah.nongnu.org/bugs/?21792">bug filed</a> at the <a
href="https://savannah.nongnu.org/">Savanah</a> bug tracker by someone else who ran into the same issue</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2008/02/duplicity-chokes-on-oserror-errno-24.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2008/02/duplicity-chokes-on-oserror-errno-24.html/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Turn your computer into an Internet TV &#8211; Miro</title><link>http://mohanjith.net/blog/2008/01/turn-your-computer-into-internet-tv.html</link> <comments>http://mohanjith.net/blog/2008/01/turn-your-computer-into-internet-tv.html#comments</comments> <pubDate>Thu, 24 Jan 2008 19:25:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[GPL]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[MacOS]]></category> <category><![CDATA[Miro]]></category> <category><![CDATA[open source]]></category> <category><![CDATA[Windows]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=37</guid> <description><![CDATA[TweetI always wanted to just have an Internet TV, no cable, no satellite, no terrestrial. Even when it comes to TV I want to watch what I want when I want, not when the broadcaster wants. Internet TV was the ideal. Main thing I missed was really good content with really good quality. Only hope [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2008/01/turn-your-computer-into-internet-tv.html" data-text="Turn your computer into an Internet TV &#8211; Miro" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2008%2F01%2Fturn-your-computer-into-internet-tv.html&#038;text=Turn%20your%20computer%20into%20an%20Internet%20TV%20%26%238211%3B%20Miro" >Tweet</a></span>I always wanted to just have an Internet TV, no cable, no satellite, no terrestrial. Even when it comes to TV I want to watch what I want when I want, not when the broadcaster wants. Internet TV was the ideal. Main thing I missed was really good content with really good quality. Only hope was torrents, but it was not the same experience though. You have to download the movie file using a torrent client and then start watching it using a media player. YouTube videos were a big pain to save to share with my friends. Video feeds were another story; I couldn&#8217;t find a single descent client that will just work.</p><p>Finally there is a free and open source media player + Internet TV, Miro. You can download Miro from <a
href="http://www.getmiro.com/" rel="nofollow">http://www.getmiro.com/</a>. It is released under GNU GPL, you are free to use, change and redistribute.</p><p>Miro is a great piece of software that makes Internet TV a reality. It is capable of playing most video files if not all, built in guide to video feeds and podcasts with the capability to play them within Miro itself, capable of playing and saving YouTube videos, download Torrents and watch them in Miro, and best of all access to great variety of HD content. All this makes Miro the only media player you will ever want.</p><p>Miro binaries are available for all major flavors of Linux, MacOS, Windows. If you are not able to use any of the binaries you could always compile and install from source <img
src='http://cdn.mohanjith.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p><p>I&#8217;m impressed about what Miro can do, I think you will also be impressed. Download Miro now from <a
href="http://www.getmiro.com/" rel="nofollow">http://www.getmiro.com/</a>.</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2008/01/turn-your-computer-into-internet-tv.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2008/01/turn-your-computer-into-internet-tv.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Epiphany Anti-Phishing extension</title><link>http://mohanjith.net/blog/2008/01/epiphany-anti-phishing-extension.html</link> <comments>http://mohanjith.net/blog/2008/01/epiphany-anti-phishing-extension.html#comments</comments> <pubDate>Tue, 22 Jan 2008 22:09:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[Anti-Phishing]]></category> <category><![CDATA[Epiphany]]></category> <category><![CDATA[GNOME]]></category> <category><![CDATA[Linux]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=35</guid> <description><![CDATA[TweetI&#8217;m happy to announce the release of safe-browsing 0.0.1 for Epiphany, the GNOME Web browser. It will try match the url you are trying to access with the Google Safe Browsing black list of urls. If it is a match the view pane will be disabled such that the user can only view the page [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2008/01/epiphany-anti-phishing-extension.html" data-text="Epiphany Anti-Phishing extension" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2008%2F01%2Fepiphany-anti-phishing-extension.html&#038;text=Epiphany%20Anti-Phishing%20extension" >Tweet</a></span>I&#8217;m happy to announce the release of safe-browsing 0.0.1 for Epiphany, the GNOME Web browser. It will try match the url you are trying to access with the <a
href="http://code.google.com/apis/safebrowsing/">Google Safe Browsing</a> black list of urls. If it is a match the view pane will be disabled such that the user can only view the page but not interact. The user will be free to browse away from the page by typing a new url. The extension will also add a indicator to the browser status bar. In the next relase an error page will be displayed instead of even displaying the evil page.</p><p>You can also report phishing sites by clicking Help -&gt; Report Web Forgery&#8230;</p><p>You can download the extension <a
href="http://mohanjith.net/downloads/gnome/epiphany/extensions/safe-browsing/safe-browsing-0.0.1.tar.gz">safe-browsing-0.0.1.tar.gz</a></p><p>Follow the steps bellow to install the extensionn. I&#8217;m assuming you have already installed epiphany and epiphany-extensions.</p><p>Step 1 &#8211; Download the extension archive</p><pre> $ wget http://mohanjith.net/downloads/gnome/epiphany/extensions/safe-browsing/safe-browsing-0.0.1.tar.gz</pre><p>Step 2 &#8211; Extract the extension archive to epiphany extensions directory</p><pre> $ cd /usr/lib/epiphany/2.20/extensions/ $ tar -xzvf [Location_to_archive] .</pre><p>Step 3 &#8211; Restart epiphany and enable Safe browsing extension</p><p>Goto Tools -&gt; Extensions and then select the check box against Safe browsing.</p><p>Step 4 &#8211; Goto a phishing site</p><p>Goto a phishing page, e.g. <a
href="http://202.168.224.161/c.html">http://202.168.224.161/c.html</a> at the time of posting.</p><p>Hope this extension will make your browsing experience safer.</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2008/01/epiphany-anti-phishing-extension.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2008/01/epiphany-anti-phishing-extension.html/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Using GNOME remotely via SSH</title><link>http://mohanjith.net/blog/2008/01/using-gnome-remotely-via-ssh.html</link> <comments>http://mohanjith.net/blog/2008/01/using-gnome-remotely-via-ssh.html#comments</comments> <pubDate>Sat, 19 Jan 2008 13:10:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[GNOME]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[SSH]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=32</guid> <description><![CDATA[TweetHave you ever wished that you had a GUI on a remote Linux server without using VNC? Actually you can use GNOME or any other GDM on a remote server via SSH, yep I&#8217;m not joking. You need to have SSH and X11 running on both the client and the server. In addition on the [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2008/01/using-gnome-remotely-via-ssh.html" data-text="Using GNOME remotely via SSH" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2008%2F01%2Fusing-gnome-remotely-via-ssh.html&#038;text=Using%20GNOME%20remotely%20via%20SSH" >Tweet</a></span>Have you ever wished that you had a GUI on a remote Linux server without using VNC? Actually you can use GNOME or any other GDM on a remote server via SSH, yep I&#8217;m not joking.</p><p>You need to have SSH and X11 running on both the client and the server. In addition on the server GNOME should be installed and SSH daemon should be running.</p><p>Step 1 &#8211; Turn on X11 forwarding on the server:</p><p>Add the following if it doesn&#8217;t exist or just change no to yes in <code>/etc/ssh/ssh_config</code> and save it.<pre>ForwardAgent yesForwardX11 yesForwardX11Trusted yes</pre><p>Add the following if it doesn&#8217;t exist or just change to yes in <code>/etc/ssh/sshd_config</code> and save it.<pre>X11Forwarding yes</pre><p>Step 2 &#8211; Connect to the remote server viw SSH with X11 forwarding</p><p>In order to enable X11 forwarding when you connect to a remote server via SSH you need to provide the commandline option <code>-X</code>. See the example bellow.<pre> $ ssh -X username@server</pre><p>Step 3 &#8211; Start GNOME Session</p><p>You need to start the GNOME session for the GUI to show. By default GNOME session is not started for remote connections. It might take a while for any change to appear, you should notice GNOME startup sequence appearing in the client and couple of messages in your terminal.</p><p>However I do not recommend running X11 or GNOME on a production server, but this should be handy if you want to connect to your home computer from office for example.</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2008/01/using-gnome-remotely-via-ssh.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2008/01/using-gnome-remotely-via-ssh.html/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>WSO2 WSF/PHP with Lighttpd</title><link>http://mohanjith.net/blog/2008/01/wso2-wsfphp-with-lighttpd.html</link> <comments>http://mohanjith.net/blog/2008/01/wso2-wsfphp-with-lighttpd.html#comments</comments> <pubDate>Sat, 12 Jan 2008 22:52:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[Lighttpd]]></category> <category><![CDATA[Lighty]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[WSF/PHP]]></category> <category><![CDATA[WSO2]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=26</guid> <description><![CDATA[TweetI wanted to test drive WSO2 WSF/PHP on Lighttpd because I couldn&#8217;t find any documentation specific for Lighttpd, or any one complaining that it cannot be done. I set up a new VMWare image running Debian so that I can blog all the steps involved in getting WSO2 WSF/PHP working on Lighttpd running on Debian. [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2008/01/wso2-wsfphp-with-lighttpd.html" data-text="WSO2 WSF/PHP with Lighttpd" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2008%2F01%2Fwso2-wsfphp-with-lighttpd.html&#038;text=WSO2%20WSF%2FPHP%20with%20Lighttpd" >Tweet</a></span>I wanted to test drive <a
href="http://wso2.org/projects/wsf/php">WSO2 WSF/PHP</a> on <a
href="http://www.lighttpd.net/">Lighttpd</a> because I couldn&#8217;t find any documentation specific for Lighttpd, or any one complaining that it cannot be done. I set up a new VMWare image running Debian so that I can blog all the steps involved in getting WSO2 WSF/PHP working on Lighttpd running on Debian.</p><p>Step 1: Install Lighttpd, PHP5</p><p>I used apt-get to install Lighttpd and PHP5<pre> $ sudo apt-get install lighttpd php5 </pre><p>Step 2: Download and install WSO2 WSF/PHP.</p><p>I downloaded the Debian package.<pre> $ axel -an 5 http://dist.wso2.org/products/wsf/php/wso2-wsf-php-1.2.0-debian.deb $ dpkg -i wso2-wsf-php-1.2.0-debian.deb</pre><p>Step 3: Enable WSO2 WSF/PHP</p><p>I created a new file /etc/php5/conf.d/wsf.ini and added the following line.<pre> extension=wsf.so </pre><p> Step 4: Enable FastCGI and PHP</p><p>Fastest method to run PHP on Lighttpd is FastCGI, so we will be enabling FastCGI.<pre> $ sudo lighty-enable-mod fastcgi</pre><p>On Debian Lighttpd FastCGI configuration file contains the configuration for PHP4. We will have to edit /etc/lighttpd/conf-enable/10-fastcgi.conf to look like bellow.<pre>server.modules   += ( "mod_fastcgi" )

## Start an FastCGI server for php5 (needs the php5-cgi package)fastcgi.server    = ( ".php" =>     ((             "bin-path" => "/usr/bin/php5-cgi",             "socket" => "/tmp/php.socket",             "max-procs" => 2,             "idle-timeout" => 20,             "bin-environment" => (                     "PHP_FCGI_CHILDREN" => "4",                     "PHP_FCGI_MAX_REQUESTS" => "10000"             ),             "bin-copy-environment" => (                     "PATH", "SHELL", "USER"             ),             "broken-scriptfilename" => "enable"     )))</pre><p>Step 5: Restart Lighttpd</p><p>You have to reload the Lighttpd configuration files.<pre> $ sudo /etc/init.d/lighttpd restart</pre><p> You have successfully installed WSO2 WSF/PHP on PHP5 and Lighttpd. It is time to test whether it is a success. Simplest approach would be to see <code>phpinfo()</code> page. Create a php file with the following line of code and place it in the document root. Then using a web browser goto that URL. In the page search for wsf section. This contains all the configurations about the WSF extension.</p><p>I went throught to the trouble of actually consuming a SOAP web service to see whether this setup actually works and it was a success, but that is simply out of the scope of this post. These instructions should work on other Linux distributions with minor changes and any platform with few changes.</p><p>Fly WSO2 WSF/PHP with Lighttpd. Have fun.</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2008/01/wso2-wsfphp-with-lighttpd.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2008/01/wso2-wsfphp-with-lighttpd.html/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Flying light with lighty</title><link>http://mohanjith.net/blog/2008/01/flying-light-with-lighty.html</link> <comments>http://mohanjith.net/blog/2008/01/flying-light-with-lighty.html#comments</comments> <pubDate>Fri, 11 Jan 2008 22:21:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[Apache HTTP Server]]></category> <category><![CDATA[fast]]></category> <category><![CDATA[FastCGI]]></category> <category><![CDATA[Lighttpd]]></category> <category><![CDATA[Lighty]]></category> <category><![CDATA[Linux]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=24</guid> <description><![CDATA[TweetI moved all my sites to my all new server. There I&#8217;m running Lighttpd as the front facing web server. I do have Apache HTTP Server running for the sake of svn serving. It was not very hard to migrate sites from Apache HTTP Server to Lighttpd. Only feature I missed was .htaccess file support [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2008/01/flying-light-with-lighty.html" data-text="Flying light with lighty" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2008%2F01%2Fflying-light-with-lighty.html&#038;text=Flying%20light%20with%20lighty" >Tweet</a></span>I moved all my sites to my all new server. There I&#8217;m running <a
href="http://www.lighttpd.net/">Lighttpd</a> as the front facing web server. I do have Apache HTTP Server running for the sake of svn serving. It was not very hard to migrate sites from <a
href="http://httpd.apache.org/">Apache HTTP Server</a> to Lighttpd. Only feature I missed was .htaccess file support or substitute. I just had to migrate all the operations taking place in the .htaccess files to the Lighty configuration file.</p><p>Overall migration was smooth. I have nothing to complain, memory foot print is small as it could get. Since I&#8217;m serving only PHP and Python I&#8217;m making use of FastCGI and it is really fast. You wouldn&#8217;t believe me if I tell you the performance gains. I can serve 700 requests per second when it  comes to my <a
href="http://geoinfo.mohanjith.net">Geo-IP</a> web service (I believe the limit was the resources on the test machine), the server is not even sweating. If I was running the same application on Apache HTTP Server it would barely serve 230 requests per second, 204% performance gain.</p><p>If you visit any of my sites except for the blog itself (which is hosted at Blogger.com) you would see the performance. <a
href="http://mohanjith.net">mohanjith.net</a> responds within a second, that&#8217;s lighting fast. All this with a Debian running on Xen with 128MB physical memory and 256MB swap.</p><p>I would recommend Lighty to any one with simple serving requirements. It saves lot of server resources.</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2008/01/flying-light-with-lighty.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2008/01/flying-light-with-lighty.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>MakeNSIS on Linux</title><link>http://mohanjith.net/blog/2007/08/makensis-on-linux.html</link> <comments>http://mohanjith.net/blog/2007/08/makensis-on-linux.html#comments</comments> <pubDate>Sun, 05 Aug 2007 07:10:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[NSIS]]></category> <category><![CDATA[open source]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=18</guid> <description><![CDATA[TweetI was supposed to create a Windows installer recently, but I just hate using Windows. NSIS was the chosen installer creator. I was lucky to be able to compile the NSIS installer on Linux. The installer just ran without any glitches on wine. So testing the installer as not an issue as well. Let me [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2007/08/makensis-on-linux.html" data-text="MakeNSIS on Linux" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2007%2F08%2Fmakensis-on-linux.html&#038;text=MakeNSIS%20on%20Linux" >Tweet</a></span>I was supposed to create a Windows installer recently, but I just hate using Windows. NSIS was the chosen installer creator. I was lucky to be able to compile the NSIS installer on Linux.</p><p>The installer just ran without any glitches on wine. So testing the installer as not an issue as well.</p><p>Let me guide you through installing NSIS on Linux and how to use it on Linux.</p><p><span
style="font-weight: bold;font-size:130%;" >Requires</span><ol><li>Python</li><li>SCons</li></ol><p><span
style="font-size:130%;"><span
style="font-weight: bold;">Steps</span></span><ol><li>Download both the release and the source of x.xx.</li><p><code>nsis-x.xx.zip nsis-x-xx-src.tar.gz</code></p><li>Extract both into one parent parent directory</li><p><code>&lt;parent&gt;<br
/>|<br
/>+-- nsis-x.xx<br
/>+-- nsis-x.xx-src</code></p><li>Change to the source directory</li><p><code>$ cd nsis-x.xx-src</code></p><li>Compile makensis using scon</li><p><code>$ scons SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all</code></p><li>Copy makensis to the release</li><p><code>$ cp build/release/makensis/makensis ../nsis-x.xx/makensis</code></p><li>Change to the &lt;parent&gt;</li><p><code>$ cd ..</code></p><li>Install &#8211; Copy makensis to the install location</li><p><code>$ sudo cp -r nsis-x.xx/* /usr/local/share/nsis/</code></p><li>Create the link from the bin directory to the makensis such that<br
/>makensis is accessible from the command line.</li><p><code>$ sudo link /usr/local/share/nsis/makensis /usr/bin/makensis</code></p></ol><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2007/08/makensis-on-linux.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2007/08/makensis-on-linux.html/feed</wfw:commentRss> <slash:comments>13</slash:comments> </item> <item><title>Adding color to subversion</title><link>http://mohanjith.net/blog/2007/07/adding-color-to-subversion.html</link> <comments>http://mohanjith.net/blog/2007/07/adding-color-to-subversion.html#comments</comments> <pubDate>Sun, 29 Jul 2007 19:46:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[color]]></category> <category><![CDATA[GNOME]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[subversion]]></category> <category><![CDATA[svn]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=17</guid> <description><![CDATA[TweetIf you love the command line and svn but would like to add some color as well, you could try colorsvn.colorsvn is identical to svn when it comes to commands, but the results are shown in color. colorsvn is particularly handy if there are any conflicts created during an update. See http://colorsvn.tigris.org/ for more.]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2007/07/adding-color-to-subversion.html" data-text="Adding color to subversion" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2007%2F07%2Fadding-color-to-subversion.html&#038;text=Adding%20color%20to%20subversion" >Tweet</a></span>If you love the command line and svn but would like to add some color as well, you could try colorsvn.<br
/>colorsvn is identical to svn when it comes to commands, but the results are shown in color.</p><p>colorsvn is particularly handy if there are any conflicts created during an update.</p><p><a
onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://colorsvn.tigris.org/colorsvn-0.3.2.png"><img
style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px;" src="http://colorsvn.tigris.org/colorsvn-0.3.2.png" border="0" alt="" /></a></p><p>See http://colorsvn.tigris.org/ for more.</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2007/07/adding-color-to-subversion.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2007/07/adding-color-to-subversion.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>svnserve Init script</title><link>http://mohanjith.net/blog/2007/07/svnserve-init-script.html</link> <comments>http://mohanjith.net/blog/2007/07/svnserve-init-script.html#comments</comments> <pubDate>Sun, 29 Jul 2007 19:28:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[GNOME]]></category> <category><![CDATA[Init]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[shell]]></category> <category><![CDATA[subversion]]></category> <category><![CDATA[svn]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=16</guid> <description><![CDATA[TweetI was annoyed to have to start the svnserve as a daemon everytime I restarted the machine. I also wanted to use service configuration(GNOME) to deal with the service. I looked all over the web and failed to find the a good one. So I thought of writing it my self. Last weekend I sat [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2007/07/svnserve-init-script.html" data-text="svnserve Init script" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2007%2F07%2Fsvnserve-init-script.html&#038;text=svnserve%20Init%20script" >Tweet</a></span>I was annoyed to have to start the svnserve as a daemon everytime I restarted the machine. I also wanted to use service configuration(GNOME) to deal with the service.</p><p>I looked all over the web and failed to find the a good one. So I thought of writing it my self. Last weekend I sat down and wrote the script. <a
href="http://mohanjith.net/downloads/svn/etc/init.d/svnserve">Here</a> is the result.</p><p>This was tested on fc6 running kernel 2.6.20-1.2962.fc6. Subversion 1.4.2  (subversion-1.4.2-2.fc6). It should work in any distro with init.</p><p>To make service configuration aware of svn serve you will have to first copy the script to /etc/init.d and then run the following.</p><p><code>$ /sbin/chkconfig ---add svnserve</code></p><p>Also remember to create the configuration(/etc/sysconfig/subversion) file with the following lines in it to enable threading.</p><p><code>OPTIONS="--threads"</code></p><p>You can put any options you could send to svnserve in the configuration file.</p><p>PS: here is the Init script it self for your viewing before downloading</p><p><code>#!/bin/bash<br
/>#<br
/>#   /etc/rc.d/init.d/subversion<br
/>#<br
/># Starts the Subversion Daemon<br
/>#<br
/># chkconfig: 2345 90 10<br
/># description: Subversion Daemon<br
/># processname: svnserve<br
/># pidfile: /var/lock/subsys/svnserve</p><p>source /etc/rc.d/init.d/functions</p><p>[ -x /usr/bin/svnserve ] || exit 1</p><p>### Default variables<br
/>SYSCONFIG="/etc/sysconfig/subversion"</p><p>### Read configuration<br
/>[ -r "$SYSCONFIG" ] &&amp; source "$SYSCONFIG"</p><p>RETVAL=0<br
/>prog="svnserve"<br
/>desc="Subversion Daemon"<br
/>pidfile="/var/run/$prog.pid"</p><p>start() {<br
/>echo -n $"Starting $desc ($prog): "<br
/>daemon $prog -d $OPTIONS --pid-file $pidfile<br
/>RETVAL=$?<br
/>if [ $RETVAL -eq 0 ]; then<br
/> touch /var/lock/subsys/$prog<br
/>fi<br
/>echo<br
/>}</p><p>obtainpid() {<br
/>pidstr=`pgrep $prog`<br
/>pidcount=`awk -v name="$pidstr" 'BEGIN{split(name,a," "); print length(a)}'`<br
/>if [ ! -r "$pidfile" ] &&amp;amp;amp; [ $pidcount -ge 2 ]; then<br
/>pid=`awk -v name="$pidstr" 'BEGIN{split(name,a," "); print a[1]}'`<br
/>echo $prog is already running and it was not started by the init script.<br
/>fi<br
/>}</p><p>stop() {<br
/>echo -n $"Shutting down $desc ($prog): "<br
/>if [ -r "$pidfile" ]; then<br
/>pid=`cat $pidfile`<br
/>kill -s 3 $pid<br
/>RETVAL=$?<br
/>else<br
/>RETVAL=1<br
/>fi<br
/>[ $RETVAL -eq 0 ] &&amp; success || failure<br
/>echo<br
/>if [ $RETVAL -eq 0 ]; then<br
/> rm -f /var/lock/subsys/$prog<br
/> rm -f $pidfile<br
/>fi<br
/>return $RETVAL<br
/>}</p><p>restart() {<br
/>stop<br
/>start<br
/>}</p><p>forcestop() {<br
/>echo -n $"Shutting down $desc ($prog): "</p><p>kill -s 3 $pid<br
/>RETVAL=$?<br
/>[ $RETVAL -eq 0 ] &&amp; success || failure<br
/>echo<br
/>if [ $RETVAL -eq 0 ]; then<br
/> rm -f /var/lock/subsys/$prog<br
/> rm -f $pidfile<br
/>fi</p><p>return $RETVAL<br
/>}</p><p>status() {<br
/>if [ -r "$pidfile" ]; then<br
/>pid=`cat $pidfile`<br
/>fi<br
/>if [ $pid ]; then<br
/> echo "$prog (pid $pid) is running..."<br
/>else<br
/> echo "$prog is stopped"<br
/>fi<br
/>}</p><p>obtainpid</p><p>case "$1" in<br
/>start)<br
/>start<br
/>;;<br
/>stop)<br
/>stop<br
/>;;<br
/>restart)<br
/>restart<br
/>RETVAL=$?<br
/>;;<br
/>condrestart)<br
/>[ -e /var/lock/subsys/$prog ] &&amp; restart<br
/>RETVAL=$?<br
/>;;<br
/>status)<br
/>status<br
/>;;<br
/>forcestop)<br
/>forcestop<br
/>;;<br
/>*)<br
/>echo $"Usage: $0 {start|stop|forcestop|restart|condrestart|status}"<br
/>RETVAL=1<br
/>esac</p><p>exit $RETVAL</code></p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2007/07/svnserve-init-script.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2007/07/svnserve-init-script.html/feed</wfw:commentRss> <slash:comments>17</slash:comments> </item> <item><title>Installing Huawei ETS1000 on Linux</title><link>http://mohanjith.net/blog/2007/06/installing-huawei-ets1000-on-linux.html</link> <comments>http://mohanjith.net/blog/2007/06/installing-huawei-ets1000-on-linux.html#comments</comments> <pubDate>Mon, 11 Jun 2007 10:20:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[fedora]]></category> <category><![CDATA[Huawei]]></category> <category><![CDATA[Lanka Bell]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[modem]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=15</guid> <description><![CDATA[Tweet*** Update for Ubuntu 8.10 *** You will have to copy the driver files to the correct location. Please run the following command. sudo cp /lib/firmware/$(uname -r)/ti_3410.fw /lib/firmware/ti_usb-3410.bin *** I managed to install my ETS1000 Series Fixed Wireless Terminal on Linux and go online. I thought of sharing the steps I took to install the [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2007/06/installing-huawei-ets1000-on-linux.html" data-text="Installing Huawei ETS1000 on Linux" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2007%2F06%2Finstalling-huawei-ets1000-on-linux.html&#038;text=Installing%20Huawei%20ETS1000%20on%20Linux" >Tweet</a></span><strong>*** Update for Ubuntu 8.10 ***</strong></p><p>You will have to copy the driver files to the correct location. Please run the following command.</p><pre>sudo cp /lib/firmware/$(uname -r)/ti_3410.fw /lib/firmware/ti_usb-3410.bin</pre><p><strong>***</strong></p><p>I managed to install my ETS1000 Series Fixed Wireless Terminal on Linux and go online. I thought of sharing the steps I took to install the modem on Linux such that you might be able to help someone with the same problem. This should work for any of the CDMA modems that will be using <span
style="background: #cccccc none repeat scroll 0% 50%; color: #ffffff;"><span
style="background-color: #ffffff; color: #000000;"> TI USB 3410 cable (the cable you get when you pay for Bell Net) as the problem is with the </span></span><span
style="color: #cc0000;">USB/Serial Cable <span
style="color: #000000;">not the</span> HUAWEI modem.</span> <span
style="background: #cccccc none repeat scroll 0% 50%; color: #ffffff;"><span
style="background-color: #ffffff; color: #000000;"> </span><br
/> </span></p><h4 style="color: #000000; background-color: #ffffff;"><span
style="background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"> System Requirements</span></h4><p>* Linux with kernel above 2.6.** (Check it by command in console <span
style="color: #ff0000;">uname -a</span>).<br
/> (Personally Tested on FC6, should work on any Linux Distribution)</p><h4 style="background-color: #ffffff;"><span
style="color: #ffffff;"><span
style="background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"> <span
style="color: #000000;">Let&#8217;s Start</span> </span></span></h4><p>It is well assumed that Linux is up on your system and your USB/Serial cable is plugged in.<br
/> Now in console type command <span
style="color: #ff0000;">dmesg -c </span><span
style="color: #000000;">search for the following lines </span></p><p><span
style="background: #cccccc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">ti_usb_3410_5052 1-1:2.0 : TI USB 3410 1 port adapter converter detected<br
/> usb 1-1: TI USB 3410 1 port adapter converter now attached to /dev/ttyUSB0</span></p><p>If u even see <span
style="background: #b3b3b3 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">ttyUSB0</span> in the kernel message then also your modem is detected and you are ready to start,now just configure your <span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"> <span
style="color: #b80047;">wvdial.conf </span></span>in <span
style="color: #b80047;">/etc</span> and start your dialup.</p><p>If not then possibly u will be seeing the following error messages in bundle but i will paste only two lines here.</p><p><span
style="background: #b3b3b3 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">ti_usb_3410_5052 1-1:1.0: TI USB 3410 1 port adapter converter detected</span></p><p><span
style="background: #b3b3b3 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">ti_usb_3410_5052: probe of 1-1:1.0 failed with error -5</span></p><p><span
style="color: #cc0000;">Note that the problem is only the USB/Serial Cable not the HUAEWI modem.</span></p><p>Now we have to make one rule file in <span
style="color: #b80047;">/etc/udev/rules.d/026_ti_usb_3410.rules</span></p><p><span
style="color: #000000;">The file may not exist, but don&#8217;t worry.</span></p><p>In console login as a root</p><p><span
style="color: #ff0000;"><strong>su</strong></span></p><p><span
style="color: #ff0000;"><strong>password *****</strong></span></p><p><span
style="color: #ff0000;"><strong>cd /etc/udev/rules.d/</strong></span></p><p><span
style="color: #ff0000;"><strong>vi 026_ti_usb_3410.rules </strong><span
style="color: #000000;">(Now Paste the following lines in it)</span></span></p><pre>SUBSYSTEM=="usb_device" ACTION=="add"
SYSFS{idVendor}=="0451",SYSFS{idProduct}=="3410" \
SYSFS{bNumConfigurations}=="2" \
SYSFS{bConfigurationValue}=="1" \
RUN+="/bin/sh -c 'echo 2 &gt; /sys%p/device/bConfigurationValue'"</pre><p><span
style="color: #000000;">SAVE AND EXIT (:wq)</span></p><p>Now once again plug out ur USB/Serial cable and then plugin.</p><p>Again type <span
style="color: #ff0000;">dmesg -c</span> in console</p><p>Check the kernel message and find the following line</p><p><span
style="background: #cccccc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">ti_usb_3410_5052 1-1:2.0: TI USB 3410 1 port adapter converter detected<br
/> usb 1-1: TI USB 3410 1 port adapter converter now attached to /dev/ttyUSB0</span><br
/> <span
style="background: #cccccc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"> </span></p><p><strong>CONGRATULATIONS</strong> it is finally done.</p><p>Now edit your <span
style="color: #b80047;">/etc/wvdial.conf</span> (Mine as a Sample below working fine)</p><p><span
style="background-color: #ffffff; font-weight: bold; color: #ffffff;"><span
style="background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"> <span
style="color: #000000;">My /etc/wvdial.conf</span> </span></span></p><p
style="margin-left: 40px;"><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">[Dialer ptcl] </span></p><p
style="margin-left: 40px;"><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Modem = /dev/ttyUSB0 </span></p><p
style="margin-left: 40px;"><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Baud = 230400 </span></p><p
style="margin-left: 40px;"><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Phone = #777 </span></p><p
style="margin-left: 40px;"><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Init1 = ATZ </span></p><p
style="margin-left: 40px;"><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Stupid Mode = 1 </span></p><p
style="margin-left: 40px;"><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Dial Command = ATDT </span></p><p
style="margin-left: 40px;"><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Username = YourUsername<br
/> </span></p><p
style="margin-left: 40px;"><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Password = </span><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">YourPassword</span></p><p
style="margin-left: 40px;"><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">PPPD Options = crtcts multilink usepeerdns lock defaultroute</span></p><p><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"> </span><span
style="color: #ff0000;">Important Note: Stupid Mode should be set to 1 otherwise the hash sign # with Dialing phone number will not be treated by wvdial.</span></p><p><span
style="color: #ff0000;"><span
style="text-decoration: underline;"><strong></strong> </span></span><span
style="font-weight: bold;">LAST PROBLEM</span></p><p><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">When u will connect to ptcl with <span
style="color: #ff0000;">wvdial ptcl</span> command as a root , it will not browse any page and will disconnect. </span></p><p><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">You have to set the nameserver in the <span
style="color: #b80047;">/etc/resolv.conf </span>.You can get the nameserver IPs from the terminal window when wvdial is trying to connect to your ISP.</span></p><p><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Put those two nameserver in <span
style="color: #b80047;">/etc/reslov.conf.</span></span></p><p><span
style="color: #000000;"><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Now again as a root in console <span
style="color: #ff0000;">wvdial ptcl.<br
/> </span></span></span></p><p><strong><span
style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"> FINALLY YOU ARE DONE.</span></strong></p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2007/06/installing-huawei-ets1000-on-linux.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2007/06/installing-huawei-ets1000-on-linux.html/feed</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>DVD movies on mplayer &#8211; Excellent</title><link>http://mohanjith.net/blog/2007/05/dvd-movies-on-mplayer-excellent.html</link> <comments>http://mohanjith.net/blog/2007/05/dvd-movies-on-mplayer-excellent.html#comments</comments> <pubDate>Mon, 07 May 2007 17:59:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[DVD]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[mplayer]]></category> <category><![CDATA[nVidia]]></category> <category><![CDATA[shrek]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=14</guid> <description><![CDATA[TweetI bought my self a Shrek2 (know it is old, but didn&#8217;t want to spend too much) DVD and wanted to check how well mplayer will handle it. To my surprise, there wasn&#8217;t a glitch. The movie was crystal clear. It&#8217;s as good as watching on a DVD player. So I thought I would do [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2007/05/dvd-movies-on-mplayer-excellent.html" data-text="DVD movies on mplayer &#8211; Excellent" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2007%2F05%2Fdvd-movies-on-mplayer-excellent.html&#038;text=DVD%20movies%20on%20mplayer%20%26%238211%3B%20Excellent" >Tweet</a></span>I bought my self a Shrek2 (know it is old, but didn&#8217;t want to spend too much) DVD and wanted to check how well <a
href="http://www.mplayerhq.hu/">mplayer</a> will handle it. To my surprise, there wasn&#8217;t a glitch. The movie was crystal clear. It&#8217;s as good as watching on a DVD player.</p><p>So I thought I would do more research and find out how mplayer decode the DVD so well without even loading the processor so much. To much of my surprise player does support hardware decoding of DVDs via graphic card (I have a nVidia GeForce with nVidia proprietary drivers). This is only supported in one of nVidia&#8217;s own media player when it comes to Windows, but mplayer did it.</p><p>Thanks allot for the mplayer project for a such a feature rich application.</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2007/05/dvd-movies-on-mplayer-excellent.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2007/05/dvd-movies-on-mplayer-excellent.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Bill Gates recommends Ubuntu</title><link>http://mohanjith.net/blog/2007/04/bill-gates-recommends-ubuntu.html</link> <comments>http://mohanjith.net/blog/2007/04/bill-gates-recommends-ubuntu.html#comments</comments> <pubDate>Tue, 24 Apr 2007 17:35:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Microsoft]]></category> <category><![CDATA[Ubuntu]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=13</guid> <description><![CDATA[Tweet He is really smart. Want to try Ubuntu. Here is the link to Ubuntu home page http://www.ubuntu.com/]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2007/04/bill-gates-recommends-ubuntu.html" data-text="Bill Gates recommends Ubuntu" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2007%2F04%2Fbill-gates-recommends-ubuntu.html&#038;text=Bill%20Gates%20recommends%20Ubuntu" >Tweet</a></span><a
onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.flickr.com/photos/14948637@N00/281193199/"><img
style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://farm1.static.flickr.com/96/281193199_519775b141.jpg?v=0" alt="" border="0" /></a> He is really smart. Want to try Ubuntu. Here is the link to Ubuntu home page <a
href="http://www.ubuntu.com/">http://www.ubuntu.com/</a></p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2007/04/bill-gates-recommends-ubuntu.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2007/04/bill-gates-recommends-ubuntu.html/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Installing Lexmark X1100 series on fc6</title><link>http://mohanjith.net/blog/2007/04/installing-lexmark-x1100-series-on-fc6.html</link> <comments>http://mohanjith.net/blog/2007/04/installing-lexmark-x1100-series-on-fc6.html#comments</comments> <pubDate>Sun, 15 Apr 2007 07:54:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[CUPS]]></category> <category><![CDATA[drivers]]></category> <category><![CDATA[fedora]]></category> <category><![CDATA[Lexmark]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[print]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[zod]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=12</guid> <description><![CDATA[TweetI unfortunately bought a Lexmark X1170 all in one two years back, it was cheap and got both printer and scanner. It worked fine on Windows. It was just paper weight ever since I moved to Linux. I struck luck yesterday, when I stumbled upon a forum posting on Ubuntu forum. So I started out [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2007/04/installing-lexmark-x1100-series-on-fc6.html" data-text="Installing Lexmark X1100 series on fc6" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2007%2F04%2Finstalling-lexmark-x1100-series-on-fc6.html&#038;text=Installing%20Lexmark%20X1100%20series%20on%20fc6" >Tweet</a></span>I unfortunately bought a Lexmark X1170 all in one two years back, it was cheap and got both printer and scanner. It worked fine on Windows. It was just paper weight ever since I moved to Linux.</p><p>I struck luck yesterday, when I stumbled upon a <a
href="http://ubuntuforums.org/showthread.php?t=49714&amp;highlight=X1150.">forum posting</a> on Ubuntu forum.</p><p>So I started out straightaway, but had trouble getting the correct drivers from Lexmark site, as instructed in the forum (Got 404). So I went and searched in opendrivers.com and fortunately found it. To help all the poor soles to get the drivers easily I have hosted the rpms. If you download these rpms you can skip the part upto converting the rpms with alien if you are using a debian based system, or install the rpms and continue from restarting CUPS.</p><p>Here are the links:<br
/><a
href="http://www.mohanjith.net/downloads/drivers/printers/lexmark/z600cups-1.0-1.i386.rpm" target="_blank">http://www.mohanjith.net/downloads/d&#8230;1.0-1.i386.rpm</a><br
/><a
href="http://www.mohanjith.net/downloads/drivers/printers/lexmark/z600llpddk-2.0-1.i386.rpm" target="_blank">http://www.mohanjith.net/downloads/drivers/printers/lexmark/z600llpddk-2.0-1.i386.rpm</a></p><p>The instructions worked like a charm, and now I&#8217;m making use of my printer finally. From my point of view X1100 series is a repackage of Z600 series with a scanner.</p><p>Even though the scanner was correctly detected by SANE, I was unable to scan. But the version of sane that comes with Fedora Core 6 (Zod) is old.</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2007/04/installing-lexmark-x1100-series-on-fc6.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2007/04/installing-lexmark-x1100-series-on-fc6.html/feed</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Beryl &#8211; Eye candy for linux desktops</title><link>http://mohanjith.net/blog/2007/04/beryl-eye-candy-for-linux-desktops.html</link> <comments>http://mohanjith.net/blog/2007/04/beryl-eye-candy-for-linux-desktops.html#comments</comments> <pubDate>Tue, 10 Apr 2007 17:16:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[Beryl]]></category> <category><![CDATA[Compiz]]></category> <category><![CDATA[cool]]></category> <category><![CDATA[GNOME]]></category> <category><![CDATA[KDE]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[open source]]></category> <category><![CDATA[Ping]]></category> <category><![CDATA[yum]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=10</guid> <description><![CDATA[TweetIf you think Linux is boring, lacks eye candy you find in Windows (esp. Vista); you haven&#8217;t seen a Linux desktop running Beryl. Beryl has added all the eye candy that Linux desktops lacked, now definitely it looks better than Windows XP and in my opinion better than Windows Vista as well. Here are some [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2007/04/beryl-eye-candy-for-linux-desktops.html" data-text="Beryl &#8211; Eye candy for linux desktops" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2007%2F04%2Fberyl-eye-candy-for-linux-desktops.html&#038;text=Beryl%20%26%238211%3B%20Eye%20candy%20for%20linux%20desktops" >Tweet</a></span>If you think Linux is boring, lacks eye candy you find in Windows (esp. Vista); you haven&#8217;t seen a Linux desktop running <a
href="http://www.beryl-project.org/">Beryl.</a></p><p>Beryl has added all the eye candy that Linux desktops lacked, now definitely it looks better than Windows XP and in my opinion better than Windows Vista as well.</p><p>Here are some screen shots to prove it. <img
src='http://cdn.mohanjith.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> (it is not faked)<br
/> Running: Fedora Core 6, GNOME<br
/> Desktop cube:</p><p><img
id="BLOGGER_PHOTO_ID_5052046385914229490" style="border: 0pt none; margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp3.blogger.com/_jwsSfFCSKrg/Rhx5a802svI/AAAAAAAAAAw/EtecjqTfN5g/s400/Screenshot-beryl-cube.png" border="0" alt="" width="400" height="300" /><br
/> Rain effect (Purely eye candy):</p><p><img
id="BLOGGER_PHOTO_ID_5053024599075631890" style="border: 0pt none; margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp0.blogger.com/_jwsSfFCSKrg/Rh_zGc02sxI/AAAAAAAAABA/MEjRMkX38_g/s400/Screenshot-beryl-rain.png" border="0" alt="" width="400" height="320" /></p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2007/04/beryl-eye-candy-for-linux-desktops.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2007/04/beryl-eye-candy-for-linux-desktops.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Creating ISO images of CDs in a flash</title><link>http://mohanjith.net/blog/2007/04/creating-iso-images-of-cds-in-a-flash.html</link> <comments>http://mohanjith.net/blog/2007/04/creating-iso-images-of-cds-in-a-flash.html#comments</comments> <pubDate>Sun, 08 Apr 2007 19:11:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[burning]]></category> <category><![CDATA[cd]]></category> <category><![CDATA[GNOME]]></category> <category><![CDATA[gnomebaker]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[yum]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=9</guid> <description><![CDATA[TweetHave you sometimes wanted to copy a cd image to your hard disk while you are using linux/unix. Here is a simple way that requires no additional packages, but no GUI, dd if=/dev/cdrom of=/tmp/cdimage.iso If you insist on a GUI, you could give a try to GnomeBaker as well. If you are using yum on [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2007/04/creating-iso-images-of-cds-in-a-flash.html" data-text="Creating ISO images of CDs in a flash" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2007%2F04%2Fcreating-iso-images-of-cds-in-a-flash.html&#038;text=Creating%20ISO%20images%20of%20CDs%20in%20a%20flash" >Tweet</a></span>Have you sometimes wanted to copy a cd image to your hard disk while you are using linux/unix. Here is a simple way that requires no additional packages, but no GUI,</p><pre>dd if=/dev/cdrom of=/tmp/cdimage.iso</pre><p>If you insist on a GUI, you could give a try to <a
href="http://en.wikipedia.org/wiki/GnomeBaker">GnomeBaker</a> as well. If you are using yum on fedora core 6 use yum to<br
/> installGnomeBaker.</p><pre>yum install gnomebaker</pre><p>GnomeBaker can burn cds as well, but there a few minor bugs; no harm will be done to your burner or disk. I<br
/> managed to successfully burn a Ubuntu Live CD and boot from it, that is enough assuarance for the moment.</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2007/04/creating-iso-images-of-cds-in-a-flash.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2007/04/creating-iso-images-of-cds-in-a-flash.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching 11/19 queries in 0.124 seconds using memcached
Object Caching 0/0 objects using memcached
Content Delivery Network via cdn.mohanjith.net

Served from: mohanjith.net @ 2012-02-11 17:31:04 -->
