Let op: Tweakers stopt per 2023 met Tweakblogs. In dit artikel leggen we uit waarom we hiervoor hebben gekozen.

GNUifying Windows: Make the best of imposed Windows-use at work

By kidde on donderdag 22 oktober 2015 09:00 - Comments (11)
Categories: GNU, Gratis advies, Portable Tools, Windows, Views: 4.766

Chances are, if you work at a big company, you have to work with the beloved Windows and - unlike home - you don't have sudo - er, I mean admin-permissions. If you are a vivid Linux-user at home, it may feel like you're lost without your favourite Linux tools.

However, there's a lot of Free Software / Open Source software for Windows to make you feel more at home. Below I will present a list of the tools I use from time to time. Remember, it's just a list of software I use which I hope you say "Nah, I never heard of that!", that's the goal of this article. It's not meant as a recommendation of any kind, or saying that it's better, or to start a discussion about an utopic world in which you are free to use any OS you like at work.

Please note, the software mentioned below is portable. That means it doesn' t have to be installed. For example, if you have a D-partition on your Windows system, the mentioned software "doesn't even have to touch" your C-partition.
Probably, most people are familiar with the great PortableApps-collection of mostly free software, so I'll skip that one and start with the more "unfamiliar" ones.

GNU Bash
License: GNU GPL v3+
Main developer: GNU for Bash, Steve Kemp (compilation, distribution of the .exe)
Download size: 540KB
Version: 2.03
Download: http://www.steve.org.uk/Software/bash/
First thing you may miss, as the MS DOS shell (cmd) is so clumsy, is a familiar shell. Now, you can install entire Cygwin Portable, but I go for the more minimalistic approach. This is where Steve Kemp's Cygwin-precompiled version of GNU-Bash comes in. I use it quite a lot. Though it has its warty quirks, as bash was never designed to run on Windows, it's convenient for when you need to do some file-shuffling and can't figure out how to make a for-loop in DOS-Batch.

UnxUtils - core Unix utilities
License: GPL v2 I guess, as it's mostly 2003 software.
Download size: 540KB
Main developer: GNU for the utils/ K. M. Syring for the 'Windows version'
Version: 2003?
Download: http://unxutils.sourceforge.net/ --> Download the UnxUpdates.zip
These are GNU Core utilities, like dd, GNU find (which does something different than DOS-find!), pwd, ls, gawk, grep and so on. These old hoary - er I mean tried and trusty tools use the native Windows-library msvcrt.dll, and don't depend on CygWin. If you put the path where these tools are in the Windows path environmental variable, you can use these tools from MS-DOS (cmd) as well! These days, I'm happily firing up "cmd.exe" to use "ls -alF|grep blabla | gawk {blabla} | sort -n". Of course, this can be done in Bash as well, but as I mentioned bash sometimes has its quirks, so I usually use the one which is most convenient.

Sc1 - SCintilla / SciTE (Text editor)
License: BSD'ish
Main developer: Neil Hodgson
Download size: 730KB
Version: 3.1.0 (3.5.1 is available )
Download: http://www.scintilla.org/SciTEDownload.html --> Look for Sc1
For simple programming jobs, which can be done in a text-editor, I use SciTE. Trick is, to find the "single file executable called Sc1" (look for it on the webpage). This is the portable version which doesn't have to be installed.
My favourite features include:
1) Using the alt-key to put the cursor at multiple lines at the same time, very convenient to delete / add quotes at multiple lines at the same time. Hard to position the cursor very precise, but great feature though.
2) Being able to replace newlines, use \r\n (Windows newline) and check the box "transform backslash expresions". Also great for any file juggling.
3) Multiple programming language support: Pres Alt-L and then choose a suited language.

PyScripter (Python interpreter, included modules and IDE)
License: MIT-license (PyScripter) / PSF (Python interpreter and modules)
Main developer: Perica Zivkovic (PyScripter) / PSF
Download size: 106MB (v2) / 22MB (v3).
Version: x86 - includes Python 2.7.5, parallel: version - includes Python 3.2.1 (newer versions are available).
For the programing jobs which are too inconvenient using only bash and SciTE, Python with PyScripter is my favourite. PyScripter is an enhanced text-editor tuned for Python, based on SciTE. This is great for when you're ready and raring to do "quick data juggling" involving defaultdics, maps, zip, multi-dimensional lists and file read / write and the like. I have both Python v2 and Python v3 installed, as v2 has more modules, but uses the more archaic Python v2-language. v3 is smaller, as it includes less modules. Whatever suits you best!
The PyScripter also has a built-in interpreter, so you can run python-commands line-by-line like you would run bash-commands in your bash-shell, without saving your file.
One convenient trick in Portable Python is, you can use it to run a local file-server with SimpleHTTPServer, for cases where you want to share some documents over a network which youd don't control.

AutoHotKey - scripting language / keyboard macro's and scripting GUI's
License: GPL v2
Main developer: Chris Mallett's, and in my opinion loads of credits to Jonathan Bennett and the AutoIT-team.
Installed size: 8MB (including AHK SciTE)
Download: Tons of different portable versions around the web, look up the latest edgy developments here: http://portableapps.com/search/node/autohotkey
This tool may raise discussion, as AutoIT was my favourite way of building a quick-gui for Windows. Not that I make any serious stuff, but for the occasional three-button natty program (close-button excluded), this works great once you finally figure out the confusing syntax.

A bit of history: The AutoIT-team was pretty upset that lots of people were leeching their software and not giving credet / contributing to AutoIT, and that's why AutoIT v3 is no longer GPL anymore: The team intrepidly made it forbidden to reverse-engineer AutoIT. Of course, a fork was inevitable, and it became AutoHotKey. When I switched to AutoHotKey - which is GPL - I didn't know about this history.

In my opinion, AutoHotKey has pretty terrible syntax, all the time I'm confused over expressions and the difference between := and =. This leads to tons of errors for the casual programmer - like me. The new "dialect" AutoHotKey L makes things even more confusing. AutoIT v2 felt way more intinuitive. However, AutoHotKey really shines when it comes to making hotkeys (doh, hence it's name!). If I need to press 4 key combinations quite often, I automate it using HotKey, shortening it to only one key combination. This is something I really miss in Linux!

"Then why do you use it?" I hear you ask. Well, because it's GPL, and because it's actually the quickest way I found to make a GUI-program for Windows, and - most important - also compile it to a standalon executable which doesn't require AutoHotKey to run. That executable can be distributed to colleagues. I spent hours trying to both make a GUI with portable Python, which isn't that hard. But then trying to compile it to a stand alone executable, well, that didn't work. If you're not much of a GPL / Free Software purist, I advice you to try AutoIT v3 as well, and use what suits you best.

TXMouse - Mouse click-'n-paste
License: "Usage is free", I can't find the actual license.
Main developer: Andy Polyakov
Download size: A whopping 41KB
Version: March 2005
Download: http://fy.chalmers.se/~appro/nt/TXMouse/
Select-middle-click-'n-paste like GPM in Linux! The official name is "True X Mouse Gizmo", the canonical name is TXMouse. It does not always work and terribly conflicts with MS Access, and has not seen major updates since 2005, when Windows 7 didn't exist yet. So only use this one if you feel gutsy enough to deal with possible consequences!

Keyla - keyboard switcher ("setxkbmap" and "loadkeys" in one!)
License: GPLv3
Main developer: earshi
Download size: 239KB
Version: 0.1.9
[i]Download: https://code.google.com/p/keyla/
When Microsoft decided upon their keyboard layout-changing method, it seems they did it with breezy indifference. The result is totally terrible for those - like me - who are stuck with a QWERTY-keyboard they want to use as a Dvorak-one: settings kan be changed, but only per window! Now, I want to switch back and forth between Dvorak / QWERTY for _all my windows_ with one key-combination! Seems some Russians had a comparable problem, and that's where Keyla steps in. It does, well, basically only that one task, switching keyboard setting, and that one task really well. Unix-philosophy, huh?

If you wake up from a lucid dream where are your windows are cluttered - 20 of them layered on top of each other and unable to all cilck them away, be not afraid: Windowspager is to Windows what virtual desktops are to Linux. The shortcut key is not Ctrl-Alt arrow but Ctrl-Special (usual Win) + arrow. Less settings and so on, not so fancy as Compiz, but does the job!

License: Public domain
Main developer: Jesse Kornblum
Download size: 3.62MB
Version: 4.4
Download page: https://github.com/jessek/hashdeep/releases/
Once I was feeling feisty, and made the stupid decision I wanted to scan some harddrive for duplicate files. Problem is, this was on Windows. That's when I discovered md5deep, a tool for recursively listing and md5-summing files. After that, Python or some other scripting tool can find duplicates. Of course, it also has other uses such as when downloading something for which an md5-checksum is given. Luckily, it also does SHA1 and SHA256, the latter being preferred these days.

Once you know how to use it, a very hardy tool to "purely educational" strip the "protection" from PDF files. Especially a great tool in combination with scripting and PDFTK.

===== Freeware section (non FOSS, so consider this off-topic!!!) ====
Hex-Ed - hex editor
License: Freeware
Main developer: Niels Horn
Download size: 80KB
Version: 1.01.04
Download: nielshorn.net/prog/old/hexed
Mentioning freeware might cause bad karma on LXer as it's not Linux or free/ open source software related. OK, actually this program maybe pre-dates the whole free-software movement as it was first written in BASIC for CP/M, so maybe the situation isn't so two-state quantal as "to be or not to be Free Software". Anyway, I will just mention it: whenever I need a hex - editor once every two years, I use this one. For Linux, there's a free new version available, made by Niels Horn. If that name sounds familiar, it might be because this guy also makes Slackware-packages. Yay, after mentioning non-foss freeware, definitely a karma up! "Later", Niels Horn said in 2010, an open source Windows-version of Hex-ed called nHex-ed may follow.

License: Freeware
Main developer: Steffen Gerlach
Download size: 243KB
Version: 2.13
Download: http://www.steffengerlach.de/freeware/
Philelight for Windows! Think WinDirStat in a cicrle. You don't have to wear a jaunty black turtle-neck to appreciate this minimalist application: however it's freeware. I'll mention it anyway as it's portable, convenient and usefull.

Volgende: Intel: Short gaan of long? 06-'17 Intel: Short gaan of long?
Volgende: Kleine computerzaken (moeten) verzekeringstussenkantoren achterna 10-'15 Kleine computerzaken (moeten) verzekeringstussenkantoren achterna


By Tweakers user Poepkonijn, donderdag 22 oktober 2015 12:14

'Bashing' your first one: Ever tried PowerShell? They even included bash commands as aliases for PowerShell commandlets for Linux guys.

About your keyboard switcher: Just set two types of languages in your settings, each with the keyboard type you like. Want to switch? Press left Ctrl + left Shift. Done. Want to switch to another one (in case you use 3 different ones?): press it again.

Windowspager? Convince your sysadmin to upgrade your system to the lates version of Windows :+

By Tweakers user Jeroenneman, donderdag 22 oktober 2015 14:01

Alleen mag je dit soort tools dus niet eens installeren bij een echt groot bedrijf. Die hebben vaak interne software "winkels" waar approved software in staat.

By Tweakers user kidde, donderdag 22 oktober 2015 14:49

Jeroenneman wrote on Thursday 22 October 2015 @ 14:01:
Alleen mag je dit soort tools dus niet eens installeren bij een echt groot bedrijf.
Afhankelijk van je definietie van "installeren": PortableApps installeer je niet.

By Tweakers user kidde, donderdag 22 oktober 2015 14:52

Poepkonijn wrote on Thursday 22 October 2015 @ 12:14:
'Bashing' your first one: Ever tried PowerShell? They even included bash commands as aliases for PowerShell commandlets for Linux guys.

About your keyboard switcher: Just set two types of languages in your settings, each with the keyboard type you like. Want to switch? Press left Ctrl + left Shift. Done. Want to switch to another one (in case you use 3 different ones?): press it again.

Windowspager? Convince your sysadmin to upgrade your system to the lates version of Windows :+
Yes, I tried PowerShell, it forces me to learn a complete new programming language. Great for those who don't require "backwards compatibility" with their own sh-experience / skills, not so great for yours sincerely.

Ctrl+Shift works on a per-window bases, as explained. Not global. Besides, it's a terrible combination as you hit it on accident all the time. By default, our locales come with Japanese / Korean enabled, so it's a great pretty harmless joke against new employees who forget to lock their computer.

I agree Windows these days doesn't need Windowspager, but my sysadmin is not in the position to decide if we upgrade systems, I work at a "large" company.

[Comment edited on donderdag 22 oktober 2015 14:55]

By Tweakers user kidde, donderdag 22 oktober 2015 14:54

--Doublepost deleted--

[Comment edited on donderdag 22 oktober 2015 14:56]

By Tweakers user NightFox89, donderdag 22 oktober 2015 15:06

Zit hier op het werk in soortgelijke situatie. Zit vast aan Windows ivm de systeembeheerder, maar werk liever in Linux. Heb virtualbox draaien waar ik voornamelijk in werk :)

By Tweakers user unglaublich, donderdag 22 oktober 2015 17:57

Neem je eigen laptop mee. Het management en de ICT dienst begrijpen vaak niet dat het besturingsysteem daadwerkelijk het verschil maakt tussen een professionele user en een noob.

Wat betreft de opmerking hierboven om powershell te proberen. Dat is als iemand die Objective C programmeert op zijn Apple aanraden om C# te programmeren. Het is gewoon heel iets anders.

By Tweakers user Sissors, vrijdag 23 oktober 2015 22:41

Dus iemand die Windows gebruikt is een noob? Of begrijp ik je nu verkeerd.

Overigens kan ik wel mijn eigen laptop mee nemen, maar wat dan? Die komt niet in de docking stations, ik vermoed zo dat ze geen verbinding met het netwerk kunnen maken, en zeker zal ik er geen toegang mee krijgen tot de remote servers waarop de echte software draait (wat weer wel Linux/Unix is).

Daarbij geld overigens hetzelfde: Net als dat ik wel heel moeilijk kan doen dat ik een Linux laptop wil, wat niet zal gebeuren, kan ik ook heel moeilijk gaan doen dat ik remote op Windows machines wil werken, maar ook dat gaat niet gebeuren.

By Tweakers user kidde, zaterdag 24 oktober 2015 23:51

Sissors wrote on Friday 23 October 2015 @ 22:41:
Daarbij geld overigens hetzelfde: Net als dat ik wel heel moeilijk kan doen dat ik een Linux laptop wil, wat niet zal gebeuren
Precies, omdat het toch niet ging gebeuren ging ik al die bovenstaande tooltjes gebruiken, en toen ik die allemaal werkend / bij elkaar gesprokkeld had, verdween eigenlijk ook vanzelf mijn verlangen om Linux op mijn werk te hebben.

Geen admin-rechten hebben en veel andere zaken geblokkeerd blijft echter vaak een groot probleem, maar dat zou het op Linux ook zijn. Natuurlijk is eea te omzeilen, maar van sommige werkgevers moet je schriftelijk beloven dat niet te doen ;)

Gelukkig komt er op Windows steeds meer spul uit dat je ook als "user" kan installeren, dus niet per se als "admin". PyScripter is inmiddels verleden tijd (bovenstaand artikel is stiekem al meer dan een jaar oud), nu ben ik met Anaconda + Spyder aan de slag en dat moet je wel installeren, maar dat kan als user zonder admin-rechten.

By Tweakers user Qwerty-273, maandag 26 oktober 2015 15:16

Windows Services for UNIX ? https://en.wikipedia.org/wiki/Windows_Services_for_UNIX
And yes I know it is "a discontinued software package" at the moment....
Interix on the other hand should still be available.


[Comment edited on maandag 26 oktober 2015 15:18]

Comments are closed