<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>RND(tech)</title>
    <link>http://www.khanh.net/blog/</link>
    <description>My random co-existence with technology...</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.5 - http://www.s9y.org/</generator>
    <pubDate>Sat, 22 Oct 2011 22:55:21 GMT</pubDate>

    <image>
        <url>http://www.khanh.net/blog/templates/bulletproof/img/s9y_banner_small.png</url>
        <title>RSS: RND(tech) - My random co-existence with technology...</title>
        <link>http://www.khanh.net/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>LaCie brings Lightscribe to the rest of us</title>
    <link>http://www.khanh.net/blog/archives/7-LaCie-brings-Lightscribe-to-the-rest-of-us.html</link>
            <category>Apple/Mac</category>
            <category>Linux</category>
            <category>Windows</category>
    
    <comments>http://www.khanh.net/blog/archives/7-LaCie-brings-Lightscribe-to-the-rest-of-us.html#comments</comments>
    <wfw:comment>http://www.khanh.net/blog/wfwcomment.php?cid=7</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khanh.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=7</wfw:commentRss>
    

    <author>nospam@example.com (Khanh Tran)</author>
    <content:encoded>
    LaCie announced today that they now offer a complete Lightscribe solution for all platforms.  That means now Mac OS X and even Linux users can write labels to Lightscribe media with Lightscribe drives.  Lightscribe is a technology that allows you to etch silk screen quality images on the label side of CD/DVD media.  Up until now, the technology was limited to Windows users due to lack of software.  Now with the LaCie LightScribe Labeler for MAC OS, SureThing for Windows and LaCie LightScribe Labeler for Linux, we have software available to the three major OS platforms.  Did I forget to mention the software is free from LaCie?  Yes, it really is.&lt;br /&gt;
&lt;br /&gt;
See:&lt;br /&gt;
&lt;a href=&quot;http://www.lacie.com/lightscribe&quot;&gt;http://www.lacie.com/lightscribe&lt;/a&gt; &lt;a href=&quot;http://www.lightscribe.com&quot;&gt;http://www.lightscribe.com&lt;/a&gt; 
    </content:encoded>

    <pubDate>Tue, 17 Oct 2006 15:16:33 -0700</pubDate>
    <guid isPermaLink="false">http://www.khanh.net/blog/archives/7-guid.html</guid>
    
</item>
<item>
    <title>using openSSH as a layer-2 ethernet bridge (VPN)</title>
    <link>http://www.khanh.net/blog/archives/51-using-openSSH-as-a-layer-2-ethernet-bridge-VPN.html</link>
            <category>Internet/Networking</category>
            <category>Linux</category>
    
    <comments>http://www.khanh.net/blog/archives/51-using-openSSH-as-a-layer-2-ethernet-bridge-VPN.html#comments</comments>
    <wfw:comment>http://www.khanh.net/blog/wfwcomment.php?cid=51</wfw:comment>

    <slash:comments>4</slash:comments>
    <wfw:commentRss>http://www.khanh.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=51</wfw:commentRss>
    

    <author>nospam@example.com (Khanh Tran)</author>
    <content:encoded>
    Consider the following network setup (which I live with by the way):&lt;br /&gt;
&lt;br /&gt;
[main LAN] &amp;lt;-----------------------------------------------------&amp;gt; [remote datacenter LAN]&lt;br /&gt;
(192.168.0.0/16) &amp;lt;-------- leased point-to-point ------------&amp;gt; (192.168.0.0/16)&lt;br /&gt;
&lt;br /&gt;
Both locations also have separate connections to the public Internet with different public IP subnets.  However, for this discussion it&#039;s not necessary to have different public IP subnets.  Under normal circumstances the local LAN and the remote LAN are the same logical LAN via the magic of the leased point to point line.&lt;br /&gt;
&lt;br /&gt;
However, today that p2p connection broke (physically between the two locations, out of our control).  This outage lasted several hours, but brought out an interesting use of SSH tunneling for ethernet bridging aka Layer-2 VPN or tunneling.  For this to work, you&#039;ll need to have at least openSSH 4.3, a somewhat recent linux distro and the bridge-utils package for your distro.  This also assumes you have a basic knowledge of IP and the linux command line.  I use openSuSE 11.0, but this should work for almost any similar linux.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s say for example, the main location has a linux box (router1) with two NICs:&lt;br /&gt;
eth0: 1.1.1.1 (the public interface)&lt;br /&gt;
eth1: unassigned IP, but connected to your LAN (192.168.0.0/16 in my case)&lt;br /&gt;
&lt;br /&gt;
On the other box, at the remote location (router2) we also have two NICs:&lt;br /&gt;
eth0: 2.2.2.2 (the public interface)&lt;br /&gt;
eth1: unassigned IP, but connected to your LAN (192.168.0.0/16 in my case)&lt;br /&gt;
&lt;br /&gt;
Both routers should be set with it&#039;s public IP gateway as the default route, working DNS, etc.  You&#039;ll want to enable IP forwarding (consult your specific distro) and in my case, I disabled the distro&#039;s firewall.  On the remote side (consider it the &amp;quot;server&amp;quot;), you&#039;ll need to edit your sshd config to allow remote root logins and tunnels via SSH.&lt;br /&gt;
&lt;br /&gt;
/etc/ssh/sshd_config:&lt;br /&gt;
PermitRootLogin yes&lt;br /&gt;
PermitTunnel yes&lt;br /&gt;
&lt;br /&gt;
The root login is necessary to allow ssh to create the TAP devices for the bridge.  Because of that, you&#039;ll also want to add your local side&#039;s IPs to /etc/hosts.allow for the sshd process.  Now, on the local side (IP 1.1.1.1, which you might consider the client now) you&#039;ll want to &amp;quot;su root&amp;quot; and do the following:&lt;br /&gt;
&lt;br /&gt;
ssh -o Tunnel=ethernet -f  -w 0:0 2.2.2.2 true&lt;br /&gt;
&lt;br /&gt;
The -o switch sets client options on the command line.  We&#039;re specifying the tunnel type as ethernet (bridge) as opposed to point-to-point, which it&#039;ll do by default (for Layer-3 type VPN routing).  The -f switch just forks ssh in the background so we&#039;re returned to our &amp;quot;client&#039;s&amp;quot; command line and not remote&#039;s.  Since we&#039;ve done that, ssh will expect a remote command of some kind, so we&#039;ll just run &amp;quot;true&amp;quot;, effectively doing nothing.  The -w 0:0 switch actually sets up our tap devices on either side as tap0.  You can do -w 1:1 for tap1, -w 0:1 for tap0 on one side and tap1 on the other, etc.&lt;br /&gt;
&lt;br /&gt;
On both sides now, you should be able to see via ifconfig -a your eth0, eth1 and tap0 devices.  Make sure to call ifconfig with -a, or you&#039;ll only see interfaces with defined IPs.  Now that the two boxes are connected via the public Internet to each other via SSH, you can finally start to establish the bridge interface.  Now we&#039;ll use the bridge-utils binary to create a bridge interface called br0:&lt;br /&gt;
&lt;br /&gt;
brctl addbr br0&lt;br /&gt;
brctl addif br0 eth1&lt;br /&gt;
brctl addif br0 tap0&lt;br /&gt;
&lt;br /&gt;
Then you&#039;ll want to bring up all of your interfaces, if they aren&#039;t already:&lt;br /&gt;
&lt;br /&gt;
ifconfig eth1 up&lt;br /&gt;
ifconfig tap0 up&lt;br /&gt;
ifconfig br0 up&lt;br /&gt;
&lt;br /&gt;
Doing so will create the br0 interface, then bridge your eth1 and tap0 together and bring up the interfaces.  Don&#039;t forget, YOU MUST RUN THE brctl and ifconfig COMANDS ON BOTH SIDES!!!  Once you&#039;ve done this, you can check the remote side to see if it knows about the MAC addresses (from Layer-2) on the local side:&lt;br /&gt;
&lt;br /&gt;
brctl showmacs br0&lt;br /&gt;
&lt;br /&gt;
This will report on the known MAC address from the ARP protocol.  Depending on your network, you&#039;ll see a few or many.  Depending on your setup, you can get a DHCP address on the &amp;quot;other side&amp;quot; of the tunnel now or configure an appropriate IP and ping across as if you were on the same physical broadcast domain!&lt;br /&gt;
&lt;br /&gt;
As a final note, there&#039;s always a downside.  TCP encapsulated TCP is bad and will put a STRAIN on your hardware.  Make sure it&#039;s decent for the amount of anticipated traffic and use only as a quick and dirty solution or a temporary measure.  The following is good reading for why this is not a long-term, permanent solution:&lt;br /&gt;
&lt;a href=&quot;http://sites.inka.de/~W1011/devel/tcp-tcp.html&quot;&gt;http://sites.inka.de/~W1011/devel/tcp-tcp.html&lt;/a&gt; 
    </content:encoded>

    <pubDate>Tue, 18 Nov 2008 21:11:40 -0700</pubDate>
    <guid isPermaLink="false">http://www.khanh.net/blog/archives/51-guid.html</guid>
    
</item>
<item>
    <title>Star Wars Coffee!</title>
    <link>http://www.khanh.net/blog/archives/52-Star-Wars-Coffee!.html</link>
            <category>Randomz</category>
    
    <comments>http://www.khanh.net/blog/archives/52-Star-Wars-Coffee!.html#comments</comments>
    <wfw:comment>http://www.khanh.net/blog/wfwcomment.php?cid=52</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khanh.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=52</wfw:commentRss>
    

    <author>nospam@example.com (Khanh Tran)</author>
    <content:encoded>
    Star Wars mugs always make coffee taste good!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;img width=&quot;640&quot; hspace=&quot;5&quot; height=&quot;480&quot; border=&quot;0&quot; src=&quot;http://www.khanh.net/blog/uploads/IMAG0050.jpg&quot; /&gt; 
    </content:encoded>

    <pubDate>Fri, 21 Nov 2008 09:40:09 -0700</pubDate>
    <guid isPermaLink="false">http://www.khanh.net/blog/archives/52-guid.html</guid>
    
</item>
<item>
    <title>Finished Final Fantasy IV Again!</title>
    <link>http://www.khanh.net/blog/archives/53-Finished-Final-Fantasy-IV-Again!.html</link>
            <category>Gamez</category>
    
    <comments>http://www.khanh.net/blog/archives/53-Finished-Final-Fantasy-IV-Again!.html#comments</comments>
    <wfw:comment>http://www.khanh.net/blog/wfwcomment.php?cid=53</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khanh.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=53</wfw:commentRss>
    

    <author>nospam@example.com (Khanh Tran)</author>
    <content:encoded>
    If you don&#039;t keep up with the blog, I&#039;ve been re-living the Final Fantasy saga again.  I&#039;ve been playing them in order, and depending on how I feel after Final Fantasy VIII, I may stop or go on to Final Fantasy IX.&lt;br /&gt;
&lt;br /&gt;
In any event, it took me nearly a year of on-again-off-again playing (totaling just under 43 hours of game time):&lt;br /&gt;
&lt;br /&gt;
 &lt;img width=&quot;360&quot; hspace=&quot;5&quot; height=&quot;240&quot; border=&quot;0&quot; src=&quot;http://www.khanh.net/blog/uploads/FF_Screenshots/FF-IV-sav.jpg&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
This story was one of my favorites too.  Final Fantasy IV (orginally released as Final Fantasy II on SNES in America) was the first to have all of the original elements of the Final Fantasy we know and love.  It&#039;s the five-member party, the near-active battle system, classic music, summons, fat chocobo, etc.  Yes, and this is the one where you go to the moon.  Contrary to popular belief, you don&#039;t have to have a level 70 party to complete it.  I was fine with my mid-60 level party.  Of course, higher would have helped more, but you can defeat Zeromus just fine.  As you can see, in addition to Cecil, I brought along Palom, Porom, Cid, and Yang.  Yang just uses his &amp;quot;power&amp;quot; for double attacks.  Cecil just attacks since his white mage curaga is useless for healing even one person on a turn.  Which means, you&#039;ll rely on Porom&#039;s more powerful curaja or full-life (instead of wasting a turn on a phoenix down, then curing).  Next to Yang&#039;s attack, Cid&#039;s standard attack was important.  Cecil is still fairly weak comparatively in the attack department.  He&#039;s your standard RPG main character (who&#039;s always a knight or a fighter) so you have no choice but to bring him along in this case.  The majority of your attack will be dealt by Palom.  You could have brough Rydia and her summonses, but whatever.  Palom has meteor which is probably just as powerful, although not as pretty to watch.  Palom will hit for 9999 hit points, but your party will be countered with similar magic from Zeromus.  Watch out for that Big Bang attack of his!&lt;br /&gt;
&lt;br /&gt;
Now on to Final Fantasy V! 
    </content:encoded>

    <pubDate>Sun, 11 Jan 2009 16:03:49 -0700</pubDate>
    <guid isPermaLink="false">http://www.khanh.net/blog/archives/53-guid.html</guid>
    
</item>
<item>
    <title>eh, wordle...</title>
    <link>http://www.khanh.net/blog/archives/54-eh,-wordle....html</link>
            <category>Internet/Networking</category>
    
    <comments>http://www.khanh.net/blog/archives/54-eh,-wordle....html#comments</comments>
    <wfw:comment>http://www.khanh.net/blog/wfwcomment.php?cid=54</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khanh.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=54</wfw:commentRss>
    

    <author>nospam@example.com (Khanh Tran)</author>
    <content:encoded>
    Wordle generated and interesting graphic of the blog today...&lt;br /&gt;
&lt;br /&gt;
&lt;a title=&quot;Wordle: Untitled&quot; href=&quot;http://www.wordle.net/gallery/wrdl/504466/Untitled&quot;&gt; &lt;img style=&quot;padding: 4px; border: 1px solid #dddddd;&quot; alt=&quot;Wordle: Untitled&quot; src=&quot;http://www.wordle.net/thumb/wrdl/504466/Untitled&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If you look at it hard enough, it&#039;s slightly 3D!&lt;br /&gt;
&lt;br /&gt;
Then there was this, more relaxed graphic:&lt;br /&gt;
&lt;br /&gt;
&lt;a title=&quot;Wordle: Untitled&quot; href=&quot;http://www.wordle.net/gallery/wrdl/504491/Untitled&quot;&gt; &lt;img style=&quot;padding: 4px; border: 1px solid #dddddd;&quot; alt=&quot;Wordle: Untitled&quot; src=&quot;http://www.wordle.net/thumb/wrdl/504491/Untitled&quot; /&gt;&lt;/a&gt; 
    </content:encoded>

    <pubDate>Wed, 04 Feb 2009 11:36:47 -0700</pubDate>
    <guid isPermaLink="false">http://www.khanh.net/blog/archives/54-guid.html</guid>
    
</item>
<item>
    <title>Super Mario Bros Fish Tank</title>
    <link>http://www.khanh.net/blog/archives/55-Super-Mario-Bros-Fish-Tank.html</link>
            <category>Randomz</category>
    
    <comments>http://www.khanh.net/blog/archives/55-Super-Mario-Bros-Fish-Tank.html#comments</comments>
    <wfw:comment>http://www.khanh.net/blog/wfwcomment.php?cid=55</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.khanh.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=55</wfw:commentRss>
    

    <author>nospam@example.com (Khanh Tran)</author>
    <content:encoded>
    Well, not quite totally a Mario Bros fish tank.  However, I think the backdrop I made came out awesome.&lt;br /&gt;
&lt;br /&gt;
&lt;img width=&quot;800&quot; hspace=&quot;5&quot; border=&quot;0&quot; src=&quot;http://www.khanh.net/blog/uploads/SMBTank/100_2405.JPG&quot; /&gt; &lt;img width=&quot;800&quot; hspace=&quot;5&quot; border=&quot;0&quot; src=&quot;http://www.khanh.net/blog/uploads/SMBTank/100_2401.JPG&quot; /&gt; &lt;img width=&quot;800&quot; hspace=&quot;5&quot; border=&quot;0&quot; src=&quot;http://www.khanh.net/blog/uploads/SMBTank/100_2400.JPG&quot; /&gt; &lt;img width=&quot;800&quot; hspace=&quot;5&quot; border=&quot;0&quot; src=&quot;http://www.khanh.net/blog/uploads/SMBTank/100_2399.JPG&quot; /&gt; &lt;img width=&quot;800&quot; hspace=&quot;5&quot; border=&quot;0&quot; src=&quot;http://www.khanh.net/blog/uploads/SMBTank/100_2397.JPG&quot; /&gt; &lt;img width=&quot;800&quot; hspace=&quot;5&quot; border=&quot;0&quot; src=&quot;http://www.khanh.net/blog/uploads/SMBTank/100_2395.JPG&quot; /&gt; 
    </content:encoded>

    <pubDate>Sun, 08 Feb 2009 20:42:44 -0700</pubDate>
    <guid isPermaLink="false">http://www.khanh.net/blog/archives/55-guid.html</guid>
    
</item>
<item>
    <title>AT&amp;T 3G Speed tests</title>
    <link>http://www.khanh.net/blog/archives/56-ATT-3G-Speed-tests.html</link>
            <category>Hardware</category>
            <category>Internet/Networking</category>
    
    <comments>http://www.khanh.net/blog/archives/56-ATT-3G-Speed-tests.html#comments</comments>
    <wfw:comment>http://www.khanh.net/blog/wfwcomment.php?cid=56</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khanh.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=56</wfw:commentRss>
    

    <author>nospam@example.com (Khanh Tran)</author>
    <content:encoded>
    I haven&#039;t been writing much lately due to a busy schedule!&lt;br /&gt;
&lt;br /&gt;
Anyway, I recently borrowed one of those AT&amp;amp;T 3G LaptopConnect cards.  It&#039;s a Sierra Wireless AirCard 881.  Compared to the speeds I&#039;ve been getting with my AT&amp;amp;T Tilt (tethered via USB), it didn&#039;t hold up as well as I expected:&lt;br /&gt;
&lt;br /&gt;
AT&amp;amp;T Tilt (HTC) tethered via USB:&lt;br /&gt;
&lt;a href=&quot;http://www.speedtest.net&quot;&gt;&lt;img src=&quot;http://www.speedtest.net/result/433778379.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
AT&amp;amp;T Sierra Wireless LaptopConnect Card (AirCard 881):&lt;br /&gt;
&lt;a href=&quot;http://www.speedtest.net&quot;&gt;&lt;img src=&quot;http://www.speedtest.net/result/434746909.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And although this isn&#039;t really for comparison to the AT&amp;amp;T test, it seems Cablevision (Optimum Online) has been steadily increasing my bandwidth at home, even out in the middle of nowhere!&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.speedtest.net&quot;&gt;&lt;img src=&quot;http://www.speedtest.net/result/434751321.png&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;http://www.speedtest.net&quot;&gt;&lt;img src=&quot;http://www.speedtest.net/result/273097096.png&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;http://www.speedtest.net&quot;&gt;&lt;img src=&quot;http://www.speedtest.net/result/47552383.png&quot; /&gt;&lt;/a&gt; 
    </content:encoded>

    <pubDate>Sun, 22 Mar 2009 12:33:22 -0700</pubDate>
    <guid isPermaLink="false">http://www.khanh.net/blog/archives/56-guid.html</guid>
    
</item>
<item>
    <title>burning files larger than 4GB with linux!</title>
    <link>http://www.khanh.net/blog/archives/57-burning-files-larger-than-4GB-with-linux!.html</link>
            <category>Hardware</category>
            <category>Softwarez</category>
    
    <comments>http://www.khanh.net/blog/archives/57-burning-files-larger-than-4GB-with-linux!.html#comments</comments>
    <wfw:comment>http://www.khanh.net/blog/wfwcomment.php?cid=57</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khanh.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=57</wfw:commentRss>
    

    <author>nospam@example.com (Khanh Tran)</author>
    <content:encoded>
    Burning files larger than 4GB seems to be a tricky thing in most programs.  Lets say for example, you have a DV file that&#039;s 6GB.  You should be able to fit it on a dual layer DVD without issue, but most burning programs fail to handle it.&lt;br /&gt;
&lt;br /&gt;
Linux seems to work wonders for me on the command line.  If I figure out something in Mac or Windows, I&#039;ll let you know, but I don&#039;t have access to a dual layer burner on either of those OSes at this time.&lt;br /&gt;
&lt;br /&gt;
In Linux, you can make the appropriate ISO image with either:&lt;br /&gt;
&lt;br /&gt;
mkisofs -r -R -J -l -allow-limited-size -udf -o largefile.iso largefile.ext&lt;br /&gt;
&lt;br /&gt;
or use:&lt;br /&gt;
&lt;br /&gt;
genisoimage -allow-limited-size -udf -o largefile.iso largefile.ext&lt;br /&gt;
&lt;br /&gt;
Once the ISO is generated, you could burn with growisofs -Z /dev/dvd=largefile.iso or move the ISO to Mac or Windows... 
    </content:encoded>

    <pubDate>Fri, 01 May 2009 19:51:18 -0700</pubDate>
    <guid isPermaLink="false">http://www.khanh.net/blog/archives/57-guid.html</guid>
    
</item>
<item>
    <title>enabling OS X screen sharing remotely in Terminal</title>
    <link>http://www.khanh.net/blog/archives/58-enabling-OS-X-screen-sharing-remotely-in-Terminal.html</link>
            <category>Apple/Mac</category>
            <category>Softwarez</category>
    
    <comments>http://www.khanh.net/blog/archives/58-enabling-OS-X-screen-sharing-remotely-in-Terminal.html#comments</comments>
    <wfw:comment>http://www.khanh.net/blog/wfwcomment.php?cid=58</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khanh.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=58</wfw:commentRss>
    

    <author>nospam@example.com (Khanh Tran)</author>
    <content:encoded>
    short and simple for 10.5 (Leopard)&lt;br /&gt;
&lt;br /&gt;
sudo sh -c &amp;quot;/bin/echo -n enabled &amp;gt; /Library/Preferences/com.apple.ScreenSharing.launchd&amp;quot;&lt;br /&gt;
&lt;br /&gt;
slightly different for 10.6 (Snow Leopard)&lt;br /&gt;
&lt;br /&gt;
sudo sh -c &amp;quot;/bin/echo -n enabled &amp;gt; /private/etc/ScreenSharing.launchd&amp;quot;&lt;br /&gt;
&lt;br /&gt;
rm the file to disable it.  launchd polls regularyly, so after you &amp;quot;enable&amp;quot; the service, it&#039;ll be loaded by the time you check for the open port with netstat -an 
    </content:encoded>

    <pubDate>Thu, 08 Oct 2009 19:40:56 -0700</pubDate>
    <guid isPermaLink="false">http://www.khanh.net/blog/archives/58-guid.html</guid>
    
</item>
<item>
    <title>disabling NetBIOS over TCP/IP in Windows via BIND DHCPD</title>
    <link>http://www.khanh.net/blog/archives/59-disabling-NetBIOS-over-TCPIP-in-Windows-via-BIND-DHCPD.html</link>
            <category>Internet/Networking</category>
            <category>Linux</category>
            <category>Windows</category>
    
    <comments>http://www.khanh.net/blog/archives/59-disabling-NetBIOS-over-TCPIP-in-Windows-via-BIND-DHCPD.html#comments</comments>
    <wfw:comment>http://www.khanh.net/blog/wfwcomment.php?cid=59</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khanh.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=59</wfw:commentRss>
    

    <author>nospam@example.com (Khanh Tran)</author>
    <content:encoded>
    This is scarce information on the Internet, so I&#039;m reposting!&lt;br /&gt;
&lt;br /&gt;
NetBIOS can be disabled now that it&#039;s fairly ancient networking.  You&#039;re using TCP/IP and DNS right?&lt;br /&gt;
I don&#039;t use Microsoft DHCP or DNS servers, so finding the information to set this is hard to come by.  To disable NetBIOS over TCP/IP in an ISC DHCP server, add the following to your dhcpd.conf:&lt;br /&gt;
&lt;br /&gt;
option vendor-encapsulated-options 01:04:00:00:00:02;&lt;br /&gt;
&lt;br /&gt;
It&#039;s that easy! 
    </content:encoded>

    <pubDate>Thu, 27 May 2010 08:31:40 -0700</pubDate>
    <guid isPermaLink="false">http://www.khanh.net/blog/archives/59-guid.html</guid>
    
</item>
<item>
    <title>Exchange PowerShell script to sync contacts in an OU with a CSV file</title>
    <link>http://www.khanh.net/blog/archives/60-Exchange-PowerShell-script-to-sync-contacts-in-an-OU-with-a-CSV-file.html</link>
            <category>Windows</category>
    
    <comments>http://www.khanh.net/blog/archives/60-Exchange-PowerShell-script-to-sync-contacts-in-an-OU-with-a-CSV-file.html#comments</comments>
    <wfw:comment>http://www.khanh.net/blog/wfwcomment.php?cid=60</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.khanh.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=60</wfw:commentRss>
    

    <author>nospam@example.com (Khanh Tran)</author>
    <content:encoded>
    This was an extremely difficult topic to find information on, but very easy to write in Windows PowerShell.  It seems a lot of others are syncing contacts in OUs across forests for multi-company organizations or similar.  In my case, I&#039;m the email admin at a college and need to populate contacts in our Exchange GAL from a CSV file.  We use CSV imports due to the fact that we use multiple mail platforms and export address information from our ERP/SIS system for students.&lt;br /&gt;
&lt;br /&gt;
My old process was to use CSVDE to import the CSV file into the ActiveDirectory OU &amp;quot;Students&amp;quot;.  However, this process required that I delete all 1,800 or so contacts and then reimport.  This was not very elegant.  So, after a lot of fruitless searching, I decided to write this script to handle our Student OU that contains only contact objects for the Exchange GAL.  &lt;br /&gt;
&lt;br /&gt;
This script first checks the existing contacts, based on email address, against the CSV file.  If they exist in the file, great, do nothing, otherwise, delete the contact in the OU.  Next, if the file has new contacts to import, import them!  The script has two variables up in the &amp;quot;customizations&amp;quot; section that you can change for your specific OU and of course, the path to your CSV file&#039;s location.  The structure of the CSV file is:&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;displayName,mail,givenName,sn,mailNickname,Company&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
The PowerShell (.ps1) script is below for anyone who could benefit from this.  Make sure you run it as a user that has access to the OU you&#039;re syncing and enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
#&lt;br /&gt;
#Exchange 2008 Contact sync with CSV file&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#Set customizations here&lt;br /&gt;
$syncOU=&amp;quot;Students&amp;quot;&lt;br /&gt;
$importFile=&amp;quot;C:\temp\ExchangeImport.csv&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#Global Variables&lt;br /&gt;
$removeCounter=0&lt;br /&gt;
$addCounter=0&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#Check existing contacts in OU against CSV file, delete if not found&lt;br /&gt;
write-host &amp;quot;Checking existing contacts for deletions...&amp;quot;&lt;br /&gt;
$existingContacts = get-recipient -resultSize unlimited -organizationalUnit $syncOU -recipientType MailContact | &lt;br /&gt;
    select -expand EmailAddresses | %{$_.smtpAddress}&lt;br /&gt;
$existingContacts | forEach-object -process {&lt;br /&gt;
    if ($_ -ne $NULL) {&lt;br /&gt;
        $i = $_&lt;br /&gt;
        if (import-csv $importFile | where-object {$_.mail -eq $i}) &lt;br /&gt;
            {}&lt;br /&gt;
        else &lt;br /&gt;
            {&lt;br /&gt;
            write-host &amp;quot;Removing contact: &amp;quot; $i&lt;br /&gt;
            Remove-MailContact -Identity $i -Confirm:$false&lt;br /&gt;
            $removeCounter++&lt;br /&gt;
            }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#Check CSV file for new addresses against OU, create if not found&lt;br /&gt;
write-host &amp;quot;Checking CSV file for new contacts...&amp;quot;&lt;br /&gt;
import-csv $importFile | &lt;br /&gt;
	forEach-object -process {&lt;br /&gt;
		if (get-contact -erroraction silentlycontinue -organizationalUnit $syncOU $_.mail) &lt;br /&gt;
			{} &lt;br /&gt;
		else &lt;br /&gt;
			{&lt;br /&gt;
            write-host &amp;quot;Adding contact from CSV file:&amp;quot;&lt;br /&gt;
            new-mailContact -Name $&lt;u&gt;.displayName -FirstName $&lt;/u&gt;.GivenName -LastName $_.sn `&lt;br /&gt;
                -Alias $&lt;u&gt;.mailNickname -ExternalEmailAddress $&lt;/u&gt;.mail `&lt;br /&gt;
                -PrimarySmtpAddress $_.mail -OrganizationalUnit $syncOU&lt;br /&gt;
            set-contact -identity $&lt;u&gt;.mailNickname -WindowsEmailAddress $&lt;/u&gt;.mail -Company &amp;quot;$syncOU&amp;quot;&lt;br /&gt;
            $addCounter++&lt;br /&gt;
            }&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
#&lt;br /&gt;
#Statistics Output&lt;br /&gt;
write-host &amp;quot;Attempted to delete &amp;quot; $removeCounter &amp;quot; contacts from the &amp;quot; $syncOU &amp;quot; OU.&amp;quot;&lt;br /&gt;
write-host &amp;quot;Attempted to add &amp;quot; $addCounter &amp;quot; contacts to the &amp;quot; $syncOU &amp;quot; OU.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/code&gt; 
    </content:encoded>

    <pubDate>Fri, 11 Mar 2011 10:37:00 -0700</pubDate>
    <guid isPermaLink="false">http://www.khanh.net/blog/archives/60-guid.html</guid>
    
</item>
<item>
    <title>NOBODY puts Newsstand in a folder!</title>
    <link>http://www.khanh.net/blog/archives/62-NOBODY-puts-Newsstand-in-a-folder!.html</link>
            <category>Apple/Mac</category>
            <category>Mobile</category>
    
    <comments>http://www.khanh.net/blog/archives/62-NOBODY-puts-Newsstand-in-a-folder!.html#comments</comments>
    <wfw:comment>http://www.khanh.net/blog/wfwcomment.php?cid=62</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khanh.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=62</wfw:commentRss>
    

    <author>nospam@example.com (Khanh Tran)</author>
    <content:encoded>
    I just updated to IOS5 on my iPhone 3GS. &amp;#160;Everything seems to work great so far, but I guess we can&#039;t put the Newsstand app in a folder? &amp;#160;Is this true? &amp;#160;Anyone else have this problem? 
    </content:encoded>

    <pubDate>Wed, 12 Oct 2011 19:36:56 -0700</pubDate>
    <guid isPermaLink="false">http://www.khanh.net/blog/archives/62-guid.html</guid>
    
</item>
<item>
    <title>Installing Windows XP on a Dell Inspiron 1525 (downgrading from Windows Vista)</title>
    <link>http://www.khanh.net/blog/archives/27-Installing-Windows-XP-on-a-Dell-Inspiron-1525-downgrading-from-Windows-Vista.html</link>
            <category>Hardware</category>
            <category>Windows</category>
    
    <comments>http://www.khanh.net/blog/archives/27-Installing-Windows-XP-on-a-Dell-Inspiron-1525-downgrading-from-Windows-Vista.html#comments</comments>
    <wfw:comment>http://www.khanh.net/blog/wfwcomment.php?cid=27</wfw:comment>

    <slash:comments>143</slash:comments>
    <wfw:commentRss>http://www.khanh.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=27</wfw:commentRss>
    

    <author>nospam@example.com (Khanh Tran)</author>
    <content:encoded>
    I recently came by a new Dell Inspiron 1525 that someone I know purchased.  It originally came with Windows Vista Home Premium loaded from the factory, but the owner (like many others) preferred Windows XP Professional.  With a little help from the links below, you can install all of the necessary drivers needed to get this laptop working with Windows XP!&lt;br /&gt;
&lt;br /&gt;
First off, you&#039;ll need the SATA drivers on a USB floppy.  There are other means of satisfying the Windows XP installer&#039;s lack of SATA drive support, but you&#039;re own your own past this link:&lt;br /&gt;
&lt;a href=&quot;http://support.dell.com/support/downloads/download.aspx?c=us&amp;amp;l=en&amp;amp;s=gen&amp;amp;releaseid=R166200&amp;amp;SystemID=INS_PNT_PM_1525&amp;amp;servicetag=&amp;amp;os=WLH&amp;amp;osl=en&amp;amp;deviceid=11530&amp;amp;devlib=0&amp;amp;typecnt=0&amp;amp;vercnt=1&amp;amp;catid=-1&amp;amp;impid=-1&amp;amp;formatcnt=1&amp;amp;libid=41&amp;amp;fileid=224400&quot;&gt;SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 02)&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Once XP is installed, I went straight for the wireless card driver:&lt;br /&gt;
&lt;a href=&quot;http://support.us.dell.com/support/downloads/download.aspx?c=us&amp;amp;l=en&amp;amp;s=gen&amp;amp;releaseid=R174291&amp;amp;formatcnt=1&amp;amp;libid=0&amp;amp;fileid=236819&quot;&gt;Dell Wireless 1390 (Broadcom BCM 4311)&lt;/a&gt; &lt;a href=&quot;http://windowsupdate.microsoft.com&quot;&gt;Windows Update&lt;/a&gt; has the Creative Labs Webcam (built in to the top of the screen) and the Marvell Yukon 88E8040 PCI-E Fast Ethernet Controller drivers.  If you need the wired ethernet controller driver before the wireless, you can try the &lt;a href=&quot;http://www.marvell.com/drivers/search.do&quot;&gt;Marvell&lt;/a&gt; site and search for the Yukon family driver.  It will have the driver, plus other utilities if you need support for things like 802.1q VLANs, etc.&lt;br /&gt;
&lt;br /&gt;
Finish out the drivers, chipsets, and Dell hotkey support with:&lt;br /&gt;
&lt;a href=&quot;http://support.dell.com/support/topics/global.aspx/support/downloads/en/downloads_splash?c=us&amp;amp;cs=19&amp;amp;l=en&amp;amp;s=dhs&amp;amp;~mode=popup&amp;amp;file=235761&quot;&gt;SIGMATEL STAC 92XX C-Major HD Audio&lt;/a&gt; &lt;a href=&quot;http://support.dell.com/support/downloads/download.aspx?c=us&amp;amp;l=en&amp;amp;s=gen&amp;amp;releaseid=R153997&amp;amp;SystemID=INS_PNT_PM_1520&amp;amp;servicetag=&amp;amp;os=WW1&amp;amp;osl=en&amp;amp;deviceid=1134&amp;amp;devlib=0&amp;amp;typecnt=0&amp;amp;vercnt=1&amp;amp;catid=-1&amp;amp;impid=-1&amp;amp;formatcnt=1&amp;amp;libid=27&amp;amp;fileid=205326&quot;&gt;Chipset&lt;/a&gt; &lt;a href=&quot;http://ftp.us.dell.com/comm/R147115.EXE&quot;&gt;Conexant D330,HDA,MDC,v.92,modem&lt;/a&gt; &lt;a href=&quot;http://support.dell.com/support/topics/global.aspx/support/downloads/en/downloads_splash?c=us&amp;amp;l=en&amp;amp;s=gen&amp;amp;~mode=popup&amp;amp;file=238839&quot;&gt;Touchpad&lt;/a&gt; &lt;a href=&quot;http://support.dell.com/support/downloads/download.aspx?c=us&amp;amp;l=en&amp;amp;s=gen&amp;amp;releaseid=R173064&amp;amp;SystemID=INS_PNT_PM_1520&amp;amp;servicetag=&amp;amp;os=WW1&amp;amp;osl=en&amp;amp;deviceid=12618&amp;amp;devlib=0&amp;amp;typecnt=0&amp;amp;vercnt=2&amp;amp;catid=-1&amp;amp;impid=-1&amp;amp;formatcnt=1&amp;amp;libid=6&amp;amp;fileid=235302&quot;&gt;Intel GM965 (Video Card)&lt;/a&gt; &lt;a href=&quot;http://support.dell.com/support/downloads/download.aspx?c=us&amp;amp;l=en&amp;amp;s=gen&amp;amp;releaseid=R161139&amp;amp;SystemID=INS_PNT_PM_1520&amp;amp;servicetag=&amp;amp;os=WW1&amp;amp;osl=en&amp;amp;deviceid=2861&amp;amp;devlib=0&amp;amp;typecnt=0&amp;amp;vercnt=1&amp;amp;catid=-1&amp;amp;impid=-1&amp;amp;formatcnt=1&amp;amp;libid=25&amp;amp;fileid=215796&quot;&gt;Dell Quickset&lt;/a&gt; &lt;a href=&quot;http://support.dell.com/support/downloads/download.aspx?c=us&amp;amp;l=en&amp;amp;s=gen&amp;amp;releaseid=R166188&amp;amp;SystemID=INS_PNT_PM_1525&amp;amp;servicetag=BVTKMD1&amp;amp;os=WLH&amp;amp;osl=en&amp;amp;deviceid=13405&amp;amp;devlib=0&amp;amp;typecnt=0&amp;amp;vercnt=1&amp;amp;catid=-1&amp;amp;impid=-1&amp;amp;formatcnt=1&amp;amp;libid=27&amp;amp;fileid=224384&quot;&gt;Ricoh R5C833 (Flash Drive controller)&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
This particular Dell Inspiron didn&#039;t have bluetooth installed (the BIOS showed no card, even though there was an LED for it), but if your&#039;s has the Dell Wireless 355 Bluetooth Module, you&#039;ll need the &lt;a href=&quot;http://support.us.dell.com/support/downloads/download.aspx?c=us&amp;amp;l=en&amp;amp;s=gen&amp;amp;releaseid=R159805&amp;amp;formatcnt=1&amp;amp;libid=0&amp;amp;fileid=213714&quot;&gt;XP Downgrade patch to enable Bluetooth&lt;/a&gt; and then the actual &lt;a href=&quot;http://support.us.dell.com/support/downloads/download.aspx?c=us&amp;amp;l=en&amp;amp;s=gen&amp;amp;releaseid=R161378&amp;amp;formatcnt=1&amp;amp;libid=0&amp;amp;fileid=216131&quot;&gt;Windows XP Driver&lt;/a&gt; 
    </content:encoded>

    <pubDate>Thu, 07 Feb 2008 21:36:46 -0700</pubDate>
    <guid isPermaLink="false">http://www.khanh.net/blog/archives/27-guid.html</guid>
    
</item>
<item>
    <title>more MythTV and Intel G33 video performance</title>
    <link>http://www.khanh.net/blog/archives/50-more-MythTV-and-Intel-G33-video-performance.html</link>
            <category>Linux</category>
            <category>Softwarez</category>
            <category>Video</category>
    
    <comments>http://www.khanh.net/blog/archives/50-more-MythTV-and-Intel-G33-video-performance.html#comments</comments>
    <wfw:comment>http://www.khanh.net/blog/wfwcomment.php?cid=50</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khanh.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=50</wfw:commentRss>
    

    <author>nospam@example.com (Khanh Tran)</author>
    <content:encoded>
    Apparently the key to HD playback on MythTV using the Intel integrated X3100 video card (G33 chipset) is not the &quot;extra audio buffering&quot; setting.  In a previous post, I enabled this setting and suddenly my HD video stopped stuttering.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, that wasn&#039;t totally the solution.  When I started playing back my homemade DVDs (from iDVD), I noticed they were all playing back audio fine, but the video was choppy, like the frames were dropping.  The audio tracks on these DVDs were uncompressed PCM.  Anything else (like AC3) would be fine.  The issue was that I was using OSS for sound (via /dev/dsp).&lt;br /&gt;
&lt;br /&gt;
The trick here is to use ALSA.  Changing the sound output in MythTV to ALSA and undoing the &quot;extra audio buffering&quot; yielded HD playback and smooth DVDs with PCM audio.&lt;br /&gt;
&lt;br /&gt;
So far, I can get the Intel X3100 to perform well with MPEG-2 HD (720p and 1080i) content, DVDs (with greedyhdeint x2) and MPEG-4/AAC video at HD frame sizes but low bitrates.  Unfortunately, h.264 video from the HD PVR 1212 with 720p frame sizes at high bitrates (the 7, 10 and 13.5 samples found &lt;a href=&quot;http://www.mythtv.org/wiki/index.php/Hauppauge_HD-PVR&quot;&gt;here&lt;/a&gt;) still peg my Core 2 Duo 2.53GHz at 102%+ 
    </content:encoded>

    <pubDate>Fri, 07 Nov 2008 20:30:10 -0700</pubDate>
    <guid isPermaLink="false">http://www.khanh.net/blog/archives/50-guid.html</guid>
    
</item>
<item>
    <title>compare a burned dvd or cd with iso file in linux</title>
    <link>http://www.khanh.net/blog/archives/61-compare-a-burned-dvd-or-cd-with-iso-file-in-linux.html</link>
            <category>Linux</category>
    
    <comments>http://www.khanh.net/blog/archives/61-compare-a-burned-dvd-or-cd-with-iso-file-in-linux.html#comments</comments>
    <wfw:comment>http://www.khanh.net/blog/wfwcomment.php?cid=61</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.khanh.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=61</wfw:commentRss>
    

    <author>nospam@example.com (Khanh Tran)</author>
    <content:encoded>
    This is something I&#039;ve been meaning to write for a while.  By using this script and md5sum, you can verify that data burned to CD/DVD matches the original ISO file in Linux.  It&#039;s a bit tricky, as it&#039;s not as simple as just running md5sum against /dev/dvd (the whole disc).  That&#039;s because more than just the data in the ISO is written to the media (finalizing the disc, etc.).&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
#Script to check md5sum of iso file against disc in drive&lt;br /&gt;
#DEPENDS on md5sum existing in path&lt;br /&gt;
#&lt;br /&gt;
#script should be called like:&lt;br /&gt;
# ./md5check.sh file.iso /dev/dvd&lt;br /&gt;
&lt;br /&gt;
ckFile=$1&lt;br /&gt;
ckDrv=$2&lt;br /&gt;
&lt;br /&gt;
echo &quot;Getting file extents...&quot;&lt;br /&gt;
fext=$(( $(ls -l $ckFile | awk &#039;{ print $5 }&#039;) / 2048 ))&lt;br /&gt;
&lt;br /&gt;
echo &quot;Getting md5sum of file...&quot;&lt;br /&gt;
fileMD5sum=`cat $ckFile | md5sum`&lt;br /&gt;
&lt;br /&gt;
echo &quot;Getting md5sum of disc in drive...&quot;&lt;br /&gt;
drvMD5sum=`dd if=$ckDrv bs=2048 count=$fext | md5sum`&lt;br /&gt;
&lt;br /&gt;
echo &quot;File md5sum:  &quot; $fileMD5sum&lt;br /&gt;
echo &quot;Drive md5sum: &quot; $drvMD5sum&lt;br /&gt;
&lt;br /&gt;
if [ &quot;$fileMD5sum&quot; = &quot;$drvMD5sum&quot; ]; then&lt;br /&gt;
        echo &quot; &quot;&lt;br /&gt;
        echo &quot;md5sum of&quot; $ckFile &quot;and&quot; $ckDrv &quot;match.&quot;&lt;br /&gt;
        echo &quot; &quot;&lt;br /&gt;
else&lt;br /&gt;
        echo &quot; &quot;&lt;br /&gt;
        echo &quot;********************************&quot;&lt;br /&gt;
        echo &quot;********&lt;strong&gt;  WARNING!!! **********&quot;&lt;br /&gt;
        echo &quot;********************************&quot;&lt;br /&gt;
        echo &quot;**&lt;/strong&gt; md5sum DOES NOT MATCH!!! ***&quot;&lt;br /&gt;
        echo &quot;********************************&quot;&lt;br /&gt;
        echo &quot;*********  WARNING!!! **********&quot;&lt;br /&gt;
        echo &quot;********************************&quot;&lt;br /&gt;
        echo &quot; &quot;&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;/blockquote&gt; 
    </content:encoded>

    <pubDate>Sat, 26 Mar 2011 18:06:30 -0700</pubDate>
    <guid isPermaLink="false">http://www.khanh.net/blog/archives/61-guid.html</guid>
    
</item>

</channel>
</rss>
