<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Adam Monsen &#187; linux</title> <atom:link href="http://adammonsen.com/post/tag/linux/feed" rel="self" type="application/rss+xml" /><link>http://adammonsen.com</link> <description></description> <lastBuildDate>Thu, 03 May 2012 18:11:34 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Debugging web tests on remote servers</title><link>http://adammonsen.com/post/717?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=debugging-web-tests-on-remote-servers</link> <comments>http://adammonsen.com/post/717#comments</comments> <pubDate>Tue, 26 Jul 2011 15:01:42 +0000</pubDate> <dc:creator>adam</dc:creator> <category><![CDATA[Default]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[programming]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[Work]]></category><guid isPermaLink="false">http://adammonsen.com/?p=717</guid> <description><![CDATA[I run &#8220;web tests&#8221; on a remote server. I use Selenium to act like a person interacting with a website, viewing and entering data. Selenium is pretty awesome, it can drive a real web browser like Firefox. Even better is to have these web tests run automatically every time I commit code. I use Jenkins [...]]]></description> <content:encoded><![CDATA[<p>I run &#8220;web tests&#8221; on a remote server. I use <a href="http://seleniumhq.org">Selenium</a> to act like a person interacting with a website, viewing and entering data. Selenium is pretty awesome, it can drive a real web browser like Firefox.</p><p>Even better is to have these web tests run automatically every time I commit code. I use <a href="http://jenkins-ci.org">Jenkins</a> for this. Jenkins even fires up a headless desktop so Selenium can run Firefox.</p><p>When a web test breaks (especially in some way I can&#8217;t reproduce on my local desktop), sometimes it helps to actually see what Jenkins sees as it runs the test. Here&#8217;s a quick guide for doing so on an Ubuntu GNU/Linux server.</p><ol><li>Connect to the remote server using SSH. Install VNC server: <br/><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> vnc4-server</pre></div></div></li><li>On the remote server, become the user tests run as. For example: <br/><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">su</span> - ci</pre></div></div></li><li>Set a password for the VNC server using the <code>vncpasswd</code> command.</li><li>Start headless X server by running <code>vncserver</code>. Note the given display. If <code>example.com:1</code> is included in the output of <code>vncserver</code>, the display is <code>:1</code>.</li><li><p>Figure out which port the VNC server is using. I usually do something like</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">netstat</span> <span style="color: #660033;">-nape</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">'^tcp.*LISTEN.*vnc.*'</span></pre></div></div><p> Here&#8217;s some example output:</p><div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">tcp        0      0 0.0.0.0:6001            0.0.0.0:*               LISTEN      107        3099855     13233/Xvnc4     
tcp6       0      0 :::5901                 :::*                    LISTEN      107        3099858     13233/Xvnc4</pre></div></div><p>By trial and error, I figured out that 5901 was the port I should use.</p></li><li><p>Port-forward VNC to your local machine.</p><ol><li>Disconnect from the server.</li><li>Reconnect, including <code>-L10000:localhost:5901</code> on your SSH command line.</li><li>Leave this connection open.</li></ol></li><li><p>On your local machine, connect a VNC <em>client</em> to localhost:10000. An X terminal should be displayed.</p></li></li><li><p>In the X terminal, run your web tests.</p></li><li> When finished debugging, kill the X server using the display noted earlier.<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">vncserver <span style="color: #660033;">-kill</span> :<span style="color: #000000;">1</span></pre></div></div></li></ol> ]]></content:encoded> <wfw:commentRss>http://adammonsen.com/post/717/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Passwordless SSH and other Tutorials</title><link>http://adammonsen.com/post/412?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=passwordless-ssh-and-other-tutorials</link> <comments>http://adammonsen.com/post/412#comments</comments> <pubDate>Fri, 09 Jan 2009 21:00:55 +0000</pubDate> <dc:creator>adam</dc:creator> <category><![CDATA[Default]]></category> <category><![CDATA[admin]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[vim]]></category><guid isPermaLink="false">http://adammonsen.com/?p=412</guid> <description><![CDATA[New to GNU/Linux? Trying to get started with the same tools used by the pros? Check out linuxconfig.org. I helped them with their Passwordless SSH tutorial, and I like the screencasts in the Vim tutorial.]]></description> <content:encoded><![CDATA[<p>New to GNU/Linux? Trying to get started with the same tools used by the pros? Check out <a href="http://linuxconfig.org">linuxconfig.org</a>.</p><p>I helped them with their <a href="http://linuxconfig.org/Passwordless_ssh">Passwordless SSH tutorial</a>, and I like the screencasts in the <a href="http://linuxconfig.org/Vim_Tutorial">Vim tutorial</a>.</p> ]]></content:encoded> <wfw:commentRss>http://adammonsen.com/post/412/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>I&#8217;m a Talker</title><link>http://adammonsen.com/post/382?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=im-a-talker</link> <comments>http://adammonsen.com/post/382#comments</comments> <pubDate>Wed, 24 Sep 2008 14:56:06 +0000</pubDate> <dc:creator>adam</dc:creator> <category><![CDATA[Default]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[nerdy]]></category> <category><![CDATA[selenium]]></category> <category><![CDATA[seminar]]></category> <category><![CDATA[twincities]]></category> <category><![CDATA[vim]]></category><guid isPermaLink="false">http://adammonsen.com/?p=382</guid> <description><![CDATA[I&#8217;ll be giving a couple of lectures/seminars this week in the Twin Cities. The first is tonight at the U of M (topic: Selenium), the second will be Saturday morning (topic: Vim). See here for announcements about future talks and materials from talks past.]]></description> <content:encoded><![CDATA[<p>I&#8217;ll be giving a couple of lectures/seminars this week in the <a href="http://en.wikipedia.org/wiki/Minneapolis-Saint_Paul">Twin Cities</a>. The first is <a href="http://mailman.mn-linux.org/pipermail/tclug-list/2008-September/054787.html">tonight at the U of M (topic: Selenium)</a>, the second will be <a href="https://lists.ubuntu.com/archives/ubuntu-us-mn/2008-September/000183.html">Saturday morning (topic: Vim)</a>. <a href="http://adammonsen.com/talks">See here</a> for announcements about future talks and materials from talks past.</p> ]]></content:encoded> <wfw:commentRss>http://adammonsen.com/post/382/feed</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>The Pigeon is Back!</title><link>http://adammonsen.com/post/374?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-pigeon-is-back</link> <comments>http://adammonsen.com/post/374#comments</comments> <pubDate>Mon, 22 Sep 2008 04:01:05 +0000</pubDate> <dc:creator>adam</dc:creator> <category><![CDATA[Default]]></category> <category><![CDATA[desktop]]></category> <category><![CDATA[embedded]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[nerdy]]></category> <category><![CDATA[pigeon]]></category><guid isPermaLink="false">http://adammonsen.com/?p=374</guid> <description><![CDATA[Keeping me up late&#8230; keeping me from working on my upcoming Vim and Selenium talks. This time with fast-booting desktops! Found on this Slashdot thread: ASUS motherboards now ship with an embedded mini Linux distribution to give you Web browsing and Skype in seconds A pretty cool-looking bootable os and desktop written entirely in assembly]]></description> <content:encoded><![CDATA[<p><a href="http://adammonsen.com/post/222">Keeping me up late</a>&#8230; keeping me from working on my upcoming <a href="https://lists.ubuntu.com/archives/ubuntu-us-mn/2008-September/000183.html">Vim</a> and <a href="http://mailman.mn-linux.org/pipermail/tclug-list/2008-September/054787.html">Selenium</a> talks. This time with fast-booting desktops!</p><p>Found on <a href="http://ask.slashdot.org/article.pl?sid=08/09/20/1918237">this Slashdot thread</a>:</p><ol><li>ASUS motherboards now ship with an <a href="http://www.neoseeker.com/Articles/Hardware/Reviews/p5q_deluxe/5.html">embedded mini Linux distribution to give you Web browsing and Skype in seconds</a></li><li>A <a href="http://www.kolibrios.org/">pretty cool-looking bootable os and desktop written entirely in assembly</a></li></ol> ]]></content:encoded> <wfw:commentRss>http://adammonsen.com/post/374/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Plug and Play Linux Webcam</title><link>http://adammonsen.com/post/347?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=plug-and-play-linux-webcam</link> <comments>http://adammonsen.com/post/347#comments</comments> <pubDate>Wed, 13 Aug 2008 17:31:29 +0000</pubDate> <dc:creator>adam</dc:creator> <category><![CDATA[Default]]></category> <category><![CDATA[hardware]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[nerdy]]></category> <category><![CDATA[webcam]]></category><guid isPermaLink="false">http://adammonsen.com/?p=347</guid> <description><![CDATA[Based on this review I bought a Logitech QuickCam Pro 9000. I ignored all the red tape and &#8220;Run The Installer First!&#8221; warnings on the packaging, and plugged it in to my Ubuntu 8.04 laptop. And it worked immediately. Yay! Skype, Cheese, both work. Video sharing via Flash (like for Dimdim) doesn&#8217;t work, so no [...]]]></description> <content:encoded><![CDATA[<p>Based on <a href="http://murrayc.com/blog/permalink/2008/03/28/webcams-that-just-work-with-ubuntu/">this review</a> I bought a <a href="http://amazon.com/gp/product/B000RZQZM0">Logitech QuickCam Pro 9000</a>. I ignored all the red tape and &#8220;Run The Installer First!&#8221; warnings on the packaging, and plugged it in to my Ubuntu 8.04 laptop. And it worked immediately. Yay! Skype, <a href="http://gnome.org/projects/cheese/">Cheese</a>, both work. Video sharing via Flash (like for <a href="http://dimdim.com">Dimdim</a>) doesn&#8217;t work, so no extra credit, yet. :)</p><div id="attachment_351" class="wp-caption alignnone" style="width: 228px"><a href="http://adammonsen.com/wp-content/uploads/2008/08/0009_edge.jpg"><img class="size-medium wp-image-351" title="darksideface" src="http://adammonsen.com/wp-content/uploads/2008/08/0009_edge-218x300.jpg" alt="My face with edge effects" width="218" height="300" /></a><p class="wp-caption-text">My face with edge effects</p></div> ]]></content:encoded> <wfw:commentRss>http://adammonsen.com/post/347/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Ubuntu and Encryption</title><link>http://adammonsen.com/post/338?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ubuntu-and-encryption</link> <comments>http://adammonsen.com/post/338#comments</comments> <pubDate>Mon, 26 May 2008 23:10:25 +0000</pubDate> <dc:creator>adam</dc:creator> <category><![CDATA[Default]]></category> <category><![CDATA[encryption]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[security]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[ubuntu]]></category><guid isPermaLink="false">http://adammonsen.com/?p=338</guid> <description><![CDATA[Encryption is a nice security feature that makes it significantly harder for someone to mine your data if, for instance, your latptop is stolen. If you install Ubuntu with the alternate installer disk, encryption takes only a few keystrokes. Here are two tutorials with screenshots. If you only need to encrypt a single file, just [...]]]></description> <content:encoded><![CDATA[<p>Encryption is a nice security feature that makes it significantly harder for someone to mine your data if, for instance, your latptop is stolen.</p><p>If you install Ubuntu with the alternate installer disk, encryption takes only a few keystrokes. Here are <a href="http://learninginlinux.wordpress.com/2008/04/23/installing-ubuntu-804-with-full-disk-encryption/">two</a> <a href="http://news.softpedia.com/news/Encrypted-Ubuntu-8-04-85271.shtml">tutorials</a> with screenshots.</p><p>If you only need to encrypt a single file, just right-click on the file in the File Browser and <a href="http://blogs.tech-recipes.com/incursor/2008/05/04/simple-encryption-in-ubuntu-804/">click &#8220;Encrypt&#8221;</a>.</p> ]]></content:encoded> <wfw:commentRss>http://adammonsen.com/post/338/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: adammonsen.com @ 2012-05-22 19:13:04 -->
