<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2405414040564865826</id><updated>2025-07-05T23:35:27.289+10:00</updated><category term="ubuntu"/><category term="linux"/><category term="websphere7"/><category term="fedora"/><category term="java"/><category term="amd64"/><category term="hibernate"/><category term="jpa2"/><category term="script"/><category term="shell"/><category term="tibco"/><category term="bw"/><category term="drivers"/><category term="http"/><category term="jta"/><category term="printer"/><category term="tomcat"/><category term="unity"/><category term="X11"/><category term="ant"/><category term="binding"/><category term="cfengine"/><category term="cheat sheets"/><category term="compilation"/><category term="dlna"/><category term="firefox"/><category term="greeter"/><category term="groovy"/><category term="intellij"/><category term="javascript"/><category term="lightdm"/><category term="login"/><category term="mime"/><category term="multipart"/><category term="netgear"/><category term="notification-daemon"/><category term="notify-osd"/><category term="plex media server"/><category term="rygel"/><category term="screensaver"/><category term="security"/><category term="selenium"/><category term="service"/><category term="swing"/><category term="swingbuilder"/><category term="web.xml"/><category term="windows"/><category term="wireless"/><category term="xbox360"/><category term="xml"/><category term="xscreensaver"/><category term="zfs"/><category term="zpool"/><title type='text'>Nick&#39;s Tech Blog</title><subtitle type='html'>If it solved my problem, I blog it.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>36</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-8819902339530496831</id><published>2014-12-17T22:17:00.002+11:00</published><updated>2014-12-18T09:57:14.322+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="zfs"/><category scheme="http://www.blogger.com/atom/ns#" term="zpool"/><title type='text'>ZFS folders on Ubuntu 14.04 LTS not mounting after reboot</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2&gt;Problem&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
On Ubuntu 14.04 LTS, I installed a ZFS ZPOOL &lt;a href=&quot;http://arstechnica.com/information-technology/2014/02/ars-walkthrough-using-the-zfs-next-gen-filesystem-on-linux/&quot;&gt;following these instructions&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
After a restarting my machine however, the zpools failed to mount. I couldn&#39;t see any apparent errors &lt;a href=&quot;https://github.com/zfsonlinux/pkg-zfs/wiki/Ubuntu-ZFS-mountall-FAQ-and-troubleshooting#60--bug-reporting&quot;&gt;from checking the logs&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;h2&gt;Solution&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;h4&gt;Attempt #1&lt;/h4&gt;
&lt;br /&gt;
Executing the following command actually mounts the zpool as desired. We could execute this script on startup (but we shouldn&#39;t have to).&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;zpool import -a&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Attempt #2&lt;/h4&gt;
&lt;br /&gt;
Apparently setting/adding the following properties automatically mounts the zpool. This didn&#39;t work for me (my version of zfs).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;File:&lt;/b&gt; &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/etc/default/zfs&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;ZFS_MOUNT=&#39;yes&#39;
ZFS_UNMOUNT=&#39;yes&#39;&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Attempt #3&lt;/h4&gt;
&lt;br /&gt;
Other solutions suggest adding a sleep to the following file:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;File:&lt;/b&gt; &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/etc/init/mountall.conf&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I didn&#39;t even bother trying this though.&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Attempt #4 (Success)&lt;/h4&gt;
&lt;br /&gt;
I came across the following zpool config file, and tried changing the value for zfs_autoimport_disable from 1 to 0.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;File:&lt;/b&gt; &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/etc/init/zpool-import.conf&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;modprobe zfs zfs_autoimport_disable=0&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
After a restart, my zpools were imported (success!). Then, to automatically mount the zfs mounts, I had to add the following line:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;File:&lt;/b&gt; &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/etc/rc.local&lt;/span&gt;
&lt;pre&gt;zfs mount -a&lt;/pre&gt;

Not sure why this value is defaulted to 1, but changing it to 0 worked for me.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/8819902339530496831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2014/12/zfs-folders-on-ubuntu-1404-lts-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/8819902339530496831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/8819902339530496831'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2014/12/zfs-folders-on-ubuntu-1404-lts-not.html' title='ZFS folders on Ubuntu 14.04 LTS not mounting after reboot'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-6255980750826387821</id><published>2013-12-24T15:32:00.000+11:00</published><updated>2014-02-12T10:30:24.015+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="service"/><category scheme="http://www.blogger.com/atom/ns#" term="tomcat"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>Installing Tomcat8 as a service on Window7</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Install it!&lt;/h2&gt;
&lt;div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Download Tomcat8 zip for your operating system. -&amp;gt; http://tomcat.apache.org/download-80.cgi (I grabbed the Windows 64bit version)&lt;/li&gt;
&lt;li&gt;Unzip it to the directory where you want it to live.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Check your Config&lt;/h2&gt;
&lt;div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Check your config by running &amp;lt;tomcat_home&amp;gt;\bin\configtest.bat&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Error1:&lt;/b&gt; JVM &amp;amp; JDK had a space in the name.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Fix1:&lt;/b&gt; Fixed by setting JAVA_HOME and JRE_HOME Environment Variables to use C:\&lt;b&gt;Progra~1&lt;/b&gt;\Java\&amp;lt;java_version&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Error2:&lt;/b&gt; JVM was 32bit, needed to be 64bit&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Fix2:&lt;/b&gt; Changed JAVA_HOME and JRE_HOME to use correct 64bit Java install.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Install Tomcat8 as a service&lt;/h2&gt;
&lt;div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Run:&amp;nbsp;&amp;lt;tomcat_home&amp;gt;\bin\service.bat install&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div&gt;
When starting, it failed with &quot;Error Code 4&quot;.&lt;/div&gt;
&lt;div&gt;
I had a look in the Windows System Logs, and found this: &quot;The Tomcat8 service terminated with service-specific error The system cannot open the file.&quot;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Enable logging:&lt;/h3&gt;
&lt;div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Run &amp;lt;tomcat_home&amp;gt;\bin\tomcat8w.exe (a window will open)&lt;/li&gt;
&lt;li&gt;Under the &quot;Logging&quot; tab, set the logging directory&lt;/li&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-Kl4bfKhfyzY/UrkOCX1JhII/AAAAAAAADL0/WaJtmkjysEY/s1600/tomcat8w-logging.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-Kl4bfKhfyzY/UrkOCX1JhII/AAAAAAAADL0/WaJtmkjysEY/s320/tomcat8w-logging.png&quot; height=&quot;307&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;li&gt;Set the STDOUT and STDERR files&lt;/li&gt;
&lt;li&gt;Set the logging to DEBUG (turn this back to INFO when app starts up successfully).&lt;/li&gt;
&lt;li&gt;Attempt to start the app again, and check the logs:&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;Error3:&lt;/b&gt; stderr.log&lt;/div&gt;
&lt;pre&gt;&lt;code&gt;2013-12-24 13:18:43 Commons Daemon procrun stderr initialized
java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstrap&lt;/code&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;b&gt;Fix3:&amp;nbsp;&lt;/b&gt;Using tomcat8w.exe&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Run &amp;lt;tomcat_home&amp;gt;\bin\tomcat8w.exe (a window will open)&lt;/li&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-bREBpypTGtM/UrkOPAD8vLI/AAAAAAAADL8/dNzJTFC8UGY/s1600/tomcat8w-java.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-bREBpypTGtM/UrkOPAD8vLI/AAAAAAAADL8/dNzJTFC8UGY/s320/tomcat8w-java.png&quot; height=&quot;307&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;li&gt;Under the &quot;Java&quot; tab, set the classpath (which was empty) to the following:&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;pre&gt;&lt;code&gt;C:\devtools\apache-tomcat-8.0.0-RC5\lib\*;C:\devtools\apache-tomcat-8.0.0-RC5\bin\*;&lt;/code&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
After that, I was able to start up Tomcat8 successfully -&amp;gt; http://localhost:8080/&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
After installing some apps, I got:&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Error4:&lt;/b&gt; java.lang.OutOfMemoryError: PermGen space&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Fix4:&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Run &amp;lt;tomcat_home&amp;gt;\bin\tomcat8w.exe (a window will open)&lt;/li&gt;
&lt;li&gt;Under the &quot;Java&quot; tab, I changed the &quot;Java Options&quot; to:&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;pre&gt;&lt;code&gt;-Dcatalina.base=C:\devtools\apache-tomcat-8.0.0-RC5
-Dcatalina.home=C:\devtools\apache-tomcat-8.0.0-RC5
-Djava.endorsed.dirs=C:\devtools\apache-tomcat-8.0.0-RC5\endorsed
-Djava.io.tmpdir=C:\devtools\apache-tomcat-8.0.0-RC5\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\devtools\apache-tomcat-8.0.0-RC5\conf\logging.properties
-Xms256M
-Xmx1024M
-XX:MaxPermSize=1024M
-XX:MaxHeapSize=256M
-XX:PermSize=256M
-XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled
&lt;/code&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;
Everthing&#39;s now working smoothly!&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Additional Notes:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1) I had to add &amp;lt;tomcat_home&amp;gt;/bin/tomcat7.exe and &amp;lt;tomcat_home&amp;gt;/bin/tomcat7w.exe to Windows Firewall.&lt;/tomcat_home&gt;&lt;/tomcat_home&gt;&lt;br /&gt;
&lt;br /&gt;
2) When uploading a new application, I got the following error:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (53706238) exceeds the configured maximum (52428800)&lt;/code&gt;&lt;/pre&gt;
Simply modify the following section in &amp;lt;tomcat_home&amp;gt;/webapps/manager/WEB-INF/web.xml&lt;/tomcat_home&gt;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;    &amp;lt;multipart-config&amp;gt;
      &amp;lt;!-- 50MB max --&amp;gt;
      &amp;lt;max-file-size&amp;gt;52428800&amp;lt;/max-file-size&amp;gt;
      &amp;lt;max-request-size&amp;gt;52428800&amp;lt;/max-request-size&amp;gt;
      &amp;lt;file-size-threshold&amp;gt;0&amp;lt;/file-size-threshold&amp;gt;
    &amp;lt;/multipart-config&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
I doubled the values from 52428800 to 104857600.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/6255980750826387821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2013/12/installing-tomcat8-as-service-on-window7.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/6255980750826387821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/6255980750826387821'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2013/12/installing-tomcat8-as-service-on-window7.html' title='Installing Tomcat8 as a service on Window7'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-Kl4bfKhfyzY/UrkOCX1JhII/AAAAAAAADL0/WaJtmkjysEY/s72-c/tomcat8w-logging.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-2227133762210590477</id><published>2013-05-10T23:46:00.000+10:00</published><updated>2013-05-10T23:46:52.990+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="binding"/><category scheme="http://www.blogger.com/atom/ns#" term="groovy"/><category scheme="http://www.blogger.com/atom/ns#" term="swing"/><category scheme="http://www.blogger.com/atom/ns#" term="swingbuilder"/><title type='text'>Groovy &gt; Bidirectional binding using SwingBuilder</title><content type='html'>
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Problem&lt;/h2&gt;
&lt;div&gt;
I was trying to setup &quot;two-way&quot; binding (e.g. model can update the ui, and vice versa), in a single bind{} statement.&lt;br /&gt;
&lt;br /&gt;
For example, the below code is exhibiting the &quot;two-way&quot; binding behaviour that I want (i.e. toggleButton &lt;-&gt; model.toggleButtonValue). I was wondering if there was a more succinct way to get the same behaviour, but without having two statements (i.e. without the need to have the actionPerformed)?&lt;/-&gt;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;toggleButton(&#39;Test&#39;,
  selected: bind { model.toggleButtonValue }, // model-&amp;gt;button
  actionPerformed: { model.toggleButtonValue = button.selected }) // button-&amp;gt;model
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
So I posted on the Groovy forums, and got the following answer from Ed Clark (Thanks Ed!)&lt;br /&gt;
&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Solution&lt;/h2&gt;
&lt;div&gt;

Just use the &quot;mutual&quot; flag, like in the following examples:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;toggleButton(&#39;Test&#39;,
  selected: bind (source: model, &#39;toggleButtonValue&#39;, mutual: true))

// Fyi, the following also works, but the button will ignore the
// model&#39;s value on initialisation.&lt;br /&gt;
toggleButton(&#39;Test&#39;,
  selected: bind (target: model, &#39;toggleButtonValue&#39;, mutual: true))
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
As far as I know, it&#39;s an undocumented feature at the moment. I couldn&#39;t find it on the &lt;a href=&quot;http://groovy.codehaus.org/SwingBuilder.bind&quot;&gt;SwingBuilder.bind&lt;/a&gt; site/docs.&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;See Also:&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://groovy.329449.n5.nabble.com/Two-way-binding-td5715250.html&quot;&gt;My Original Problem on the Groovy Forums&lt;/a&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/2227133762210590477/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2013/05/groovy-bidirectional-binding-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/2227133762210590477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/2227133762210590477'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2013/05/groovy-bidirectional-binding-using.html' title='Groovy &gt; Bidirectional binding using SwingBuilder'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-3715854024061714126</id><published>2013-02-28T20:37:00.000+11:00</published><updated>2013-02-28T20:39:15.177+11:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="plex media server"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Plex on Ubuntu &gt; can&#39;t access home directory</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Problem&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
After installing plex media server, I went to add some media libraries. I couldn&#39;t see any directories under my home directory.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Solution - Difficulty: Very Easy&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
The &quot;plex&quot; user account doesn&#39;t have permission to view any directories under your home directory. In addition, if there are any subdirectories it can&#39;t view, rather than show the directories it can, it shows nothing.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-MUqMhPqWloM/US8e2MqNyaI/AAAAAAAADDc/URPzC-opBM0/s1600/Screenshot+from+2013-02-28+20:09:09.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;186&quot; src=&quot;http://4.bp.blogspot.com/-MUqMhPqWloM/US8e2MqNyaI/AAAAAAAADDc/URPzC-opBM0/s320/Screenshot+from+2013-02-28+20:09:09.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
First of all, lets give it access to your home directory:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
nick@pc:~$ ll -d ~
&lt;b&gt;drwx------&lt;/b&gt; 89 nick nick 28672 Feb 28 19:21 /home/nick/
nick@pc:~$ sudo chmod 755 ~
nick@pc:~$ ll -d ~
&lt;b&gt;drwxr-xr-x&lt;/b&gt; 89 nick nick 28672 Feb 28 19:21 /home/nick/
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Because I still can&#39;t add my media library plex, I&#39;m going to &quot;pull out&quot; just the folders I want plex to use, into it&#39;s own home directory (using symbolic links).&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
nick@pc:~$ sudo mkdir /home/plex
nick@pc:~$ sudo chown plex:plex /home/plex
nick@pc:~$ sudo ln -s /home/nick/Music /home/plex/Music
nick@pc:~$ ll /home/plex
total 8
drwxr-xr-x 2 plex plex 4096 Feb 28 20:23 ./
drwxr-xr-x 5 root root 4096 Feb 28 20:22 ../
lrwxrwxrwx 1 root root   16 Feb 28 20:23 Music --&amp;gt; /home/nick/Music/
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
And there you have it. You should now be able to add &quot;/home/plex/Music&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-2qyFJyZmDzI/US8jCZlmmAI/AAAAAAAADDs/N7Jv7Oj7yEY/s1600/Screenshot+from+2013-02-28+20:24:59.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;184&quot; src=&quot;http://4.bp.blogspot.com/-2qyFJyZmDzI/US8jCZlmmAI/AAAAAAAADDs/N7Jv7Oj7yEY/s320/Screenshot+from+2013-02-28+20:24:59.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Additional Troubleshooting:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
If you want to test what directories the &quot;plex&quot; user account can access, you can become the &quot;plex&quot; user by typing:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
nick@pc:~$ sudo su plex
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Navigate around, do some troubleshooting. To exit back to your own account, just type &quot;exit&quot;.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/3715854024061714126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2013/02/plex-on-ubuntu-cant-access-home.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/3715854024061714126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/3715854024061714126'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2013/02/plex-on-ubuntu-cant-access-home.html' title='Plex on Ubuntu &gt; can&#39;t access home directory'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-MUqMhPqWloM/US8e2MqNyaI/AAAAAAAADDc/URPzC-opBM0/s72-c/Screenshot+from+2013-02-28+20:09:09.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-1562951962417687048</id><published>2012-08-31T10:19:00.002+10:00</published><updated>2012-08-31T10:25:53.080+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ant"/><title type='text'>ANT &gt; default &#39;help&#39; target</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Problem&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
I want the default target for &lt;a href=&quot;http://ant.apache.org/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;ant™&lt;/a&gt;, to display the project help.&lt;/div&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Solution&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Add the following default target:
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;
&amp;lt;project default=&quot;help&quot; name=&quot;test&quot; xmlns=&quot;antlib:org.apache.tools.ant&quot;&amp;gt;
         
  &amp;lt;target name=&quot;help&quot; description=&quot;print the help&quot;&amp;gt;
    &amp;lt;exec executable=&quot;${ant.home}/bin/ant&quot;&amp;gt;
      &amp;lt;arg value=&quot;-projecthelp&quot;/&amp;gt;
      &amp;lt;arg value=&quot;-buildfile&quot;/&amp;gt;
      &amp;lt;arg value=&quot;${ant.file}&quot;/&amp;gt;
    &amp;lt;/exec&amp;gt;
  &amp;lt;/target&amp;gt;
  
&amp;lt;/project&amp;gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
This allows us to display the help using the following commands.
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;ant
ant help
ant -buildfile somefile.xml
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Improved from the following website:&lt;br /&gt;
&lt;a href=&quot;http://amazing-development.com/archives/2005/01/28/ant-help-target/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://amazing-development.com/archives/2005/01/28/ant-help-target/ &lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/1562951962417687048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2012/08/ant-default-help-target.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/1562951962417687048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/1562951962417687048'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2012/08/ant-default-help-target.html' title='ANT &gt; default &#39;help&#39; target'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-4443168085556415039</id><published>2012-08-21T10:50:00.000+10:00</published><updated>2012-08-21T18:03:26.273+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="greeter"/><category scheme="http://www.blogger.com/atom/ns#" term="lightdm"/><category scheme="http://www.blogger.com/atom/ns#" term="login"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Ubuntu lightdm login screen!</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Problem&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
You want to customise your login screen.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Solution&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Checkout lightdm &quot;greeters&quot;. Below is an example of &quot;crowd-greeter&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/f8nm4NpaVXE?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Instructions to install it can be found here:&lt;br /&gt;
&lt;a href=&quot;http://www.iloveubuntu.net/lightdm-receives-new-experimental-3d-character-based-greeter-ubuntu-1110&quot;&gt;http://www.iloveubuntu.net/lightdm-receives-new-experimental-3d-character-based-greeter-ubuntu-1110&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
I haven&#39;t found a single site which lists available greeters.&amp;nbsp;Thanks go to &lt;a href=&quot;http://bobthegnome.blogspot.com.au/&quot; target=&quot;_blank&quot;&gt;Robert Ancell&lt;/a&gt; for this list of greeters:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
GTK+ – &lt;a href=&quot;https://launchpad.net/lightdm-gtk-greeter&quot;&gt;https://launchpad.net/lightdm-gtk-greeter&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
GtkBuilder – &lt;a href=&quot;http://lxde.git.sourceforge.net/git/gitweb.cgi?p=lxde/ldm-gtk-builder-greeter;a=summary&quot;&gt;http://lxde.git.sourceforge.net/git/gitweb.cgi?p=lxde/ldm-gtk-builder-greeter;a=summary&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Webkit – &lt;a href=&quot;https://launchpad.net/lightdm-webkit-greeter&quot;&gt;https://launchpad.net/lightdm-webkit-greeter&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Qt – &lt;a href=&quot;https://launchpad.net/lightdm-qt-greeter&quot;&gt;https://launchpad.net/lightdm-qt-greeter&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
KDE – &lt;a href=&quot;https://projects.kde.org/projects/playground/base/lightdm&quot;&gt;https://projects.kde.org/projects/playground/base/lightdm&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Unity – &lt;a href=&quot;https://launchpad.net/unity-greeter&quot;&gt;https://launchpad.net/unity-greeter&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Crowd – &lt;a href=&quot;https://launchpad.net/crowd-greeter&quot;&gt;https://launchpad.net/crowd-greeter&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;See also:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&quot;SO YOU WANT TO WRITE A LIGHTDM GREETER…&quot; -&amp;nbsp;&lt;a href=&quot;http://www.mattfischer.com/blog/?p=5&quot;&gt;http://www.mattfischer.com/blog/?p=5&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&quot;How to change the LightDM theme/greeter?&quot; -&amp;nbsp;&lt;a href=&quot;http://askubuntu.com/questions/75755/how-to-change-the-lightdm-theme-greeter&quot;&gt;http://askubuntu.com/questions/75755/how-to-change-the-lightdm-theme-greeter&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/4443168085556415039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2012/08/ubuntu-needed-cool-login-screen.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/4443168085556415039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/4443168085556415039'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2012/08/ubuntu-needed-cool-login-screen.html' title='Ubuntu lightdm login screen!'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-6954454558062534023</id><published>2012-08-17T09:40:00.000+10:00</published><updated>2012-08-17T10:03:13.416+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="shell"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Use sed to remove &#39;^M&#39; characters from a file</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Simple stuff, this post is here more as a reference than anything.&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Problem&lt;/h2&gt;
&lt;div&gt;Windows puts &#39;^M&#39; characters throughout text files. I want to remove them.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Solution&lt;/h2&gt;
&lt;div&gt;The following commands will strip out the &#39;^M&#39; characters, and put the contents into a new file, then overwrite the original file.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;code&gt;sed -e s/^M//g oldfile.txt &amp;gt; newfile.txt
mv newfile.txt oldfile.txt&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
To get the &#39;^M&#39; character, type Ctrl+V,Ctrl+M&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/6954454558062534023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2012/08/use-sed-to-remove-m-characters-from-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/6954454558062534023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/6954454558062534023'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2012/08/use-sed-to-remove-m-characters-from-file.html' title='Use sed to remove &#39;^M&#39; characters from a file'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-8986911780252320527</id><published>2012-06-15T01:40:00.001+10:00</published><updated>2012-08-17T10:08:54.553+10:00</updated><title type='text'>Cappuccino &gt; narwhal-rhino fails to load library from &quot;noexec&quot; /tmp directory</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

Problem&lt;/h2&gt;
&lt;div&gt;
When executing &quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;jake deploy&lt;/span&gt;&quot;, I received the following stacktrace:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;&lt;code&gt;Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError: /tmp/jna868211880998617115.tmp: /tmp/jna868211880998617115.tmp: failed to map segment from shared object: Operation not permitted
&lt;pre&gt;
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1003)
at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:744)
at com.sun.jna.Native.loadNativeLibrary(Native.java:678)
at com.sun.jna.Native.(Native.java:106)
at com.sun.jna.NativeLibrary.(NativeLibrary.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1702)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:845)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
at org.mozilla.javascript.gen._usr_local_cappuccino_packages_jake_lib_jake_js_7._c_anonymous_13(Unknown Source)
at org.mozilla.javascript.gen._usr_local_cappuccino_packages_jake_lib_jake_js_7.call(Unknown Source)&lt;/pre&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

Solution&lt;/h2&gt;
&lt;div&gt;The cause of this issue, is because the /tmp directory is mounted noexec on our operating system. Current workarounds exist by specifying the java.io.tmpdir JVM arg (as another executable directory).&lt;br /&gt;
&lt;br /&gt;
The version of narwhal-rhino shipped with cappuccino 0.9.5 currently ignores the JAVA_OPTS environment variable.&lt;br /&gt;
&lt;br /&gt;
To fix:&lt;br /&gt;
1. Modify the line 25 in $CAPPUCCINO_HOME/engines/rhino/bin/narwhal-rhino&lt;br /&gt;
from&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;JAVA_OPTS=&quot;-Dnarwhal.http_proxy=$http_proxy&quot;&lt;/span&gt;&lt;br /&gt;
to&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;JAVA_OPTS=&quot;-Dnarwhal.http_proxy=$http_proxy &lt;b&gt;$JAVA_OPTS&lt;/b&gt;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
2. Then a new tmpdir can be specified by setting the JAVA_OPTS env var.&lt;br /&gt;
E.g.&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
export JAVA_OPTS=-Djava.io.tmpdir=/somedir-that-is-executable&lt;/div&gt;
&lt;br /&gt;
This should do the trick.&lt;br /&gt;
&lt;br /&gt;
See also&lt;br /&gt;
&lt;a href=&quot;https://github.com/cappuccino/cappuccino/issues/1512&quot;&gt;https://github.com/cappuccino/cappuccino/issues/1512&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/8986911780252320527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2012/06/cappuccino-narwhal-rhino-fails-to-load.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/8986911780252320527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/8986911780252320527'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2012/06/cappuccino-narwhal-rhino-fails-to-load.html' title='Cappuccino &gt; narwhal-rhino fails to load library from &quot;noexec&quot; /tmp directory'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-4599811780074897043</id><published>2012-06-15T00:42:00.001+10:00</published><updated>2012-06-15T00:42:40.253+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="unity"/><title type='text'>Ubuntu &gt; dragging windows to desktop sides not working</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

Problem&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Basically, dragging windows to sides of the screen isn&#39;t readjusting the window size to half the screen.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
(I later found out this feature was called &quot;window grid&quot;.)&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

Solution&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
I&#39;m reposting the solution, because it worked.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
In the terminal...&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;compiz --replace &amp;amp; disown&lt;/li&gt;
&lt;li&gt;(I then needed to logout and log back in, as none of my windows were responding)&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;unity --reset &lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
That should be it, windows now snap to half the screen, when dragged to the sides of the desktop. &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;See Also&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;a href=&quot;http://askubuntu.com/questions/93802/how-do-i-fix-the-window-grid-feature&quot;&gt;http://askubuntu.com/questions/93802/how-do-i-fix-the-window-grid-feature&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/4599811780074897043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2012/06/ubuntu-dragging-windows-to-desktop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/4599811780074897043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/4599811780074897043'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2012/06/ubuntu-dragging-windows-to-desktop.html' title='Ubuntu &gt; dragging windows to desktop sides not working'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-5380704980483713274</id><published>2012-06-14T18:30:00.000+10:00</published><updated>2012-06-15T01:24:26.445+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bw"/><category scheme="http://www.blogger.com/atom/ns#" term="http"/><category scheme="http://www.blogger.com/atom/ns#" term="tibco"/><category scheme="http://www.blogger.com/atom/ns#" term="tomcat"/><title type='text'>TIBCO &gt; HTTP Connection automatically responds to HTTP OPTIONS method</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

Problem&lt;/h2&gt;
The default HTTP Connection is automatically responding to HTTP OPTIONS methods, without being processed by my HTTP receiver (I want to be able to process these requests!).&lt;br /&gt;
&lt;br /&gt;
Here is the default response:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace; font-size: x-small;&quot;&gt;HTTP/1.1 200 OK&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace; font-size: x-small;&quot;&gt;Server: Apache-Coyote/1.1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace; font-size: x-small;&quot;&gt;Allow: GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace; font-size: x-small;&quot;&gt;Content-Length: 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace; font-size: x-small;&quot;&gt;Date: Thu, 14 Jun 2012 08:14:35 GMT&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;

Solution&lt;/h2&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;In the &quot;HTTP Connection&quot; Configuration tab, change the &lt;i&gt;Server Type&lt;/i&gt; from &quot;Tomcat&quot; to &quot;HttpComponent&quot;.&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
This should allow you to process all HTTP methods.&lt;/div&gt;
&lt;br /&gt;
I&#39;m yet to clarify whether this problem is related to Tomcat (or the HTTP Connection). Please feel free to respond if you find out!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/5380704980483713274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2012/06/tibco-http-connection-automatically.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/5380704980483713274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/5380704980483713274'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2012/06/tibco-http-connection-automatically.html' title='TIBCO &gt; HTTP Connection automatically responds to HTTP OPTIONS method'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-7656546134809343620</id><published>2012-05-31T00:22:00.000+10:00</published><updated>2012-06-14T18:22:09.897+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bw"/><category scheme="http://www.blogger.com/atom/ns#" term="http"/><category scheme="http://www.blogger.com/atom/ns#" term="mime"/><category scheme="http://www.blogger.com/atom/ns#" term="multipart"/><category scheme="http://www.blogger.com/atom/ns#" term="tibco"/><title type='text'>TIBCO &gt; MimeParts are incorrectly parsed by the HTTP Receiver</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Problem&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The TIBCO ActiveMatrix BusinessWorks Administration document explains it best (&lt;a href=&quot;http://www.google.com.au/search?q=TIBCO+ActiveMatrix+BusinessWorks+Administration+pdf&quot;&gt;last seen here&lt;/a&gt;)&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
In previous releases, when the content-type of an incoming message was &quot;&lt;i&gt;multipart/*&lt;/i&gt;&quot;, the first part of the message was presented as the POSTDATA. This is incorrect according to MIME specification. &lt;/blockquote&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Solution&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
The &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;bw.plugin.http.handleAllMimePartsAsAttachment&lt;/span&gt; property fixes this problem.
&lt;br /&gt;
&lt;br /&gt;
If this property is set to true and the top-level content-type of the incoming HTTP message is &quot;&lt;i&gt;multipart/*&lt;/i&gt;&quot;, then an HTTP Receiver will present all the MIME parts as attachments and the POSTDATA field will be empty. If this property is set to false (the default value), backward compatibility is maintained and the first MIME part is presented as the POSTDATA.
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;N.B.&amp;nbsp;&lt;/b&gt;Do not check the Parse Post Method Data field on the HTTP Receiver process starter when this property is set to true. This causes an error to be thrown.
&lt;/blockquote&gt;
&lt;b&gt;Development&lt;/b&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Simply add the following line to your &lt;i&gt;&amp;lt;designer_home&amp;gt;/&amp;lt;version%gt;&lt;version&gt;/properties.cfg&lt;/version&gt;&lt;/i&gt; file (create it, if it doesn&#39;t already exist).&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;bw.plugin.http.handleAllMimePartsAsAttachment=true&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;Restart Designer&lt;/li&gt;
&lt;/ol&gt;
&lt;b&gt;Runtime &lt;/b&gt;(N.B. I haven&#39;t tested this yet, feedback warmly welcomed!)&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;At run time, append it to the deployed .tra file.&lt;/li&gt;
&lt;/ol&gt;
&lt;b&gt;See also:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;https://www.tibcocommunity.com/thread/13797?tstart=1425&quot;&gt;https://www.tibcocommunity.com/thread/13797?tstart=1425&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/7656546134809343620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2012/05/tibco-mimeparts-are-incorrectly-parsed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/7656546134809343620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/7656546134809343620'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2012/05/tibco-mimeparts-are-incorrectly-parsed.html' title='TIBCO &gt; MimeParts are incorrectly parsed by the HTTP Receiver'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-4601132706309142273</id><published>2011-09-29T00:07:00.000+10:00</published><updated>2011-09-29T09:11:17.599+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="notification-daemon"/><category scheme="http://www.blogger.com/atom/ns#" term="notify-osd"/><category scheme="http://www.blogger.com/atom/ns#" term="screensaver"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="xscreensaver"/><title type='text'>Ubuntu &gt; Display notifications over the screensaver</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I&#39;m currently playing around with notifications, and I&#39;m trying to &quot;keep&quot; notifications displayed above the screensaver, so that I can see if I&#39;ve got new mail or an IM from afar, without having to unlock my pc.&lt;br /&gt;
&lt;br /&gt;
Basically the opposite problem to these:&lt;br /&gt;
&lt;a href=&quot;http://www.jwz.org/xscreensaver/faq.html#popup-windows&quot;&gt;http://www.jwz.org/xscreensaver/faq.html#popup-windows&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.google.com/search?q=notifications+over+screensaver+ubuntu&quot;&gt;http://www.google.com/search?q=notifications+over+screensaver+ubuntu&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I&#39;m using a command similar to the following, to display messages with an infinite timeout:&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;code&gt;$ notify-send -t 0 -i info &quot;You&#39;ve got mail&quot; &quot;mailbox (123)&quot;&lt;/code&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Currently notifications get displayed temporarily &quot;above&quot; the xscreensaver, but eventually xscreensaver will &quot;raise&quot; itself above the notification (e.g. after a minute or two).&lt;br /&gt;
&lt;br /&gt;
Here are my options, as I see it currently:&lt;br /&gt;
&lt;br /&gt;
1) Download the xscreensaver&#39;s source code, modify it to prevent it raising itself above the notifications, build and install it (painful... I&#39;ve managed to build it from the source, but I don&#39;t know what I should be modifying.)&lt;br /&gt;
&lt;br /&gt;
2) Write my own custom screensaver (not really path I want to take, when I already have a notification and screensaver framework).&lt;br /&gt;
&lt;br /&gt;
Are there any other (easier) options I&#39;ve missed? Can anyone help?&lt;br /&gt;
&lt;br /&gt;
(There&#39;s an argument that nothing should be displayed over the top of screensavers... )&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Some context:&lt;/b&gt;&lt;br /&gt;
Ubuntu 11.04&lt;br /&gt;
Unity&lt;br /&gt;
&lt;i&gt;notification-daemon&lt;/i&gt;/natty uptodate 0.5.0-2ubuntu1 (better functionality than &lt;i&gt;notify-osd&lt;/i&gt; - i.e. click to close, vertical stacking, customisation...)&lt;br /&gt;
&lt;i&gt;xscreensaver&lt;/i&gt;/natty uptodate 5.12-0ubuntu3 (more customisable than &lt;i&gt;gnome-screensaver&lt;/i&gt;).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;See also:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The same question, posted on the ubuntu forums: &lt;br /&gt;
&lt;a href=&quot;http://ubuntuforums.org/showthread.php?p=11292893#post11292893&quot;&gt;http://ubuntuforums.org/showthread.php?p=11292893#post11292893&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Traceback to a thread, on customising &lt;i&gt;notify-osd&lt;/i&gt; notifications:&lt;br /&gt;
&lt;a href=&quot;http://www.webupd8.org/2011/05/configurable-notifyosd-bubbles-for.html#dsq-comment-199829486&quot;&gt;http://www.webupd8.org/2011/05/configurable-notifyosd-bubbles-for.html#dsq-comment-199829486&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Another alternative to &lt;i&gt;notification-daemon&lt;/i&gt; and &lt;i&gt;notify-osd&lt;/i&gt; is &lt;i&gt;avant-window-navigator&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;a href=&quot;http://maketecheasier.com/2-ways-to-make-ubuntu-notification-more-user-friendly/2011/05/21&quot;&gt;http://maketecheasier.com/2-ways-to-make-ubuntu-notification-more-user-friendly/2011/05/21&lt;/a&gt; &lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Unfortunately, this is the closest solution I&#39;ve found to notifications whilst the screensaver is running (checkGmail lights up the scroll lock key on the keyboard).&lt;br /&gt;
&lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=1564412&quot;&gt;http://ubuntuforums.org/showthread.php?t=1564412&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/4601132706309142273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/ubuntu-display-notifications-over.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/4601132706309142273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/4601132706309142273'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/ubuntu-display-notifications-over.html' title='Ubuntu &gt; Display notifications over the screensaver'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-7710206605767476379</id><published>2011-09-28T23:44:00.001+10:00</published><updated>2011-09-28T23:44:35.978+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cheat sheets"/><category scheme="http://www.blogger.com/atom/ns#" term="compilation"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Ubuntu &gt; Compiling package/s from source</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Just putting together a quick &quot;cheatsheet&quot; for compiling and installing a package from it&#39;s source code.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Start here:&lt;/b&gt; (it&#39;s all here and it&#39;s very simple...)&lt;br /&gt;
&lt;a href=&quot;https://help.ubuntu.com/community/CompilingSoftware&quot;&gt;https://help.ubuntu.com/community/CompilingSoftware&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://help.ubuntu.com/community/CompilingEasyHowTo&quot;&gt;https://help.ubuntu.com/community/CompilingEasyHowTo&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Pre-requisites:&lt;br /&gt;
&lt;code&gt;sudo apt-get install build-essential checkinstall&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Optional - to assist in retrieving the source code:&lt;br /&gt;
&lt;code&gt;sudo apt-get install cvs subversion git-core mercurial&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
By convention, put source code under here (extract the source if it&#39;s in a zip, tar.gz, etc):&lt;br /&gt;
&lt;code&gt;/usr/local/src&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
From the root of the source code:&lt;br /&gt;
&lt;code&gt;./configure&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Resolve any missing dependencies:&lt;br /&gt;
&lt;code&gt;sudo apt-get build-dep &amp;lt;package&amp;gt;&lt;br /&gt;
apt-file search &amp;lt;your-missing-file.h&amp;gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Build the code:&lt;br /&gt;
&lt;code&gt;sudo make&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Package the code into a *.deb:&lt;br /&gt;
&lt;code&gt;sudo checkinstall&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Install the code directly:&lt;br /&gt;
&lt;code&gt;sudo make install&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Clean up:&lt;br /&gt;
&lt;code&gt;sudo make clean&lt;br /&gt;
sudo make distclean &lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Thats it, nothing ground breaking. Please let me know if there&#39;s anything else I&#39;ve missed.&lt;br /&gt;
&lt;br /&gt;
See also:&lt;br /&gt;
&lt;a href=&quot;http://www.gnu.org/software/make/manual/make.html#Complex-Makefile&quot;&gt;http://www.gnu.org/software/make/manual/make.html#Complex-Makefile&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/7710206605767476379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/ubuntu-compiling-packages-from-source.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/7710206605767476379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/7710206605767476379'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/ubuntu-compiling-packages-from-source.html' title='Ubuntu &gt; Compiling package/s from source'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-4428738820760351397</id><published>2011-09-26T20:05:00.000+10:00</published><updated>2011-09-26T20:05:21.415+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="amd64"/><category scheme="http://www.blogger.com/atom/ns#" term="fedora"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Fedora &gt; libfontconfig.so.1: cannot open shared object file: No such file or directory</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Problem&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Received the following exceptions (seperately) when attempting to run a java program on Fedora 15 amd64.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;
/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory&lt;br /&gt;
... &lt;br /&gt;
libstdc++.so.5: cannot open shared object file: No such file or directory&lt;br /&gt;
... &lt;br /&gt;
Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError: /some/directory/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory&lt;br /&gt;
...&lt;br /&gt;
libfontconfig.so.1: cannot open shared object file: No such file or directory&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Obviously a couple of dependencies were missing. To find out which package/s you need to install to fix a missing dependency, use &quot;&lt;i&gt;yum provides &amp;lt;missing_file&amp;gt;&lt;/i&gt;&quot;.&lt;br /&gt;
e.g.&lt;br /&gt;
&lt;code&gt;
# yum provides libfontconfig.so.1&lt;/code&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;code&gt;fedora/metalink |&amp;nbsp; 21 kB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;br /&gt;&lt;code&gt;jenkins |&amp;nbsp; 951 B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;br /&gt;&lt;code&gt;updates/metalink |&amp;nbsp; 12 kB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;b&gt;fontconfig&lt;/b&gt;-2.8.0-3.fc15.i686 : Font configuration and customization library&lt;/code&gt;&lt;br /&gt;&lt;code&gt;Repo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : fedora&lt;/code&gt;&lt;br /&gt;&lt;code&gt;Matched from:&lt;/code&gt;&lt;br /&gt;&lt;code&gt;Other&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : libfontconfig.so.1&lt;/code&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Then install the packages...&lt;br /&gt;
e.g.&lt;br /&gt;
&lt;code&gt;# yum install &lt;b&gt;fontconfig&lt;/b&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Repeat for all missing files.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/4428738820760351397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/fedora-libfontconfigso1-cannot-open.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/4428738820760351397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/4428738820760351397'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/fedora-libfontconfigso1-cannot-open.html' title='Fedora &gt; libfontconfig.so.1: cannot open shared object file: No such file or directory'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-2574646334571506020</id><published>2011-09-26T19:37:00.002+10:00</published><updated>2011-09-26T19:38:58.614+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cfengine"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>CFEngine &gt; Scalar item in package_list_command =&amp;gt; { ls } in rvalue is out of bounds (value should match pattern &quot;?(/.*))</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;Problem&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Whilst validating a cf-promises file, I received the following output.&lt;br /&gt;
&lt;code&gt;$ cf-promises -f ./promises.cf &lt;br /&gt;cf3&amp;gt; ./packages.cf:23,28: Scalar item in package_list_command =&amp;gt; { ls } in rvalue is out of bounds (value should match pattern &quot;?(/.*)), near token &#39;ls&quot;&#39;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
The associated line is:&lt;br /&gt;
&lt;code&gt;package_list_command =&amp;gt; &quot;ls -1 /your/directory&quot;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Basically, the error is trying to tell us that the &quot;ls&quot; command must be fully qualified.&lt;br /&gt;
&lt;br /&gt;
The associated line should read: &lt;br /&gt;
&lt;code&gt;package_list_command =&amp;gt; &quot;&lt;b&gt;/bin/ls&lt;/b&gt; -1 /your/directory&quot;&lt;/code&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/2574646334571506020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/cfengine-scalar-item-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/2574646334571506020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/2574646334571506020'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/cfengine-scalar-item-in.html' title='CFEngine &gt; Scalar item in package_list_command =&amp;gt; { ls } in rvalue is out of bounds (value should match pattern &quot;?(/.*))'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-9111063284263209655</id><published>2011-09-22T23:08:00.001+10:00</published><updated>2011-09-22T23:08:43.912+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fedora"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="X11"/><title type='text'>Fedora &gt; java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Problem&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The following exception was encountered when running a java program on Fedora: &lt;br /&gt;
&lt;i&gt;java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment &lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Assumptions:&lt;/b&gt; you know what an &lt;i&gt;xserver&lt;/i&gt; is.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Basically, the java program is trying to access the xserver, and can&#39;t.&lt;br /&gt;
&lt;br /&gt;
If it &lt;b&gt;should&lt;/b&gt; be accessing the xserver, make sure the xserver is started/running:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;e.g. &lt;code&gt;ps -ef | grep Xvfb&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
If it &lt;b&gt;shouldn&#39;t&lt;/b&gt; be accessing an xserver, make sure the &quot;DISPLAY&quot; environment variable is unset:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;code&gt;unset DISPLAY&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;See also:&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://nickztechblog.blogspot.com/2011/09/fedora-install-xvfb-as-service.html&quot;&gt;Fedora &amp;gt; install Xvfb as a service&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/9111063284263209655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/fedora-javalangnoclassdeffounderror.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/9111063284263209655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/9111063284263209655'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/fedora-javalangnoclassdeffounderror.html' title='Fedora &gt; java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-3974243643541535713</id><published>2011-09-22T18:46:00.000+10:00</published><updated>2011-09-22T23:07:00.583+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="printer"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Ubuntu &gt; Filter directory /usr/lib/cups/filter for printer &quot;&amp;lt;yourprinter&amp;gt;&quot; is not owned by root.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Problem&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
You receive the following error status message for a printer, once it is installed (e.g. in the &quot;Print&quot; window).&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Filter directory /usr/lib/cups/filter for printer &quot;&lt;yourprinter&gt;&lt;/yourprinter&gt;&lt;/i&gt;&lt;yourprinter&gt;&lt;i&gt;&quot; is not owned by root.&lt;/i&gt;&amp;nbsp;&lt;/yourprinter&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;yourprinter&gt;You may also see &quot;cups-insecure-filter&quot;.&amp;nbsp;&lt;/yourprinter&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;yourprinter&gt;Solution&lt;/yourprinter&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;yourprinter&gt;Execute the following commands, to change ownership back to root.&amp;nbsp;&lt;/yourprinter&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;yourprinter&gt;&lt;code&gt;
sudo chown -hR root:root /usr/lib/cups/filter/*&amp;nbsp;&lt;/code&gt;&lt;/yourprinter&gt;&lt;/li&gt;
&lt;li&gt;&lt;yourprinter&gt;&lt;code&gt;sudo chown -hR root:root /usr/lib/cups/backend/*&amp;nbsp;&lt;/code&gt;&lt;/yourprinter&gt;&lt;/li&gt;
&lt;li&gt;&lt;yourprinter&gt;&lt;code&gt;service cups restart&amp;nbsp;&lt;/code&gt;&lt;/yourprinter&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;yourprinter&gt;&lt;code&gt;&lt;/code&gt;Your printer should now no longer display the message. (May require closing and reopening the &quot;Print&quot; window).&amp;nbsp;&lt;/yourprinter&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;See also:&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;https://bugs.launchpad.net/ubuntu/+source/cups/+bug/436544&quot;&gt;&lt;yourprinter&gt;https://bugs.launchpad.net/ubuntu/+source/cups/+bug/436544&lt;/yourprinter&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/3974243643541535713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/ubuntu-filter-directory.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/3974243643541535713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/3974243643541535713'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/ubuntu-filter-directory.html' title='Ubuntu &gt; Filter directory /usr/lib/cups/filter for printer &quot;&amp;lt;yourprinter&amp;gt;&quot; is not owned by root.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-5044998121595596236</id><published>2011-09-22T17:41:00.000+10:00</published><updated>2011-09-22T23:07:08.025+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fedora"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="shell"/><title type='text'>Fedora &gt; install Xvfb as a service</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Problem&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I required Xvfb to be installed, and running as a service on a server.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Assumptions:&lt;/b&gt; you know how to use &lt;i&gt;chkconfig, yum&lt;/i&gt;, &lt;i&gt;vi&lt;/i&gt; and &lt;i&gt;chmod&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution&lt;/b&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;code&gt;yum install xorg-x11-server-Xvfb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;vi /etc/init.d/xvfbd &lt;/code&gt;(copy contents below into the file, and save it)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;chmod 755 /etc/init.d/xvfbd &lt;/code&gt;(now we have a service)&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;chkconfig --add xvfbd&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;chkconfig --level 2345 xvfbd on&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
You can now start your service with:&lt;br /&gt;
&lt;code&gt;sudo service xvfbd start&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Check it&#39;s running:&lt;br /&gt;
&lt;code&gt;ps -ef | grep Xvfb&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Check it&#39;s listed to startup automatically for runlevels 2,3,4,5:&lt;br /&gt;
&lt;code&gt;chkconfig --list&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;/etc/init.d/xvfbd&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;code&gt;#!/bin/bash&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;#&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;# description: Xvfb server&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;#&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;# Get function from functions library&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;. /etc/init.d/functions&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;# Start the service Xvfb&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;start() {&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo -n &quot;Starting Xvfb server: &quot;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/bin/Xvfb &amp;amp;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ### Create the lock file ###&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; touch /var/lock/subsys/Xvfb&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; success $&quot;Xvfb server startup&quot;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;}&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;# Restart the service Xvfb&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;stop() {&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo -n &quot;Stopping Xvfb server: &quot;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; killproc Xvfb&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ### Now, delete the lock file ###&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rm -f /var/lock/subsys/Xvfb&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;}&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;### main logic ###&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;case &quot;$1&quot; in&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp; start)&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; start&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp; stop)&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp; status)&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status Xvfb&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp; restart|reload|condrestart)&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; start&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp; *)&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo $&quot;Usage: $0 {start|stop|restart|reload|status}&quot;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit 1&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;esac&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;exit 0&lt;/code&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;See also:&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=2405414040564865826&quot;&gt; &lt;/a&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/linux-write-sys-v-init-script-to-start-stop-service.html&quot;&gt;http://www.cyberciti.biz/tips/linux-write-sys-v-init-script-to-start-stop-service.html&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/5044998121595596236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/fedora-install-xvfb-as-service.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/5044998121595596236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/5044998121595596236'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/fedora-install-xvfb-as-service.html' title='Fedora &gt; install Xvfb as a service'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-5542269982405292078</id><published>2011-09-16T19:28:00.000+10:00</published><updated>2011-09-22T23:06:51.034+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="amd64"/><category scheme="http://www.blogger.com/atom/ns#" term="drivers"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="printer"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Ubuntu &gt; Install Canon Pixma MX870 i386 drivers on amd64</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Problem&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Canon only provide i386 drivers for the PIXMA MX870 All-In-One Printer on their &lt;a href=&quot;http://support-au.canon.com.au/P/search?model=PIXMA+MX870&amp;amp;menu=download&amp;amp;filter=0&amp;amp;tagname=g_os&amp;amp;g_os=Linux&quot;&gt;Australian website&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
These work fine with amd64, but just need the scripts to be tweaked to allow it (very easy to do).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Ensure you have the latest versions for the following applications:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;
$ apt-show-versions | grep -E &quot;libcups2|libcupsys2|libc6|libpopt0&quot;&lt;/code&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;code&gt;e.g.&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;libc6/natty uptodate 2.13-0ubuntu13&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;libc6-dev/natty uptodate 2.13-0ubuntu13&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;libc6-i386/natty uptodate 2.13-0ubuntu13&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;libcups2/natty-security uptodate 1.4.6-5ubuntu1.4&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;libpopt0/natty uptodate 1.16-1
&lt;/code&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow these steps:&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Download the &lt;a href=&quot;http://support-au.canon.com.au/contents/AU/EN/0100272302.html&quot;&gt;MX870 series IJ Printer Driver Ver. 3.30 for Linux (debian Packagearchive)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Extract the cnijfilter-mx870series-3.30-1-i386-deb.tar.gz into a directory&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;&lt;i&gt;Nautilus&lt;/i&gt; &amp;gt; right-click &amp;gt; Extract Here&lt;/li&gt;
&lt;li&gt;&lt;i&gt;Command line&lt;/i&gt; &amp;gt; tar -xvzf cnijfilter-mx870series-3.30-1-i386-deb.tar.gz -C /your/target/dir &lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;Comment out the &quot;i686&quot; lines in the &lt;i&gt;&amp;lt;extracteddir&amp;gt;/install.sh&lt;/i&gt;, as per the instructions &lt;a href=&quot;http://ubuntuforums.org/showpost.php?p=9251912&amp;amp;postcount=1&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Update all &lt;i&gt;&amp;lt;extracteddir&amp;gt;/packages/*.deb&lt;/i&gt; packages by running&amp;nbsp;&lt;i&gt;&lt;package&gt;&lt;/package&gt;repackage.sh&lt;/i&gt; (see below), and removing the line beginning with &quot;Dependency: ...&quot; during the &quot;vi&quot; step.&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;e.g. &lt;code&gt;./repackage.sh &amp;lt;package&amp;gt;.deb&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;Run &lt;i&gt;&amp;lt;extracteddir&amp;gt;/install.sh&lt;/i&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;repackage.sh&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;&quot;&gt;
&lt;code&gt;
#!/bin/bash&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;PACKAGE=${1}&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;dpkg -x $PACKAGE common&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;dpkg --control $PACKAGE&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;vi DEBIAN/control&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;cp -a DEBIAN/ common/&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;dpkg -b common $PACKAGE&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;rm -rf common DEBIAN
&lt;/code&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;See also:&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;https://bugs.launchpad.net/ubuntu/+source/cups/+bug/701856/comments/20&quot;&gt;https://bugs.launchpad.net/ubuntu/+source/cups/+bug/701856/comments/20&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=1475336&quot;&gt;http://ubuntuforums.org/showthread.php?t=1475336&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/5542269982405292078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/ubuntu-install-canon-pixma-mx870-i386.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/5542269982405292078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/5542269982405292078'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/ubuntu-install-canon-pixma-mx870-i386.html' title='Ubuntu &gt; Install Canon Pixma MX870 i386 drivers on amd64'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-5837715775146275181</id><published>2011-09-14T19:10:00.002+10:00</published><updated>2012-04-30T18:23:36.717+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="unity"/><title type='text'>Ubuntu Unity &gt; remove Rhythmbox from the sound menu</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Problem&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Ubuntu &#39;Natty&#39; 11.04&lt;br /&gt;
There&#39;s no (obvious) way to remove rhythmbox from the sound menu in unity.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
According to the documents on the ubuntu wiki, rhythmbox must be removed by using gsettings. Execute the following in your console:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;gsettings set com.canonical.indicator.sound blacklisted-media-players &quot;[&#39;rhythmbox&#39;]&quot;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
See: &lt;a href=&quot;https://wiki.ubuntu.com/SoundMenu#Music_player_integration&quot;&gt;https://wiki.ubuntu.com/SoundMenu#Music_player_integration&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/5837715775146275181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/ubuntu-unity-remove-rhythmbox-from.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/5837715775146275181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/5837715775146275181'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/ubuntu-unity-remove-rhythmbox-from.html' title='Ubuntu Unity &gt; remove Rhythmbox from the sound menu'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-6878714291337825996</id><published>2011-09-14T11:57:00.000+10:00</published><updated>2011-09-14T11:57:22.462+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="firefox"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Install Java Plugin on Ubuntu Firefox</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Current as of: 14 Sept, 2011&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Versions&lt;/b&gt;&lt;br /&gt;
Ubuntu &#39;Natty&#39; 11.04&lt;br /&gt;
Firefox 6.0.2&lt;br /&gt;
Sun Java6 Plugin&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Add the &#39;universe&#39; software source&lt;/b&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Open the &quot;Ubuntu Software Center&quot;&lt;/li&gt;
&lt;li&gt;In the menu, navigate to Edit &amp;gt; Software Sources...&lt;/li&gt;
&lt;li&gt;(Enter administrator password)&lt;/li&gt;
&lt;li&gt;Other Software &amp;gt; Add&lt;/li&gt;
&lt;li&gt;Enter &quot;&lt;code&gt;deb http://archive.canonical.com/ubuntu natty universe&lt;/code&gt;&quot; in the apt line&lt;/li&gt;
&lt;li&gt;Click &quot;Add Source&quot;&lt;/li&gt;
&lt;li&gt;Check that &quot;Canonical Partners universe&quot; entry has been added.&lt;/li&gt;
&lt;li&gt;Click &quot;Close&quot;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;b&gt;Install the java6 plugin&lt;/b&gt;&lt;br /&gt;
Back in the &quot;Ubuntu Software Center&quot; window...&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Navigate to &quot;Get Software&quot; and search for &quot;sun-java6-plugin&quot;&lt;/li&gt;
&lt;li&gt;It should now return an entry for &quot;sun-java6-plugin&quot; &lt;/li&gt;
&lt;li&gt;Click &quot;Install&quot;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
It&#39;s that simple. Once complete, you should now be able to start/restart firefox and the java plugin will be installed.&lt;br /&gt;
&lt;br /&gt;
You can optionally check, that the following symbolic link has been created.&lt;br /&gt;
&lt;code&gt;/usr/lib/mozilla/plugins/libjavaplugin.so -&amp;gt; /etc/alternatives/mozilla-javaplugin.so&lt;/code&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/6878714291337825996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/install-java-plugin-on-ubuntu-firefox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/6878714291337825996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/6878714291337825996'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/install-java-plugin-on-ubuntu-firefox.html' title='Install Java Plugin on Ubuntu Firefox'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-2456660320490342503</id><published>2011-09-11T23:47:00.000+10:00</published><updated>2011-09-22T23:27:10.431+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fedora"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="tibco"/><title type='text'>Fedora &gt; WARNING: / partition has insufficient space to install the items selected</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Problem&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I received the following error, when installing an application on Fedora 15 (Tibco TRA as it happens).&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;WARNING: / partition has insufficient space to install the items selected.&lt;br /&gt;
XXX MB additional space would be needed to install the selected items.&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Create a temp directory that can hold the amount of space required to install the application (e.g. /root/tmp).&lt;br /&gt;
&lt;br /&gt;
Then append the following parameter on to your installation command.&lt;br /&gt;
&lt;code&gt;-is:tempdir /root/tmp&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;See also:&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://publib.boulder.ibm.com/infocenter/iisinfsv/v8r1/index.jsp?topic=/com.ibm.swg.im.iis.productization.iisinfsv.install.doc/topics/iisri_verify_disk_space.html&quot;&gt;http://publib.boulder.ibm.com/infocenter/iisinfsv/v8r1/index.jsp?topic=/com.ibm.swg.im.iis.productization.iisinfsv.install.doc/topics/iisri_verify_disk_space.html&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/2456660320490342503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/fedora-warning-partition-has.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/2456660320490342503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/2456660320490342503'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/fedora-warning-partition-has.html' title='Fedora &gt; WARNING: / partition has insufficient space to install the items selected'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-7333980591168221101</id><published>2011-09-09T17:14:00.000+10:00</published><updated>2011-09-09T17:14:32.678+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fedora"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="security"/><title type='text'>Fedora &gt; /bin/sh: bad interpreter: Permission denied</title><content type='html'>&lt;b&gt;Problem&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Received the following error message when attempting to install an application, in Fedora 15, where the current working directory is /tmp/somedir.&lt;br /&gt;
&lt;code&gt;/bin/sh: bad interpreter: Permission denied&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Security on Fedora/RHEL blocks executing scripts from /tmp. The solution/workaround is to move the directory to my homedrive, and run it from there instead.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.velocityreviews.com/forums/t9645-bash-firefox-installer-bin-sh-bad-interpreter-permission-denied.html&quot;&gt;http://www.velocityreviews.com/forums/t9645-bash-firefox-installer-bin-sh-bad-interpreter-permission-denied.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/7333980591168221101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/fedora-binsh-bad-interpreter-permission.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/7333980591168221101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/7333980591168221101'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2011/09/fedora-binsh-bad-interpreter-permission.html' title='Fedora &gt; /bin/sh: bad interpreter: Permission denied'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-1858105979357993431</id><published>2011-08-23T23:36:00.002+10:00</published><updated>2011-09-11T23:51:45.380+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="shell"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Linux &gt; tag files in a directory by directory name</title><content type='html'>Work in progress...&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# &quot;tagdirs.sh&quot;&lt;br /&gt;
#&lt;br /&gt;
# Simple script which iterates over the first level folders in a given directory,&lt;br /&gt;
# and tags the files in those subdirectories with the parent folder&#39;s name.&lt;br /&gt;
#&lt;br /&gt;
# Usage: ./tagdirs.sh &lt;directory&gt;&lt;br /&gt;
#&lt;br /&gt;
# N.B. Requires &#39;tracker-tag&#39;.&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
# The folder to iterate over.&lt;br /&gt;
FOLDER=$1&lt;br /&gt;
&lt;br /&gt;
# Check param is a directory...&lt;br /&gt;
if [ -d &quot;${1}&quot; ] ; then&lt;br /&gt;
echo &quot;Processing directory &#39;${1}&#39;...&quot;&lt;br /&gt;
else&lt;br /&gt;
echo &quot;Error: bad argument. Expected a valid directory name for the first argument&quot;&lt;br /&gt;
echo &quot;Bad directory name = ${1}&quot;&lt;br /&gt;
exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
(&lt;br /&gt;
IFS=$&#39;\n&#39;&lt;br /&gt;
# For each directory...&lt;br /&gt;
for dir in $(find $FOLDER -maxdepth 1 -mindepth 1 -type d); do&lt;br /&gt;
# Strip directory to folder name only...&lt;br /&gt;
tag=${dir##*/}&lt;br /&gt;
# For each file in the directory...&lt;br /&gt;
for file in $(find $dir -maxdepth 1 -mindepth 1 -type f); do&lt;br /&gt;
echo &quot;Adding tag &#39;${tag}&#39; to file &#39;${file}&#39;...&quot;;&lt;br /&gt;
tracker-tag --add=&quot;${tag}&quot; &quot;${file}&quot;&lt;br /&gt;
done &lt;br /&gt;
done&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&lt;/code&gt;</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/1858105979357993431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2011/08/linux-tag-files-in-directory-by.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/1858105979357993431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/1858105979357993431'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2011/08/linux-tag-files-in-directory-by.html' title='Linux &gt; tag files in a directory by directory name'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2405414040564865826.post-253734990987503991</id><published>2011-08-22T21:26:00.001+10:00</published><updated>2011-08-23T23:38:35.860+10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dlna"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="rygel"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="xbox360"/><title type='text'>Stream content from Ubuntu to an Xbox360</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;Problem&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I wanted to setup Ubuntu (11.04), so that I could access content from an Xbox360 using &lt;a href=&quot;http://en.wikipedia.org/wiki/Digital_Living_Network_Alliance&quot;&gt;DLNA&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Open &quot;Ubuntu Software Center&quot; and install &quot;rygel&quot;&lt;/li&gt;
&lt;li&gt;Also install the additional &quot;Tracker plugin&quot; (only) &lt;/li&gt;
&lt;li&gt;Follow the steps under &lt;a href=&quot;http://live.gnome.org/Rygel/XBox360#Helper_scripts&quot;&gt;Helper Scripts&lt;/a&gt; (requires sqlite3)&lt;/li&gt;
&lt;/ol&gt;Rygel can now be started from the terminal by executing &quot;rygel&quot;.&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;/ol&gt;Movies/Pictures/Video&#39;s tagged in nautilius will be displayed (right click on the file and tag).&lt;br /&gt;
&lt;br /&gt;
See also:&lt;br /&gt;
&lt;a href=&quot;http://live.gnome.org/Rygel&quot;&gt;http://live.gnome.org/Rygel&lt;/a&gt; &lt;br /&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/Digital_Living_Network_Alliance&quot;&gt;http://en.wikipedia.org/wiki/Digital_Living_Network_Alliance&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nickztechblog.blogspot.com/feeds/253734990987503991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nickztechblog.blogspot.com/2011/08/stream-content-from-ubuntu-to-xbox360.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/253734990987503991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2405414040564865826/posts/default/253734990987503991'/><link rel='alternate' type='text/html' href='http://nickztechblog.blogspot.com/2011/08/stream-content-from-ubuntu-to-xbox360.html' title='Stream content from Ubuntu to an Xbox360'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04441057169903292550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>