Ignore Package Dependency in dpkg

If you want to install a package, which has a dependency you want to ignore, e.g. because it's wrong, outdated or unnecessary, you may use this command:

sudo dpkg -i --ignore-depends="nvidia-experimental-310:i386" Downloads/beat-hazard-ultra_1.66_20130308_i386.deb 

This example fixes installation for the Beat Hazard Ultra Debian package, which for some odd reason requires a special version of a certain nvidia driver.

Fixing a Broken Cursor with AMD/ATI fglrx Drive: Steam, Braid, Wine: Option UseFastTLS 2

If you notice a broken cursor, which may means the cursor
  • doesn't show up at all
  • is a black square
  • is a square mixed black and/or with parts of another screen area or the screen background (Steam)
or you have display issues when running wine, try this option in your xorg.conf:

Option "UseFastTLS" "2"

If this works for you in a situation which is not described above, please post a comment. Otherwise, e.g. if you don't know what xorg.conf is and where to find it, please use google for further information.

Installing Windows 8 on USB - The easy way

There are several different guides for installing Windows 8 on a USB disk, which often unpack an installation file of install.wim, which is no longer available with Windows 8.1 and may be difficult to use. So I want to mention two rather easy ways I've found to work for me:

1. Install with a VM

You can setup VirtualBox to use a raw hard drive as one of its drives. If you mount that drive and a Windows 8 installation ISO, you will be able to install Windows very quickly. Usually a simple reboot should be enough to be able to use Windows. 

2. Simply copy the files of an existing installation. (caveat: Apps no longer worked for me, and it was very slow)

3. If booting does not work, manually set up the boot disk
- Copy bcdboot from x:\windows\system32\bcdboot to your windows drive, e.g. C:.
- Use it to make drive X bootable: C:\bcdboot X:\windows /s b:

Of course the target drive X should be a primary partition formatted with nfts already and the partition should be active.

Have fun!

Removing Crossover Deletes All Your Bottles

You have to be extremely careful when uninstalling crossover, because generally, it will always remove all your bottles of all your applications. This means if you have an Office or Picasa or some other installations, they will silently completely disappear.

There are only limited options:
a) Install/Uninstall via your package manager, e.g. the Debian .deb package.
b) Save the installed applications via Archive or moving the .cxoffice directory from your home directory to another location and name.
c.) Remove crossover manually with: rm -rf /opt/cxoffice.

Do NOT simply use /opt/cxoffice/uninstall, as it will remove all your custom installations wihout warning.

There really are no other options. I've contacted support and all they did was point me to this link.

Darktable Open Source RAW Darkroom

I've just become a fan of this amazing piece of software. Just everything about it seems to be perfect. The noise reduction is stunningly good while preserving details. The sharpener brings out crips details down to the single pixel. You may even be able to tether you camera via USB and control your camera's settings and shooting with live view directly from your computer. It even does some tone mapping, imports GPS data into your photos and more. I was going to say now it only has to take the photos itselt. But with tethering, in a way, it already does. :)

Simply fascinating. Try it out!

Hints: Check out some tutorials if you get stuck.

Quickly Shrinking the File Size of a PDF File on the Command Line in Linux

Ok, I'm most linking to a great page here. But I'll also give you my favorite choice: GhostScript, which is available almost on every system and did a terrific job in my test:

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

Of course it also takes other formats like ps and eps or jpg as input!

Automatically Disable your Touchpad - Enhancing Palm Detection in Linux

I have already posted an entry somewhere on this blog on how to disable your touch pad if you plug in a usb mouse. But I've just found out that the arch wiki has a great summary on different kinds of touch pad settings including for a better palm detection:
synclient PalmMinWidth=4 PalmDetect=1

This works excellently for me - and I have a new system with a rather large touch pad. Enjoy! And as always: Please share your experience and ideas!

Fixing Panasonic LUMIX Wifi - "Connection to Access Point Failed"

This error occurred to me with a Fritz Box as access point and WPA/WPA2 mixed mode. The first time the camera still connected, later attempts failed. After switching the network mode to WPA2 only, it worked again.

Update: I've upgraded to Firmware v. 1.1 and the issue disappeared.

Otherwise you can probably try resetting the camera settings. Good luck!

A Smear Safe Android Lock Screen

You know that when you use a lock screen, it's often quite easy to know your combination by simply looking at the grease traces of your display? Well now there's finally an app against that. And it's called SmearSafe. Apparently, it was developed by people connected to the University Stuttgart. I've checked the whois entries and saw that the domain hcilab.org is really registered to the name of the professor of the University Suttgart. Further than that, I can't really validate their identity. But it appears ok.

The app works by changing around the image in a way that the way you have to move your fingers is different each time. I.e. it turns, distorts, moves and mirrors the image in different ways. This way the smears get mixed up and it's pretty much impossible for someone who sees your hand movements to guess your login. Of course, it may also require a bit more brain power on your side.

Let me know how it goes for you! Note: I had to set it up twice before it actually started to work on my phone. And it will request admin priviledges to be able to unlock your screen without being set to root.

Sipgate.com Closes

I've recently found out the USA service seems to end. It's still going on in other countries, though, apparently. Well the margins in the VoIP business must be smaller than I thought. Very sad, as Sipgate used to always have great service and good quality in my experience. But I guess it's hard to compete with Google in the same market.

Decrypting Android Encryption is Really Easy

Especially if you encrypt your phone only with a PIN, it appears that it's quite easy to find that PIN. More than that, there is already a script on github which automates a lot of the process.

Now the unanswered issue is: Which command do you use to mount the partition in Linux?

In any case: be aware, the encryption does not protect you much at all. Of course that's what you should expect with a 4 key (usually numeric) PIN.

Disable Customized Ads in Google

Google has a webpage where you can opt out of apps customized to your profile. Note that the popup will be high up on the page, where you probably won't see it until you scroll back up.

Gain Privacy in Youtube

This is just a side, but I just found out Youtube tracks all your searches and videos watched by default. Here's a post which describes how to disable that.

Mini-Tipp: Veromix

Installing the Veromix Widget for KDE4 lets you comfortably adjust pulseaudio volumes. Make sure to reassign the shortcuts, then you no longer need kmix.

Berkeley AirBears2 Setup on Kubuntu and Android

I'm not sure how long this information will remain accurate, because the network is still in testing stage, but working settings right now are:
EAP method: TTLS
Phase 2 authentication: PAP
CA certificate: empty
User certificate: empty
Identity: <your cal ID>
Anonymous Identitfy: empty
Password: Your special Airbears2 password, which you can get here or view here.

Tested to work on 6/10/13 with boat Cyanogen 10.1-RC5 and Kubuntu 12.04 (at the same time).

More information about Airbears2 is here: http://inews.berkeley.edu/articles/June2013/AirBears2GoesLive. 

Enjoy!

Anki & AnkiWeb Network Errors

If you get these errors, the two most frequent issues are:

1. wrong Anki version (you need > 2.0) for websync to still work
2. wrong passwort/account name
3. missing proxy / no internet.

Hope that helps!

Finding Unneeded Data

Agedu is a great tool, as it doesn't only show you where the data is, but also how long ago it was last accessed. It's a bit sad that the tool is not as straight forward to use as it could be. But here's a guide. 

Basically you first call agedu -s <somedir>, then agedu -w to start a webserver and then look at the webpage that the latter command tell you about.

Memory Consumption of Common Linux Desktops

This blog post made a nice overview of the common choices you have and how much memory they use by default.

Small Bash Power Usage Monitor

While I'm about releasing power scripts, I've quickly written this script to monitor power usage on various Linux systems. It needs bash and sysfs. It can use bc and gnuplot for more comfort.