Category Archives: General Info

Blurry Fonts on X

This is not really a blog post more a note to self. After pulling my hair out because after an update of the X-server and Gnome on my Fedora 20 box every font accross windows, window titles, app-screens more or less became unreadable blurry and fuzzy characters all over the place that were only readable with a plus 9 left and minus 9 right glasses. I had this in the past and most of the time by upgrading the latest NVidia driver the problem was resolved. Not so today. Reboots, kernel updates, NVidia driver updates, xorg.conf modifications and adjustments all led to no avail. I was at the brink of throwing the box out of the window when I read a onliner on askubuntu.com which said

“OK, so this is going to sound ridiculous. But I switched the screen itself off and on again and it is working now.”

This looked so incredibly unbelievable that I ran out into the street, wanted to start screaming but could hold myself… (barely), went back in, turned my monitor off, then back on and the problem had disappeared. Aaaarrrrghh…..

OK, coffee now… Have a nice day..

Cheers,

Erwin

Microsofts new CEO. Saviour or the same?

The board of Microsoft has appointed a new CEO. When Steve Balmer announced stepping down from one of the worlds most influential companies for the last 3 decades the search began. You can say from Microsoft what you want but it has been the company that not only brought computing to the home but also created an entire industry around it. I think there is not a company in the world that has created so many jobs in such a vast variety of businesses, governments, education and numerous other market segments than the computer giant from Seattle. The ubiquity of its products is seen everywhere and has been untouchable for a long time. There have been cracks in its structure though. The company hasn’t been able to make tablets a success even though they announced this technology way before Apple has a crack at it. The handheld PC in the form of a phone has never been a success. Windows was able to hook consumers as it had done on the desktop and laptop. They are trying again now that they’ve bought Nokia. (See here).

Continue reading

Why partition alignment on disk matters (Linux)

Linux has been pretty good with and for storage. The sheer volume of options w.r.t. filesystems, volume-managers, access methods (FC, iSCSI, NFS, DAS etc), multi-pathing  but also the very broad support of the hardware ecosystem is something to be proud of. The issue with storage support is that you ALWAYS have to maintain a massive backward-compatibility string with previous generations of technology. Not only from a hardware perspective but also the soft-side needs to retain the older technology. I saw a video featuring Linus, Greg Kroah-Hartman,  Sarah Sharp and Ted Ts’o over here where Ted mentioned that the KVM feature helped him massively with regression testing for the storage projects he’s involved in. (As you may know Ted maintains the ext(2/3/4) filesystem among other things). That brings me to the bottleneck of history in a technology environment and why the topic I described in the subject is important.

Continue reading

Australia and the doomed NBN

In Australia there are basically two camps in the government that promote (or make it seem like they do) very fast internet connection speeds. The Labor party started this off a couple of years ago with the introduction of the NBN (National Broadband Network). Its intention is (or rather was) to provide almost every household in the nation a piece of fibre-glass to the front-door to be able to hook up current and future transmission technologies to be able to provide a multitude of services over the internet. Continue reading

Calculator via CLI

As an engineer dealing with storage I do get a hell-of-alot of info in either binary, hex, octal or decimal format. It’s always a PITA to convert these to human readable format. So i cooked up some bc functions and use these as a function in bash to beat the time wasted firing up the calculator or some weird stuff in LibreOffice Calc. Add the below in the .bashrc file and restart your shell.

function h2d { echo “obase=10; ibase=16; $( echo “$*” | sed -e ‘s/0x//g’ -e ‘s/\([a-z]\)/\u\1/g’ )” | bc; }
function h2b { echo “obase=2; ibase=16; $( echo “$*” | sed -e ‘s/0x//g’ -e ‘s/\([a-z]\)/\u\1/g’ )” | bc; }
function b2d { echo “obase=10; ibase=2; “$*”” | bc; }
function b2h { echo “0x$(echo “obase=16; ibase=2;”$*”” | bc)”; }
function d2b { echo “obase=2; ibase=10; “$*”” | bc; }
function d2h { echo “0x$(echo “obase=16; ibase=10; “$*”” | bc)”; }

So on the bash prompt:

[1423][erwin@monster:~]$ h2d 0x16
22
[1423][erwin@monster:~]$

Very handy.

Cheers, Erwin

Australian Internet access. (with handcuffs and chains.)

It may come to no surprise that if you want to rewire a country the size of Australia it’ll take a while. This means that the majority of internet connections is still on ADSL or ADSL2+. The outback is in really bad shape and people over there are relying on satlinks or wireless. This in turn ramps up costs significantly and thats also the reason why telcos and ISP’s are putting caps on subscriptions. Continue reading

Google Earth on Linux 64

I use Google Eearth fairly regularly for all sort of things. I like searching places around the world and looking at additional info from for instance National Geographic. It is therefore most annoying that whenever Google decides to change something GE starts to crash for whatever reason most likely due to conflicts between libraries. The crashlogs you’ll see are like:

Major Version 7
Minor Version 1
Build Number 0001
Build Date Jul 12 2013
Build Time 04:22:47
OS Type 3
OS Major Version 3
OS Minor Version 8
OS Build Version 13
OS Patch Version 0
Crash Signal 4
Crash Time 1375944957
Up Time 0.809264

Stacktrace from glibc:
./libgoogleearth_free.so(+0x23915c)[0x7f1d7c46d15c]
./libgoogleearth_free.so(+0x2393bd)[0x7f1d7c46d3bd]
/lib64/libc.so.6[0x33462359b0]
/usr/lib64/nvidia-304xx/libnvidia-glcore.so.304.88(_nv015glcore+0x0)[0x3b89de8be0]

I’m not smart enough to sort out binary stack dumps but I’m pretty good at troubleshooting and logical thinking. The guys on the GE devteam obviously are very graphically oriented and they take every opportunity to suck out as much juice out of hardware to make the graphical rendering at smooth as possible. They therefore look at the loaded graphics drivers and if possible start making use of any piece of graphical kit they can find to use it.

I have an NVidia card with CUDA cores which can accelerate these graphical screen-gadgets pretty well so if there is a conflict in these libraries you’ll get the program to crash.

Basically what I did was I upgraded the NVidia driver to 319.32 and at least that solved the above issue. Than I ran into the problem of GE itself were it saw some sort of corruption in one or more cached files. I removed these from the ~/.googleearth directory after which GE started. I still get the below messages when I start GE but these do not seem to be of influence of using it.

[0809/130918:ERROR:net_util.cc(2195)] Not implemented reached in bool net::HaveOnlyLoopbackAddresses()
[0809/130918:WARNING:backend_impl.cc(1875)] Destroying invalid entry.
[0809/130918:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0809/130920:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0809/130920:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.
[0809/130920:ERROR:nss_ocsp.cc(581)] No URLRequestContext for OCSP handler.

My version currently is :

Google Earth – 7.1.1.1888
Build Date 7/12/2013
Build Time 4:22:44 am
Renderer OpenGL
Operating System Linux (3.8.13.0)
Video Driver NVIDIA Corporation
Max Texture Size 16384×16384
available video memory 2048 MB
Server kh.google.com

Whenever you run into some other inexplicable issues you might start with clearing the cache at ~/unified_cache_leveldb_leveldb2/*

Hope this helps someone.

Cheers,
Erwin

NVidia driver will not install on FC17 & FC18 & FC19

It was that time of year again. The bi-annual kernel upgrade on my Fedora 17 desktop. Normally this all goes very smooth and this time it was no different. At least that’s how it looked like at first.

a “sudo yum update kernel\*”  always does a very nice job so that was the easy part. I have two relatively peculiar pieces of stuff in/on my system that requires some post-maintenance.

My box has an NVidia  Geforce GT 640 video card which provides me with a very nice picture and also does some gruntwork via cuda in the background. Normally I download the binary (uchh, yuck.. ahem…..) driver from their website, run the installer which builds a static driver and we’re done. Reboot the system and runlevel 5 (I know “graphical.target”) makes sure that the gdm desktop is displayed. That always worked until today.

It turns out that the kernel was upgraded from 3.3.4-5 to 3.7.6-102 and really mucked up the installer. Basically it checks for the kernel version and if it determines it to be outside a specific range it just throws an error-message at yah and says toedeloe.
The message is somewhat like this:


Using: nvidia-installer ncurses user interface 
-> Tagging shared libraries with chcon -t textrel_shlib_t. 
-> License accepted. 
-> Installing NVIDIA driver version 310.32. 
-> Performing CC sanity check with CC=”cc”. 
-> Performing CC version check with CC=”cc”. 
ERROR: Unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the ‘kernel-source’ or ‘kernel-devel’ RPM installed. If you know the correct kernel source files are installed, you may specify the kernel source path with the ‘–kernel-source-path’ command line option. ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

The error message is BS since the sources and headers were all there. This was a slap in my face since this means you’re unable to get started in graphical mode and you are pretty limited with you options then.

My solution was the first extract the NVidia driver with the -x parameter. This extracts the entire package into a subfolder. Then, in that subfolder, open up the kernel/conftest.sh script. This is the script that mainly does all the hard work in testing to see if you’re all set with dependencies etc. Then goto line 1706 (at least with version 310.32) and you’ll see something like:

                if [ -n “$PATCHLEVEL” -a $PATCHLEVEL -ge 6 \
                        -a -n “$SUBLEVEL” -a $SUBLEVEL -le 5 ]; then                    SELECTED_MAKEFILE=Makefile.kbuild

 The highlighted line shows the problem. My $PATCHLEVEL is OK. 7 is greater than or equal to 6 but my $SUBLEVEL in the same context is incorrect : 6 is not greater than or equal to 5.
Simple thing to change the 5 into a 6, run the nvidia-installer script and voila, it builds. All sorted.

The second piece is my Virtual box installation which also doesn’t have an standard build in the main YUM repositories so I always install the RPM from the VirtualBox website. When the kernel gets updates always make sure you run the “/etc/init.d/vboxdrv setup” command which links all the required kernel modules to work nicely with the new kernel.

Cudo’s to Leigh Scott who sorted out the NVidia problem over here. Strange that NVidia hasn’t fixed this right away.

Cheers,
Erwin

Update on FC19, there is another bug which is solved by 319.49. So use that one when installing on FC19. You don’t need to modify any of the setting I mentioned before and this driver will install happily on 3.10.9-200.fc19.x86_64 #1 SMP Wed Aug 21 19:27:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux