Posts

Showing posts from April, 2009

Google Gears Linux x86_64-bit Plugin Download for Firefox Browser

There is an issue describing this problem (no x64 version available) on the Google Gears development site . Also you can find continuously updated x86_64-bit versions of the Google Gears Firefox add-on/plugin there.

Importing/Adding GPG keys to Apt-Get/Aptitude

If you get messages like this... W: GPG error: http://dl.google.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A040830F7FAC5991 ...when you are updating your package list via apt-get or aptitude, you have to import the missing GPG key, in order to avoid these warning messages in the future: gpg --recv A040830F7FAC5991 gpg --export --armor A040830F7FAC5991 | sudo apt-key add - In this way you can add a new GPG signature key for the distributed packages to apt-get .

Audio/Volume control keyboard shortcuts in Xfce configuration

Image
To control the volume settings in Xfce with keyboard shortcuts , you have to assign the following commands in the " Application Shortcuts " section of the " Keyboard " configuration menu to corresponding shortcuts: amixer set Master 5+ : increase volume amixer set Master 5- : decrease volume amixer set Master toggle : mute/unmute volume switch

Eclipse: 32-bit GWT (GTK) configuration on x86_64 arch to avoid "Failed to load module"/"wrong ELF class"

Image
If you get "Gtk-Message: Failed to load module "canberra-gtk-module": /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so: wrong ELF class: ELFCLASS64" messages on the console when you launch a Run/Debug Configuration of your GWT Web Application, you should set the value of the environemtal variable GTK_PATH to /usr/lib32/gtk-2.0 : ...whereby ${GTK_32_PATH} should have the value /usr/lib32/gtk-2.0 . Eventuall you have to install the ia32-libs-gtk package to make /usr/lib32/gtk-2.0 available. You haven't to use the x32 JDK/JRE as your default Java VM for the whole x64 system but install ia32-sun-java6-bin package and set this VM as your default JRE only in Eclipse (for the projects) but not for Eclipse itself :

Apt Repository to install: Skype, Acrobat Reader, Real Player, Google Earth, restricted video codecs or the Acrobat Firefox plugin for Linux?

...if you're looking for anything above, you should add the Medibuntu Ubuntu package repository to your apt-get/aptitude list! This allows you to install pre-configured and actually working Skype, Acrobat Reader, Real Player, Google Earth packages as well as many video codecs to play DVDs and odd video files under Linux. Furthermore you can install the Acrobat Reader plugin for Firefox that allows you to view PDFs within Firefox without opening any additional PDF viewer software. Some speech codecs are included as well and restricted video codecs (ppc-codecs, w32codecs, w64codecs) make it possible to play encrypted DVDs .

Windows Vista x86 vs. x64 (32-/64-bit) - which is better?

Questions about RAM support ( 4 GB RAM barrier), performance, and security are clarified in a brief overview on this site . Not only the question whether Win Vista supports 4GB of RAM is clarified, but also security related questions regarding the both architecture editions of Windows Vista will be answered: PatchGuard, DEP, Driver Signing.

Password-less sudo (auto-sudo): Sudo without entering a password

Sometimes "getting the work done" has a greater priority for people than security: And this how-to addresses those people. However a password-less sudo command execution might decrease the security level of your machine, as executing the sudo command without entering a password, allows all local users (which are also able to execute the sudo command itself) to execute commands as root user. So an auto-sudo may allow local users to gain root privileges. sudo visudo ...should let you modify the sudoers file and enable auto-sudo : # [...] # User privilege specification root ALL=(ALL) ALL # Uncomment to allow members of group sudo to not need a password # (Note that later entries override this, so you might need to move # it further down) %sudo ALL=NOPASSWD: ALL # Members of the admin group may gain root privileges # %admin ALL=(ALL) ALL Note that these entries have to be in the "User privilege specification" part of the sudoers file . Entries like %a

Password-less SSH login (auto-authentication/login) on a remote machine

ssh-keygen -t rsa ...will generate an id_rsa and an id_rsa.pub file in your ~/.ssh/ directory. Afterwards you have to copy your id_rsa.pub file which is basically your public key, to the ~/.ssh/authorized_keys file on the remote machine. So if you copy the id_rsa file to the /root/.ssh/authorized_keys file of a remote (or local...) machine, you should be able to log-in on this machine as root without providing any password: scp ~/.ssh/id_rsa.pub root@example.com:/root/.ssh/authorized_keys or scp ~/.ssh/id_rsa.pub anyUser@example.com:/home/anyUser/.ssh/authorized_keys Also you should pay attention NOT to copy the ~/.ssh/id_rsa file, as this is your private key which should be kept secret. However an auto-login resp. auto-authentication which allows you to login on a remote machine without entering a password might decrease the security level of the remote machine: So if anybody get your private id_rsa key, he is able to auto-login on this machine as well.

How to convert VDI to VMDK; Converting a VirtualBox image to a VMware disk image and vice versa

You need the QEMU emulator software package aptitude install qemu in order to execute this command qemu-img convert VirtualBox-HardDisk-image.vdi -O vmdk VMware-virtual-machine-image.vmdk You should keep in mind that you might get an IDE VMware disk image in this way but a SCSI hard disk image is recommended by VMware for more I/O performance. Just type qemu-img to get all supported formats which you can supply as the -O parameter . It is also possible to convert a VMDK to a VDI hard disk image. To convert a VMware image to a VirtulBox image, you have to use the qemu-img-vdi command which you can get by patching QEMU . Afterwards you may execute this command: qemu-img-vdi convert VMware-hard-disk-image.vmdk -O VDI VirtualBox-image.vdi

Tuning ext4 for performance with emphasis on SSD usage

The obligatory disclaimer: The more performance you gain, the more data integrity you loose! But if you want to tune something like a file system, I strongly assume that you know what you are doing :) These tips apply to all major Linux distributions like Fedora/Red Hat, OpenSUSE, and Ubuntu that are already using ext4 or are going to make ext4 their default file system. As write operations on Solid State Disks (SSD) are expensive the tips below are focused on SSD usage but also apply to HDD usage as well . My Ubuntu 9.04 Jaunty /etc/fstab after a fresh installation: [...] UUID=d818ddf9-ff01-e21a-a67d-3ceab43a9e2b / ext4 relatime,errors=remount-ro 0 1 UUID=0d339122-74e0-e0ea-805a-7879b1fa3172 /home ext4 relatime 0 2 [...] My tuned Ubuntu 9.04 Jaunty /etc/fstab : [...] UUID=d818ddf9-ff01-e21a-a67d-3ceab43a9e2b / ext4 noatime,barrier=0,nobh,commit=100,nouser_xattr 0 1 UUID=0d339122-74e0-e0ea-805a-7879b1fa3172 /home ext4 noatime,barrier=0,data=writeback,nobh,commit=100,nouser_xattr 0 2

How to deactivate/disable the webcam module auto-spawn in Ubuntu 9.04 (Jaunty)

If you don't like the default web cam auto-spawn behavior in Ubuntu 9.04 (Jaunty), you should modify your /etc/modprobe.d/blacklist.conf : echo -e '# my modifications\nblacklist gspca_m5602\nblacklist gspca_main' >> /etc/modprobe.d/blacklist.conf ...was the solution for my Lenovo 3000 V200 . You should replace gspca_main resp. gspca_m5602 by webcam modules in your notebook. You can get a clue for the name of your web cam module reviewing this overview site .