<?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>John James Andersen &#187; Linux</title>
	<atom:link href="http://www.john-james-andersen.com/category/blog/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.john-james-andersen.com</link>
	<description>The Personal &#38; Professional Website</description>
	<lastBuildDate>Tue, 07 Feb 2012 16:49:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Custom Ports with NX Client &amp; SSH</title>
		<link>http://www.john-james-andersen.com/blog/linux/custom-ports-with-nx-client-ssh.html</link>
		<comments>http://www.john-james-andersen.com/blog/linux/custom-ports-with-nx-client-ssh.html#comments</comments>
		<pubDate>Mon, 22 Feb 2010 18:53:36 +0000</pubDate>
		<dc:creator>John Andersen</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.john-james-andersen.com/?p=342</guid>
		<description><![CDATA[I recently pulled my hair out for a couple of hours on a problem that was really simple&#8230;I just was overlooking a setting. To help other people save time on this exercise I wanted to share my experience. I have OpenSuSE 11.1 virtual machine. I installed the NXServer on that machine so that I could [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.john-james-andersen.com/wp-content/uploads/nx.png" alt="" title="nx" width="304" height="81" class="aligncenter size-full wp-image-343" /></p>
<p>I recently pulled my hair out for a couple of hours on a problem that was really simple&#8230;I just was overlooking a setting.  To help other people save time on this exercise I wanted to share my experience.</p>
<p>I have OpenSuSE 11.1 virtual machine.  I installed the NXServer on that machine so that I could control it from my Mac laptop and Windows 7 Desktop.  I needed to change the ports to allow me to communicate from outside of my home.  In order to do this, I knew that I needed to change my SSH port as well as my NX Server port.</p>
<p>Here is what you have to do:</p>
<ul>
<li><strong>Edit your sshd_config file</strong><br />
Edit the /etc/ssh/sshd_config file changing the line that says &#8220;Port 22&#8243; to &#8220;Port {your_number}&#8221;
</li>
<li><strong>Edit your ssh_config file</strong> (Please note, you&#8217;ll only want to do this step if you are controlling the port your client on this machine will always look for in a connection) &#8211;<br />
Edit the /etc/ssh/ssh_config file by changing the line that says &#8220;Port 22&#8243; to &#8220;Port {your_number}&#8221;
</li>
<li><strong>Edit your server.cfg file</strong>
<ol>
<li>Edit the /usr/NX/etc/server.cfg file by changing TWO lines.  This is where I messed up and had a hard time figuring out my problem. </li>
<li> The first line you need to edit is: &#8216;#SSHDPort = &#8220;22&#8243;.&#8217;  You need to change that to (first, remove the # sign to make it active instead of being a comment): &#8216;SSHDPort = &#8220;{your_number}&#8221;.&#8217; </li>
<li>The second line you need to edit is: &#8216;#SSHDAuthPort = &#8220;22&#8243;.&#8217;  You need to change that to (first, remove the # sign to make it active instead of being a comment): &#8216;SSHDAuthPort = &#8220;{your_number}&#8221;.&#8217;  If you don&#8217;t change this line, your NX Client will give a error saying: &#8220;Authentication failed for user {username}&#8221;.</li>
</ol>
</li>
<li><strong>Edit your node.cfg file</strong><br />
Next, edit your /usr/NX/etc/node.cfg file by changing one line:   &#8216;#SSHDPort = &#8220;22&#8243;.&#8217;  You need to change that to (first, remove the # sign to make it active instead of being a comment): &#8216;SSHDPort = &#8220;{your_number}&#8221;.&#8217; </p>
</li>
<li><strong>Restart your Services</strong><br />
Restart SSH by issuing the following Command: &#8220;/etc/init.d/sshd restart&#8221;<br />
Restart the NX Server by issuing the following Command: &#8220;/etc/init.d/nxserver restart&#8221;
</li>
</ul>
<p>There you have it.  You should be able to connect via a non-standard, non-default port with the nxclient. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.john-james-andersen.com/blog/linux/custom-ports-with-nx-client-ssh.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Spring Cleaning: Dejunking old files on Linux</title>
		<link>http://www.john-james-andersen.com/blog/linux/spring-cleaning-dejunking-old-files-on-linux.html</link>
		<comments>http://www.john-james-andersen.com/blog/linux/spring-cleaning-dejunking-old-files-on-linux.html#comments</comments>
		<pubDate>Sat, 07 Mar 2009 16:09:35 +0000</pubDate>
		<dc:creator>John Andersen</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.abilityweb.us/blog/?p=90</guid>
		<description><![CDATA[I often let files sit around on servers that contain logs and other automatically updated information. I want to clean these up every once in a while. Linux, of course, offers a great way to do this. find $directory_to_clean -mtime +$days_old -exec rm {} ; This bash command will look in the $directory_to_clean location and [...]]]></description>
			<content:encoded><![CDATA[<p>I often let files sit around on servers that contain logs and other automatically updated information.  I want to clean these up every once in a while.  Linux, of course, offers a great way to do this.</p>
<blockquote><p>find $directory_to_clean -mtime +$days_old -exec rm {} ;</p></blockquote>
<p>This bash command will look in the $directory_to_clean location and delete all files that are $days_old old.</p>
<p>If you are paranoid about the command and want to try it out first, use this one:</p>
<blockquote><p>find $directory_to_clean -mtime +$days_old -exec ls -l {} ;</p></blockquote>
<p>That command will list all the files instead of delete them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.john-james-andersen.com/blog/linux/spring-cleaning-dejunking-old-files-on-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Being Fickle with Directories &#8211; pushd &amp; popd</title>
		<link>http://www.john-james-andersen.com/blog/linux/being-fickle-with-directories-pushd-popd.html</link>
		<comments>http://www.john-james-andersen.com/blog/linux/being-fickle-with-directories-pushd-popd.html#comments</comments>
		<pubDate>Fri, 29 Jun 2007 03:23:36 +0000</pubDate>
		<dc:creator>John Andersen</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.abilityweb.us/blog2/?p=18</guid>
		<description><![CDATA[Ever get in a Linux directory and realize that you like this directory, but you need to take a quick little fling in a different one? Your current directory can&#8217;t give you what you need at that moment, but you know you want to come right back to it when you are done. Well, throw [...]]]></description>
			<content:encoded><![CDATA[<p>Ever get in a Linux directory and realize that you like this directory, but you need to take a quick little fling in a different one?  Your current directory can&#8217;t give you what you need at that moment, but you know you want to come right back to it when you are done.</p>
<p>Well, throw directory commitment out the door with Linux&#8217;s built-in tools, <strong>pushd</strong> and <strong>popd</strong>.</p>
<p>Lets say you are in directory x, but you need to do a few things in directory y in order to then complete your tasks in directory x.  Simply,  type in <em>&#8220;pushd y&#8221;</em>.  Now you are in directory y.  Stay a little while and do what you needed to do.  Have your fun, but when it is time to get out and you want to be back with x, simply type <em>&#8220;popd&#8221;</em>.  You&#8217;re back with x in no time.</p>
<p>With these tools you are simply pushing a directory onto a stack of directories.  When you call the popd command, you just pop the current directory off the stack and return to the previous one.  Easy!</p>
<p>Note:  It is hazardous to your help to implement these tools in your own personal life &#8211; I recommend you only use these with directories &#8211; not people.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.john-james-andersen.com/blog/linux/being-fickle-with-directories-pushd-popd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Screen me in</title>
		<link>http://www.john-james-andersen.com/blog/linux/screen-me-in.html</link>
		<comments>http://www.john-james-andersen.com/blog/linux/screen-me-in.html#comments</comments>
		<pubDate>Sat, 09 Jun 2007 03:24:07 +0000</pubDate>
		<dc:creator>John Andersen</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.abilityweb.us/blog2/?p=20</guid>
		<description><![CDATA[Another reason to love linux is the simple little &#8220;screen&#8221; utility available in the OS. Screen lets you multiplex between console sessions. Here are the commands I use the most: screen -S &#8212;> lets you create a terminal session that is viewable when you ssh into the machine from somewhere else screen -dr &#8212;-> detaches [...]]]></description>
			<content:encoded><![CDATA[<p>Another reason to love linux is the simple little &#8220;screen&#8221; utility available in the OS.</p>
<p>Screen lets you multiplex between console sessions.</p>
<p>Here are the commands I use the most:</p>
<p>screen -S    &#8212;>  lets you create a terminal session that is viewable when you ssh into the machine from somewhere else</p>
<p>screen -dr &#8212;-> detaches the other terminal from the screen session with that name and gives it to you</p>
<p>screen -x &#8212;-> lets you share the other terminal with the others using that same screen session.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.john-james-andersen.com/blog/linux/screen-me-in.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>X11 Forwarding with CygWin on Windows XP</title>
		<link>http://www.john-james-andersen.com/blog/linux/x11-forwarding-with-cygwin-on-windows-xp.html</link>
		<comments>http://www.john-james-andersen.com/blog/linux/x11-forwarding-with-cygwin-on-windows-xp.html#comments</comments>
		<pubDate>Thu, 25 Jan 2007 03:31:55 +0000</pubDate>
		<dc:creator>John Andersen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.abilityweb.us/blog2/?p=39</guid>
		<description><![CDATA[1. Install CygWin &#8211; make sure you choose the openssh option as well as the X11-base utilities 2. Open up a cygwin shell and ssh into the remote device (R1) 3. Open up another cygwin shell on the host (H1) and run startx 4. Open up another cygwin shell on the host (H2) and run [...]]]></description>
			<content:encoded><![CDATA[<p>1.  Install CygWin &#8211; make sure you choose the openssh option as well as the X11-base utilities</p>
<p>2.  Open up a cygwin shell and ssh into the remote device (R1)</p>
<p>3.  Open up another cygwin shell on the host (H1) and run startx</p>
<p>4.  Open up another cygwin shell on the host (H2) and run &#8220;xhost +&#8221;</p>
<p>5.  On R1 set the environment variable DISPLAY to be the IP address and display number</p>
<ul>
<li>eg.   export DISPLAY=151.155.171.31:0.0</li>
</ul>
<p>6.  Run the x-based program on the remote device.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.john-james-andersen.com/blog/linux/x11-forwarding-with-cygwin-on-windows-xp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting SuSE Linux to run VNCServer on startup</title>
		<link>http://www.john-james-andersen.com/blog/linux/getting-suse-linux-to-run-vncserver-on-startup.html</link>
		<comments>http://www.john-james-andersen.com/blog/linux/getting-suse-linux-to-run-vncserver-on-startup.html#comments</comments>
		<pubDate>Thu, 11 Jan 2007 03:32:28 +0000</pubDate>
		<dc:creator>John Andersen</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.abilityweb.us/blog2/?p=41</guid>
		<description><![CDATA[After searching all morning for a good way to get VNCServer to startup on my SLES10 machine at work, I found this great page that actually worked. http://susefaq.sourceforge.net/howto/vnc.html SLES10 does a remote desktop feature built in, but it does not let you share the desktop across different computers. This scenario fixed it for me.]]></description>
			<content:encoded><![CDATA[<p>After searching all morning for a good way to get VNCServer to startup on my SLES10 machine at work, I found this great page that actually worked.  http://susefaq.sourceforge.net/howto/vnc.html</p>
<p>SLES10 does a remote desktop feature built in, but it does not let you share the desktop across different computers.  This scenario fixed it for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.john-james-andersen.com/blog/linux/getting-suse-linux-to-run-vncserver-on-startup.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
