Freitag, 19. Juli 2013

Ubuntu fingerprint & Vaio VPC-Z1

Here we go again.
After years of having a non-functioning fingerprinter in my notebook, I decided a few minutes ago to change that.
So if you run ubuntu first check out your fingerprinter device to make shure the following steps work.

  1. Open a terminal (Strg+Alt+t) and type in:

    lsusb

    All your devices should be listed in the terminal now. Search for your fingerprinter entry. In my case it is: Bus 001 Device 003: ID 147e:1001 Upek TCS5B Fingerprint sensor
  2. Go to https://launchpad.net/~fingerprint and check out, if they support your device. Fortunately the Vaio VPC-Z1 fingerprinter 147e:1001 is supported :-)
  3. If you find your device, add their repo with the command:

    sudo apt-add-repository ppa:fingerprint/fingerprint-gui

    Update your repos:

    sudo apt-get update
  4. Install fingerprint and fingerprint-gui

    sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    NOTE: If you read your terminaloutput carefully you will notice the line:
    Die folgenden Pakete werden ENTFERNT:
      policykit-1-gnome


    Therefore, if you want to remove fingerprint you HAVE TO install MANUALLY policykit-1-gnome !!! Otherwise your system will break!!!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  5. Now open fingerprint-gui and save your fingerprints.

Known problems:
Only if you have a encrypted homedirectory the INITAL login won't work with fingerprint. With initial login I mean the first login after cold boot. You can only login by typing in your password. For all other logins (screensaver, standby, sudo etc.) you can use fingerprint.
The only way (I know) to login with fingerprint in an encrypted system is to make use of the "password" tab in fingerprint-gui and store your password (encrypted) on a removable device. But be aware of the fact that you never should keep the removable device near your notebook, 'cause the encryption of the stored password is very weak! Also remove the removable device as soon as possible after login in, otherwise an attacker could encrypt the stored password remotely (as I mentioned before...its not very save!).



Good Luck! :-)

Mittwoch, 3. Juli 2013

android studio IDE unter ubuntu

Ciao,

want to check out the new IDE for android from google called "android studio" on ubuntu but it won't start because of the OpenJDK?

No problem!

Check this out:

1. Download the latest Oracle Java Platform (JDK) tar.gz (in my case 7u25) from http://www.oracle.com/technetwork/java/javase/downloads/index.html for your system (in my case Linux x64).

2. Unpack the archive
3. Open a terminal (Strg+Alt+t) and type in:
sudo mv jdk1.7.0_25/ /usr/lib/jvm/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_25/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_25/bin/javac 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.7.0_25/bin/javaws 1
sudo update-alternatives --config java
Choose the Oracle JDK
sudo update-alternatives --config javaws
 Choose the Oracle JDK

4. Check with
java -version
in a terminal, if all went well.


PS: If you have problems with ADB, try to install the following:
sudo apt-get install lib32ncurses5 ia32-libs