Windows 10 and too many connections ...

This weekend, I decided (foolishly...) to upgrade the only Windows 10 box that we have, a NUC that me and Peter use for some gaming time. This ended up being an enormous mistake (read: clusterfuck), because the box sort of bricked itself with an error

The number of connections to this computer is limited and all connections are in use right now.
Try connecting later or contact your system administrator.

So, neither of the proposed solutions worked; I even tried rebooting numerous times, to try to get it to Safe Boot, which it did not. And lo and behold, Windows 10 has removed the F8  boot option to go into safe mode as well... I did a little bit of research on this, and found a solution that suggested disconnecting the box from the LAN. Well, this was easily said than done, since the box is on WiFi, and you can't turn off WiFi from Windows unless you can boot into it. But, there is a BIOS, and fortunately, this Intel NUC machines has a BIOS option to turn off the WiFi (what they call the WLAN).

I did that, and this time Windows continued booting, finished with the upgrades that I had started, and so far so good. I haven't turned on the WiFi yet, so we'll see what happens after I do that...





Compiling LLVM with distcc

First off, I'm not a cmake expert, so I'm not 100% sure if I'm doing this right, but it does seem to work... Basically, I wanted to distribute my LLVM builds across a set of machines, using distcc. This is what I did

  1. As root, the first thing to do is making sure you have distcc linked to various compilers, e.g

    	$ sudo ln -s /usr/bin/distcc /usr/local/lib/distcc/gcc
    	$ sudo ln -s /usr/bin/distcc /usr/local/lib/distcc/g++


  2. Run cmake like

    	$ CC=/usr/local/lib/distcc/gcc CXX=/usr/local/lib/distcc/g++ cmake -DCMAKE_INSTALL_PREFIX=/opt/llvm -G "Unix Makefiles" ../src
    	$ pump make -j30  CC=/usr/local/lib/distcc/gcc CXX=/usr/local/lib/distcc/g++


However, the final link stages did not fair well with the parallel make, so I had to run again, without a -j option to make.

Swapping CAPS lock and CTRL on Raspbian

I was fiddling with one of my (new) RPi's, and realized there was no UI component to switch the CAPS lock to be CTRL. Really? So, found a couple of things that has to be modified:

First, I edited /etc/default/keyboard, adding


​​Secondly, I modified my ~/.config/lxkeymap.cfg, adding

option = ctrl:swapcaps



Fedora 24 issues on VirtualBox

As of some recent upgrades to my F24 VM (running under VirtualBox), my system would not boot properly any more, getting errors like

NMI watchdog: BUG: soft lockup - CPU#0 stuck


I couldn't find any details as to why this was, other than someone having similar issues with a bad GPU card (not under a VM). I checked my display settings for the VM, which had the minimum recommended setting of 21MB. This ought to have been plenty, since I run my Linux system in a head-less mode (no display etc.). However, Linux must have changed something, cause this no longer worked, but bumping the GPU memory to 32MB seems to have fixed it. Bizarre.


Software development on OmniOS

One of the OpenSource projects I work on, Apache Traffic Server, supports Solaris. I build on OmniOS for this development, and as much as I like it, it's semi-difficult to setup a development area properly. I'm likely missing something (like, a developer bundle or meta package), but these are the packages I find necessary to always install:

$ sudo pkg install gcc51 header object-file

Note that GCC installs in /opt/gcc-<version>, and without object-file autoconf / configure does not behave well. In addition, I use the OmniOS additional package repository as well, for goodies such as Emacs:

$ sudo pkg set-publisher -P -g

Software installed with this goes into /opt/omni.

Update: For some details on getting network setup on your OmniOS box, see . In addition to this, I also had to update the nsswitch.conf file of course (just copy over the DNS version of it).


QNAP and Torrent

I noticed a noticeable amount of Torrent traffic both from, and to, my QNAP NAS server. It turns out, if you enable the Download Station application, it starts doing all sorts of Torrent discoveries on its own. I have no idea why, so for now, I have simply removed the application entirely. I noticed this by doing a

$ tcpdump port 6889


Hacking: for my QNAP server

I needed to do basically rc.local on my QNAP NAS server, since it setups various things at bootup time. Changes to these setups would therefore not persist a reboot. Via QNAP support, I got a link to a page showing how to setup an script as part of the bootup process. This was all splendid, except I couldn't find my device in the list. So, I found this command to probe the system which boot drive I'm on, and from thereon it was easy to find which partition to mount. What I ran was basically this:

[admin@Freya /]# /sbin/hal_app --get_boot_pd port_id=0
[admin@Freya /]# mount -t ext2 /dev/sdg6 /tmp/config
[admin@Freya /]# cat /tmp/config/
/share/CACHEDEV1_DATA/homes/admin/bin/ &

I made it such that it simply just run an from my normal drive, this way, I don't have to go through these hoops, and modify the flash image constantly when I want to modify change something. Right now my script is pretty limited, but for example, it now allows me to add a "search" domain to my /etc/resolv.conf. Yeah, for some reason, the QNAP OS does not let you add search domain for the resolvers, if you use static IPs (with DHCP, it gets it from the DHCP server, of course).



Subscribe to RSS