<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://linuxdevelopernotes.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Linux Developer Notes - Tips, Tricks, Hacks and How-To&#039;s</title>
 <link>http://linuxdevelopernotes.com/frontpage</link>
 <description>A collection of tips, tricks, hacks, how-tos, articles and forums covering software development and administration topics from the mundane to the mildly esoteric, to serve as a reference for developers and system administrators.</description>
 <language>en</language>
<item>
 <title>About this site...</title>
 <link>http://linuxdevelopernotes.com/content/about-site</link>
 <description>&lt;p&gt;&lt;p&gt;This site is under active development, and articles are added all the time, so feel free to leave feedback and stop back or subscribe to new content.  It started as a private collection of hacks and howto&#039;s.  In the course of my work, I&#039;ve been called upon to venture into many areas of linux development and administration, and been faced with a veritable cornucopia of challenges.  Sometimes, I have been known to *forget* how I did something, and find myself compelled to re-discover it, either for myself or someone else.  In an effort to categorise these little bits of occasionally hard-won knowledge, both for myself and so that I can simply point others to it when they wish to know something I&#039;ve already figured out, I put this site together.  Since then, I&#039;ve been privileged to acquire titbits from others as well, and have added them to the collection.&lt;/p&gt;
&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://linuxdevelopernotes.com/content/about-site&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://linuxdevelopernotes.com/content/about-site#comments</comments>
 <pubDate>Wed, 24 Dec 2008 21:33:24 -0600</pubDate>
 <dc:creator>btilma</dc:creator>
 <guid isPermaLink="false">21 at http://linuxdevelopernotes.com</guid>
</item>
<item>
 <title>Grabbing a Remote User&#039;s Display with x11vnc</title>
 <link>http://linuxdevelopernotes.com/hacks/grabbing-remote-users-display-x11vnc</link>
 <description>&lt;p&gt;Let&#039;s consider a scenario. You&#039;ve got a user of your software who&#039;s struggling with how to do something. 
You know if you were there, you could show them very quickly, but trying to explain via telephone or email is proving 
&lt;em&gt;really&lt;/em&gt; difficult. Or perhaps you need to interact with a remote display for some other reason, such as 
running graphical software on the remote machine with the option to detach from the session with the software still running, 
and be able to pick it up again when you&#039;re in front of the machine. You also might have left some software or 
website open on your screen and decide you need to close it. All of these scenarios &lt;em&gt;could&lt;/em&gt; be challenging to 
you, linux being a multi-user operating system and all. It&#039;s designed to allow multiple users access to the machine 
without running into each other, but what if you &lt;em&gt;&lt;strong&gt;want&lt;/strong&gt;&lt;/em&gt; to run into each other?&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://linuxdevelopernotes.com/hacks/grabbing-remote-users-display-x11vnc&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://linuxdevelopernotes.com/hacks/grabbing-remote-users-display-x11vnc#comments</comments>
 <category domain="http://linuxdevelopernotes.com/category/utilities/x11vnc">x11vnc</category>
 <pubDate>Wed, 07 Jan 2009 02:19:19 -0600</pubDate>
 <dc:creator>btilma</dc:creator>
 <guid isPermaLink="false">67 at http://linuxdevelopernotes.com</guid>
</item>
<item>
 <title>Connecting To a PPTP Server From the Command Line</title>
 <link>http://linuxdevelopernotes.com/content/connecting-pptp-server-command-line</link>
 <description>&lt;p&gt;There are many different flavors of pptp clients, most of them graphical.&amp;nbsp; Although if you&#039;re unfortunate enough to be on a MS (Windows) system, you&#039;re stuck with theirs and all of its limitations, those of us who are fortunate enough to be working on linux can do much better.&amp;nbsp; This article will focus on setting up PPTP (Point-To-Point Tunnelling Protocol) clients from the command line.&amp;nbsp; The huge advantage that we gain by switching to the CLI (Command Line Interface), is that we&#039;re no longer limited in the number of open connections we can have.&amp;nbsp; It&#039;s also a very great deal faster to use the command line, both for setup and connection, and it&#039;s really quite simple.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://linuxdevelopernotes.com/content/connecting-pptp-server-command-line&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://linuxdevelopernotes.com/content/connecting-pptp-server-command-line#comments</comments>
 <category domain="http://linuxdevelopernotes.com/category/networking/pptp">PPTP</category>
 <pubDate>Mon, 05 Jan 2009 02:24:00 -0600</pubDate>
 <dc:creator>btilma</dc:creator>
 <guid isPermaLink="false">62 at http://linuxdevelopernotes.com</guid>
</item>
<item>
 <title>Using SSHFS</title>
 <link>http://linuxdevelopernotes.com/howtos/using-sshfs</link>
 <description>Although it&#039;s relatively simple, I thought I&#039;d write a brief article on the use of sshfs, because it&#039;s such a helpful tool.

First, you&#039;ll need to have sshfs and fuse installed.  You can get them here(&lt;a href=http://sourceforge.net/project/showfiles.php?group_id=121684&amp;amp;package_id=140425&gt;sshfs&lt;/a&gt;) and here(&lt;a href=http://sourceforge.net/project/showfiles.php?group_id=121684&amp;amp;package_id=132802&gt;fuse&lt;/a&gt;).  The server (remote) side doesn&#039;t need anything but sshd (ssh server) installed.  The beauty of the whole arrangement is that sshfs is really just a kind of wrapper around ssh/sftp, so the server doesn&#039;t even need to know about any permissions other than the standard ssh login.  You can mount any path from the server that you have access to via ssh.

Using sshfs from the command line is really easy.  To mount a filesystem, you&#039;ll want to do so as your standard user (not root).  Simply do:

&lt;pre&gt;&lt;code&gt;sshfs user@host: &amp;lt;mountpoint&amp;gt;&lt;/code&gt;&lt;/pre&gt;

and to unmount:

&lt;pre&gt;&lt;code&gt;fusermount -u &amp;lt;mountpoint&amp;gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;a href=&quot;http://linuxdevelopernotes.com/howtos/using-sshfs&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://linuxdevelopernotes.com/howtos/using-sshfs#comments</comments>
 <category domain="http://linuxdevelopernotes.com/category/ssh/sshfs">sshfs</category>
 <pubDate>Wed, 31 Dec 2008 01:30:21 -0600</pubDate>
 <dc:creator>btilma</dc:creator>
 <guid isPermaLink="false">25 at http://linuxdevelopernotes.com</guid>
</item>
<item>
 <title>Creating a Self-installing Executable Shell Script</title>
 <link>http://linuxdevelopernotes.com/howtos/creating-self-installing-executable-shell-script</link>
 <description>&lt;p&gt;This How To will cover creating a shell script that contains your installable product inside of it and can be used to install your product on a target machine.  This is essentially one file that contains both the files to install and the install logic within it.  You&#039;ll need a few tools to start off with, namely&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uuencode&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;
and&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uudecode&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;
These are historical unix tools.  From the wikipedia page, at &lt;a href=http://en.wikipedia.org/wiki/Uuencode&gt;http://en.wikipedia.org/wiki/Uuencode&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://linuxdevelopernotes.com/howtos/creating-self-installing-executable-shell-script&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://linuxdevelopernotes.com/howtos/creating-self-installing-executable-shell-script#comments</comments>
 <category domain="http://linuxdevelopernotes.com/category/languages/bash">Bash</category>
 <category domain="http://linuxdevelopernotes.com/category/packaging/shell-script">Shell Script</category>
 <pubDate>Mon, 29 Dec 2008 18:10:35 -0600</pubDate>
 <dc:creator>btilma</dc:creator>
 <guid isPermaLink="false">16 at http://linuxdevelopernotes.com</guid>
</item>
<item>
 <title>Passwordless SSH logins</title>
 <link>http://linuxdevelopernotes.com/howtos/passwordless-ssh-logins</link>
 <description>&lt;p&gt;To enable login to a remote machine by ssh without having to enter the password is a useful thing, and one I get asked about with some regularity.  I&#039;ll describe two methods I use, one that uses ssh public keys with no passphrases, and the other using ssh-agent to store the passphrases of your keys.&lt;/p&gt;
&lt;p&gt;To use ssh keys, you&#039;ll first need to have one.  You can create this with the ssh-keygen utility like so:&lt;/p&gt;
&lt;pre&gt;ssh-keygen -t &amp;lt;algorithm&amp;gt; -b &amp;lt;bit size&amp;gt;&lt;/pre&gt;&lt;p&gt;
for example:&lt;/p&gt;
&lt;pre&gt;ssh-keygen -t rsa -b 4096&lt;/pre&gt;&lt;p&gt;&lt;a href=&quot;http://linuxdevelopernotes.com/howtos/passwordless-ssh-logins&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://linuxdevelopernotes.com/howtos/passwordless-ssh-logins#comments</comments>
 <category domain="http://linuxdevelopernotes.com/category/ssh/passwordless-ssh">Passwordless SSH</category>
 <pubDate>Fri, 26 Dec 2008 22:26:35 -0600</pubDate>
 <dc:creator>btilma</dc:creator>
 <guid isPermaLink="false">26 at http://linuxdevelopernotes.com</guid>
</item>
<item>
 <title>Grepping with Vim</title>
 <link>http://linuxdevelopernotes.com/content/grepping-vim</link>
 <description>&lt;p&gt;Of the many productivity-enhancing features that Vim has, one the the best for making similar changes to many files is grep, or vimgrep.  This handy little tool will, from within vim, tell you how many files match your pattern, and then proceed to take you to each match, regardless of which file it occurs in.  Sure, for straight /pattern/replacement/ text, there&#039;s nothing like sed -i, but if you&#039;ve got to make changes which are similar or to similar areas but not the same, then vimgrep is your friend.  To invoke this, you have two basic options.  From the command line:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://linuxdevelopernotes.com/content/grepping-vim&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://linuxdevelopernotes.com/content/grepping-vim#comments</comments>
 <category domain="http://linuxdevelopernotes.com/category/editors/vi-improved">Vi (Improved)</category>
 <pubDate>Wed, 07 May 2008 22:48:20 -0500</pubDate>
 <dc:creator>btilma</dc:creator>
 <guid isPermaLink="false">18 at http://linuxdevelopernotes.com</guid>
</item>
<item>
 <title>Enabling Unrecognized Serial Ports</title>
 <link>http://linuxdevelopernotes.com/hacks/enabling-unrecognized-serial-ports</link>
 <description>&lt;p&gt;Sometimes, you&#039;ve got a serial card that isn&#039;t included in the kernel&#039;s list of known devices for some reason.  It could be that it is just a very small manufacturer, or perhaps the card you&#039;ve got is newer than the kernel you&#039;ve got.  In either case, as long as the card you have is a 16550 UART, you should be fine.  This little gem will get your card recognized and working smoothly.  First, you&#039;ve got to see if your card is even seen by the kernel.  You can do this with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;lspci&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;
If the kernel lists it as an &#039;Unknown&#039; device, then it won&#039;t show up in&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://linuxdevelopernotes.com/hacks/enabling-unrecognized-serial-ports&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://linuxdevelopernotes.com/hacks/enabling-unrecognized-serial-ports#comments</comments>
 <category domain="http://linuxdevelopernotes.com/category/device-access/serial">Serial</category>
 <pubDate>Mon, 21 Apr 2008 22:53:14 -0500</pubDate>
 <dc:creator>btilma</dc:creator>
 <guid isPermaLink="false">17 at http://linuxdevelopernotes.com</guid>
</item>
<item>
 <title>Shell Commands with Sed</title>
 <link>http://linuxdevelopernotes.com/howtos/shell-commands-sed</link>
 <description>&lt;p&gt;Sed, that most useful of pattern replacement tools, can be used for much more than simple string replacements in text files.  This article will examine the uses of Sed for creating commands and feeding them to the shell.  This can be extremely useful, especially when working on file manipulations for large batches of files at a time.  Let&#039;s say for example that you&#039;ve got a directory full of files, and you&#039;d like to move them into subdirectories according to the first three characters of the filenames.  This is a one-liner with sed.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://linuxdevelopernotes.com/howtos/shell-commands-sed&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://linuxdevelopernotes.com/howtos/shell-commands-sed#comments</comments>
 <category domain="http://linuxdevelopernotes.com/category/editors/sed">Sed</category>
 <pubDate>Mon, 21 Apr 2008 22:15:29 -0500</pubDate>
 <dc:creator>btilma</dc:creator>
 <guid isPermaLink="false">12 at http://linuxdevelopernotes.com</guid>
</item>
<item>
 <title>Java and Compositing Window Managers</title>
 <link>http://linuxdevelopernotes.com/content/java-and-compositing-window-managers</link>
 <description>&lt;p&gt;&lt;p&gt;Java applications with graphical user interfaces still don&#039;t play well with compositing window managers such as Compiz or Compiz-Fusion.  Frequently the java application window will open, but remain blank.  Fortunately, the fix for this is relatively simple.  Exporting the variable &quot;AWT_TOOLKIT=MToolkit&quot; before running the jvm will fix this problem.  If your java application has a menu entry or a desktop icon, you can make the necessary changes to the properties of the .desktop file by specifying the command as&lt;/p&gt;
&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://linuxdevelopernotes.com/content/java-and-compositing-window-managers&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://linuxdevelopernotes.com/content/java-and-compositing-window-managers#comments</comments>
 <category domain="http://linuxdevelopernotes.com/category/languages/java">Java</category>
 <pubDate>Tue, 08 Apr 2008 22:25:42 -0500</pubDate>
 <dc:creator>btilma</dc:creator>
 <guid isPermaLink="false">10 at http://linuxdevelopernotes.com</guid>
</item>
</channel>
</rss>
