<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-4134833171071475396</atom:id><lastBuildDate>Wed, 18 Jan 2012 19:42:04 +0000</lastBuildDate><category>mobile</category><category>flash</category><category>cdrom</category><category>display</category><category>ipsec</category><category>javascript</category><category>eclipse java ide</category><category>perl</category><category>iso</category><category>web development</category><category>skype</category><category>adobe</category><category>wine</category><category>about</category><category>emacs gnome ubuntu</category><category>pdo</category><category>application</category><category>mplayer</category><category>shortcut</category><category>tasks</category><category>audio</category><category>cisco</category><category>ios</category><category>ca</category><category>alsa</category><category>windows</category><category>vim</category><category>pdf presentation</category><category>linux</category><category>magic jack</category><category>emacs</category><category>linux apache mediawiki</category><category>php</category><category>usb</category><category>vmware</category><category>volume-control</category><category>sqlite</category><category>linux eclipse libglib</category><category>games</category><category>ssh</category><category>bash</category><category>native</category><category>multimedia</category><category>pdf</category><category>publishing</category><category>strongswan</category><category>filesystem</category><category>html</category><category>certificate</category><category>network</category><category>web browser</category><category>ubuntu</category><category>subversion</category><title>The Hack List</title><description /><link>http://thehacklist.blogspot.com/</link><managingEditor>noreply@blogger.com (Manas Pathak)</managingEditor><generator>Blogger</generator><openSearch:totalResults>49</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/TheHackList" /><feedburner:info uri="thehacklist" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-1914867152025928046</guid><pubDate>Wed, 31 Aug 2011 19:53:00 +0000</pubDate><atom:updated>2011-08-31T15:54:26.145-04:00</atom:updated><title>Bash: copy directory structure without the files</title><description>Here's a one-liner to do that. Go to the source directory and say
&lt;br /&gt;
&lt;br /&gt;user@host:source$ find * -type d -exec mkdir destination/\{\} \; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-1914867152025928046?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/LK7tjkECdBc/bash-copy-directory-structure-without.html</link><author>noreply@blogger.com (Manas Pathak)</author><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2011/08/bash-copy-directory-structure-without.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-1872426397485099038</guid><pubDate>Wed, 10 Aug 2011 00:06:00 +0000</pubDate><atom:updated>2011-08-09T20:06:44.183-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">display</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>Changing display resolution on Ubuntu when the resolution option doesn't show up</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
It is very annoying when you have a good monitor (an NEC MultiSync LCD1970NX in my case), capable of supporting 1280x1024 or some such high resolution, whereas Ubuntu simply cannot see beyond 832x624.&lt;br /&gt;
&lt;br /&gt;
Earlier versions of Ubuntu had the xorg.conf file which is no longer present, although if you craft it by hand it is still going to be used. That seems like a dangerous proposition, though - a simple mistake could screw up at least something that is working.&lt;br /&gt;
&lt;br /&gt;
I found the savior in the command xrandr, thanks to &lt;a href="https://wiki.ubuntu.com/X/Config/Resolution"&gt;X/Config/Resolution&lt;/a&gt; page on the ubuntu wiki. And here is what I have done so far:&lt;br /&gt;
&lt;br /&gt;
1. I first ran the command &lt;b&gt;xrandr&lt;/b&gt; to make sure that the VGA1 indeed existed. As it turns out, that command can also tell you what is the highest resolution your monitor can support:&lt;br /&gt;
&lt;blockquote style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;
sudipta@Springfield:~$ xrandr&lt;br /&gt;Screen 0: minimum 320 x 200, current 832 x 624, maximum 4096 x 4096&lt;br /&gt;VGA1 connected 832x624+0+0 (normal left inverted right x axis y axis) 376mm x 301mm&lt;br /&gt;&amp;nbsp;&amp;nbsp; 1280x1024&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 60.0 +&amp;nbsp;&amp;nbsp; 75.0&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; 1280x960&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 60.0&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; 1152x864&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 75.0&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; 1024x768&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 75.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 70.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 60.0&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; 832x624&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 74.6* &lt;br /&gt;&amp;nbsp;&amp;nbsp; 800x600&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 72.2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 75.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 60.3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 56.2&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; 640x480&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 72.8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 75.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 66.7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 60.0&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; 720x400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 70.1&amp;nbsp; &lt;br /&gt;LVDS1 connected 832x624+0+0 (normal left inverted right x axis y axis) 0mm x 0mm&lt;br /&gt;&amp;nbsp;&amp;nbsp; 1280x720&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 60.0 +&lt;br /&gt;&amp;nbsp;&amp;nbsp; 832x624&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 74.6* &lt;br /&gt;&amp;nbsp;&amp;nbsp; 800x600&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 85.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 72.2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 75.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 60.3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 56.2&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; 640x480&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 85.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 72.8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 75.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 59.9&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; 720x400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 85.0&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; 640x400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 85.1&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; 640x350&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 85.1&amp;nbsp; &lt;/blockquote&gt;
See that 1280x1024 at the top of the list? That is how high my monitor could go. And see that line in the middle with a * at the end (832x624&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 74.6* in my case) - that one is what I am currently running. And strangely enough, although xrandr knew the highest possible on available, the monitor options only showed 832x624 to be the highest:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-g1inMUDAwRk/TkHJa6Yq-sI/AAAAAAAAAW8/_l097dSUm6A/s1600/Screenshot-Monitor+Preferences+bad.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="235" src="http://3.bp.blogspot.com/-g1inMUDAwRk/TkHJa6Yq-sI/AAAAAAAAAW8/_l097dSUm6A/s400/Screenshot-Monitor+Preferences+bad.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
So all I had to do to rectify the situation was to open up the gnome terminal and run&lt;br /&gt;
&lt;blockquote style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;
&lt;span style="font-size: small;"&gt;xrandr --output VGA1 &lt;/span&gt;&lt;span style="font-size: small;"&gt;--mode 1280x1024&lt;/span&gt;&lt;/blockquote&gt;
which was the highest one supported by my monitor, as mentioned above. Note that I did not specify a refresh rate (using --rate 75 or 60): I let the computer decide for itself. And voila! I had a 1280x1024 screen on my monitor!&lt;br /&gt;
&lt;br /&gt;
I will post an update about how to make the change permanent as well, although the wiki already mentions some options.&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-1872426397485099038?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/PzWKgmyI8I0/changing-display-resolution-on-ubuntu.html</link><author>noreply@blogger.com (Sudipta Chatterjee)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-g1inMUDAwRk/TkHJa6Yq-sI/AAAAAAAAAW8/_l097dSUm6A/s72-c/Screenshot-Monitor+Preferences+bad.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2011/08/changing-display-resolution-on-ubuntu.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-3880249125327090742</guid><pubDate>Thu, 07 Jul 2011 07:52:00 +0000</pubDate><atom:updated>2011-07-07T03:55:15.235-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">linux</category><title>ln -sf gives ?[01;32mFILENAME?[0m</title><description>So I was trying to link to a few files from a script and it kept getting me these strange links instead of the actual file name. This is what I had in my shell prompt:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;"&gt;for i in `ls /var/www | grep FILENAME`; do ln -sf $i .; done&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;
[The grep is there because of multiple files which began by the same name]. But then what I got instead in the folder where I was running this script was this:&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;"&gt;sudipta@Hogwarts:~/html$ ls -l&lt;br /&gt;
total 156&lt;br /&gt;
lrwxrwxrwx 1 sudipta sudipta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25 2011-07-06 23:08 ?[01;32mFILENAME?[0m -&amp;gt; ?[01;32mFILENAME?[0m&lt;br /&gt;&lt;br /&gt;
lrwxrwxrwx 1 sudipta sudipta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 34 2011-07-06 23:08 FILENAME.txt -&amp;gt; FILENAME.txt&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;
I had no idea where this strange file was from or why it was here. Also, only a few files were getting affected by this. A simple "ls -l" showed that this was happening only to those files which had the executable file set&lt;br /&gt;
&lt;br /&gt;
After some time, I realized that this was a permissions problem. I gave the local directory write permission by www-data, and then sudo-ed myself into www-data and re-executed my script again.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;"&gt;sudipta@dev:~/html$ rm -f FILENAME*&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;"&gt;sudipta@dev:~/html$ chmod a+w .&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;"&gt;sudipta@dev:~/html$ sudo su www-data&lt;br /&gt;
[sudo] password for sudipta: &lt;br /&gt;
$ &lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;"&gt;for i in `ls /var/www | grep FILENAME`; do ln -sf $i .; done&lt;br /&gt;
$^D&lt;/span&gt;&lt;/blockquote&gt;And that did it! All I needed was to run the thing as www-data with write permission in my current directory.&lt;br /&gt;
&lt;blockquote&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;"&gt;sudipta@Hogwarts:~/html$ ls -l&lt;br /&gt;
total 156&lt;br /&gt;
lrwxrwxrwx 1 sudipta sudipta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25 2011-07-06 23:08 FILENAME -&amp;gt; FILENAME &lt;br /&gt;&lt;br /&gt;
lrwxrwxrwx 1 sudipta sudipta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 34 2011-07-06 23:08 FILENAME.txt -&amp;gt; FILENAME.txt&lt;/span&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-3880249125327090742?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/bW2kmaN-IRw/ln-sf-gives-0132mfilename0m.html</link><author>noreply@blogger.com (Sudipta Chatterjee)</author><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2011/07/ln-sf-gives-0132mfilename0m.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-6764466906903183109</guid><pubDate>Mon, 14 Feb 2011 07:42:00 +0000</pubDate><atom:updated>2011-02-14T02:42:36.440-05:00</atom:updated><title>Deleting all panels on GNOME desktop</title><description>Apparently, deleting all panels is not the easiest thing to do on a GNOME desktop.&lt;br /&gt;&lt;br /&gt;Open gconf-editor and goto /apps/panel/toplevels and set these values:&lt;br /&gt;auto_hide: yes&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;auto_hide_size: 1&lt;br /&gt;expand: no&lt;br /&gt;hide_delay: 1&lt;br /&gt;monitor: 3&lt;br /&gt;unhide_delay: 10000&lt;br /&gt;x: 10000&lt;br /&gt;y: 10000&lt;br /&gt;&lt;br /&gt;This will hide the panel permanently.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-6764466906903183109?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/etfqwE_Zly8/deleting-all-panels-on-gnome-desktop.html</link><author>noreply@blogger.com (Manas Pathak)</author><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2011/02/deleting-all-panels-on-gnome-desktop.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-5472558901144304382</guid><pubDate>Fri, 19 Nov 2010 20:51:00 +0000</pubDate><atom:updated>2010-11-19T16:24:01.647-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">pdf presentation</category><title>Keynote like multi-screen output in linux</title><description>&lt;div&gt;I normally create my presentations using the &lt;a href="http://bitbucket.org/rivanvx/beamer/wiki/Home"&gt;beamer&lt;/a&gt; package in Latex compiling them into pdf, can't really imagine why would anyone use anything else. I use evince to display the pdf on a projector, but found it to be relatively basic.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;I was looking for an application to display some meta-information like the remaining time and the preview of the next slide on my laptop while displaying the current slide on the projector, the way &lt;a href="http://www.tuaw.com/2009/07/23/things-mom-may-not-have-told-you-about-keynote-presenter-displa/"&gt;Keynote&lt;/a&gt; does it. I found the &lt;a href="http://westhoffswelt.de/projects/pdf_presenter_console.html"&gt;pdf_presenter_console&lt;/a&gt; application, it is fairly minimalistic but seems to do the trick for me.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-5472558901144304382?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/2HeEg__a_RM/keynote-like-multi-screen-output-in.html</link><author>noreply@blogger.com (Manas Pathak)</author><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/11/keynote-like-multi-screen-output-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-1277397437431216640</guid><pubDate>Wed, 10 Nov 2010 00:16:00 +0000</pubDate><atom:updated>2010-11-09T19:16:51.020-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">web development</category><category domain="http://www.blogger.com/atom/ns#">sqlite</category><category domain="http://www.blogger.com/atom/ns#">php</category><category domain="http://www.blogger.com/atom/ns#">pdo</category><title>PHP Fatal error:  Class 'PDO' not found</title><description>When using SQLite with Php for the first time, you might get this error under /var/log/httpd/error_log (I was using a Fedora 13 machine). The trick is to install a package called "php-pdo" and then use the function.&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;su&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;yum install php-pdo&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
Hopefully it will save someone some heartache :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-1277397437431216640?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/sDYHWhcUH2o/php-fatal-error-class-pdo-not-found.html</link><author>noreply@blogger.com (Sudipta Chatterjee)</author><thr:total>1</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/11/php-fatal-error-class-pdo-not-found.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-4717529545112143014</guid><pubDate>Fri, 22 Oct 2010 19:31:00 +0000</pubDate><atom:updated>2010-10-22T15:32:39.942-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">network</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">strongswan</category><category domain="http://www.blogger.com/atom/ns#">ipsec</category><title>StrongSwan: we have no ipsecN interface for either end of this connection</title><description>I installed a new NIC card on one of my PCs where IPSec was already set up through StrongSwan and configured NAT-ing through iptables. Afterward, when I tried to do "ipsec up myconnection" I got this error:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=";font-family:&amp;quot;;" &gt;we have no ipsecN interface for either end of this connection&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;The reason, it turns out, is that if the ipsec services were started before all the network interfaces came up, it is confused about which egress route to take. As I found on the &lt;a href="http://layer9.wordpress.com/2010/09/21/strongswan-we-have-no-ipsecn-interface-for-either-end-of-this-connection/"&gt;Layer9 blog&lt;/a&gt; (and translated from German to English via &lt;a href="http://babelfish.yahoo.com/"&gt;Babelfish&lt;/a&gt;),  it turns out you need to make sure that ipsec starts after the network has come up. The quick fix was just an IPSec restart:&lt;br /&gt;&lt;blockquote  style=";font-family:&amp;quot;;"&gt;&lt;span style="font-size:100%;"&gt;sudo /etc/init.d/ipsec restart&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;And the long-term fix was definitely to just delay the ipsec a little. Add this to your /etc/rc.local file:&lt;blockquote&gt;&lt;pre&gt;/etc/init.d/ipsec stopsleep 5/etc/init.d/ipsec start&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-4717529545112143014?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/LEaMAEm6EcM/strongswan-we-have-no-ipsecn-interface.html</link><author>noreply@blogger.com (Sudipta Chatterjee)</author><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/10/strongswan-we-have-no-ipsecn-interface.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-2842442972893706893</guid><pubDate>Thu, 07 Oct 2010 18:38:00 +0000</pubDate><atom:updated>2010-10-07T14:38:12.637-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ca</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">certificate</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>Strongswan: ike alg: unable to locate my private key</title><description>If you are using &lt;a href="http://www.strongswan.org/"&gt;StrongSwan&lt;/a&gt; to establish an IPSec connection and you encounter this error:&lt;br /&gt;
&lt;blockquote&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: x-small;"&gt;root@crackjack:~# ipsec up conn-to-td&lt;br /&gt;
002 "conn-to-td" #2: initiating Main Mode&lt;br /&gt;
002 "conn-to-td" #2: ike alg: unable to locate my private key&lt;br /&gt;
002 "conn-to-td" #2: ike alg: unable to locate my private key&lt;br /&gt;
003 "conn-to-td" #2: empty ISAKMP SA proposal to send (no algorithms for ike selection?)&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;
Then I have found the way to solve the first part of your problem - the private key part. Basically, after FreeSwan became OpenSwan and then finally StrongSwan, they created a directory for each individual part under /etc/ipsec.d. So for example the CA certs are stored in the folder /etc/ipsec.d/cacerts, or the certs you got are stored in /etc/ipsec.d/certs. Similarly, you are supposed to store your private key at /etc/ipsec.d/private. What you have probably done is that in /etc/ipsec.conf you wrote down&lt;br /&gt;
&lt;blockquote&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;leftcert=/etc/ipsec.d/private/my_private_key.pem&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;When in fact you should have your /etc/ipsec.conf as the following:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;# ipsec.conf - strongSwan IPsec configuration file&lt;br /&gt;
&lt;br /&gt;
# basic configuration&lt;br /&gt;
&lt;br /&gt;
config setup&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;plutodebug=all&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;plutostderrlog=/var/log/pluto.log&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; charonstart=yes&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;plutostart=yes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
conn host-to-host&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left=&lt;my address="" ip=""&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leftcert=my_cert.pem&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leftid=my_private_key.pem&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; right=&lt;vpn destination=""&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rightid=&lt;vpn destination="" identifier=""&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; auto=start&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pfs=no&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rekey=no&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keyingtries=3&lt;/vpn&gt;&lt;/vpn&gt;&lt;/my&gt;&lt;/span&gt;&lt;/blockquote&gt;After this, you can do the faithful /etc/init.d/ipsec restart and the private key problem will disappear&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-2842442972893706893?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/hSERLfCHi4A/strongswan-ike-alg-unable-to-locate-my.html</link><author>noreply@blogger.com (Sudipta Chatterjee)</author><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/10/strongswan-ike-alg-unable-to-locate-my.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-8219764673591128109</guid><pubDate>Tue, 17 Aug 2010 20:24:00 +0000</pubDate><atom:updated>2010-08-17T16:32:49.771-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">alsa</category><category domain="http://www.blogger.com/atom/ns#">volume-control</category><title>Ubuntu/ALSA controlling volume from the command line</title><description>If you are using &lt;a href="http://www.alsa-project.org/main/index.php/Main_Page"&gt;ALSA&lt;/a&gt; as your audio framework, if you are using a common distribution like Ubuntu you probably are,  there is a command line program called alsamixer which provides an elaborate set of options to control your sound settings.&lt;br /&gt;&lt;br /&gt;The sound setting I most often tinker with is, of course, raising and lowering the volume. A simple way to do that on the command line is "amixer -c 0 sset Master,0 &lt;percent-value&gt;%", for e.g.  amixer -c 0 sset Master,0 60%.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-8219764673591128109?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/DThPglIi6Lg/ubuntualsa-controlling-volume-from.html</link><author>noreply@blogger.com (Manas Pathak)</author><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/08/ubuntualsa-controlling-volume-from.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-5034214386380775055</guid><pubDate>Sat, 07 Aug 2010 04:54:00 +0000</pubDate><atom:updated>2010-08-07T00:54:09.260-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">linux apache mediawiki</category><title>mediawiki blank page after install</title><description>If you have freshly installed &lt;a href="http://www.mediawiki.org/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; and are getting a blank page after installing, here is what you are probably doing wrong: the LocalSettings.php needs to have read permissions by everyone as well.&lt;br /&gt;
&lt;br /&gt;
(I am assuming a standard install here)&lt;br /&gt;
So if you go to /var/lib/mediawiki/LocalSettings.php it should actually be a softlink to /etc/mediawiki/LocalSettings.php. Try this command:&lt;br /&gt;
&lt;blockquote&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;sudo chmod 755 /etc/mediawiki/LocalSettings.php&lt;/span&gt;&lt;/blockquote&gt;And then restart apache (just to make sure):&lt;br /&gt;
&lt;blockquote&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;sudo /etc/init.d/apache restart&lt;/span&gt;&lt;/blockquote&gt;That should be it. Now your http://localhost/mediawiki should be visible :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-5034214386380775055?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/wdfLbRsy3ZQ/mediawiki-blank-page-after-install.html</link><author>noreply@blogger.com (Sudipta Chatterjee)</author><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/08/mediawiki-blank-page-after-install.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-2509120787531624466</guid><pubDate>Mon, 02 Aug 2010 19:26:00 +0000</pubDate><atom:updated>2010-08-02T15:26:06.499-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">vmware</category><category domain="http://www.blogger.com/atom/ns#">iso</category><category domain="http://www.blogger.com/atom/ns#">cdrom</category><title>VMWare tries network boot although you've specified an ISO file in the device settings</title><description>It just happened to me, and I found the solution thanks to my teammate. You have to click on the check-box under CDRom that says "Connect at power on". By default, when you add a new CDRom to the machine, this box is not checked. So, there goes...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-2509120787531624466?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/pD58kGZdBb0/vmware-tries-network-boot-although.html</link><author>noreply@blogger.com (Sudipta Chatterjee)</author><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/08/vmware-tries-network-boot-although.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-4922109749456915746</guid><pubDate>Fri, 30 Jul 2010 23:56:00 +0000</pubDate><atom:updated>2010-07-30T19:56:50.233-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cisco</category><category domain="http://www.blogger.com/atom/ns#">filesystem</category><category domain="http://www.blogger.com/atom/ns#">ios</category><category domain="http://www.blogger.com/atom/ns#">flash</category><category domain="http://www.blogger.com/atom/ns#">usb</category><title>Cisco IOS router stuck in rommon</title><description>Moral of the story - if you are getting checksum errors on the rommon prompt of a Cisco IOS router, and you know that you have downloaded the correct image from the correct website, then either your router's flash memory or the USB drive you are using to transfer it is corrupt. I know the latter seems like a distant possibility, but yes, it has happened to me and I lost a good 3 weeks of productive time trying to troubleshoot this.&lt;br /&gt;
&lt;br /&gt;
Peace!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-4922109749456915746?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/FSy79YgNp2Y/cisco-ios-router-stuck-in-rommon.html</link><author>noreply@blogger.com (Sudipta Chatterjee)</author><thr:total>1</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/07/cisco-ios-router-stuck-in-rommon.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-4825023269775127466</guid><pubDate>Sat, 10 Jul 2010 19:29:00 +0000</pubDate><atom:updated>2010-07-10T15:29:15.758-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cisco</category><category domain="http://www.blogger.com/atom/ns#">ca</category><category domain="http://www.blogger.com/atom/ns#">ios</category><category domain="http://www.blogger.com/atom/ns#">certificate</category><title>How to see a Cisco IOS CA's root certificate</title><description>If you have created an IOS CA server and want to see its root certificate for distribution to other machines, then you must look at its storage location. Suppose you used the following to create your CA:&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;# enable&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;(config)# cry pki server thehacklist&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;(cs-server)# database url flash:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;(cs-server)# issuer-name C=IN, ST=WB, O=thehacklist&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;(cs-server)# cdp none&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;(cs-server)# grant auto&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;(cs-server)# no shut&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;%Some server settings cannot be changed after CA certificate generation.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;% Please enter a passphrase to protect the private key&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;% or type Return to exit&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;Password:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;Re-enter password:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;% Exporting Certificate Server signing certificate and keys...&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;% Certificate Server enabled.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;(cs-server)# end&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
Now if you look at the storage location (flash in this case, as specified above), you will see a three files named after your CA server (with extensions ending in ser, crl and p12).&lt;br /&gt;
&lt;blockquote&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;# dir flash:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;Directory of flash:/&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;11  -rw-          32  Jul 10 2010 17:54:20 +00:00  thehacklist.ser&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;1  -rw-        1826  Jan 15 2008 17:52:38 +00:00  sdmconfig-38xx.cfg&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;2  -rw-     6036480  Jan 15 2008 17:53:10 +00:00  sdm.tar&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;3  -rw-      861696  Jan 15 2008 17:53:26 +00:00  es.tar&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;4  -rw-     1164288  Jan 15 2008 17:53:46 +00:00  common.tar&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;5  -rw-        1038  Jan 15 2008 17:54:02 +00:00  home.shtml&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;6  -rw-      113152  Jan 15 2008 17:54:16 +00:00  home.tar&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;7  -rw-     1697952  Jan 15 2008 17:54:42 +00:00  securedesktop-ios-3.1.1.45-k9.pkg&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;8  -rw-      416354  Jan 15 2008 17:55:06 +00:00  sslclient-win-1.1.3.173.pkg&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;9  -rw-    59526004  Jun 29 2010 19:23:10 +00:00  c3845-advipservicesk9-mz.124-22.T2&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;10  -rw-    60288320  Dec 15 2008 23:27:58 +00:00  c3845-adventerprisek9-mz.124-20.T&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;12  -rw-         247  Jul 10 2010 17:54:20 +00:00  thehacklist.crl&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;13  -rw-        1627  Jul 10 2010 17:54:22 +00:00  thehacklist_00001.pem&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;From here, to see the root certificate of the CA, you can use:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;# more flash:/thehacklist_00001.pem&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;-----BEGIN CERTIFICATE-----&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;MIIB/TCCAWagAwIBAgIBATANBgkqhkiG9w0BAQQFADASMRAwDgYDVQQDEwdjbG91&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;ZGNhMB4XDTEwMDUwNTIxNDI1MloXDTEzMDUwNDIxNDI1MlowEjEQMA4GA1UEAxMH&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;Y2xvdWRjYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAlKg0l1DdBpgc/5j3&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;mA8XodkRq3d5c6K4ZYgUKftEUBAJV3tQz8/ms+CObfmvOn8BdZl0vsLDhJIPRCoq&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;pypec//gtJpQAAo2I8PCl874yB8k/ebhxBMMhzxQ7y70B0d6gbl8Ub+pmXJnl7Gi&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;61G41bmNCzXHdfUUiVczpVnaaaaaaaaaaaaaaaaaaaYDVR0TAQH/BAUwAwEB/zAO&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;BgNVHQ8BAf8EBAMCAYYwHwYDVR0jBBgwFoAUbjpam0qXL8U93MSmngJ1vE1USrMw&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;HQYDVR0OBBYEFG46WptKly/FPdzEpp4CdbxNVEqzMA0GCSqGSIb3DQEBBAUAA4GB&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;ACDHm7NNssxSzdD1aQUyUtAni9zo2TCrdcVYtUa5z497JWAPK5YE1tGsMdkYawky&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;/sUuQMQY4nQFaHtlwKoDHKUSRuygq24GjCUXwoSLLR8jqzfuSgah1ZPohZUPRFEo&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;EAN2hDdw3Y0o75rsHzie355AH2a22nDnyAm+89EJqEsv&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: x-small;"&gt;-----END CERTIFICATE-----&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-4825023269775127466?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/vPLo-Znd0No/how-to-see-cisco-ios-cas-root.html</link><author>noreply@blogger.com (Sudipta Chatterjee)</author><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/07/how-to-see-cisco-ios-cas-root.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-8701242397638537386</guid><pubDate>Fri, 25 Jun 2010 03:32:00 +0000</pubDate><atom:updated>2010-06-25T00:09:28.417-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><category domain="http://www.blogger.com/atom/ns#">mplayer</category><title>MPlayer: Failed to open LIRC support</title><description>Whenever I run &lt;a href="http://www.mplayerhq.hu/design7/news.html"&gt;MPlayer&lt;/a&gt; from my terminal, which is always when I am playing any kind of media, including &lt;a href="http://thehacklist.blogspot.com/2009/08/downloading-flash-videos.html"&gt;Youtube videos&lt;/a&gt;, I get the following error.&lt;br /&gt;&lt;br /&gt;mplayer: could not connect to socket&lt;br /&gt;mplayer: No such file or directory&lt;br /&gt;Failed to open LIRC support. You will not be able to use your remote control.&lt;br /&gt;&lt;br /&gt;I do not own  a LIRC remote control, although I have read it is not too difficult to &lt;a href="http://www.lirc.org/"&gt;build one yourself&lt;/a&gt;. I this message had become an eyesore. The fix is rather simple. Add a line "nolirc = yes" without the quotes to the file &lt;code&gt;&lt;/code&gt;~/.mplayer/config in your home directory. Given how customizable MPlayer is, it is possible to fine tune almost everything from the config file. The default configurations are listed in /etc/mplayer/mplayer.conf and are overridden by the config file in the home directory.&lt;span style="display: block;" id="formatbar_Buttons"&gt;&lt;span class=" on down" style="display: block;" id="formatbar_CreateLink" title="Link" onmouseover="ButtonHoverOn(this);" onmouseout="ButtonHoverOff(this);" onmouseup="" onmousedown="CheckFormatting(event);FormatbarButton('richeditorframe', this, 8);ButtonMouseDown(this);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-8701242397638537386?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/7oDl8caR9Go/mplayer-failed-to-open-lirc-support.html</link><author>noreply@blogger.com (Manas Pathak)</author><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/06/mplayer-failed-to-open-lirc-support.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-3986299067476984127</guid><pubDate>Tue, 15 Jun 2010 18:06:00 +0000</pubDate><atom:updated>2010-06-19T10:55:40.947-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">emacs gnome ubuntu</category><title>Resolving "murrine_style_draw_box: assertion `height &gt;= -1'"</title><description>When using Emacs 23 and a few other applications on Ubuntu running GNOME, I often get a irritatingly cryptic error message ** (emacs:25074): CRITICAL **: murrine_style_draw_box: assertion `height &gt;= -1' failed. Turns out it has got something to do with the theme I'm running.&lt;br /&gt;&lt;br /&gt;Thanks to &lt;a href="https://bugs.launchpad.net/ubuntu/+source/light-themes/+bug/538499"&gt;Alf&lt;/a&gt;,  it is very easy to get rid of that by tweaking Gtk configuration. Modify the entry in  /usr/share/themes/Ambiance/gtk-2.0/gtkrc from GtkRange::trough-under-steppers = 0 to GtkRange::trough-under-steppers = 1.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-3986299067476984127?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/Yf5REGRKCxk/resolving-murrinestyledrawbox-assertion.html</link><author>noreply@blogger.com (Manas Pathak)</author><thr:total>22</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/06/resolving-murrinestyledrawbox-assertion.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-1242853323120175937</guid><pubDate>Wed, 26 May 2010 20:42:00 +0000</pubDate><atom:updated>2010-05-26T16:42:56.843-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">linux</category><title>Upgrading Fedora from the command line</title><description>I have a Fedora box running and I sort of screwed up the GDM so I was left without a display. Since the Fedora 13 (Goddard) was released recently, I decided to upgrade, from the command line. It kept giving me the error that complained, "Can't open display".&lt;br /&gt;
&lt;br /&gt;
I finally figured out that I needed preupgrade-cli, as specified here: &lt;a href="http://fedoraproject.org/wiki/PreUpgrade"&gt;http://fedoraproject.org/wiki/PreUpgrade&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The syntax, from the command line is this (as root):&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;preupgrade-cli "Fedora 13 (Goddard)"&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Note the quotes surrounding the argument - you need those to specify the string for the version you want to upgrade to.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-1242853323120175937?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/KKXT36k-opU/upgrading-fedora-from-command-line.html</link><author>noreply@blogger.com (Sudipta Chatterjee)</author><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/05/upgrading-fedora-from-command-line.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-5087825266517797512</guid><pubDate>Mon, 24 May 2010 09:24:00 +0000</pubDate><atom:updated>2010-05-24T05:24:04.264-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">linux eclipse libglib</category><title>Eclipse: GLib-WARNING **: g_set_prgname() called multiple times</title><description>While coding a few things using SWT on Eclipse, the console was continuously showing me this error:&lt;br /&gt;
&lt;b&gt;g_set_prgname() called multiple times&lt;/b&gt;&lt;br /&gt;
that too in red - meaning a sort of an error.&lt;br /&gt;
&lt;br /&gt;
This is a nagging problem: especially if you are a code purist like me who loves to see no errors/warnings at all in the code I write. I googled a bit, and the &lt;a href="http://ubuntuforums.org/showthread.php?t=1362942"&gt;Ubuntu Forums&lt;/a&gt; provided the solution: downgrade libglib2.0. I'm quoting from there:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;Mark the package you want to downgrade, and choose "Force version ..." from "Package" on the main menu. Select the previous version and it is done. &lt;/blockquote&gt;&lt;br /&gt;
I am using Karmic Koala (yeah I haven't upgraded to the Maverick LTS yet). So all I needed to do was to select the value from the drop down menu to one that did not say "&lt;i&gt;(updates)&lt;/i&gt;". Don't worry, there are only two options and you just have to select the other one. After applying, I got that line marked in yellow in Synaptic. But hey... got rid of a nagging warning! :)&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_VvhmP5DIsgU/S_pFeLh-TkI/AAAAAAAAAVc/y_AfnVAhF6U/s1600/Screenshot-Synaptic+Package+Manager+.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="488" src="http://4.bp.blogspot.com/_VvhmP5DIsgU/S_pFeLh-TkI/AAAAAAAAAVc/y_AfnVAhF6U/s640/Screenshot-Synaptic+Package+Manager+.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-5087825266517797512?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/88NqgJfyLVI/eclipse-glib-warning-gsetprgname-called.html</link><author>noreply@blogger.com (Sudipta Chatterjee)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_VvhmP5DIsgU/S_pFeLh-TkI/AAAAAAAAAVc/y_AfnVAhF6U/s72-c/Screenshot-Synaptic+Package+Manager+.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/05/eclipse-glib-warning-gsetprgname-called.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-5730561083929384194</guid><pubDate>Sun, 09 May 2010 23:06:00 +0000</pubDate><atom:updated>2010-05-09T19:06:25.662-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">application</category><category domain="http://www.blogger.com/atom/ns#">games</category><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">windows</category><category domain="http://www.blogger.com/atom/ns#">wine</category><title>Road rash on Linux using wine</title><description>For a lot of us, Roadrash is a game that is going to remain close to our hearts forever! Countless hours spent in front of the PC while kicking and punching others, or even on the LAN fending off your room-mate. For a lot of us, this has been THE introduction to computer video games.&lt;br /&gt;
&lt;br /&gt;
Downloading the game is pretty easy, actually. I got mine at &lt;a href="http://www.download-full-games.com/pc/sports/road_rash.html"&gt;http://www.download-full-games.com/pc/sports/road_rash.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The tricky part is to get to run it on Linux. In my case, Ubuntu Linux is the only operating system I have: I honestly don't need Windows for much. This game, however, runs only on Windows and so the quintessential &lt;a href="http://www.winehq.org/"&gt;wine&lt;/a&gt; came to the rescue. So then I unzipped the file and from the command prompt typed:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt;sudipta@Hogwarts:~/roadrash$ wine ROADRASH.EXE&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
This unfortunately leads to the "CD-Rom not found" error. The fix to this, as we all know, is to have the registry edited. There is a SETREG.EXE which you can run, but then the state is not persistent. As in, if you run&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt;sudipta@Hogwarts:~/roadrash$ wine SETREG.EXE&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt;sudipta@Hogwarts:~/roadrash$ wine ROADRASH.EXE&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
Then the registry was just altered when the last wine command was run, not this time. So I opened up the RASH.REG file and found that it contained:&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt;REGEDIT4 &lt;br /&gt;
&lt;br /&gt;
[HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\RoadRash 95] &lt;br /&gt;
@="" &lt;br /&gt;
"Path"="D:\\" &lt;br /&gt;
"CheckDialup"=hex:00 &lt;br /&gt;
"ChatState"=hex:02 &lt;br /&gt;
"MiniDash"=hex:00 &lt;br /&gt;
"OpponentList"=hex:01&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
Which basically means that the above Windows registry value needed editing. This in turn led me back to the .wine folder in my home directory. Lo and behold, there was a system.reg file with lots of Registry-like entries.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;"&gt;sudipta@Hogwarts:~/.wine$ gedit&amp;nbsp; system.reg&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;
So I simply added a section right on top that said:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt;[SOFTWARE\\Electronic Arts\\RoadRash 95] &lt;br /&gt;
@="" &lt;br /&gt;
"Path"="D:\\" &lt;br /&gt;
"CheckDialup"=hex:00 &lt;br /&gt;
"ChatState"=hex:02 &lt;br /&gt;
"MiniDash"=hex:00 &lt;br /&gt;
"OpponentList"=hex:01&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;
This was because there was an entry right on top that said, ";; All keys are relative to \\Machine". And now when I run &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt;sudipta@Hogwarts:~/roadrash$ wine ROADRASH.EXE&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
I get&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://appdb.winehq.org/appimage.php?bThumbnail=true&amp;amp;iId=17648" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="313" src="http://appdb.winehq.org/appimage.php?bThumbnail=true&amp;amp;iId=17648" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Viola! Ah the joys of kicking the next guy off the road... :D&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-5730561083929384194?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/1dDW_MQHR10/road-rash-on-linux-using-wine.html</link><author>noreply@blogger.com (Sudipta Chatterjee)</author><thr:total>5</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/05/road-rash-on-linux-using-wine.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-3603865212469837439</guid><pubDate>Sun, 25 Apr 2010 06:20:00 +0000</pubDate><atom:updated>2010-04-25T02:34:36.908-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ssh</category><category domain="http://www.blogger.com/atom/ns#">shortcut</category><title>SSH Hostname Shortcut</title><description>As I work with 3 machines: laptop, desktop, and a server: all running 64-bit Linux, I often need to use ssh and scp. I find repeated typing of long hostnames stress inducing, with the chance of making a typo or just the pressure on my fingers. Here is a trick I use.&lt;br /&gt;&lt;br /&gt;Create a file .ssh/config with the following entries:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Host [shortcut]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Hostname [full-hostname]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;User [username]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;where entries in [brackets] are to be filled with your entries. Additional entries like Port, ServerAliveInterval, etc. can also be filled out.&lt;br /&gt;&lt;br /&gt;This along with public key based &lt;a href="http://nosheep.net/story/password-less-ssh-login/"&gt;password-less ssh&lt;/a&gt; works like a charm. If you are as lazy (= productive) as I am, one-letter shortcuts for frequently used hosts like&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ ssh a&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;is enough.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-3603865212469837439?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/gqGqPKYQCZw/ssh-hostname-shortcut.html</link><author>noreply@blogger.com (Manas Pathak)</author><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/04/ssh-hostname-shortcut.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-5076185733331256213</guid><pubDate>Tue, 06 Apr 2010 03:21:00 +0000</pubDate><atom:updated>2010-04-06T09:25:21.924-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">mobile</category><category domain="http://www.blogger.com/atom/ns#">tasks</category><title>Syncing Text Notes</title><description>&lt;div&gt;A very basic need, trivial to address and yet surprisingly, at I haven't found a convincing solution: you want to make your text notes on your mobile device and then copy-paste to your files on your computer.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I keep my tasks and other important lists in the form of formatted text file (e.g., in &lt;a href="http://docs.google.com/"&gt;Google Docs&lt;/a&gt;). I found this to be the most flexible compared to any other todo list applications such &lt;a href="http://mail.google.com/mail/help/tasks/"&gt;Google Tasks&lt;/a&gt; or &lt;a href="http://www.rememberthemilk.com/"&gt;Remember the Milk&lt;/a&gt; that never measured up to what I needed to do with them. However, Google Docs doesn't allow you to edit on Mobile devices. iPhone internal Notes program doesn't sync over 3G (I guess that can be made to work somehow with iTunes?) . At some point,  I emailed those notes to myself and then copy-paste from the email to Google Doc. Then I found &lt;a href="https://www.dropbox.com/"&gt;DropBox&lt;/a&gt; in which you can sync file with your mobile device and view them. But still NO EDITING despite many people requesting it!!! So I found &lt;a href="http://www.evernote.com/"&gt;EverNote&lt;/a&gt; and you can edit there but there process requires many clicks at at least on the iPhone with no background app, it's painful and not practical. Also, if you do any rich formatting on a desktop, the mobile app only appends. Then I thought what I make a draft email and keep updating this and then copy-paste from this draft. I used this solution for a while but then again too many clicks to get to it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;What am I missing? Shouldn't there by something out there for this? I doubt that not enough people need to sync their notes.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Out of options, I created my own &lt;a href="http://beanstr.com/Notes"&gt;small application&lt;/a&gt; and you can put a shortcut on your mobile main screen. On your first use, it creates a note for you which it will remember from the cookie next time you visit the main URL. You can email it to other computers that you want to sync notes and again using cookie you only need to do this once. Couple of disclaimers:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. I'm putting this up for comments and would love to hear if there is interest (or alternatives). I may stop this service at any point&lt;/div&gt;&lt;div&gt;2. It is currently formatted for iPhone and I haven't tried on other devices. Again if there is interest, I will support it.&lt;/div&gt;&lt;div&gt;3. This is to be used for small temporary text transfers. Not a secure service. Also, the app is almost too minimalistic and missing many features.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-5076185733331256213?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/8Kl6ScqqjoE/syncing-text-notes.html</link><author>noreply@blogger.com (Mehrbod Sharifi)</author><thr:total>1</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/04/syncing-text-notes.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-2263791779837449453</guid><pubDate>Thu, 04 Feb 2010 20:58:00 +0000</pubDate><atom:updated>2010-02-04T16:03:27.321-05:00</atom:updated><title>GNU Grammar and Writing Style checking tools</title><description>Historically, there have not been too many free software tools for even the basic spelling &amp;amp; grammar checking. I found the combination of free GNU tools: &lt;a href="http://aspell.net/"&gt;aspell&lt;/a&gt;, &lt;a href="http://www.gnu.org/software/diction/"&gt;diction,&lt;/a&gt;&lt;a href="http://www.gnu.org/software/diction/"&gt; and style&lt;/a&gt; to work well, on the command line (on Unix as well as Windows) or inside Emacs.&lt;br /&gt;&lt;br /&gt;Here is a good article about these tools. &lt;a href="http://www.linux.com/archive/article"&gt;http://www.linux.com/archive/article&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-2263791779837449453?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/fW3OxvT92UY/gnu-grammar-and-writing-style-checking.html</link><author>noreply@blogger.com (Manas Pathak)</author><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2010/02/gnu-grammar-and-writing-style-checking.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-4423366128595775337</guid><pubDate>Wed, 30 Dec 2009 06:46:00 +0000</pubDate><atom:updated>2009-12-30T01:46:50.521-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">skype</category><category domain="http://www.blogger.com/atom/ns#">network</category><category domain="http://www.blogger.com/atom/ns#">audio</category><category domain="http://www.blogger.com/atom/ns#">magic jack</category><title>Magic Jack error 9 no internet connection</title><description>I was struggling to be the tech-support for my mother back home and getting her to talk to me over magic jack. It kept saying, Error 9: no internet connection.&lt;br /&gt;
&lt;br /&gt;
And yet at the same time she could hear me properly on Skype but I was not able to hear her at all. Video was working both ways.&lt;br /&gt;
&lt;br /&gt;
I asked her to unplug the magic jack ("Safely remove hardware" and all), and viola, the skype audio started working! :)&lt;br /&gt;
&lt;br /&gt;
I haven't ascertained yet, but I am pretty sure the solution to the magic jack also lies somewhere there - some other device must be using the network itself.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-4423366128595775337?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/rUcwuHzSWKs/magic-jack-error-9-no-internet.html</link><author>noreply@blogger.com (Sudipta Chatterjee)</author><thr:total>1</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2009/12/magic-jack-error-9-no-internet.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-1413655205967005833</guid><pubDate>Sat, 19 Dec 2009 18:13:00 +0000</pubDate><atom:updated>2009-12-19T13:20:21.035-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">native</category><category domain="http://www.blogger.com/atom/ns#">flash</category><title>Minitube: native client for Youtube</title><description>Even though the support for Adobe Flash is getting better on *nix systems, it is far from what it should be. Youtube especially seems to have problems interfering with audio settings, not running fullscreen properly on multiscreen displays to name a few.&lt;br /&gt;&lt;br /&gt;Solution: use Minitube, a Flash-less native Youtube client for Linux &amp;amp; other Unix-like systems.&lt;br /&gt;&lt;a href="http://flavio.tordini.org/minitube"&gt;http://flavio.tordini.org/minitube&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-1413655205967005833?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/sNmDGjCpUlE/minitube-native-client-for-youtube.html</link><author>noreply@blogger.com (Manas Pathak)</author><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2009/12/minitube-native-client-for-youtube.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-3667258077591276553</guid><pubDate>Wed, 02 Dec 2009 12:32:00 +0000</pubDate><atom:updated>2009-12-10T13:24:48.833-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">eclipse java ide</category><title>Ubuntu eclipse no java perspective</title><description>For those of you installing eclipse for the first time on Ubuntu (using the System -&amp;gt; Administration -&amp;gt; Synaptic Package manager), the Window -&amp;gt; Open Perspective -&amp;gt; Java might not appear (even under Other).&lt;br /&gt;&lt;br /&gt;Here is what you need to do:&lt;br /&gt;1. Close eclipse if you are already running it.&lt;br /&gt;2. Open the Synaptic Package Manager (as above) and select the eclipse-jdt package as well.&lt;br /&gt;3. Install (basically, Apply)&lt;br /&gt;&lt;br /&gt;That'll do it! :) Start up eclipse again!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-3667258077591276553?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/rDwlsRVwp8U/ubuntu-eclipse-no-java-perspective.html</link><author>noreply@blogger.com (Sudipta Chatterjee)</author><thr:total>1</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2009/12/ubuntu-eclipse-no-java-perspective.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4134833171071475396.post-4999427408094338789</guid><pubDate>Wed, 21 Oct 2009 18:11:00 +0000</pubDate><atom:updated>2009-10-21T14:18:47.453-04:00</atom:updated><title>Google Doc Viewer</title><description>Google Docs has the functionality to render PDF/PPT documents into HTML webpages on the fly. If you have attachments in GMail, you might have seen this already. Now, Google has opened this for any document on the web.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Just add your document URL after "http://docs.google.com/viewer?url=", &lt;/div&gt;&lt;div&gt;for e.g. &lt;a href="http://docs.google.com/viewer?url=infolab.stanford.edu/pub/papers/google.pdf"&gt;http://docs.google.com/viewer?url=infolab.stanford.edu/pub/papers/google.pdf&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;Having http://, www prefixes before the URL doesn't hurt.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/748"&gt;Greasemonkey&lt;/a&gt; addon for Firefox &amp;amp; its &lt;a href="http://en.wikipedia.org/wiki/Greasemonkey#Equivalents_for_other_browsers"&gt;equivalents&lt;/a&gt; for other browsers go one step ahead. This &lt;a href="http://userscripts.org/scripts/show/59557"&gt;script&lt;/a&gt; modifies each document link automatically with the viewer prefix.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4134833171071475396-4999427408094338789?l=thehacklist.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/TheHackList/~3/P3cpLz1O8ag/google-doc-viewer.html</link><author>noreply@blogger.com (Manas Pathak)</author><thr:total>0</thr:total><feedburner:origLink>http://thehacklist.blogspot.com/2009/10/google-doc-viewer.html</feedburner:origLink></item></channel></rss>

