<?xml version="1.0" encoding="utf-8"?><!-- generator="b2evolution/1.9.3" -->
<rss version="0.92">
	<channel>
		<title>Maintenance</title>
					  <link>http://hcmc.uvic.ca/blogs/index.php?blog=11</link>
			  <description>HCMC Maintenance</description>
			  <language>en-CA</language>
			  <docs>http://backend.userland.com/rss092</docs>
			  			  <item>
			    <title>Java headless</title>
			    <description> (Mins: 15) &lt;p&gt;The ISE was getting the error&lt;br /&gt;
&lt;code&gt;java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment&lt;/code&gt;&lt;br /&gt;
when running xwiki.&lt;br /&gt;
It turns out that the existence of quotes in JAVA_OPTS directives causes the option to be ignored. So, for future reference, use &lt;code&gt;-Djava.awt.headless=true&lt;/code&gt; instead of &lt;code&gt;-Djava.awt.headless=&quot;true&quot;&lt;/code&gt; when launching tomcat on a headless server.&lt;/p&gt;</description>
			    <link>http://hcmc.uvic.ca/blogs/index.php?blog=11&amp;title=java_headless&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			  </item>
			  			  <item>
			    <title>Rsync problem on rutabaga</title>
			    <description> (Mins: 120) &lt;p&gt;After an update to DSM 4.2 rutabaga no longer allowed rsync backups, failing with:&lt;/p&gt;

&lt;p&gt;sh: rsync: not found&lt;br /&gt;
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]&lt;br /&gt;
rsync error: remote command not found (code 127) at io.c(605) [Receiver=3.0.9]&lt;/p&gt;

&lt;p&gt;After much wailing and gnashing of teeth we discovered that non-interactive users do not have /usr/syno/bin in their path (it *is* in their path if they shell in to the NAS, so they can run rsync *from* the NAS when shell'd in). &lt;/p&gt;

&lt;p&gt;So, that's an easy fix, says us: add a symlink to /usr/syno/bin/rsync in a logical spot that *is* in a non-interactive path, like /usr/bin.&lt;/p&gt;

&lt;p&gt;Problem: admin user cannot su root (error message = su: must be suid to work properly), so cannot create symlink.&lt;/p&gt;

&lt;p&gt;Answer: TURN ON TELNET AND LOG IN AS ROOT USING THE WORST POSSIBLE METHOD!!! Then, you make the symlink and turn off telnet - quick!&lt;/p&gt;</description>
			    <link>http://hcmc.uvic.ca/blogs/index.php?blog=11&amp;title=rsync_problem_on_rutabaga&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			  </item>
			  			  <item>
			    <title>Network troubles - solved</title>
			    <description> (Mins: 120) &lt;p&gt;This morning we got nets to set up B047 on the switch. Some time after that 3 machines lost the ability to get a DHCP address - I have no idea if there is a causal relationship between these things.&lt;/p&gt;

&lt;p&gt;After much mucking about, it *looks* like it might have been a communication problem between the DHCP server and the machines.&lt;br /&gt;
Even forcibly releasing the DHCP lease didn't make any difference.&lt;/p&gt;

&lt;p&gt;In the end, I booted the machine with a LiveCD and fiddled with enabling/disabling the network (in the network manger). I got a proper IP and rebooted in the installed OS. That seemed to break it out of the loop.&lt;/p&gt;

&lt;p&gt;A bit perplexing and aggravating because I don't actually know what the problem was...&lt;/p&gt;</description>
			    <link>http://hcmc.uvic.ca/blogs/index.php?blog=11&amp;title=network_troubles_solved&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			  </item>
			  			  <item>
			    <title>All projects moved to Peach</title>
			    <description> (Mins: 180) &lt;p&gt;All current Tomcat-based projects have now been moved to Peach, with the help of RE, who has re-pointed all the relevant domains. The IALLTJournal project has been retired, since it's no longer in use, as has the old version of Francotoile, which was built on eXist 1.4. This was a fairly slow and careful migration over a couple of days, and we expect no problems, but Pear will continue to run for a little while just in case.&lt;/p&gt;</description>
			    <link>http://hcmc.uvic.ca/blogs/index.php?blog=11&amp;title=all_projects_moved_to_peach&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			  </item>
			  			  <item>
			    <title>Testing on Peach</title>
			    <description> (Mins: 30) &lt;p&gt;Tomcat has now been configured so that a slash not followed by a filename is handled by the webapp, not trapped as an error by Tomcat itself. I've also uploaded and tested the new Moses app on Peach, confirming that while the eXist dashboard and eXide fail under Tomcat 6, they work under Tomcat 7.&lt;/p&gt;</description>
			    <link>http://hcmc.uvic.ca/blogs/index.php?blog=11&amp;title=testing_on_peach&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			  </item>
			  			  <item>
			    <title>Creating a gource visualization of SVN work</title>
			    <description> (Mins: 30) 

&lt;p&gt;To create a visualization with gource (on Linux), first install gource (it's in the Ubuntu repo), then:&lt;/p&gt;

&lt;pre&gt;cd [the SVN directory you want to work on]

svn log -r 11019:11452 --xml --verbose --quiet &amp;gt; svnlog.xml
[Choose the revision numbers you want.]

gource -1280x720 -o - svnlog.xml | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -crf 1 -threads 0 -bf 0 video.mp4&lt;/pre&gt;</description>
			    <link>http://hcmc.uvic.ca/blogs/index.php?blog=11&amp;title=creating_a_gource_visualization_of_svn_w&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			  </item>
			  			  <item>
			    <title>ssh recursively remove folders and their contents</title>
			    <description> (Mins: 0) 
to recursively remove folders and their contents

rm -rf path/to/folder</description>
			    <link>http://hcmc.uvic.ca/blogs/index.php?blog=11&amp;title=ssh_recursively_remove_folders_and_their&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			  </item>
			  			  <item>
			    <title>Rutabaga rsync problem</title>
			    <description> (Mins: 30) &lt;p&gt;After a system update, rsync stopped working over ssh on Rutabaga. We eventually discovered that users rsyncing over ssh require the ssh service to be turned on (Control panel/Terminal/SSH service). This was apparently not necessary in previous builds, or perhaps it was turned off by the update for some reason.&lt;/p&gt;</description>
			    <link>http://hcmc.uvic.ca/blogs/index.php?blog=11&amp;title=rutabaga_rsync_problem&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			  </item>
			  			  <item>
			    <title>Peach update</title>
			    <description> (Mins: 0) Peach is now ready for us to start testing. Most apps are working as expected, but a few apps do not work quite the way they do on pear. It seems like it may be a Cocoon thing - for example, I notice that &lt;a href=&quot;http://tomcat-devel.hcmc.uvic.ca:8080/coldesp&quot;&gt;http://tomcat-devel.hcmc.uvic.ca:8080/coldesp&lt;/a&gt; does not redirect in the same way that pear does (same goes for mariage), while Map of London seems to work quite well.</description>
			    <link>http://hcmc.uvic.ca/blogs/index.php?blog=11&amp;title=peach_update&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			  </item>
			  			  <item>
			    <title>Boot partition out of space</title>
			    <description> (Mins: 15) &lt;p&gt;teijenkins found itself unable to complete an update because it was out of disk space. This was initially surprising, but I discovered that it was actually the small boot partition that was out of space, because of the accumulation of old kernels. This command:&lt;/p&gt;

&lt;pre&gt;
dpkg -l 'linux-*' | sed '/^ii/!d;/'&quot;$(uname -r | sed &quot;s/\(.*\)-\([^0-9]\+\)/\1/&quot;)&quot;'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
&lt;/pre&gt;

&lt;p&gt;cribbed from &lt;a href=&quot;http://ubuntugenius.wordpress.com/2011/01/08/ubuntu-cleanup-how-to-remove-all-unused-linux-kernel-headers-images-and-modules/&quot;&gt;this page&lt;/a&gt; cleaned out the old kernels and solved the problem.&lt;/p&gt;</description>
			    <link>http://hcmc.uvic.ca/blogs/index.php?blog=11&amp;title=boot_partition_out_of_space&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			  </item>
			  	</channel>
</rss>
