Jekyll2017-09-06T13:42:59+02:00http://anti.teamidiot.de/AntiNetworkmanual connect to 802.1x with netagent2015-06-16T20:32:59+02:002015-06-16T20:32:59+02:00http://anti.teamidiot.de/nei/2015/06/manual_connect_to_8021x_with_n<p><strong>Note</strong>, The following only works on firmware 5.7 or smaller, I have found no way to make the new dynamic connect version of netagent starting from fw 5.8 work :-(</p>
<p>Adjust the following configs like this:</p>
<p><code class="highlighter-rouge">network.cfg</code></p>
<div class="highlighter-rouge"><pre class="highlight"><code>wifi.9.cacert=yourcert.crt
wifi.9.eapmethod="auth=PAP"
wifi.9.eaptype=TTLS
wifi.9.essid=eduroam
wifi.9.key_and_password_encrypted=0
wifi.9.mode=0
wifi.9.name=eduroam
wifi.9.password=yourpassword
wifi.9.proxy=0
wifi.9.security=2
wifi.9.username=user@realm
</code></pre>
</div>
<p><code class="highlighter-rouge">network.json</code></p>
<div class="highlighter-rouge"><pre class="highlight"><code>[ {
"id": "wifi",
"cacert": "yourcert.crt",
"essid": "eduroam",
"hidden": 0,
"idle": 10,
"key": "",
"mode": 0,
"security": 2,
"wepmode": 0,
"eaptype": "TTLS",
"username": "user@realm",
"usercert": "",
"password": "yourpassword",
"eapmethod": "\"auth=PAP\"",
"network_param": { "ipconfig": 0, "dns_list": [ "", "" ] }
} ]
</code></pre>
</div>
<p>and put the certificate file into <code class="highlighter-rouge">I:\system\Certificates</code></p>Note, The following only works on firmware 5.7 or smaller, I have found no way to make the new dynamic connect version of netagent starting from fw 5.8 work :-( Adjust the following configs like this: network.cfg wifi.9.cacert=yourcert.crt wifi.9.eapmethod="auth=PAP" wifi.9.eaptype=TTLS wifi.9.essid=eduroam wifi.9.key_and_password_encrypted=0 wifi.9.mode=0 wifi.9.name=eduroam wifi.9.password=yourpassword wifi.9.proxy=0 wifi.9.security=2 wifi.9.username=user@realm network.json [ { "id": "wifi", "cacert": "yourcert.crt", "essid": "eduroam", "hidden": 0, "idle": 10, "key": "", "mode": 0, "security": 2, "wepmode": 0, "eaptype": "TTLS", "username": "user@realm", "usercert": "", "password": "yourpassword", "eapmethod": "\"auth=PAP\"", "network_param": { "ipconfig": 0, "dns_list": [ "", "" ] } } ] and put the certificate file into I:\system\CertificatesKeyboard Light on Z302015-06-09T23:15:24+02:002015-06-09T23:15:24+02:00http://anti.teamidiot.de/nei/2015/06/keyboard_light_on_z30<p>By default in <span class="caps">GNOME, </span>you cannot toggle the keyboard light. For <span class="caps">GNOME, </span>there is no solution to use the key binding (<code class="highlighter-rouge">XF86KbdLightOnOff</code>) as intended, because gnome-settings-daemon reserves the key at a level that does not allow any further capturing. Other DMs may not suffice from this “feature”.</p>
<p>What you can do is, to put the function on another keyboard shortcut (ex. Winkey+Z) and have it execute <a href="https://bugzilla.gnome.org/attachment.cgi?id=304893">this script</a></p>
<p>That will toggle through the three keyboard states (automatic, on, off). You can put it on suid-root so that you can change the file in the <code class="highlighter-rouge">/sys</code> interface.</p>
<p><strong>Update</strong> you can also use <code class="highlighter-rouge">acpid</code> and this config file:</p>
<div class="highlighter-rouge"><pre class="highlight"><code>event=button/kbdillumtoggle
action=/path/to/helper
</code></pre>
</div>
<p>(thanks to <em>nulli</em>)</p>By default in GNOME, you cannot toggle the keyboard light. For GNOME, there is no solution to use the key binding (XF86KbdLightOnOff) as intended, because gnome-settings-daemon reserves the key at a level that does not allow any further capturing. Other DMs may not suffice from this “feature”. What you can do is, to put the function on another keyboard shortcut (ex. Winkey+Z) and have it execute this script That will toggle through the three keyboard states (automatic, on, off). You can put it on suid-root so that you can change the file in the /sys interface. Update you can also use acpid and this config file: event=button/kbdillumtoggle action=/path/to/helper (thanks to nulli)Firmware updates for Z30 from Linux2015-06-09T16:44:51+02:002015-06-09T16:44:51+02:00http://anti.teamidiot.de/nei/2015/06/firmware_updates_for_z30_from_<h3 id="bios-update"><span class="caps">BIOS </span>update</h3>
<ul>
<li>Download bios <code class="highlighter-rouge">.exe</code> from <a href="http://support.toshiba.com">Toshiba</a> (US site), it includes <span class="caps">ISO</span>
(EU updates are only for Windows ☹ )</li>
<li>Extract iso image from <code class="highlighter-rouge">.exe</code></li>
<li>Run <code class="highlighter-rouge">isohybrid image.iso</code></li>
<li><code class="highlighter-rouge">cp image.iso /dev/usbstickhere</code></li>
<li><code class="highlighter-rouge">reboot</code></li>
<li>set bios to <span class="caps">CSM </span>boot</li>
<li><code class="highlighter-rouge">F12</code> for boot menu → <span class="caps">USB </span>stick</li>
<li>cross fingers…</li>
<li>set bios back to <span class="caps">UEFI </span>boot</li>
</ul>
<hr />
<h3 id="ssd-firmware-update"><span class="caps">SSD </span>firmware update</h3>
<ul>
<li>Download Samsung <a href="http://www.samsung.com/global/business/semiconductor/minisite/SSD/global/html/support/server_downloads.html">firmware update tool</a></li>
<li>Download <span class="caps">SSD </span>firmware package from <a href="http://support.toshiba-tro.de/">Toshiba</a></li>
<li>extract <code class="highlighter-rouge">*.enc</code> firmware files from the self-extracting archive</li>
<li>run <code class="highlighter-rouge">./magician -d 0 -F -p /path/to/firm</code></li>
</ul>
<p>Required folder structure for <code class="highlighter-rouge">/path/to/firm</code>:</p>
<div class="highlighter-rouge"><pre class="highlight"><code>firm/DSRD.enc
firm/FW
firm/FW/<NAME>
firm/FW/<NAME>/<NAME>.enc
</code></pre>
</div>BIOS update Download bios .exe from Toshiba (US site), it includes ISO (EU updates are only for Windows ☹ ) Extract iso image from .exe Run isohybrid image.iso cp image.iso /dev/usbstickhere reboot set bios to CSM boot F12 for boot menu → USB stick cross fingers… set bios back to UEFI boot SSD firmware update Download Samsung firmware update tool Download SSD firmware package from Toshiba extract *.enc firmware files from the self-extracting archive run ./magician -d 0 -F -p /path/to/firm Required folder structure for /path/to/firm: firm/DSRD.enc firm/FW firm/FW/<NAME> firm/FW/<NAME>/<NAME>.encToshiba Z30 evdev notes2015-03-04T11:00:13+01:002015-03-04T11:00:13+01:00http://anti.teamidiot.de/nei/2015/03/toshiba_z30_evdev_notes<p>The Toshiba <span class="caps">Z30 </span>is a very nice laptop and works out of the box with Linux. Two things can be fixed however:</p>
<ul>
<li>enabling the mouse wheel emulation for the pointing stick</li>
<li>making the touchpad enable/disable hotkey (Fn+F9) work</li>
</ul>
<p>they require patches to the evdev driver due to <a href="https://bugs.freedesktop.org/show_bug.cgi?id=11227" title="Keycodes > 255 do not work in X11">Bug#11227</a> and <a href="https://bugs.freedesktop.org/show_bug.cgi?id=39174" title="wheel emulation cannot be used wit middle mouse emulation">#39174</a> which are unlikely to get fixed for <span class="caps">X11.</span> The <a href="http://www.thenautilus.net/cgit/xf86-input-evdev/">code-remap</a> patch is provided by Gianni Ceccarelli. The patch for <a href="http://lists.x.org/archives/xorg/2015-March/057195.html">mouse wheel emulation</a> can be downloaded from this page.</p>
<p>Here are the relevant config file snippets:</p>
<p><code class="highlighter-rouge">/etc/X11/xorg.conf.d/12-2btnstick.conf</code>:</p>
<div class="highlighter-rouge"><pre class="highlight"><code>Section "InputClass"
Identifier "2 button stick Wheel Emulation"
MatchProduct "DualPoint Stick"
MatchIsPointer "on"
Driver "evdev"
Option "Emulate3Buttons" "on"
Option "EmulateWheel" "on"
Option "EmulateWheelButton" "2"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection
</code></pre>
</div>
<p><code class="highlighter-rouge">/etc/X11/xorg.conf.d/13-toshkeys.conf</code>:</p>
<div class="highlighter-rouge"><pre class="highlight"><code>Section "InputClass"
Identifier "Toshiba input device buttom remap"
MatchProduct "Toshiba input device"
MatchIsKeyboard "on"
Driver "evdev"
Option "event_key_remap" "418=156 419=157 530=199"
EndSection
</code></pre>
</div>
<p>This will remap the zoom-buttons to Launch1 and Launch2 as I couldn’t find any zoom buttons implemented in <span class="caps">X11.</span></p>The Toshiba Z30 is a very nice laptop and works out of the box with Linux. Two things can be fixed however: enabling the mouse wheel emulation for the pointing stick making the touchpad enable/disable hotkey (Fn+F9) work they require patches to the evdev driver due to Bug#11227 and #39174 which are unlikely to get fixed for X11. The code-remap patch is provided by Gianni Ceccarelli. The patch for mouse wheel emulation can be downloaded from this page. Here are the relevant config file snippets: /etc/X11/xorg.conf.d/12-2btnstick.conf: Section "InputClass" Identifier "2 button stick Wheel Emulation" MatchProduct "DualPoint Stick" MatchIsPointer "on" Driver "evdev" Option "Emulate3Buttons" "on" Option "EmulateWheel" "on" Option "EmulateWheelButton" "2" Option "XAxisMapping" "6 7" Option "YAxisMapping" "4 5" EndSection /etc/X11/xorg.conf.d/13-toshkeys.conf: Section "InputClass" Identifier "Toshiba input device buttom remap" MatchProduct "Toshiba input device" MatchIsKeyboard "on" Driver "evdev" Option "event_key_remap" "418=156 419=157 530=199" EndSection This will remap the zoom-buttons to Launch1 and Launch2 as I couldn’t find any zoom buttons implemented in X11.Network Scanner Server, headless2013-10-30T18:59:46+01:002013-10-30T18:59:46+01:00http://anti.teamidiot.de/nei/2013/10/network_scanner_daemon_headles<h2 id="usage-scenario">Usage scenario:</h2>
<p>Your small group has a scanner in walking distance, and wants to use it for simple scanning.</p>
<ul>
<li>
<p>It is not worth it to connect the scanner to the user’s computer,</p>
</li>
<li>
<p>and also not worth it to be running back and forth between scanner and computer to check the scanning progress (as is suggested by <a href="http://www.sane-project.org/man/saned.8.html">saned</a>).</p>
</li>
<li>
<p>Mixed local/network scanning on the machine is not required (as suggested in <a href="http://sourceforge.net/projects/scanbd/">scanbd</a>.)</p>
</li>
<li>
<p>The scanner is connected to a machine without display but with audio hardware. In our case it is an old broken Thinkpad.</p>
</li>
<li>
<p>Maybe the scanner is a cheap crappy scanner without <a href="http://en.wikipedia.org/wiki/Automatic_document_feeder">automatic document feeding</a> etc.</p>
</li>
</ul>
<p>This script will poll the buttons, scan according to two pre-sets (you could make the scripts more complex if desired) and publish the result on a Windows share.</p>
<p>Communication with the user is done through speech synthesis software.</p>
<h2 id="end-user-experience">End user experience:</h2>
<ul>
<li>
<p>The Windows share is added once through “Connect Network Drive” in Windows or as a smb:// Bookmark in Nautilus, possibly by a local “Computer Expert”</p>
</li>
<li>
<p>User has something to scan, takes the papers to the room with the scanner. He puts each sheet on the scanner and pushes Button 1. When the scan is finished, he does the same with the next sheet and so on. At the end, the user pushes Button 4 to signal he is done scanning.</p>
</li>
<li>
<p>User goes back to his computer, copies the finished PDF file out of the network share. If necessary, he launches Adobe or another software to fix up any rough edges in the scan.</p>
</li>
<li>
<p>User could also print this document to some printer in yet another room, after reviewing that everything is in order.</p>
</li>
</ul>
<h2 id="script-to-do-it">Script to do it:</h2>
<p>You can grab your copy here: <a href="/static/nei/*/Code/scanbtn.tar">scanbtn.tar</a>. Detailed information is inside the README file therein. Enjoy!</p>Usage scenario: Your small group has a scanner in walking distance, and wants to use it for simple scanning. It is not worth it to connect the scanner to the user’s computer, and also not worth it to be running back and forth between scanner and computer to check the scanning progress (as is suggested by saned). Mixed local/network scanning on the machine is not required (as suggested in scanbd.) The scanner is connected to a machine without display but with audio hardware. In our case it is an old broken Thinkpad. Maybe the scanner is a cheap crappy scanner without automatic document feeding etc. This script will poll the buttons, scan according to two pre-sets (you could make the scripts more complex if desired) and publish the result on a Windows share. Communication with the user is done through speech synthesis software. End user experience: The Windows share is added once through “Connect Network Drive” in Windows or as a smb:// Bookmark in Nautilus, possibly by a local “Computer Expert” User has something to scan, takes the papers to the room with the scanner. He puts each sheet on the scanner and pushes Button 1. When the scan is finished, he does the same with the next sheet and so on. At the end, the user pushes Button 4 to signal he is done scanning. User goes back to his computer, copies the finished PDF file out of the network share. If necessary, he launches Adobe or another software to fix up any rough edges in the scan. User could also print this document to some printer in yet another room, after reviewing that everything is in order. Script to do it: You can grab your copy here: scanbtn.tar. Detailed information is inside the README file therein. Enjoy!easy collaboration or less collaboration2013-09-26T12:24:30+02:002013-09-26T12:24:30+02:00http://anti.teamidiot.de/nei/2013/09/easy_collaboration_or_less_col<p>Lately I see a lot of repositories where the description reads “Unofficial fork of … Disclaimer: I am <span class="caps">NOT </span>the author…”</p>
<p>Do services such as GitHub also have a negative impact on the workings-together of software authors or is it just the new way of doing things?</p>
<p>The forkers try to cast off responsibility by adding such disclaimers, but:</p>
<ul>
<li>Why don’t people even bother to contact the original author?</li>
<li>Or is it the author’s fault for not being reachable?</li>
<li>Or should we just fork and forget?</li>
</ul>
<p>/grumpy old man</p>Lately I see a lot of repositories where the description reads “Unofficial fork of … Disclaimer: I am NOT the author…” Do services such as GitHub also have a negative impact on the workings-together of software authors or is it just the new way of doing things? The forkers try to cast off responsibility by adding such disclaimers, but: Why don’t people even bother to contact the original author? Or is it the author’s fault for not being reachable? Or should we just fork and forget? /grumpy old manwebsite down2013-09-11T20:40:02+02:002013-09-11T20:40:02+02:00http://anti.teamidiot.de/2013/09/website_down<p>slowly getting back up… host address has changed (for now). a minor benefit is https ;-)</p>slowly getting back up… host address has changed (for now). a minor benefit is https ;-)Android set up2013-08-19T17:46:25+02:002013-08-19T17:46:25+02:00http://anti.teamidiot.de/nei/2013/08/android_set_up<p>Most Android software is ad-sponsored so this comes quite as a shock when your previous work place was all with ad-blockers and <span class="caps">FOSS.</span></p>
<ul>
<li>Android open-source store: <a href="http://f-droid.org">f-droid</a></li>
</ul>
<p>Location services:</p>
<ul>
<li><a href="https://play.google.com/store/apps/details?id=com.eclipsim.gpsstatus2"><span class="caps">GPS</span> Status</a> (ad-ware)</li>
<li>Map application that can use <span class="caps">OSM</span>: <a href="https://play.google.com/store/apps/details?id=com.mapquest.android.ace">MapQuest</a> (free)</li>
<li>OsmAnd is the best I found so far, good offline+offline search support</li>
</ul>
<p>Locale switching:</p>
<ul>
<li><del>Nice device locale switching utility: Quick Locale Switcher</del> doesn’t work, unfortunately</li>
<li><a href="https://play.google.com/store/apps/details?id=com.easyjp.apps.localesetter"><del>Locale switching widgets</del></a> don’t work in 5.1</li>
<li><a href="https://play.google.com/store/apps/details?id=com.aokabi.android.localeswitch">LocaleSwitch</a></li>
</ul>
<p>Network:</p>
<ul>
<li><a href="https://play.google.com/store/apps/details?id=org.connectbot">Connectbot</a> (SSH Client)</li>
<li><a href="https://play.google.com/store/apps/details?id=org.mozilla.firefox_beta">Firefox browser</a></li>
<li><a href="https://play.google.com/store/apps/details?id=com.fsck.k9">K9 Mail</a></li>
<li><a href="https://play.google.com/store/apps/details?id=com.xabber.android"><del>Xabber</del></a></li>
<li>Siacs <a href="https://play.google.com/store/apps/details?id=eu.siacs.conversations">Conversations</a></li>
</ul>
<p>Child care:</p>
<ul>
<li>working lockdown app: <a href="https://play.google.com/store/apps/details?id=com.gears42.surelock">SureLock</a> (expensive, 50€)</li>
<li><a href="https://play.google.com/store/apps/details?id=org.dsandler.apps.markers">Markers Doodle app</a></li>
</ul>
<p>Misc:</p>
<ul>
<li><a href="https://play.google.com/store/apps/details?id=com.jecelyin.editor">920 Text Editor</a></li>
<li><del>Ugly as hell but free of ads</del> <a href="https://play.google.com/store/apps/details?id=com.biyoung.android.cncalendar"><del>Chinese lunar calendar</del></a></li>
<li><a href="https://play.google.com/store/apps/details?id=com.findsdk.lunarcalendar">Lunar calendar</a></li>
<li><a href="/static/nei/com.blogspot.applications4android.comicreader-1.apk">Comic reader</a> can read some comics on the net (<a href="https://github.com/applications4android/ComicReader">source code</a>)</li>
<li><a href="https://play.google.com/store/apps/details?id=com.artifex.mupdfdemo">MuPDF</a></li>
</ul>
<p><span class="caps">SYNC</span>:</p>
<ul>
<li><del>one way calendar sync (to android, buggy but free)</del> <a href="https://play.google.com/store/apps/details?id=org.gege.caldavsyncadapter"><del>Caldav Sync</del></a></li>
<li><del>demo contact sync</del> <a href="https://play.google.com/store/apps/details?id=org.dmfs.carddav.sync"><del>CardDAV-Sync free beta</del></a></li>
<li><a href="https://play.google.com/store/apps/details?id=at.bitfire.davdroid"><span class="caps">DAV</span>droid</a></li>
</ul>
<p>Very nice dependency-free dav server to set up on your device: <a href="http://radicale.org/">Radicale</a></p>Most Android software is ad-sponsored so this comes quite as a shock when your previous work place was all with ad-blockers and FOSS. Android open-source store: f-droid Location services: GPS Status (ad-ware) Map application that can use OSM: MapQuest (free) OsmAnd is the best I found so far, good offline+offline search support Locale switching: Nice device locale switching utility: Quick Locale Switcher doesn’t work, unfortunately Locale switching widgets don’t work in 5.1 LocaleSwitch Network: Connectbot (SSH Client) Firefox browser K9 Mail Xabber Siacs Conversations Child care: working lockdown app: SureLock (expensive, 50€) Markers Doodle app Misc: 920 Text Editor Ugly as hell but free of ads Chinese lunar calendar Lunar calendar Comic reader can read some comics on the net (source code) MuPDF SYNC: one way calendar sync (to android, buggy but free) Caldav Sync demo contact sync CardDAV-Sync free beta DAVdroid Very nice dependency-free dav server to set up on your device: RadicaleVisual character Regex Dot “.” replacement2013-08-13T17:39:10+02:002013-08-13T17:39:10+02:00http://anti.teamidiot.de/nei/2013/08/visual_character_regex_dot_rep<p>\X is the Unicode grapheme cluster (a visual character including all combining marks)</p>\X is the Unicode grapheme cluster (a visual character including all combining marks)