<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hugo Jonker &#187; work</title>
	<atom:link href="https://sandcat.nl/~hugo/blog/?cat=8&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://sandcat.nl/~hugo/blog</link>
	<description></description>
	<lastBuildDate>Wed, 11 Sep 2019 18:22:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.3</generator>
	<item>
		<title>Printing new OU style</title>
		<link>https://sandcat.nl/~hugo/blog/?p=1223</link>
		<comments>https://sandcat.nl/~hugo/blog/?p=1223#comments</comments>
		<pubDate>Mon, 23 Oct 2017 07:59:32 +0000</pubDate>
		<dc:creator><![CDATA[Hugo]]></dc:creator>
				<category><![CDATA[unix/windows]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://sandcat.nl/~hugo/blog/?p=1223</guid>
		<description><![CDATA[This is a followup of my previous post on printing at the OU, due to new printers being installed. The new process is somewhat easier: Add new printer Choose LPD and give as name the print queue IP address Choose to install a driver from file, and download the Konica Minolta driver for the C368 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img src="/~hugo/img/ou-logo.png" style="margin-right: 20px;" align="left" height="100" alt="OU logo" title="Configuring for the OU network">This is a followup of <a href="/~hugo/blog/?p=1154">my previous post</a> on printing at the OU, due to new printers being installed.</p>
<p>The new process is somewhat easier:</p>
<ul>
<li>Add new printer</li>
<li>Choose LPD and give as name the print queue IP address</li>
<li>Choose to install a driver from file, and download the Konica Minolta driver for the C368 (which covers a whole range of Konica printers)</li>
<li>Set the options according to the documentation for Macs</li>
<li>Finally / most importantly, make sure to submit print jobs under your acronym.
<ul>
<li>for command-line programs: set up an environment variable CUPS_USER. Set it to be your acronym, i.e. <tt>export CUPS_USER=acro</tt>.</li>
<li>for generic purposes: <tt>lpoptions -d<i>PRINTER</i> -o requesting-user-name=<i>ACRONYM</i></tt></li>
</ul>
<li>Now you&#8217;re ready to print!</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>https://sandcat.nl/~hugo/blog/?feed=rss2&#038;p=1223</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Displaylink driver hogging CPU</title>
		<link>https://sandcat.nl/~hugo/blog/?p=1192</link>
		<comments>https://sandcat.nl/~hugo/blog/?p=1192#comments</comments>
		<pubDate>Wed, 28 Jun 2017 11:40:48 +0000</pubDate>
		<dc:creator><![CDATA[Hugo]]></dc:creator>
				<category><![CDATA[unix/windows]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://sandcat.nl/~hugo/blog/?p=1192</guid>
		<description><![CDATA[As mentioned before, DisplayLink works over USB3.0 connection. Hooray! Except that the current driver is hogging unfortunate amounts of CPU. ~2% when nothing&#8217;s happening, but up to 80% when switching windows. I noticed it because of harsh lag. I mean, my computer isn&#8217;t the newest on the block, but it still should be pretty awesome. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img src="/~hugo/img/ou-logo.png" style="margin-right: 10px;" align="left" height="100" alt="OU logo" title="Setting up in the OU environment"><img src="https://upload.wikimedia.org/wikipedia/commons/3/33/DisplayLink-Logo.png" height="50" alt="DisplayLink logo" title="Getting DisplayLink to do what I want"><br /><a href="./?p=1151">As mentioned before</a>, DisplayLink works over USB3.0 connection. Hooray!</p>
<p>Except that the current driver is hogging unfortunate amounts of CPU. ~2% when nothing&#8217;s happening, but up to 80% when switching windows. I noticed it because of harsh lag. I mean, my computer isn&#8217;t the newest on the block, but it still should be pretty awesome. Typing in an online form should be trivial, not something that causes delays&#8230;. but it wasn&#8217;t.</p>
<p>Getting frustrated with the lag, I&#8217;ve uninstalled the driver for now. Life immediately sped up.</p>
]]></content:encoded>
			<wfw:commentRss>https://sandcat.nl/~hugo/blog/?feed=rss2&#038;p=1192</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Printing OU style</title>
		<link>https://sandcat.nl/~hugo/blog/?p=1154</link>
		<comments>https://sandcat.nl/~hugo/blog/?p=1154#comments</comments>
		<pubDate>Thu, 02 Apr 2015 15:51:47 +0000</pubDate>
		<dc:creator><![CDATA[Hugo]]></dc:creator>
				<category><![CDATA[unix/windows]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://sandcat.nl/~hugo/blog/?p=1154</guid>
		<description><![CDATA[Following up on my previous instructions, this time the full story &#8211; including double sided printing. update 2017-06-28: additions to clarify some points (there was some confusion for me after a reinstall, hopefully this fixes things). Edit 2017-10-23: New printers, see new update. Go to the &#8220;add printer&#8221; dialog Choose LPD printer, add the name. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img src="/~hugo/img/ou-logo.png" style="margin-right: 20px;" align="left" height="100" alt="OU logo" title="Configuring for the OU network">Following up on my previous instructions, this time the full story &#8211; including double sided printing.<br />
<b>update 2017-06-28:</b> additions to clarify some points (there was some confusion for me after a reinstall, hopefully this fixes things).<br />
<b>Edit 2017-10-23:</b> New printers, see <a href="/~hugo/blog/?p=1223 ">new update</a>.</p>
<ul>
<li>Go to the &#8220;add printer&#8221; dialog</li>
<li>Choose LPD printer, add the name.<br />
Name is something like MFP-XXX-A0YYYY. XXX for my building is HLR &#8211; my printer is MFP-HRL-A09950.</li>
<li>Download the C360 printer driver (PPD) from the Konica Minolta website (I found multiple options, ended up using the file KOC360UX.ppd)</li>
<li>Use this printer driver. Configuration:
<ul>
<li>paper source unit: PC-408</li>
<li>Finisher: FS-529</li>
<li>Punch Unit: none</li>
<li>Saddle kit: none</li>
</ul>
</li>
<li>Now you need to set up authentication. With thanks to:<br />
<a href="http://ubuntuforums.org/showthread.php?t=2232803">here</a>:</p>
<ol>
<li>Configure the printer normally as LPD &#8211; write down the name you choose eg. CASACRISTO<br />
<strike>IMPORTANT: Choose the driver Generic Postcript/Foomatic</strike><b>Edit:</b> don&#8217;t, use the regular ppd as explained above.</li>
<li>Open a terminal and stop CUPS.<br />
<tt>sudo service cups stop</tt></li>
<li>Edit <tt>/etc/cups/ppd/CASACRISTO.ppd</tt><br />
Adding these 3 lines just before the last line:<br />
<b>Edit:</b> that means: make sure these 3 lines are the last in the file. A newline at the end of the last one of these ends the file.</p>
<pre>
*cupsFilter: "application/vnd.cups-raw 0 minolta"
*cupsFilter: "application/vnd.cups-command 0 commandtops"
*cupsFilter: "application/vnd.cups-postscript 0 minolta"
</pre>
</li>
<li>Create <tt>/etc/cups/ppd/CASACRISTO.km</tt> (enter your own tracking number instead of 1234).<br /> <b>Edit:</b>I used the pincode for scanning here, and the name of the printer, i.e. MFP-HRL-A09950.
<pre>
ACCOUNT_NAME="casacristo"
ACCOUNT_PASSWORD="1234"
ACCOUNT_COETYPE="0"
</pre>
</li>
<li>Create <tt>/usr/lib/cups/filter/minolta</tt> with this content:
<pre>
#!/bin/bash
source /etc/cups/ppd/${PRINTER}.km

echo -en "\033%-12345X"
echo -en "@PJL JOB\015\012"
echo -en "@PJL SET KMSECTIONNAME = \"${ACCOUNT_NAME}\"\015\012"
echo -en "@PJL SET KMSECTIONKEY2 = \"${ACCOUNT_PASSWORD}\"\015\012"
echo -en "@PJL SET KMCOETYPE = ${ACCOUNT_COETYPE}\015\012"
echo -en "@PJL ENTER LANGUAGE = POSTSCRIPT\015\012"

cat -

echo -en "\004\033%-12345X\015\012@PJL EOJ\015\012"
echo -en "\033%-12345X"
</pre>
</li>
<li>Make it executable: <tt>sudo chmod +x /usr/lib/cups/filter/minolta</tt></li>
<li>Restart CUPS: <tt>sudo service cups start</tt></li>
</ol>
</li>
<li>To print doublesided: choose tab &#8220;advanced&#8221;, not tab &#8220;page setup&#8221;.
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>https://sandcat.nl/~hugo/blog/?feed=rss2&#038;p=1154</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>USB3 DisplayLink adapter and Linux: a big YESYES</title>
		<link>https://sandcat.nl/~hugo/blog/?p=1151</link>
		<comments>https://sandcat.nl/~hugo/blog/?p=1151#comments</comments>
		<pubDate>Mon, 30 Mar 2015 13:16:02 +0000</pubDate>
		<dc:creator><![CDATA[Hugo]]></dc:creator>
				<category><![CDATA[unix/windows]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://sandcat.nl/~hugo/blog/?p=1151</guid>
		<description><![CDATA[The OU is using Kensington DisplayLink docking stations. They&#8217;re pretty nifty: one USB plug gets you internet, audio, and video. Under windows, that is :s. After googling a bit, it turns out that DisplayLink did not release any drivers for the USB 3.0 version for Linux. Why? Because they support HDCP, a copy-protection measure for [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img src="/~hugo/img/ou-logo.png" style="margin-right: 10px;" align="left" height="100" alt="OU logo" title="Setting up in the OU environment">The OU is using <a href="http://www.kensington.com/us/us/4723/k33970us/usb-3-0-docking-station-with-d">Kensington DisplayLink</a> docking stations. They&#8217;re pretty nifty: one USB plug gets you internet, audio, and video. <strong>Under windows</strong>, that is :s.</p>
<p>After googling a bit, it turns out that DisplayLink did not release any drivers for the USB 3.0 version for Linux. Why? Because they support <a href="http://en.wikipedia.org/wiki/High-bandwidth_Digital_Content_Protection">HDCP</a>, a copy-protection measure for displays. And they have not (yet?) figured out how to preserve that type of copy protection and have open source drivers (nor, apparently, preserving that with closed-source drivers).</p>
<p>There&#8217;s at least one person looking into getting USB3 DisplayLink working via Linux. And it kind of sounds like he&#8217;s trying to hack HDCP in the process, just because he wants to use his hardware to actually do something. Ugh.</p>
<p><b>UPDATE (2017-02-07)</b>: Woohoo! Solution! There&#8217;s an Ubuntu display driver  available from Displaylink. See <a href="http://support.displaylink.com/knowledgebase/articles/684649-how-to-install-displaylink-software-on-ubuntu">http://support.displaylink.com/knowledgebase/articles/684649-how-to-install-displaylink-software-on-ubuntu</a>. It requires kernel v3.16, which you can get from Ubuntu 14.04.2 onwards. (Thanks to new colleague Fabian for finding this out!).</p>
<p>In a nutshell:</p>
<ul>
<li>Make sure you&#8217;re running linux kernel 3.16 or above</li>
<li>Download driver-installer</li>
<li>Install a signed kernel, boot into signed kernel<br />
<tt>sudo apt-get install linux-signed-generic-lts-$VERSION</tt> &#8211; currently, version is &#8220;xenial&#8221; but you can check which is the latest by using filename completion (i.e., press &lt;Tab&gt;) and picking the newest one. </li>
<li>Install DKMS: <tt>sudo apt-get install dkms</tt></li>
<li>Execute the downloaded installer:<br />
<tt>sudo ./displaylink-driver-$version.run</tt></li>
<li>Unplug your monitor cable and give the system 10-20 sec to resetup the monitor via the USB3 port.</li>
</ul>
<p><em>Sidenote:</em><br />
Using the actual USB3 port on my system instead of a USB2 port increases the speed sufficiently to allow internet, sound, webcam and display all over one port. In retrospect, it&#8217;s kind of obvious that even just running internet and sound over it would become challenging for video conferencing. Great detecting there, Sherlock me.</p>
<p><b>Update 2017-02-17:</b> If you&#8217;re updating the kernel, the installed driver might no longer work (happened to me). In that case: <tt>sudo displaylink-installer uninstall</tt> to remove the driver, reboot, reinstall the driver by <tt>sudo ./displaylink-driver-$version.run</tt> and you&#8217;re good to go again!<br />
You don&#8217;t even need to reboot after reinstalling the driver.<br />
I&#8217;m not sure if you need to reboot at all, but I figured better 20 secs extra and sure about having purged the previous install than lingering in limbo.</p>
<p>Thanks to:<br />
&#8211; <a href="http://displaylink.org/forum/showthread.php?t=1748&#038;page=16">http://displaylink.org/forum/showthread.php?t=1748&#038;page=16</a><br />
&#8211; <a href="http://airlied.livejournal.com/80516.html">http://airlied.livejournal.com/80516.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://sandcat.nl/~hugo/blog/?feed=rss2&#038;p=1151</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Libreoffice and Apache OpenOffice side by side on Ubuntu 14.04.2 LTS</title>
		<link>https://sandcat.nl/~hugo/blog/?p=1133</link>
		<comments>https://sandcat.nl/~hugo/blog/?p=1133#comments</comments>
		<pubDate>Fri, 27 Mar 2015 11:45:13 +0000</pubDate>
		<dc:creator><![CDATA[Hugo]]></dc:creator>
				<category><![CDATA[unix/windows]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://sandcat.nl/~hugo/blog/?p=1133</guid>
		<description><![CDATA[Here&#8217;s the conundrum: to load slides into BlackBoard Collaborate (the Open Universiteit&#8217;s online teaching environment), I need Apache OpenOffice (AOO). To collaborate with people who work in MS Office (most of my colleages, most of the students), Apache OpenOffice is not good enough. Libreoffice (LO) is. So I need the two side-by-side on Ubuntu. Which [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img src="/~hugo/img/ubuntu_icon.png" style="margin-right: 10px;" align="left" width="100" alt="Ubuntu logo" title=" configuring Ubuntu"><img src="/~hugo/img/ou-logo.png" style="margin-left: 10px;" align="right" height="100" alt="OU logo" title="configuring my laptop for the OU">Here&#8217;s the conundrum: to load slides into <a href="http://en.wikipedia.org/wiki/Blackboard_Inc.#Other_products">BlackBoard Collaborate</a> (the Open Universiteit&#8217;s online teaching environment), I need <a href="https://www.openoffice.org/">Apache OpenOffice</a> (AOO). To collaborate with people who work in MS Office (most of my colleages, most of the students), Apache OpenOffice is not good enough. Libreoffice (LO) is.</p>
<p>So I need the two side-by-side on Ubuntu. Which isn&#8217;t easy.</p>
<h3>1. Getting Apache OpenOffice to work with Collaborate</h3>
<ul>
<li><tt>sudo apt-get purge libreoffice\*</tt></li>
<li>Download openoffice and <tt>dpkg -i</tt> the necessary files (don&#8217;t forget the <tt>desktop-integration</tt> subdir!)</li>
</ul>
<p>If you install AOO before removing LO, then the install isn&#8217;t complete. Even though you can use AOO, Collaborate cannot. So purge your LibreOffice :s</p>
<h3>2. Getting LibreOffice back on your system without destroying things</h3>
<p><strong>DO NOT INSTALL LibreOffice FROM THE OFFICIAL REPOSITORIES!</strong><br />
It fails and leaves your package database in an inconsistent state. I had to manually solve the problem by using</p>
<ul>
<li><tt>dpkg -l | grep libreoffice</tt> to check which packages there were, and</li>
<li>removing these with <tt>dpkg --purge</tt>.</li>
</ul>
<p>The convenient command ended up being:<br />
<tt>dpkg -l | grep libreoffice | cut -f 3 -d ' ' | xargs sudo dpkg --purge</tt></p>
<p>That wasn&#8217;t quite enough to fix the database &#8212; there was a remnant of another package in the way. Removing that one (<tt>dpkg --purge python3-uno</tt>) addressed that, and then <tt>apt-get</tt> was happy with me again.</p>
<p>So what to do? Here&#8217;s how: <a href="http://www.libreoffice.org/download/libreoffice-fresh/">download the latest LibreOffice</a>, and install LO from the downloaded DEB files (<tt>tar -zxvf $downloadedfile; cd $LOdir/DEBS; sudo dpkg -i *deb</tt>). That works, and you now have the two side by side :)</p>
]]></content:encoded>
			<wfw:commentRss>https://sandcat.nl/~hugo/blog/?feed=rss2&#038;p=1133</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NTLM authentication working!</title>
		<link>https://sandcat.nl/~hugo/blog/?p=1112</link>
		<comments>https://sandcat.nl/~hugo/blog/?p=1112#comments</comments>
		<pubDate>Thu, 26 Feb 2015 09:54:46 +0000</pubDate>
		<dc:creator><![CDATA[Hugo]]></dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[unix/windows]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://sandcat.nl/~hugo/blog/?p=1112</guid>
		<description><![CDATA[Woohoo! I got NTLM to work! What a relief to finally feel &#8220;connected&#8221; with the rest :) How I finally managed: I installed NTLM APS version 0.9.9.5, and used the following config values (keeping only the pertinent values, the rest isn&#8217;t changed): [GENERAL] PARENT_PROXY: [NTLM_AUTH] NT_HOSTNAME: NT_DOMAIN:pwo USER:hjo PASSWORD: LM_PART:1 NT_PART:1 NTLM_FLAGS: 07820000 NTLM_TO_BASIC:0 Let&#8217;s [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img src="/~hugo/img/ou-logo.png" height="100" style="margin-right: 10px;" align="left" alt="OU logo" title="Setting up for the Open Universiteit">Woohoo! I got NTLM to work! What a relief to finally feel &#8220;connected&#8221; with the rest :)<br />
How I finally managed: I installed <a href="http://sourceforge.net/projects/ntlmaps/?source=typ_redirect">NTLM APS</a> version <strong>0.9.9.5</strong>, and used the following config values (keeping only the pertinent values, the rest isn&#8217;t changed):</p>
<pre>
[GENERAL]
PARENT_PROXY:

[NTLM_AUTH]
NT_HOSTNAME:
NT_DOMAIN:pwo
USER:hjo
PASSWORD:
LM_PART:1
NT_PART:1
NTLM_FLAGS: 07820000
NTLM_TO_BASIC:0
</pre>
<p>Let&#8217;s see if it still works with debugging turned off&#8230;yup! So I&#8217;ve updated that in the above description.</p>
<p>I&#8217;ve now added a tiny PAC file, <tt>proxy-for-local-domain.js</tt>:</p>
<pre>
function FindProxyForURL(url, host) {
        host = host.toLowerCase();
        
        // Route all OU traffic through local NTLM authentication-
        // handling proxy
        if (dnsDomainIs(host, ".ou.nl"))  {
                return "PROXY 127.0.0.1:5865";          // (IP:port)
        }

        // Anything else: just direct
        return "DIRECT";
}
</pre>
<p>and then configured Firefox to use an automatic proxy configuration url of <tt>file://.../proxy-for-local-domain.js</tt>. Tested and it works! woohoo!</p>
]]></content:encoded>
			<wfw:commentRss>https://sandcat.nl/~hugo/blog/?feed=rss2&#038;p=1112</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing my own python proxy (OU setup part XI)</title>
		<link>https://sandcat.nl/~hugo/blog/?p=1109</link>
		<comments>https://sandcat.nl/~hugo/blog/?p=1109#comments</comments>
		<pubDate>Thu, 19 Feb 2015 13:00:14 +0000</pubDate>
		<dc:creator><![CDATA[Hugo]]></dc:creator>
				<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://sandcat.nl/~hugo/blog/?p=1109</guid>
		<description><![CDATA[Python seems to have partially solved my problems. In particular, the requests-ntlm package works. So far, I&#8217;ve done this: sudo apt-get install python-pip sudo pip install requests_ntlm Follow the instructions on the requests_ntlm page in the Python interpreter: >>> import requests >>> from requests_ntlm import HttpNtlmAuth >>> requests.get("http://www.intranet.ou.nl", auth=HttpNtlmAuth('pwo\\XXX', 'mypassword')) Eeeks! We get a 200! [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Python seems to have partially solved my problems. In particular, the <a href="https://github.com/requests/requests-ntlm">requests-ntlm</a> package works. So far, I&#8217;ve done this:</p>
<ul>
<li><tt>sudo apt-get install python-pip</tt></li>
<li><tt>sudo pip install requests_ntlm</tt></li>
<li>Follow the instructions on the requests_ntlm page in the Python interpreter:
<pre>
>>> import requests
>>> from requests_ntlm import HttpNtlmAuth
>>> requests.get("http://www.intranet.ou.nl", auth=HttpNtlmAuth('pwo\\XXX', 'mypassword'))
<Response [200]>
</pre>
</li>
</ul>
<p>Eeeks! We get a 200! Most likely, it&#8217;s an HTTP 200 status code &#8211; i.e. here&#8217;s the goods!! Darnit, now all I need is to get my hands at the result. (<tt>r=requests.get("...")</tt> and <tt>r.text</tt> was sufficient)</p>
]]></content:encoded>
			<wfw:commentRss>https://sandcat.nl/~hugo/blog/?feed=rss2&#038;p=1109</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Printing running; NTLM authentication 1 step closer</title>
		<link>https://sandcat.nl/~hugo/blog/?p=1074</link>
		<comments>https://sandcat.nl/~hugo/blog/?p=1074#comments</comments>
		<pubDate>Fri, 06 Feb 2015 13:35:02 +0000</pubDate>
		<dc:creator><![CDATA[Hugo]]></dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[unix/windows]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://sandcat.nl/~hugo/blog/?p=1074</guid>
		<description><![CDATA[With some help of the OU IT staff, I got one step closer to two things! NTLM authentication This was my goof-up. The cntlm config file was only readable by root. Le doh! So: install cntlm config /etc/cntlm.conf as: Username hjo Domain www.intranet.ou.nl # List of parent proxies to use. More proxies can be defined [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img src="/~hugo/img/ou-logo.png" height="80" style="margin-right: 10px;" align="left">With some help of the OU IT staff, I got one step closer to two things!</p>
<h2>NTLM authentication</h2>
<p>This was my goof-up. The cntlm config file was only readable by root. Le doh!<br />
So:</p>
<ol>
<li>install cntlm</li>
<li>config /etc/cntlm.conf as:<br />
<blockquote><p>
Username        hjo<br />
Domain          www.intranet.ou.nl</p>
<p># List of parent proxies to use. More proxies can be defined<br />
# one per line in format
<proxy_ip>:
<proxy_port>
Proxy           145.20.126.12:8080<br />
#Proxy          10.0.0.42:8080</p>
<p># List addresses you do not want to pass to parent proxies<br />
# * and ? wildcards can be used<br />
#<br />
NoProxy         localhost, 127.0.0.*, 10.*, 192.168.*</p>
<p># Specify the port cntlm will listen on<br />
# You can bind cntlm to specific interface by specifying<br />
# the appropriate IP address also in format <local_ip>:<local_port><br />
# Cntlm listens on 127.0.0.1:3128 by default<br />
#<br />
Listen          3128<br />
Listen          3310</p>
</blockquote>
</li>
<li>run <tt>chmod go+r /etc/cntlm.conf</tt></li>
<li>Generate the password hashes for authentication: <tt>cntlm -H</tt> and enter your password. Example:<br />
<blockquote><p>
$ cntlm -H<br />
Password:<br />
PassLM          FE03A594184396D6552C4BCA4AEBFB11<br />
PassNT          F3496B77FA086840D57D7F868C476AC8<br />
PassNTLMv2      9AB19C7C88EADFC4DE62B818E2878131    # Only for user &#8216;hjo&#8217;, domain &#8216;www.intranet.ou.nl&#8217;
</p></blockquote>
</li>
<li>copy the password hash lines to /<tt>/etc/cntlm.conf</tt> below username/domain.</li>
</ol>
<p>That&#8217;s where I&#8217;m at now. It still doesn&#8217;t work, but we jumped through another hoop! :)</p>
<h2>Printing</h2>
<p>I followed now the Mac instructions again:</p>
<ol>
<li>Go to the &#8220;add printer&#8221; dialog</li>
<li>Choose LPD printer, add the name.<br />
Name is something like MFP-XXX-A0YYYY. XXX for my building is HLR &#8211; my printer is MFP-HLR-A09550.</li>
<li>Download the C360 printer driver (PPD) from the Konica Minolta website (I found multiple options, ended up using the file KOC360UX.ppd)</li>
<li>Use this printer driver. Configuration:
<ul>
<li>paper source unit: PC-408</li>
<li>Finisher: FS-529</li>
<li>Punch Unit: none</li>
<li>Saddle kit: none</li>
</ul>
</li>
<li>Now you need to set up authentication. I&#8217;m not clear on how to do this (doesn&#8217;t work yet), but good info seems to be available from:
<ul>
<li><a href="http://ubuntuforums.org/showthread.php?t=2232803">here</a> for printers in the same class (Konica Minolta C220/280/360 share the same printer driver, apparently)</li>
<li><a href="http://askubuntu.com/questions/316331/where-to-set-account-tracking-in-cups-printing">here</a> for other printers.<br />
This explanation includes a link to an explanation on how to send the correct printer commands apparently.</li>
</ul>
</li>
</ol>
<p>This actually works!</p>
<p>PS: I was running this while using the Java Juniper client, so I was on the VPN.</p>
]]></content:encoded>
			<wfw:commentRss>https://sandcat.nl/~hugo/blog/?feed=rss2&#038;p=1074</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting to VPN (Juniper) on Ubuntu 14.04 64 bit</title>
		<link>https://sandcat.nl/~hugo/blog/?p=1070</link>
		<comments>https://sandcat.nl/~hugo/blog/?p=1070#comments</comments>
		<pubDate>Wed, 04 Feb 2015 17:23:05 +0000</pubDate>
		<dc:creator><![CDATA[Hugo]]></dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[unix/windows]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://sandcat.nl/~hugo/blog/?p=1070</guid>
		<description><![CDATA[The OU is using a VPN. You can connect with a Java applet, unfortunately, we&#8217;re still running an older version that relies on the 32 bit java version. Instructions for working around that can be found here. Moreover, my home dir is encrypted, which apparently a problem (see comment about encrypted home dirs). Solution to [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img src="/~hugo/img/ou-logo.png" height="80" style="margin-right: 10px;" align="left">The OU is using a VPN. You can connect with a Java applet, unfortunately, we&#8217;re still running an older version that relies on the 32 bit java version.</p>
<p>Instructions for working around that can be found<br />
<a href="http://askubuntu.com/questions/450369/how-to-install-juniper-vpn-on-ubuntu-14-04-lts">here</a>.<br />
Moreover, my home dir is encrypted, which apparently <a href="http://askubuntu.com/questions/392594/juniper-crashing-right-after-launching">a problem</a> (see comment about encrypted home dirs).<br />
Solution to that one <a href="http://askubuntu.com/questions/210048/error-when-running-binary-with-root-setuid-under-encrypted-home-directory">from here</a>:<br />
move the setuid binaries somewhere else and symlink them.<br />
I.e.:</p>
<ul>
<li><tt>sudo mv $HOME/.juniper_networks/network_connect/ncsvc /opt/juniper-vpn/ncsvc</tt></li>
<li><tt>ln -s /opt/juniper-vpn/ncsvc $home/.juniper_networks/network_connect/ncsvc</tt></li>
</ul>
<p>This gets it working. Funnily enough, I still cannot connect directly to intranet &#8211; so what is Juniper now doing for me anyway? :)</p>
<p><b>Edit</b><br />
Note that you should *ONLY* link the SUID binary. If you symlink the whole directory, it doesn&#8217;t work and Juniper crashes.<br />
(Thanks Juniper, for that fun-filled 45 minutes of hunting the internet on why you crashed!)</p>
]]></content:encoded>
			<wfw:commentRss>https://sandcat.nl/~hugo/blog/?feed=rss2&#038;p=1070</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange + Google calendars in Thunderbird</title>
		<link>https://sandcat.nl/~hugo/blog/?p=1065</link>
		<comments>https://sandcat.nl/~hugo/blog/?p=1065#comments</comments>
		<pubDate>Mon, 02 Feb 2015 17:49:07 +0000</pubDate>
		<dc:creator><![CDATA[Hugo]]></dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[Thunderbird config]]></category>
		<category><![CDATA[unix/windows]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://sandcat.nl/~hugo/blog/?p=1065</guid>
		<description><![CDATA[Part 2 of getting set up. Obviously, I have an Exchange calendar. Obviously, people are going to be using that to gauge when I&#8217;m available. So I need to manage that calendar in a way that works. Enter the Lightning plugin for Thunderbird! With the previously mentioned DavMail, you can get your exchange calendar in [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img src="/~hugo/img/thunderbird.jpg" style="margin-right: 10px;" align="left" width="100" alt="Thunderbird logo" title="Thunderbird configuration and use tips">Part 2 of getting set up. Obviously, I have an Exchange calendar. Obviously, people are going to be using that to gauge when I&#8217;m available. So I need to manage that calendar in a way that works.</p>
<p>Enter the Lightning plugin for Thunderbird! With the previously mentioned DavMail, you can get your exchange calendar in Thunderbird. Which kind of beats Microsoft&#8217;s web interface &#8211; though not by much.</p>
<p>I also added a Google calendar via CalDav (which works directly with Lightning). Adding and deleting events is nicely synchronized :) Adding another (big) Google calendar, however, borked the overview (appointments no longer shown), though the list above the calendar still showed correct info.</p>
]]></content:encoded>
			<wfw:commentRss>https://sandcat.nl/~hugo/blog/?feed=rss2&#038;p=1065</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
