<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  
  
  <channel>
    <title>chrisjrob: ubuntu</title>
    <link>https://chrisjrob.com</link>
    <atom:link href="https://chrisjrob.com/tag/ubuntu/feed/index.xml" rel="self" type="application/rss+xml" />
    <description>GNU Linux, Perl and FLOSS</description>
    <language>en-gb</language>
    <pubDate>Fri, 13 Feb 2026 17:22:31 +0000</pubDate>
    <lastBuildDate>Fri, 13 Feb 2026 17:22:31 +0000</lastBuildDate>
    
    <item>
      <title>Ubuntu Simple Scan HP All in One</title>
      <link>https://chrisjrob.com/2016/01/02/ubuntu-simple-scan-hp-all-in-one/</link>
      <pubDate>Sat, 02 Jan 2016 12:14:12 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2016/01/02/ubuntu-simple-scan-hp-all-in-one</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/hp-j6410.jpg" align="right" alt="Featured Image">
         
         <p>At home we have an HP OfficeJet J6410 printer, which has worked brilliantly for years. 
Unlike every previous printer we’ve owned, this printer sits happily on our network and seems perfectly content to be used only very occasionally, whereon it willingly responds with decent quality prints and scans.</p>

<p>I have set up the printer with a static IP address and so the scanning is managed via the web interface <code class="language-plaintext highlighter-rouge">http://192.168.0.100/webScan</code>, whereon the scanned image opens a new tab in the browser, enabling you to save to wherever.</p>

<p>This printing and scanning Nirvana hit a road bump today, when it just instantly went to “Scan done” and failed to actually do anything.
Rebooting the laptop, the printer and clearing temporary internet files all failed to resolve the problem, as did changing from Chrome to Firefox.</p>

<!--more-->

<p>In desperation I tried running Ubuntu Simple Scan, but predictably enough it did not find the printer. 
A quick Internet search took me to <a href="https://help.ubuntu.com/community/HpAllInOne">this excellent Ubunutu community page</a>.</p>

<p>I opened a terminal and typed:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ hp-makeuri 192.168.0.100

CUPS URI: hp:/net/Officejet_J6400_series?ip=192.168.0.100
SANE URI: hpaio:/net/Officejet_J6400_series?ip=192.168.0.100
HP Fax URI: hpfax:/net/Officejet_J6400_series?ip=192.168.0.100

Done.
</code></pre></div></div>

<p>I then typed (taking the SANE URI from above):</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ simple-scan hpaio:/net/Officejet_J6400_series?ip=192.168.0.100
</code></pre></div></div>

<p>And it worked perfectly! Flushed with success I read on to see how to make this a permanent fixture, and it turned out that all I needed to do was configure the CUPS URI for the printer itself (it was previously set to something like <code class="language-plaintext highlighter-rouge">socket://192.168.0.100</code>):</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ vim /etc/cups/printers.com

DeviceURI hp:/net/Officejet_J6400_series?ip=192.168.0.100
</code></pre></div></div>

<p>And now simply running Ubuntu Simple Scan works perfectly.</p>

<p>Thank you Ubuntu community!</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Discovering Dokuwiki</title>
      <link>https://chrisjrob.com/2015/12/03/discovering-dokuwiki/</link>
      <pubDate>Thu, 03 Dec 2015 10:15:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2015/12/03/discovering-dokuwiki</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/dokuwiki.gif" align="right" alt="Featured Image">
         
         <p>I was looking for a Wiki for managing the sharing of a boat, including booking usage, task lists and maintenance, as well as acting as a repository for any-and-all information available.</p>

<p>What it looked like was incidental, but it needed to be really simple for users to edit pages quickly. 
I wanted to squeeze it onto a work server, so it also needed to be really lightweight.</p>

<!--more-->

<h2 id="the-choices">The Choices</h2>

<p>I have experience of using both <a href="http://wordpress.org/">Wordpress</a> and <a href="http://drupal.org/">Drupal</a>, but felt they were too complex and cumbersome for this use-case.
I have also used <a href="http://mediawiki.org/">MediaWiki</a> in the past but, whilst easy to edit, I found it fairly cumbersome to use - it is after all designed for managing vast sites.</p>

<p>In the end I opted for <a href="https://www.dokuwiki.org/">DokuWiki</a>, after stumbling across a site that recommended it as a really simple alternative to MediaWiki.</p>

<h2 id="installing-dokuwiki">Installing DokuWiki</h2>

<p>Dokuwiki is really easy to install, with <a href="https://www.dokuwiki.org/install:ubuntu">delightfully simple instructions for Apache</a>, but following my lightweight wishes I decided to try <a href="https://www.nginx.com/">Nginx</a> for the first time.
Unfortunately I could not immediately find <a href="https://www.dokuwiki.org/install:nginx">Nginx Instructions from DokuWiki</a>, so instead followed these <a href="https://www.rosehosting.com/blog/how-to-install-dokuwiki-on-debian-wheezy-with-nginx/">Nginx Instructions</a> from Rose Hosting.</p>

<p>On first attempt the landing page would not load, but the nginx logs were very clear and helpful in pointing me to increasing a value of <code class="language-plaintext highlighter-rouge">server_names_hash_bucket_size</code> in <code class="language-plaintext highlighter-rouge">/etc/nginx/nginx.conf</code>. 
This I found was commented out (with a default of 32), so I uncommented it and increased it to 64 and restarted nginx. 
At last I could reach the install page and from that point it all worked perfectly.</p>

<p>Later I decided to implement <a href="https://www.dokuwiki.org/rewrite#nginx">Nginx Pretty URLs</a>, which again worked perfectly.</p>

<h2 id="first-impressions">First Impressions</h2>

<p>The main thing I love about DokuWiki is the simplicity.</p>

<p>Creating users is trivial, creating and editing pages is a doddle, there is a reasonably sane way of managing media files, and the Wiki syntax is bearable (not Markdown sadly).</p>

<p>Despite this simplicity, each time I have come across something I’d like to tweak, then there has been a way to do it without resorting to nasty hacks.
Where Plugins are required, these can be installed in seconds via the web interface.</p>

<p>Most of what I was trying to do with this boat site was simply a matter of creating pages, but I did come across a few exceptions:</p>

<h3 id="checklists">Checklists</h3>

<p><img src="/assets/dokuwiki-checklists.png" class="image-left" alt="Example of Checklists" /></p>

<p>One of the key uses for the site is to host a number of checklists, but I wanted tickboxes against each item. 
Not essential clearly, but it turned out to be trivial, simply deciding how to type a tickbox, e.g. square brackets for incomplete <code class="language-plaintext highlighter-rouge">[]</code> and <code class="language-plaintext highlighter-rouge">[x]</code> for complete, and then adding <a href="https://www.dokuwiki.org/entities">DokuWiki Entities</a> to convert these into the appropriate character.</p>

<h3 id="bookings">Bookings</h3>

<p><img src="/assets/dokuwiki-edittable.png" class="image-right" alt="Edit-table Plugin" /></p>

<p>The main problem that I faced was how to enable boat users to book time on the boat and in the end I settled on using simple text tables, but to make them simpler to edit I added Andreas Gohr’s excellent <a href="https://www.dokuwiki.org/plugin:edittable">Edittable Plugin</a>.
This plug-in is so good that I would always install it in any DokuWiki that will have tables.</p>

<p>Whilst this will certainly do for now, I am on the look out for some sort of site to manage bookings properly - if you know of anything suitable please do comment below, otherwise at some point I will probably write one in <a href="http://perldancer.org/">Perl Dancer</a>!</p>

<h2 id="conclusions">Conclusions</h2>

<p>Under the Use Cases on the <a href="https://www.dokuwiki.org/">DokuWiki</a> website there is the suggestion of using it for a Private Notebook - having used DokuWiki I can totally see how that would make sense - it is <em>that</em> simple to create and edit.</p>

<p><a href="https://www.dokuwiki.org/">DokuWiki</a> has definitely filled a gap in my web toolbox, alongside <a href="http://perldancer.org/">Perl Dancer</a> and <a href="http://jekyllrb.com/">Jekyll</a>.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Intermittent USB3 Drive Mount Continued</title>
      <link>https://chrisjrob.com/2015/11/27/intermittent-usb3-drive-mount-continued/</link>
      <pubDate>Fri, 27 Nov 2015 12:10:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2015/11/27/intermittent-usb3-drive-mount-continued</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/anker-usb3-hub.jpg" align="right" alt="Featured Image">
         
         <p>Further to my recent post <a href="/2015/11/17/intermittent-usb3-drive-mount/">Intermittent USB3 Drive Mount</a>, sadly I have to report that, after ten days of perfect operation, this morning once again the drive mount failed.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># dmesg | tail
</code></pre></div></div>

<!--more-->

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[ 7659.848351] usb 2-3: Product: USB3.0 Hub             
[ 7659.848352] usb 2-3: Manufacturer: VIA Labs, Inc.         
[ 7659.852937] usb 2-3: Disable of device-initiated U1 failed.
[ 7659.856435] usb 2-3: Disable of device-initiated U2 failed.
[ 7659.856473] hub 2-3:1.0: USB hub found
[ 7664.860293] hub 2-3:1.0: config failed, can't read hub descriptor (err -22)
[ 7664.863787] usb 2-3: Set SEL for device-initiated U1 failed.
[ 7664.867279] usb 2-3: Set SEL for device-initiated U2 failed.
[ 8137.312105] usb 2-3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 8137.559139] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800bc7e8a20
</code></pre></div></div>

<h2 id="power-control">Power Control</h2>

<p>Following the tack from last time, I once again checked the USB power control status:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># grep . /sys/bus/usb/devices/*/power/control
</code></pre></div></div>

<p>As before these were mostly set to auto, so I switched on again using the same command as before:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># for F in /sys/bus/usb/devices/*/power/control; do echo on &gt;"${F}"; done
# grep . /sys/bus/usb/devices/*/power/control
</code></pre></div></div>

<p>Clearly I need a more permanent fix to that command.</p>

<h2 id="auto-suspend">Auto-Suspend</h2>

<p>I also discovered two more settings:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># grep . /sys/bus/usb/devices/*/power/autosuspend
</code></pre></div></div>

<p>Apparently to switch off auto-suspend you should set the delay seconds to -1:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># for F in /sys/bus/usb/devices/*/power/autosuspend; do echo -1 &gt;"${F}"; done
# grep . /sys/bus/usb/devices/*/power/autosuspend
</code></pre></div></div>

<p>To set this permanently I created a file <code class="language-plaintext highlighter-rouge">/etc/modprobe.d/autosuspend.conf</code>:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>options usbcore autosuspend=-1
</code></pre></div></div>

<p>I came across <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1371233">Ubuntu Bug 1371233</a>, in which there was a suggestion to try:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># echo -1 &gt;/sys/module/usbcore/parameters/autosuspend
</code></pre></div></div>

<p>And on the same lines the suggestion to edit <code class="language-plaintext highlighter-rouge">/etc/default/grub</code> file and append to the <code class="language-plaintext highlighter-rouge">GRUB_CMDLINE_LINUX_DEFAULT</code> line:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>usbcore.autosuspend=-1
</code></pre></div></div>

<p>Followed of course by the obligatory:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># update-grub
</code></pre></div></div>

<h2 id="power-level">Power Level</h2>

<p>You can also check your USB power levels:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># grep . /sys/bus/usb/devices/*/power/level
</code></pre></div></div>

<p>Mine were already all switched on, but if not:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># for F in /sys/bus/usb/devices/*/power/level; do echo on &gt;"${F}"; done
# grep . /sys/bus/usb/devices/*/power/level
</code></pre></div></div>

<h2 id="back-to-basics">Back to Basics</h2>

<p>Having run through all the above, I still could not see my drive. 
Unplugging and plugging it back in seems to have no reaction in the logs, suggesting that my drive is not being seen at all.</p>

<p>Re-plugging the USB hub seems to respond okay:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Nov 27 11:51:47 asusi5 kernel: [11372.680605] usb 1-3: USB disconnect, device number 2
Nov 27 11:51:47 asusi5 kernel: [11372.775937] usb 2-3: USB disconnect, device number 3
Nov 27 11:51:54 asusi5 kernel: [11379.603869] usb 1-3: new high-speed USB device number 7 using xhci_hcd
Nov 27 11:51:54 asusi5 kernel: [11379.733470] usb 1-3: New USB device found, idVendor=2109, idProduct=2812
Nov 27 11:51:54 asusi5 kernel: [11379.733478] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Nov 27 11:51:54 asusi5 kernel: [11379.733482] usb 1-3: Product: USB2.0 Hub
Nov 27 11:51:54 asusi5 kernel: [11379.733486] usb 1-3: Manufacturer: VIA Labs, Inc.
Nov 27 11:51:54 asusi5 kernel: [11379.734284] hub 1-3:1.0: USB hub found
Nov 27 11:51:54 asusi5 kernel: [11379.734556] hub 1-3:1.0: 4 ports detected
</code></pre></div></div>

<p>But still plugging in the USB3 drive into that hub still has no effect.</p>

<p>Next I tried re-plugging the USB hub into a different USB3 port. 
This time when I plugged back in the USB drive - it was recognised and worked perfectly.</p>

<h2 id="conclusions">Conclusions</h2>

<p>It could be that one of the above fixes only affects new devices (the auto-suspend probably), and that by choosing a different port it was recognised as a new device and therefore worked.</p>

<p>Equally there could be a hardware problem with the original USB port, perhaps the connector inside the case is a bit dodgy.</p>

<p>For now I will monitor the situation for another week or two and report back.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Howto | Install ESET Remote Administrator on Ubuntu</title>
      <link>https://chrisjrob.com/2015/11/17/install-eset-remote-administrator-on-ubuntu/</link>
      <pubDate>Tue, 17 Nov 2015 20:12:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2015/11/17/install-eset-remote-administrator-on-ubuntu</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/eset-remote-administrator.png" align="right" alt="Featured Image">
         
         <p>After much research I decided to purchase <a href="http://www.eset.co.uk/Business/Endpoint-Security/Endpoint-Antivirus">ESET Antivirus</a> for our Windows clients. 
But rather than install ESET Antivirus on each client in turn, I decided to install ESET Remote Administrator on an Ubuntu VPS.
ESET Remote Administrator is a server program for controlling ESET Antivirus (and other ESET programs) on clients, you can use it to deploy the ESET Agent, which in turn can then install and monitor the ESET Antivirus software.</p>

<!--more-->

<p>Our Windows PCs are controlled by an ActiveDirectory server (actually a <a href="https://www.samba.org/">Samba</a>4 ActiveDirectory server, although that should not make any difference to these instructions).</p>

<p>I found the <a href="http://help.eset.com/era_install/62/en-US/index.html?linux.htm">ESET instructions</a> for so doing decidedly sketchy, but I eventually managed to install it and took some notes as I went. 
I cannot promise these instructions are complete, but used in conjunction with the <a href="http://help.eset.com/era_install/62/en-US/index.html?linux.htm">ESET instructions</a> they may be of help.</p>

<h2 id="update-hosts">Update Hosts</h2>

<p>Edit <code class="language-plaintext highlighter-rouge">/etc/hosts</code>:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>127.0.0.1       localhost.example.lan      localhost.localdomain        localhost
192.168.0.109   eset.example.lan           eset
</code></pre></div></div>

<p>Test by typing the following two commands and checking the output matches:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># hostname
eset

# hostname -f
eset.example.lan
</code></pre></div></div>

<h2 id="dependencies">Dependencies</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># apt-get install mysql-server unixodbc libmyodbc cifs-utils libjcifs-java winbind libqtwebkit4 xvfb
# dpkg-reconfigure libmyodbc 
</code></pre></div></div>

<h2 id="install-mysql-server">Install MySQL Server</h2>

<p>Edit <code class="language-plaintext highlighter-rouge">/etc/mysql/my.cnf</code>:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>max_allowed_packet=33M
</code></pre></div></div>

<p>Restart MySQL</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># service mysql-server restart
</code></pre></div></div>

<h2 id="configure-mysql">Configure MySQL</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># mysql -u root -p
</code></pre></div></div>

<p>Cannot remember whether I created database and/or username and password, suggest you try without and then with.</p>

<h2 id="install-eset-remote-administration-server">Install ESET Remote Administration Server</h2>

<p>Replace ??? with actual:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># sh Server-Linux-x86_64.sh --license-key=??? \
--db-type="MySQL Server" --db-driver="MySQL" --db-hostname=127.0.0.1 --db-port=3306 \
--server-root-password="???" --db-name="era_db" --db-admin-username="root" --db-admin-password="???" \
--db-user-username="era" --db-user-password="???" \
--cert-hostname="eset" --cert-auth-common-name="eset.example.lan" --cert-organizational-unit="eset.example.lan" \
--cert-organization="example ltd" --cert-locality="UK" \
--ad-server="ads.example.lan" --ad-user-name="era" --ad-user-password="???"
</code></pre></div></div>

<p>In case of error, read the following carefully:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>/var/log/eset/RemoteAdministrator/EraServerInstaller.log
</code></pre></div></div>

<h2 id="install-tomcat7">Install Tomcat7</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># apt-get install tomcat7 tomcat7-admin
</code></pre></div></div>

<p>Wait 5 minutes for Tomcat to start, then visit http://localhost:8080 to check it has worked.</p>

<h2 id="configure-ssl">Configure SSL</h2>

<p>See <a href="https://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration">SSL/TLS Configuration HOW-TO</a>.</p>

<h3 id="step-1---generate-keystore">Step 1 - Generate Keystore</h3>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore /usr/share/tomcat7/.keystore
</code></pre></div></div>

<p>Use password ‘changeit’.</p>

<p>At the time of writing $JAVA_HOME is <code class="language-plaintext highlighter-rouge">/usr/lib/jvm/java-7-openjdk-amd64/jre</code></p>

<h3 id="step-2---configure-tomcat">Step 2 - Configure Tomcat</h3>

<p>You should have two sections like this:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>&lt;Connector port="8080" protocol="HTTP/1.1"
           connectionTimeout="20000"
           URIEncoding="UTF-8"
           redirectPort="8443" /&gt;

&lt;Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
           maxThreads="150" scheme="https" secure="true"
           keystoreFile="/usr/share/tomcat7/.keystore" keystorePass="changeit"
           clientAuth="false" sslProtocol="TLS" /&gt;
</code></pre></div></div>

<p>These will already exist, but need uncommenting and adjusting with keystore details.</p>

<h3 id="test">Test</h3>

<p>You should now be able to go to <a href="http://localhost:8443">http://localhost:8443</a>.</p>

<h2 id="join-windows-domain">Join Windows Domain</h2>

<p>The ERA server must be joined to the domain</p>

<p>Install samba and stop any samba services that start.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># apt-get install samba krb5-user smbclient
</code></pre></div></div>

<p>Edit <code class="language-plaintext highlighter-rouge">/etc/samba/smb.conf</code>:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[global]
         workgroup = EXAMPLE
         security = ADS
         realm = EXAMPLE.COM
         dedicated keytab file = /etc/krb5.keytab
         kerberos method = secrets and keytab
         server string = Samba 4 Client %h
         winbind enum users = yes
         winbind enum groups = yes
         winbind use default domain = yes
         winbind expand groups = 4
         winbind nss info = rfc2307
         winbind refresh tickets = Yes
         winbind normalize names = Yes
         idmap config * : backend = tdb
         idmap config * : range = 2000-9999
         idmap config EXAMPLE : backend  = ad
         idmap config EXAMPLE : range = 10000-999999
         idmap config EXAMPLE:schema_mode = rfc2307
         printcap name = cups
         cups options = raw
         usershare allow guests = yes
         domain master = no
         local master = no
         preferred master = no
         os level = 20
         map to guest = bad user
         username map = /etc/samba/smbmap
</code></pre></div></div>

<p>Create <code class="language-plaintext highlighter-rouge">/etc/samba/smbmap</code>:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>!root = EXAMPLE\Administrator Administrator admionistrator
</code></pre></div></div>

<p>Edit <code class="language-plaintext highlighter-rouge">/etc/krb5.conf</code>:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[libdefaults]
      default_realm = EXAMPLE.COM
      dns_lookup_realm = false
      dns_lookup_kdc = true
      ticket_lifetime = 24h
      forwardable = yes
</code></pre></div></div>

<p>Make sure that <code class="language-plaintext highlighter-rouge">/etc/resolv.conf</code> points to the AD DC, and dns is setup correctly.</p>

<p>Then run this command:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># net ads join -U Administrator@EXAMPLE.COM
</code></pre></div></div>

<p>Enter Administrators password when requested.</p>

<p>Edit <code class="language-plaintext highlighter-rouge">/etc/nsswitch.conf</code> and add ‘winbind’ to passwd &amp; group lines.</p>

<p>Start samba services.</p>

<h2 id="update-dns">Update DNS</h2>

<p>For some reason the join does not always create the DNS entry on Samba4, so you may need to add this manually.</p>

<h2 id="references">References</h2>

<ul>
  <li><a href="https://www.samba.org/">Samba</a></li>
  <li><a href="http://help.eset.com/era_install/62/en-US/index.html?linux.htm">ESET Remote Administrator Installation Instructions</a></li>
  <li><a href="http://support.eset.com/kb3728/">Troubleshoot Linux Installation</a></li>
</ul>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Intermittent USB3 Drive Mount</title>
      <link>https://chrisjrob.com/2015/11/17/intermittent-usb3-drive-mount/</link>
      <pubDate>Tue, 17 Nov 2015 14:38:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2015/11/17/intermittent-usb3-drive-mount</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/samsung-drive.jpg" align="right" alt="Featured Image">
         
         <p>I have a problem with a Samsung M3 Portable USB3 external hard drive only working intermittently. 
I use a couple of these for off-site backups for work and so I need them working reliably.
In fairness a reboot does cure the problem, but I hate that as a solution.</p>

<p>To troubleshoot this problem, the first step was to check the system devices:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># ls -al /dev/disk/by-id
</code></pre></div></div>

<!--more-->

<p>But only my main two system drives were showing, and not the USB3 drive, which would have been <code class="language-plaintext highlighter-rouge">sdc</code>, being the third drive (a, b, c).</p>

<h2 id="system-logs">System Logs</h2>

<p>The next step was to check the system logs:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># dmesg | tail
</code></pre></div></div>

<p>This showed no issues at all. Then I checked <code class="language-plaintext highlighter-rouge">syslog</code>:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># tail /var/log/syslog
</code></pre></div></div>

<p>This was completely empty, and had not been written to for almost a year. 
I can’t quite believe I haven’t needed to check the logs in all that time, but there you are.</p>

<p>I checked that rsyslogd was running and it was as user syslog. But the <code class="language-plaintext highlighter-rouge">/var/log/syslog</code> file was owned by root with group adm, but whilst syslog was a member of the adm group, the files all had user rw permissions only <code class="language-plaintext highlighter-rouge">-rw-------</code>.</p>

<p>This was easily fixed:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># chmod g+rw /var/log/*
# service rsyslog restart
</code></pre></div></div>

<p>Now the syslog file was being written to, but there was a problem writing to <code class="language-plaintext highlighter-rouge">/dev/xconsole</code>:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Nov 17 12:20:48 asusi5 rsyslogd: [origin software="rsyslogd" swVersion="7.4.4" x-pid="11006" x-info="http://www.rsyslog.com"] start
Nov 17 12:20:48 asusi5 rsyslogd: rsyslogd's groupid changed to 103
Nov 17 12:20:48 asusi5 rsyslogd: rsyslogd's userid changed to 101
Nov 17 12:20:48 asusi5 rsyslogd-2039: Could no open output pipe '/dev/xconsole': No such file or directory [try http://www.rsyslog.com/e/2039 ]
Nov 17 12:20:48 asusi5 rsyslogd: [origin software="rsyslogd" swVersion="7.4.4" x-pid="11006" x-info="http://www.rsyslog.com"] exiting on signal 15.
</code></pre></div></div>

<p>So I duly visited <a href="http://www.rsyslog.com/e/2039">the link mentioned</a>, which gave instructions for disabling <code class="language-plaintext highlighter-rouge">/dev/xconsole</code>, but this made me nervous and further research suggested that that was indeed the correct fix for headless servers, but possibly not for a desktop PC. Instead I used the following fix:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># mknod -m 640 /dev/xconsole c 1 3
# chown syslog:adm /dev/xconsole
# service rsyslog restart
</code></pre></div></div>

<h2 id="usb-powersaving">USB Powersaving</h2>

<p>Now at least it seems that my syslog is working correctly. Unfortunately unplugging and plugging in the USB drive still was not writing to the logs! When I plugged in the drive the blue light would flash repeatedly and then switch off. I would have believed that the drive had a fault, if it weren’t for the fact that rebooting the PC solves the problem.</p>

<p>Thinking that perhaps this problem was USB3 related, I decided to Google for “USB3 drive not recognised” which found <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1242321">this post</a>. Except, that post was only relevant when operating on battery power, whereas I am using a plugged in desktop PC.  Clearly that page could not be relevant?  Except that in my notification area there is a battery icon, relating to my Uninterruptible Power Supply. But surely Ubuntu couldn’t be treating my UPS as if it were a battery? Could it?</p>

<p>In order to find out the power status of my USB devices I followed the suggestion of typing:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># grep . /sys/bus/usb/devices/*/power/control
</code></pre></div></div>

<p>Most were flagged as “on”, but a number of devices were flagged as “auto”. I decided to try switching them on to see if that made any difference:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># for F in /sys/bus/usb/devices/*/power/control; do echo on &gt;"${F}"; done
# grep . /sys/bus/usb/devices/*/power/control
</code></pre></div></div>

<p>Now all the devices were showing as on. Time to try out the drive again - I unplugged it and plugged it back in again. This time the power light flashed repeatedly and then went solid.</p>

<p>Unfortunately the drive was still not mounted, but at least it was alive now. What next? Ah yes, I should check the logs to see if they have any new messages, now that the drive is powered and my logs are working:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># dmesg | tail
[15243.369812] usb 4-3: reset SuperSpeed USB device number 2 using xhci_hcd
[15243.616871] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880213c71800
</code></pre></div></div>

<h2 id="faulty-usb-sata-bridge">Faulty USB-SATA Bridge</h2>

<p>At last I have something to go on. I searched for that error message, which took me to <a href="http://forums.debian.net/viewtopic.php?f=7&amp;t=117061">this Debian.net page</a>, which suggested:</p>

<blockquote>
  <p>Reason is faulthy usb-sata bridge ASM1051 in USB3 drives. It has nothing to do with motherboards.
See this. <a href="https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a9c54caa456dccba938005f6479892b589975e6a">https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a9c54caa456dccba938005f6479892b589975e6a</a> 
Workaround was made to kernel 3.17-rc5. Now those disks works. Some perfectly and some works but data transfer is not smooth.</p>
</blockquote>

<p>Could that be my problem? I checked my current Kernel:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># uname -r
3.13.0-68-generic
</code></pre></div></div>

<p>So yes, it could be. As I cannot read the device yet, I cannot check whether ASM1051 is present in my USB3 drive.</p>

<p>Having uninstalled 34 obsolete kernels and a further 8 newer kernels that weren’t in use, I was in a position to install the latest Kernel from Vivid with:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># apt install linux-generic-lts-vivid
</code></pre></div></div>

<p>The problem of course is that in order to boot onto the newer Kernel I must reboot, thereby fixing the problem anyway.</p>

<h2 id="and-finally">And finally</h2>

<p>It would be easy to portray this as clear evidence of the difficulty of running Linux, certainly Samsung will have thoroughly tested their drive on Windows and Mac operating systems. That said such problems are <a href="http://lmgtfy.com/?q=usb3+drive+not+showing+up+\(windows%2C+os-x\)">not unheard of on the more popular operating systems</a> and debugging such problems is far harder, I would argue, than the above logical steps.</p>

<p>Having rebooted, as expected, the drive worked. I tried running <code class="language-plaintext highlighter-rouge">lshw</code> to see if ASM1051 was present, but I could not find it. Of course upgrading the Kernel could have fixed the problem anyway.</p>

<p>For the present I will labour under the comforting belief that the problem is fixed and will update this post again when either the problem reoccurs on in a week’s time if all is well!</p>

<ul>
  <li>Please see <a href="/2015/11/27/intermittent-usb3-drive-mount-continued/">Intermittent USB3 Drive Mount Continued</a>…</li>
</ul>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Sleeping Better with Linux</title>
      <link>https://chrisjrob.com/2015/11/15/sleeping-better-with-linux/</link>
      <pubDate>Sun, 15 Nov 2015 19:28:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2015/11/15/sleeping-better-with-linux</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/flux-icon-big.png" align="right" alt="Featured Image">
         
         <p>I was reading <a href="http://www.bbc.co.uk/news/health-34744859">Phones need ‘bed mode’ to protect sleep</a> on the BBC, that computers should have a blue light filter to help people to sleep properly at night. 
As I am frequently working on my laptop until late in the evening, I felt that I should investigate further. 
Currently I do turn down the brightness, but it seems that is not enough.</p>

<!--more-->

<p>The article linked to a program called <a href="https://justgetflux.com/">f.lux</a>, which is free for Linux.
I also came across this article on Linux Magazine <a href="http://www.linux-magazine.com/Online/Features/Avoiding-Eye-Strain">Avoiding Eye Strain</a>.</p>

<h2 id="installation">Installation</h2>

<p>Getting this working on my laptop was trivial:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>sudo add-apt-repository ppa:kilian/f.lux
sudo apt-get update
sudo apt-get install fluxgui
</code></pre></div></div>

<p>Finally I ran the program and set it to launch on start-up. 
I entered latitude as 51.2, which is close enough I believe.</p>

<h2 id="operation">Operation</h2>

<p>The software feels fairly basic, whether this is the same for Windows and Mac I don’t know. 
That said the applet seems to run perfectly in the Ubuntu notification area.</p>

<p>It is very noticeable that the display is more muted and much more comfortable to view in the evening. 
I don’t yet know whether this will work well during the day, nor whether it will improve my sleeping.
But the logic behind it seems sound and there is no reason why it shouldn’t help.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Lenovo ThinkPad X1 Carbon Gen 3</title>
      <link>https://chrisjrob.com/2015/10/09/lenovo-thinkpad-x1-carbon-gen-3/</link>
      <pubDate>Fri, 09 Oct 2015 18:31:57 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2015/10/09/lenovo-thinkpad-x1-carbon-gen-3</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/lenovo-laptop-thinkpad-x1-carbon-2-front-2_300.jpg" align="right" alt="Featured Image">
         
         <p>Following the <a href="/2015/10/01/novatech-n1410-ultrabook-32-months-on/">demise of my Novatech
n1410</a>,
I have now taken delivery of a shiny (actually “shiny” is one thing it
isn’t!) new <a href="http://shop.lenovo.com/gb/en/laptops/thinkpad/x-series/x1-carbon/">Lenovo ThinkPad X1 Carbon Gen
3</a>.
This is not a review of the X1 Carbon - <a href="http://lmgtfy.com/?q=review+x1+carbon+3rd+gen">there are plenty of those
available already</a>, but
merely my experience of the first few days of ownership.</p>

<p>So why did I choose the X1 Carbon?</p>

<!--more-->

<ol>
  <li>Quality of construction and life expectancy;</li>
  <li><a href="http://www.ubuntu.com/certification/hardware/201411-16196/">Ubuntu hardware
certification</a>;</li>
  <li>Screen resolution 2560x1440 - perfect for remote support;</li>
  <li>Keyboard and Trackpad quality - two of my dissatisfactions with the
Novatech;</li>
  <li>Weight: at 1.3kg - it is much lighter than the Novatech and much of
the competition.</li>
</ol>

<p>The high cost was a concern to me, but having paid £479 for the Novatech
and it having only lasted 32 months, I was very conscious that price
isn’t everything. I bought the X1 Carbon from <a href="http://www.businessdirect.bt.com/products/lenovo-thinkpad-x1-carbon-intel-core-i5-5200u-8gb-256gb-ssd-14--windows-7-professional-64-bit-20bs006euk-B758.html">BT Business
Direct</a>
for a touch under £1,000.</p>

<p>When it arrived I was very surprised by the size of the packaging - this
was a very small box for something so expensive! The one thing that I
was not expecting was to be excited by the looks of this laptop - the
words “business-like” best summed up my expectations. In the flesh I
found the X1 Carbon absolutely stunning - the photo above is one of the
few that I have found that do it justice.</p>

<p>By this point I was <a href="http://www.bbc.co.uk/comedy/blackadder/episodes/three/three_ink.shtml">as happy as a Frenchman who’s invented
self-removing
trousers</a>.</p>

<h2 id="ubuntu-installation">Ubuntu Installation</h2>

<p>I downloaded Ubuntu 14.04-3 LTS
64-bit and copied it to my <a href="http://www.amazon.co.uk/gp/product/B00S65FARE/ref=as_li_tl?ie=UTF8&amp;camp=1634&amp;creative=19450&amp;creativeASIN=B00S65FARE&amp;linkCode=as2&amp;tag=robsquadnet-21">iodd 2531 Black USB 3.0 External Hard Drive
Enclosure Virtual DVD Blu-ray
ROM</a>.
The Ubuntu installation was flawless and fast. I opted for a whole drive
encrypted LVM install and in no time was booting into Ubuntu. The screen
was absolutely beautiful - for the first time I had a laptop with a
screen to rival an Apple Macbook.</p>

<h2 id="display-issues">Display Issues</h2>

<p><img src="/assets/imag1412_300.jpg" class="image-right" alt="Screen corruption" /></p>

<p>Ubuntu prompted me to run software update (I never update during the install
process), which I duly did. Having rebooted - disaster struck - the boot
process almost immediately dumped me to this screen. I was able to enter my
drive encryption password blind and it then progressed to the
beautiful LightDM login screen as before.</p>

<p>I <a href="https://bugs.launchpad.net/ubuntu/+source/plymouth/+bug/1503716">logged this as a bug with
Ubuntu</a> and
then installed an <a href="http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.19.8-ckt7-vivid/">Ubuntu Mainline
kernel</a> and, whilst
it still exhibited the screen corruption, it included a new Drive
Encryption Password Prompt which did not suffer from the problem and
gave me a functioning system once again (but read on for more).</p>

<h2 id="trackpad-buttons">Trackpad Buttons</h2>

<p>I then noticed that the trackpad buttons were not working. Well that’s
not entirely true - they were scrolling up and down a page, rather than
behaving as normal trackpad buttons. This <a href="http://askubuntu.com/questions/599477/lenovo-x1-carbon-2015-3rd-gen-20-bs-trackpoint-clickpad-and-wifi">Ubuntu
Question</a>
suggested that I was not alone and offered a solution - that of changing
the trackpad from synaptic to imps driver. I tried this, but instantly
the Trackpad felt less responsive, the cursor slowed down and whatever I
tried to customise it made no odds.</p>

<p>But more importantly the Trackpad buttons still didn’t work.</p>

<p>It is worth noting that even without the Trackpad buttons, you can still
left-click (single finger tap to Trackpad) and right-click (two finger
tap to Trackpad). In reality this is what I shall use in day-to-day
operation, so this is issue is not a show stopper - at least for me.</p>

<p>After much head scratching and trial and error I found that by rebooting
into the original 3.19.0-25 kernel, holding the Shift key down to access
Grub during boot process, not only fixed the Trackpad issue, but it also
resolved the screen corruption issues during the boot process.</p>

<p>As a result, I decided to uninstall the newer Kernel 3.19.0-30, which
contains the problem, along with the mainline kernel and generic LTS
kernel packages. This will prevent any further updates to the
Kernel and is clearly only a short-term fix, but the benefit is a
perfectly working system.</p>

<h2 id="review-of-reported-ubuntu-x1-carbon-gen-3-issues">Review of Reported Ubuntu X1 Carbon Gen 3 Issues</h2>

<p>It is possibly worth reviewing that <a href="http://askubuntu.com/questions/599477/lenovo-x1-carbon-2015-3rd-gen-20-bs-trackpoint-clickpad-and-wifi">Ubuntu
Question</a>
again and the issues raised therein:</p>

<ol>
  <li>Wi-Fi is disconnecting: I have not encountered this problem at all.</li>
  <li>Click-buttons are not working at all: Resolved by returning to kernel
3.19.0-25.</li>
  <li>Vertical Scrolling (with trackpoint and middle button): Not tested
as yet.</li>
  <li>Special Keys (like Brightness): these all work fine for me.</li>
  <li>Screen Characters scrambled on 14.10: not experienced in 14.04 as
yet.</li>
  <li>Trackpoint Sensitivity: I think that was a by-product of the imps
driver - which I have not needed to use.</li>
</ol>

<p>In short, at least for the 3.19.0-25 kernel, this is a fully functioning
Ubuntu laptop!</p>

<h2 id="fingerprint-recognition">Fingerprint Recognition</h2>

<p>I was expecting problems with Fingerprint recognition, but that was not
the case. I simply installed a couple of packages, scanned my
fingerprints and it all worked fine.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get install fprintd fingerprint-gui
</code></pre></div></div>

<p>There were two surprises: The first was that the fingerprint reader
works for command line use - so no more typing the sudo password -
simply swipe your finger! The second surprise was that it doesn’t appear
to work for the initial LightDM login. The fingerprint scanner flashes a
couple of times and then stops. Given that you only type this once in a
session, this isn’t a huge deal, compared to the number of times you
enter passwords for sudo and the lock screen.</p>

<p>There are <a href="https://bugs.launchpad.net/ubuntu/+source/libfprint/+bug/998367">reports of LightDM not working with encrypted home
directories</a>,
but I am using whole Drive Encryption which I wouldn’t have thought
would have been affected in this way, given that I have already entered
my drive encryption password by this point.</p>

<p>If I manage to solve this problem I will of course update this page. If
you have any solutions please do comment below.</p>

<h2 id="wlan---4g-wireless">WLAN - 4G Wireless</h2>

<p>Lastly, an oddity of the BT Business Direct specification is that this
laptop has a 4G WLAN slot. This was not something I particularly wanted,
but of course now that I have it I have had to order a £6.25 per month
Vodafone 4G Data Plan. Once the SIM card arrives I will provide
feedback.</p>

<h2 id="conclusion">Conclusion</h2>

<p>It is easy to be critical of some of the pitfalls in running Ubuntu on
the X1 Carbon, but the reality, with a few caveats, is that it works
flawlessly. The laptop is a joy to use, the keyboard feels wonderful and
running your fingers across the trackpad is an almost sensuous
experience - I may be getting carried away here, but suffice to say that
this is a very good laptop and it is working beautifully on Ubuntu with
the kernel 3.19.0-25.</p>

<p>With luck the bugs will be resolved and I will be able to update the
kernel in due course!</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Linux Microsoft Skype For Business Lync 2013 Client</title>
      <link>https://chrisjrob.com/2015/09/02/linux-microsoft-skype-for-business-lync-2013-client/</link>
      <pubDate>Wed, 02 Sep 2015 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2015/09/02/linux-microsoft-skype-for-business-lync-2013-client</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/pidgin.png" align="right" alt="Featured Image">
         
         <p>I was surprised to learn that Ubuntu 14.04 can talk to Skype for
Business AKA Lync 2013 using the Pidgin Instant Messaging client. The
general steps were:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># apt-get install pidgin pidgin-sipe
</code></pre></div></div>

<p>And then restart Pidgin and add a new Account. The Office Communicator
is the relevant plugin, with the following parameters:</p>

<!--more-->

<ul>
  <li>Protocol: Office Communicator</li>
  <li>Username: Your Office 365 or Skype for Business username - probably
your email address</li>
  <li>Password: Your password is obviously required - and will be stored
unencrypted in the config file, so you may wish to leave this blank
and enter at each login</li>
  <li>Server[:Port]: Leave empty if your set-up has autodiscovery</li>
  <li>Connection type: Auto</li>
  <li>User Agent: UCCAPI/15.0.4420.1017 OC/15.0.4420.1017</li>
  <li>Authentication scheme: TLS-DSK</li>
</ul>

<p>I am unclear why the user agent is required, and whether that will need
to change from time to time or not. So far it has worked fine here.</p>

<p>Unfortunately a few days ago the above set-up stopped working, with
“Failed to authenticate with server”. It seems that you must now use
version 1.20 of the Sipe plugin, which fixes “Office365 rejects RC4 in
TLS-DSK”. As this version was only completed three days ago, it is not
yet available in any of the Ubuntu repositories that I have been able to
find, you will probably have to compile yourself.</p>

<p>Broadly speaking I followed these key stages:</p>

<ol>
  <li>
    <p>Install build tools if you don’t already have them:</p>

    <p><code class="language-plaintext highlighter-rouge">sudo apt-get install build-essential</code></p>
  </li>
  <li>
    <p>Install checkinstall if you don’t already have it:</p>

    <p><code class="language-plaintext highlighter-rouge">sudo apt-get install checkinstall</code></p>
  </li>
  <li>
    <p><a href="http://sourceforge.net/projects/sipe/files/sipe/pidgin-sipe-1.20.1/pidgin-sipe-1.20.1.tar.gz/download">Download source files</a>.</p>
  </li>
  <li>
    <p>Extract source:</p>

    <p><code class="language-plaintext highlighter-rouge">tar -xvvzf pidgin-sipe-1.20.1.tar.gz</code></p>
  </li>
  <li>
    <p>Change into source directory:</p>

    <p><code class="language-plaintext highlighter-rouge">cd pidgin-sipe-1.20.1</code></p>
  </li>
  <li>
    <p>Read carefully the README file in the source directory.</p>
  </li>
  <li>
    <p>Install dependencies listed in the README:</p>

    <p><code class="language-plaintext highlighter-rouge"># apt-get install libpurple-dev libtool intltool pkg-config libglib2.0-dev libxml2-dev libnss3-dev libssl-dev libkrb5-dev libnice-dev libgstreamer0.10-dev</code></p>
  </li>
</ol>

<p>These dependencies may change over time, and your particular
requirements may be different from mine, so please read the README and
that information should take precedence.</p>

<p>Lastly, as an ordinary user, you should now be able to compile. If it
fails at any stage, simply read the error and install the missed
dependency.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ ./configure --prefix=/usr
$ make
$ sudo checkinstall
</code></pre></div></div>

<p>I found checkinstall was pre-populated with sensible settings, and I was
able to continue without making any changes. Once complete a Debian
package will have been created in the current directory, but it will
have already been installed for you.</p>

<p>For some reason I found that at this stage Pidgin would no longer run,
as it was now named <code class="language-plaintext highlighter-rouge">/usr/bin/pidgin.orig</code> instead of <code class="language-plaintext highlighter-rouge">/usr/bin/pidgin</code>, I
tried removing and reinstalling pidgin but to no avail. In the end I
created a symlink (<code class="language-plaintext highlighter-rouge">ln -s /usr/bin/pidgin.orig /usr/bin/pidgin</code>), but you
should not do this unless you experience the same issue. If you know the
reason for this I would be delighted to receive your feedback, as this
isn’t a problem that I have come across before.</p>

<p>Restarting Pidgin and the Office Communicator sprung into life once
more. Sadly I would imagine that this won’t be the last time this plugin
will break, such are the vagaries of connecting to closed proprietary
networks.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Upgrading Ubuntu 12.04 To 14.04 With Limited Bandwidth</title>
      <link>https://chrisjrob.com/2014/09/04/upgrading-ubuntu-12-04-to-14-04-with-limited-bandwidth/</link>
      <pubDate>Thu, 04 Sep 2014 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2014/09/04/upgrading-ubuntu-12-04-to-14-04-with-limited-bandwidth</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/ubuntu-1404-desktop.png" align="right" alt="Featured Image">
         
         <p>Upgrading Ubuntu at work can make you rather unpopular, as the Internet bandwidth
is fully utilised downloading all the updates to packages you have long
since forgotten that you installed.</p>

<p>It also takes time, time that you should be working rather
than upgrading your computer.</p>

<p>For these reasons I like to trickle download the upgrade over a day and
only perform the actual upgrade once all the packages are ready,
typically the following morning.</p>

<!--more-->

<p>This is how I performed my low-bandwidth upgrade…</p>

<p><strong>N.B. This is not the official or recommended way of upgrading between
Ubuntu versions. Specifically my method involves manually disabling some
repositories and updating others to the new release. This would normally
be done by the do-release-upgrade program itself. It works for me, but
please do be aware that you are deviating slightly from the
official method.</strong></p>

<p> </p>

<h2 id="step-1-disable-3rd-party-repositories">Step 1: Disable 3rd Party Repositories</h2>

<p>Launch the Ubuntu Software Centre and from the menu select <strong>Edit</strong>
followed by <strong>Software Sources</strong>. Under the <strong>Other Software</strong> tab
please untick all active repositories.</p>

<p>(This step should in any case be done automatically by step 4).</p>

<h2 id="step-2-update-repositories">Step 2: Update Repositories</h2>

<p>Edit <code class="language-plaintext highlighter-rouge">/etc/apt/sources.list</code> and replace all occurrences of  ”precise”
with “trusty”. If you are of a brave disposition, the following command
should do this for you:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo sed -i.bak 's/precise/trusty/g' sources.list
</code></pre></div></div>

<p>(This will create a copy of sources.list to sources.list.bak, in case
you wish to reverse this.)</p>

<h2 id="step-3-download-packages">Step 3: Download Packages</h2>

<p>Still in the terminal, type:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get updatesudo apt-get -o Acquire::http::Dl-Limit=64 -d dist-upgrade
</code></pre></div></div>

<p>The 64 will limit the bandwidth to 64 Kbps, please adjust to suit your
available bandwidth. The “-d” will instruct apt-get to merely download
the packages and not to install them.</p>

<p>I believe this stage can be aborted with Ctrl+C at any time and run
again, until such time as all the required packages are downloaded.</p>

<h2 id="step-4-upgrade">Step 4: Upgrade</h2>

<p>Still in the terminal, I tend to use GNU Screen for extra resilience,
type:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo do-release-upgrade
</code></pre></div></div>

<h2 id="conclusion">Conclusion</h2>

<p>I am typing this on my newly upgraded 14.04 installation, after a clean
and trouble-free reboot and an entirely fault-free upgrade.</p>

<p>The truly astonishing aspect to an upgrade is the fact that the computer
remains largely usable throughout. I lost my fonts briefly in one
application during Step 4, but otherwise I was able to work normally. It
didn’t even seem to be slowing my computer down greatly, although this
is a fairly powerful workhorse, so your mileage may vary.</p>

<p>Please do comment, if you feel I’ve left anything out in the above, or
indeed if you have found it useful.</p>

<p>Good luck with your upgrade.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Dillinger - The HTML5 Markdown Editor</title>
      <link>https://chrisjrob.com/2014/08/09/dillinger/</link>
      <pubDate>Sat, 09 Aug 2014 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2014/08/09/dillinger</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/dillinger.png" align="right" alt="Featured Image">
         
         <p>I thought I loved
<a href="http://en.wikipedia.org/wiki/Markdown" title="Read about markdown on Wikipedia">markdown</a>.
I thought <a href="http://dillinger.io">Dillinger</a> (an HTML5 Markdown editor)
looked remarkable. So I downloaded and installed it on an Ubuntu 14.04.1
LTS server:</p>

<!--more-->

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ git clone https://github.com/joemccann/dillinger.git dillinger
$ cd dillinger
$ npm i -d
$ mkdir -p public/files/{md,html,pdf}
$ sudo apt-get install nodejs
$ sudo ln -s /usr/bin/nodejs /usr/bin/node
$ npm install express
$ npm install phantomjs
$ cd dillinger
$ node app
</code></pre></div></div>

<p>It looks beautiful and works perfectly and even includes the ability to
export to PDF. But it seems that, for me at least, markdown without
<a href="http://www.vim.org/">Vim</a> just isn’t the same.</p>

<p>Shame that.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>HP 255 G1 Laptop With Ubuntu</title>
      <link>https://chrisjrob.com/2014/07/07/hp-255-g1-laptop-with-ubuntu/</link>
      <pubDate>Mon, 07 Jul 2014 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2014/07/07/hp-255-g1-laptop-with-ubuntu</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/ubuntu-laptop-000.jpg" align="right" alt="Featured Image">
         
         <p>At work I needed a cheap laptop for a computer-illiterate user. Giving
them Windows, would have meant that they would have had to
keep up-to-date with Windows Updates, with all the potential issues that
would cause, along with the need for malware protection. It would also
have pushed up the cost, a laptop capable of pushing Windows along
reasonably decently, would have cost a few hundred pounds at least.</p>

<!--more-->

<p>Generally I would just have purchased a low-end Lenovo laptop and
installed <a href="http://ubuntu.com" title="Ubuntu">Ubuntu</a> onto it, but I was aware
that Ebuyer had recently launched an 
<a href="http://www.ebuyer.com/620311-hp-255-g1-laptop-with-ubuntu-h6q17ea-abu" title="HP 255 G1 Laptop with Ubuntu">HP255 G1 Laptop with Ubuntu pre-installed</a>
for £219.99 inc. vat (just £183 if you can reclaim the VAT).</p>

<p>Buying pre-installed with Ubuntu afforded me the comfort of knowing that
everything would work. Whilst Ubuntu generally does install very easily,
there are sometimes hassles in getting some of the function buttons
working, for brightness, volume etc. Knowing that these issues would all
be sorted, along with saving me the time in having to install Ubuntu,
seemed an attractive proposition.</p>

<h2 id="unboxing">Unboxing</h2>

<p><img src="/assets/ubuntu-laptop-002-300.jpg" class="image-right" alt="Windows 8 Instructions" /></p>

<p>My first impressions were good, the laptop comes with a laptop case and the
laptop itself looks smart enough for a budget machine. An Ubuntu sticker,
instead of the usual Windows sticker, was welcome, although the two sticky
marks where previous stickers had been removed were less so.  Still, at least
they <strong>had</strong> been removed.</p>

<p>Whilst we are on the subject of Windows’ remnants - the Getting Started
leaflet was for Windows 8 rather than Ubuntu. Most Ubuntu users won’t
care, but this is a poor attention to detail and, if this laptop is to
appeal to the mass market, then it may cause confusion.</p>

<h2 id="first-boot">First Boot</h2>

<p>Booting up the laptop for the first time gave me an “Essential First
Boot Set-up is being performed. Please wait.” message. I did wait and
for quite a considerable time - probably a not dissimilar time to
installing Ubuntu from scratch; I couldn’t help but suspect that was
precisely what was happening. Eventually I was presented with a EULA
from HP, which I had no choice but to accept or choose to re-install
from scratch. Finally I was presented with an Ubuntu introduction, which
I confess I skipped; suffice to say the new user was welcomed to Ubuntu
with spinny things.</p>

<p>The first thing to note is that this is Ubuntu 12.04, the previous LTS
(Long Term Support release). This will be supported until 2017, but it
is a shame that it didn’t have the latest LTS release - Ubuntu 14.04.
Users may of course choose to upgrade.</p>

<p><img src="/assets/ubuntu-laptop-003-300.jpg" class="image-left" alt="Ubuntu sticker" /></p>

<p>Secondly, the wireless was slow to detect the wireless access points on the
network. Eventually I decided to restart network-manager, but just as I was
about to do so, it suddenly sprang into life and displayed all the local access
points. Once connected, it will re-connect quickly enough, but it does seem to
take a while to scan new networks. Or perhaps I am just too impatient.</p>

<p>Ubuntu then prompted to run some updates, but the updates failed, as
“91.189.88.153” was said to be unreachable, even though it was
ping-able. The address is owned by
<a href="http://www.canonical.com/" title="Canonical - the Company behind Ubuntu">Canonical</a>,
but whether this was a momentary server error, or some misconfiguration
on the laptop, I have no idea.</p>

<p>This would have been a major stumbling block for a new Ubuntu
user. Running apt-get update and apt-get dist-upgrade worked fine,
typing Ctrl+Alt+t to bring up the terminal and then typing:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ sudo apt-get update
$ sudo apt-get dist-upgrade
</code></pre></div></div>

<p>I notice that this referenced an HP-specific repository doubtless
equipped with hardware specific packages:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>http://oem.archive.canonical.com/updates/ precise-oem.sp1 public
http://hp.archive.canonical.com/updates precise-stella-anaheim public
</code></pre></div></div>

<p>I assume that adding this latter repository would be a good idea if
purchasing a Windows version of this laptop and installing Ubuntu.</p>

<h2 id="hardware">Hardware</h2>

<p>This is a typical chunky laptop.  But, if you were expecting a sleek
Air-like laptop for £220, then you need to take a reality shower. What
it is, is a good-looking, well-made, traditional laptop from a quality
manufacturer. At this price, that really should be enough.</p>

<p>Ubuntu “System Details” reveals that this is running an “AMD E1-1500 APU
with Radeon HD Graphics x 2”, running 64-bit with a 724GB drive and
3.5GiB RAM. That would appear to be a lower spec processor than is
typically available on-line for an HP 255 G1 running Windows; which
generally seem to have 1.75Ghz processors (albeit at twice the price).</p>

<p>The great news was that, as expected, all the buttons worked. So what?
Well, it may seem like a trivial matter whether, for example, pressing
Fn10 increases the volume or not, but I think many of us have the
experience of spending inordinate amounts of time trying to get such
things to work properly. And buttons that don’t work, continue to
irritate until the day you say goodbye to that machine. The fact that
everything works as it should is enormously important and is the primary
reason why buying Ubuntu pre-installed is such a big deal.</p>

<p>The keyboard and trackpad seem perfectly good enough to me, certainly
much better than on my
<a href="http://chrisjrob.com/tag/novatech/" title="Posts about Novatech">Novatech ultrabook</a>; although
<a href="http://www.amazon.co.uk/HP-E1-1500-Processor-Integrated-Graphics/product-reviews/B00K2YUC2K/ref=dpx_acr_txt?showViewpoints=1" title="Amazon reviews">not everyone seems to like
them</a>.
In particular, it is good to have a light on the caps lock key.</p>

<p>I have not tested battery life, but, as this is usually the first thing
to suffer in an entry-level machine, I would not hope for much beyond a
couple of hours.</p>

<p>For other details on hardware, please refer to <a href="http://www.ebuyer.com/620311-hp-255-g1-laptop-with-ubuntu-h6q17ea-abu" title="HP 255 G1 Laptop with Ubuntu">the product
information</a> and
<a href="http://www.reevoo.com/partner/EBU/620311" title="HP 255 G1 Laptop with Ubuntu">read more reviews
here</a>.</p>

<h2 id="performance">Performance</h2>

<p>Booting up takes around 45 seconds and a further 20 seconds to reach the
desktop. That is quite a long time these days for Ubuntu, but fast
enough I would imagine for most users and considerably faster than it
takes Windows to reach a usable state, at least in my experience.</p>

<p>Being that bit slower to boot, Suspend becomes more important: Closing
the lid suspended the laptop and opening it again brought up the lock
screen password prompt almost immediately. Repeated use showed this to
work reliably.</p>

<p>As to system performance, well frankly this is not a fast laptop. Click
on Chromium, post boot, and it takes about 9 seconds to load;
LibreOffice takes about 6 seconds to load. Even loading System Settings
takes a second or two. Once you’ve run them once, after each boot, they
will load again in less than half the time. Despite the slow
performance, it is always perfectly usable, and is absolutely fine for
email and web-browsing applications.</p>

<p>The other thing to remember is that this will be the performance you
should be able to expect throughout its life - i.e. it will not slow
down even more as it gets older. Windows users typically expect their
computers to slow down over time, largely because of the different way
in which system and application settings are stored in Windows. Ubuntu
does not suffer from this problem, meaning that a 5-year-old Ubuntu
installation should be working as fast as it did when it was first
installed.</p>

<h2 id="conclusions">Conclusions</h2>

<p>I struggle to think of what else you could buy that provides a full
desktop experience for £220. And it isn’t even some cheap unbranded
laptop from the developing world. Sure, it isn’t the fastest laptop
around, but it is perfectly fast enough for web, email and office
documents. And the fact that you can expect it to continue working, with
few, if any, worries about viruses, makes it ideal for many users. It
certainly deserves to be a success for HP, Ubuntu and Ebuyer.</p>

<p>But, whilst this low-price, low-power combination was ideal for me on
this occasion, it is a shame that there are no other choices available
pre-installed with Ubuntu. I wonder how many newcomers to Ubuntu will
come with the belief that Ubuntu is slow, when in reality it is the
low-end hardware that is to blame?</p>

<p>Please HP, Ubuntu and Ebuyer - give us more choice.</p>

<p>And Lenovo, please take note - you just lost a sale.</p>

<p>For more reviews please visit
<a href="http://www.reevoo.com/partner/EBU/620311" title="HP 255 G1 with Ubuntu">Reevo</a>.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Ubuntu Lucid Lynx</title>
      <link>https://chrisjrob.com/2010/06/16/ubuntu-lucid-lynx/</link>
      <pubDate>Wed, 16 Jun 2010 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2010/06/16/ubuntu-lucid-lynx</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/ubuntu1004_350.png" align="right" alt="Featured Image">
         
         <p>As a died-in-the-wool KDE user, I’m just coming to terms with KDE4 and mostly loving it.  A few niggles remain, but in the main it is very good indeed.  But I suppose I would hesitate to recommend it to a new user.  Having seen and heard much praise for the latest Ubuntu 10.04 Lucid Lynx, which uses the Gnome desktop, I thought I’d give it a go.</p>

<!--more-->

<p>I started by downloading the ISO image from the Ubuntu website and followed my instructions to Make A Linux USB Key, basically by formatting in super-floppy format (which I find to be the most consistently successful method) and using Unetbootin to write the ISO to the USB Key.  Using a USB key is more convenient, more portable and more environmentally friendly than burning a CD/DVD.</p>

<p>I took a spare laptop, an HP NX7300, and inserted the USB Key.  I entered the BIOS settings and changed the boot order to boot first from USB.   I then booted up the laptop.</p>

<p>HP are not know for their Linux compatibility, but Ubuntu booted up with an attractive boot splash, before logging straight into the very attractively themed Gnome desktop.  The new colour scheme is purple, which is very attractive, although brown still exists in the OpenOffice splash screen to remind us of what used to be.</p>

<p>As expected, network manager failed to activate, and I knew from past experience that I would need to load the proprietary broadcom driver.  Continuing to play it dumb, I waited to see if I would get any help from Ubuntu.  After about half a minute, the restricted drivers’ manager appeared on the top panel, although there was no guidance as to why it had appeared, nor what to do with it.  I clicked on it and then clicked on the option to install the Broadcom STR driver and clicked activate.</p>

<p>After a minute or so it had loaded the Broadcom driver from the USB stick and I noticed that the wireless light had illuminated on the laptop.  Promising!  Unfortunately it then suggested I reboot to load the new driver; which obviously I can’t do, as I am running off a USB stick and would effectively start from scratch again if I rebooted.  I decided to just wait and, sure enough, after a while when I clicked on the wireless symbol on the top panel it offered my local wireless access point.  I selected it, and entered the encryption key, and I was connected.</p>

<p>At this point I had a completely usable desktop environment, including a full office suite (OpenOffice.org), a working web browser (Firefox) and everything else you could possibly wish in a modern desktop environment, all working off a USB stick.  I still find that just amazing.</p>

<p>I must admit that I am surprised by Gnome, it looks gorgeous, it feels very integrated, as if it had been designed as a whole, rather than being a collection of applications brought together.  No it’s not my much loved Debian, and no it’s not my much loved KDE, but it does feel easy to use, very uniform and just… well “right”.</p>

<p>I was particularly impressed by Rhythmbox, which had the built in music store, podcast reader, and local collection.  This does look like an application which would reassure an erstwhile iTunes user.  It’s probably not as good as amaroK, but having pushed amaroK on my mother and regretted it mightily, I think Rhythmbox is a good choice, being infinitely more user friendly.</p>

<p>I even set-up my Gmail account in Evolution, simply by clicking on the mail icon in the top panel and following the wizard to set up my Gmail account.  I played completely dumb, it provided all the necessary server information and network settings for me, and all I needed to know was my Gmail address and password.  That is incredible, anyone could set up their email if it’s that easy.</p>

<p>Having tested it, just to decide whether to recommend it to friends and family, I find myself sorely tempted to install it on my own laptop.</p>


       ]]>
      </description>
    </item>
    
    <item>
      <title>Ubuntu LTSP - how the other half live?</title>
      <link>https://chrisjrob.com/2008/07/06/ubuntu-ltsp-how-the-other-half-live/</link>
      <pubDate>Sun, 06 Jul 2008 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2008/07/06/ubuntu-ltsp-how-the-other-half-live</guid>
      <description>
       <![CDATA[
         
           <img src="https://chrisjrob.com/assets/edubuntu_8.04.png" align="right" alt="Featured Image">
         
         <p>Having a brand new HP ML115 Server which I bought new for £107, I decided to have a play with <a href="http://www.ubuntu.com/">Ubuntu</a> LTSP at home.  Actually I decided on <a href="https://www.edubuntu.org/">Edubuntu</a>, as I wanted to investigate the thin client management which I believe are included.</p>

<p>I downloaded the <a href="http://www.ubuntu.com/download/alternative-downloads">Ubuntu Alternate CD</a> and burned it to disk.  I booted the server onto the CD, missed the fact that I needed to hit F4 Modes and select LTSP before selecting install, whereon I wasted an hour installing Ubuntu-ordinaire.</p>

<!--more-->

<p>Second attempt was pretty straightforward, but, only having a single network card, it warned me to edit <code class="language-plaintext highlighter-rouge">/etc/ltsp/dhcpd.conf</code>.  Booted into Ubuntu without a problem and opened my router’s web interface and cribbed the DHCP settings and DNS settings into <code class="language-plaintext highlighter-rouge">/etc/ltsp/dhcpd.conf</code>.  Switched off the DHCP on my router.  Set-up the server static IP address via the Gnome network manager.  Restarted DHCP with <code class="language-plaintext highlighter-rouge">/etc/init.d/dhcp3-server restart</code>.</p>

<p>Tested a client and got the “workstation not authorized”.</p>

<p>Ran <code class="language-plaintext highlighter-rouge">sudo ltsp-update-sshkeys</code> and <code class="language-plaintext highlighter-rouge">sudo ltsp-update-image</code>, rebooted the client and it worked beautifully, by which I mean that the laptop’s full 1600x1200 resolution was detected, and sound kicked in immediately.</p>

<p>So, even with the false starts, I managed to install a working Ubuntu LTSP server with all the bells and whistles in two and a half hours.  And I could have done it at least an hour quicker than that.  I know Ubuntu come in for some criticism, but that really is impressive usability.  To be fair, I was helped by having knowledge of LTSP, DHCP, and Debian, but supposedly a second network card would have enabled the whole kit-and-kaboodle to work out of the box.</p>

<p>Tomorrow I will have a crack at installing the Edubuntu-Desktop!</p>

<p>Good night.</p>


       ]]>
      </description>
    </item>
    
  </channel> 
</rss>
