The every day things from Thalamus' life.

Thalamus' Blog

11 October, 2017

ssh tunnel to gitlab

Filed under: ComputerStuff_en — Thalamus @ 15:14

Establish the http proxy tunnel ( don’t disconnect it )

$ ssh -L 8080: ssh-proxy-host ( is running gitlab )

In another terminal, I can now use git over the localhost to the tunnel on port 8080

$ git clone http://localhost:8080/repo/repo.git
• • •

6 December, 2016

Windows and UTC bios time.

Filed under: ComputerStuff_en — Thalamus @ 06:13

Hmmm. On my gaming comp – I have a multiboot of Fedora and Win7. Time get screwed between those operation systems and by so much that network time daemons refuse to fix it. This, I’m told is the fix to make Windows use UTC Bios time.

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] “RealTimeIsUniversal”=dword:00000001
• • •

3 November, 2016

Parts arrived and trying out stuff

Filed under: ComputerStuff_en,Pinball — Thalamus @ 01:12

So, a couple of days ago I got the shipment from VirtuaPin. The most exciting item was definitely the DMD. But, also the AMP is kind of cool. The later, I haven’t really setup yet. I change the electrical socket from US standard to EU, but, it is still just relaxing in the corner of my now so untidy room. I fear my wife will kick my ass out the door the day this build is finished …


I’ve been a Desktop VP player for years. Going from that setup to use a DMD had some tweaks that I’m going to redo once I’m working with the real computer that will control the cab. One thing I learned. If you plan to use a PSU, without it being connected to a computer, you will have to short the green and the adjacent black cable in order for the PSU to start to deliver any power.

First, to run in native full screen, since I’ve been running a lot of tables in beforehand, there are some registry changes that can be done. You need to change, for the current version of VP at least, the registry entry for ddraw to 0.


Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Freeware\Visual PinMame\lotr]

– or, you could do it in one sweep … add this key to

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Freeware\Visual PinMame\default]

Another thing you might need to do for some tables is the change in the script, .hidden = True.

I’ve also made a note to myself that I really need to make sure that the table monitor needs to be at the same Hz as the back-plane monitor. I expect that to become 60Hz. Having a hard time to find any Monitor or TV in around 43-46″ with higher refresh rates that hasn’t been reported to have bad frame lags. I’m currently considering going for a 43″ monitor, but, it is not set in stone just yet. Right at this moment, the monitor in question is not readily available to buy. Expected mid November.

I emailed Steve about the parts I’ve ordered from zebsboards. He told me that he expected the set to be completed and shipped by the end of this week. If that is true, I might get the parts by the end of next week.

Another note to myself, not really pinball related is that … if for some reason you can’t upload files to a samba server – or should I say, only very small files but download is OK. Then, it might be that you need to turn off “Large Send Offload” under the Advanced NIC settings. I must have used a couple of hours before I found this to be the culprit.

• • •

21 August, 2016

Netgear R7000 Nighthawk and auto negotiation issues

Filed under: ComputerStuff_en — Thalamus @ 11:50

I have a Netgear R7000 – code named Nighthawk AP in my home. I find that it has a nice range and I’m quite pleased with it. There is one thing though that irritates me. It sometimes doesn’t give me 1Gb link speed on the wire.

So, who is the culprit in this senario ? Not 100% sure, but I believe it might be the routers fault.

On my gaming PC, I have a dual boot of Fedora and Win7. Since it is a gaming PC, I mostly use it for gaming. And this is where the problem is most obvious. This PC has a rather cheap Realtek 1G Nic. I often, from poweroff, don’t get more than 100Mb link to the router. I’ve tried to force the NIC to run 1Gb in the driver – but, that doesn’t help. I can see the link going on/off … 5ish times, before ending on 100Gb. Yes, its the latest and greatest driver from Realtek.

So, now everyone would ask – have you tried another cable ? Yes, I have. The solution I’ve found is. Start Fedora, from here, force the driver to 1Gb. I see some of the same symptoms. But, it seems that Fedora doesn’t fall back to 100Gb as quickly as the Win7 driver does. So, after some up/down attempts, the R7000 “gives up” and accepts the 1Gb link.

From here, if I just reboot the machine, and fire up Win7. The link falls out just briefly as expected when the driver is loaded, but, it now comes up with 1Gb, every time.

Who to blame ? Hmm … it is not the NIC, it is not the cable – it might be crappy Win7 driver, but, I feel it is just as likely the R7000 fault.

I might some day soon reflash this router with DD-WRT, since it doesn’t have to do NAT for me.

• • •

22 July, 2016

xauth and sudo

Filed under: ComputerStuff_en — Thalamus @ 12:22

A tip that can be useful if you need to run as root an X11 app and you get auth error messages is ‘X11 connection rejected because of wrong authentication’ is to use xauth and .Xauthority to resolve the problem.

client $ ssh user@host
server $ sudo su
server # xauth merge /home/user/.Xauthority
server # /path/to/app &

• • •

3 June, 2016

Bash loops can be useful

Filed under: ComputerStuff_en — Thalamus @ 07:37

Checking the free mem usage of several – almost same named host.
This will start with 2 – loop to 5 – increment by 1.
The -n option is useful here, since it prevents ssh from reading stdin.

for a in {2..5..1}; do ssh -n rhev$a 'free -hw'; done
• • •

19 March, 2016

network manager and docker

Filed under: ComputerStuff_en — Thalamus @ 00:49

Today, I was asked a question aboiut fedora/gui and network manger + docker. I reported a bug about the list becoming so long that it was uncontrollable years ago, having internal wifi and an external usb years way back. Network mnager ain’t all bad – but the relationship with the GUI is … to put it midgly. Crap !

I suggested. Disable network manger. If your on a permanent location. And on a relatively new distribution ( rhel7 or fedora 2x ) – disable it. My experience to date has been that files generated from NetworkManager, is going to be read fine with the older ifup wrappers.

• • •

12 February, 2016

EL7 and biosdevnames

Filed under: ComputerStuff_en — Thalamus @ 01:57

Quick guide to change back to the old ethX, instead of the long and cumbersome enp2s0fX.

# yum install biosdevname

Add ‘net.ifnames=0 biosdevname=0’ to GRUB_CMDLINE_LINUX in /etc/default/grub. While there, why not take away ‘ rhgb quiet’ if this is a server …

# grub2-mkconfig

to verify, before updating grub2.

# grub2-mkconfig -o /boot/grub2/grub.cfg
# cd /etc/sysconfig/network-scripts && mv ifcfg-enp2s0f1 ifcfg-eth1

Update ‘DEVICE=enp2s0f1 to DEVICE=eth1’. Again, if this is a server, I prefer to take away everything NetworkManager related and end up with something like this. If you do, remember to put GATEWAY into /etc/sysconfig/network and update /etc/resolv.conf as well.


Until today, I’ve had 100% success rate with creating and running a file containing

systemctl disable NetworkManager
systemctl stop NetworkManager
systemctl enable network
systemctl start network

without loosing connection to the server, before booting to get the interfaces with the names I want permanently.

• • •

9 January, 2016

CPAN::Mini to the rescue

Filed under: ComputerStuff_en — Thalamus @ 16:40

No Internet and need a lot of CPAN modules ? Get CPAN::Mini and transport it by a usb stick or something.

$ cpanm CPAN::Mini

create your own CPAN mirror – first create .minicpanrc

local: /path/to/usbdrive/cpan_mini/
also_mirror: indices/ls-lR.gz

Now, run

$ minicpan

And wait a good while for the mirror to be fully populated.
Now, on the machine without Internet, tell cpanm to use the mirror.
Let’s install the Data::Printer module as an example.

$ cpanm -mirror ~/path/to/usbdrive/cpan_mini --mirror-only Data::Printer

Easy, and awsome at the same time.

• • •

27 December, 2015

So – perl6 is finally out

Filed under: ComputerStuff_en — Thalamus @ 16:50

So, perl6 is out – before x-mas 🙂 I decided to give it a spin. First, upgrading my current installed perlbrew of 5.22.0 to 5.22.1, and adding a option I previously didn’t set. Seems to be a requirement for -fPIC and installing Inline::Perl5 that I think might come in handy.

$ perlbrew install perl-5.22.1 -Duseshrplib

– Set perl-5.22-1 active and install cpanm

$ perlbrew use perl-5.22.1
$ perlbrew install-cpanm
$ perlbrew use perl-5.22.0

– Now, get all installed modules from 5.22.0 to 5.22.1

$ perlbrew list-modules | perlbrew exec --with 5.22.1 cpanm
$ perlbrew switch 5.22.1

From the Christmas release I decided on installing using radukobrew.

$ git clone ~/.rakudobrew
$ echo 'export PATH=~/.rakudobrew/bin:$PATH' >> ~/.bashrc
$ source ~/.bashrc

Well, I ended up adding this to my .bashrc

if [ -e ~/.rakudobrew/bin ]; then
  export PATH=:$PATH:~/.rakudobrew/bin
if [ -e ~/.rakudobrew/moar-nom/install/share/perl6/site/bin ]; then
  export PATH=$PATH:~/.rakudobrew/moar-nom/install/share/perl6/site/bin
$ rakudobrew build moar && rakudobrew build-panda
$ panda install Task::Star
$ panda install Inline::Perl5
• • •
Next Page »