libGL.so

Problem:

libGL.so: cannot open shared object file: No such file or directory

In most cases a proper library exists(here libGL.so.1), but it is not found by the application.
Solution (as root):

cd /usr/lib/
ln -s libGL.so.1 libGL.so

UPDATE: better solution might be here

java gui – problem (xcb_xlib.c)

If you experience the following after a(nother) java-app crashed:

java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock’

Gentoo-Users can do the following (as root)

locate libmawt.so | grep “/opt/sun-j.*/lib/i386/.*libmawt.so” | xargs sed -i ‘s/XINERAMA/FAKEEXTN/g’

(Another case of IF I ALTERED MY GOOGLE-STRING EARLIER)

HOWTO: install a WG311V3 wireless with ndiswrapper

(I am using (x)ubuntu here, but emerge in gentoo should be as useful as the debian-pkg-management (synaptics))

1. Step

Check if you have the right card (“lspci -v”):

00:10.0 Ethernet controller: Marvell Technology Group Ltd. 88w8335 [Libertas] 802.11b/g Wireless (rev 03)
Subsystem: Netgear WG311v3 802.11g Wireless PCI Adapter
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 9
Memory at e8010000 (32-bit, non-prefetchable) [size=64K]
Memory at e8000000 (32-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>

2. Step

Get ndiswrapper-common and ndiswrapper-utils-1.9 over synaptics/ubuntu-pkgm.

3. Step

Get the .inf-File from your Driver-CD (winxp-ver). If you don’t want to search it through your cd-collection just use the one from ndiswrapper.sourceforge.net. It should work for sure.

4. Step

sudo ndiswrapper -i <your-inf-file-here.inf>

Check if everything is fine:

ndiswrapper -l
mrv8000c : driver installed
device (11AB:1FAA) present

5. Step

Create your “driver-module” with ndiswrapper.

ndiswrapper -m

Add it to the Kernel.

sudo modprobe ndiswrapper

[6. Step]

Add ndiswrapper to /etc/modules (may vary for your distribution) for autoloading at boot time.

Problems

  1. Check that ndiswrapper could read the .inf-file correctly. Was root needed etc?
  2. Did you choose the wrong driver inf? It has to be the winxp-version.
  3. To start all over again:
    1. ndiswrapper -r <yourpackage(s)>
    2. make sure suspicious (=looking like <yourpackage(s)>) files in /etc/ndiswrapper/ were deleted

open java .jar files

in case you want to execute a .jar-file you have to use “-jar” as parameter

trigger@localhost ~/Desktop $ java -jar FreeSpaceOpenInstaller.jar

I was going to re-emerge the whole java-subsystem ^^ but fortunately I took a final look into “java -h”.

slackware cryptsetup-luks

Festplattenverschlüsselung unter linux (2.6-Kernel)

am Beispiel von Slackware 11.0

see english – version on the next page…

Triggers-World.de übernimmt keine Haftung bei Schäden, die durch das Nachahmen dieses Artikels entstehen können. Jeder Leser übernimmt selbst das Risiko von Garantie- und Datenverlust bis hin zur Beschädigung seiner Hardware!

Mit der hier vorgestellten Methode verschlüsselt man – natürlich – nicht die Festplatte sondern “nur” eine Partition. Dazu wird mit Hilfe von cryptsetup-luks die Partition verschlüsselt. Anschließend kann man sie dann mit Hilfe des Passworts “öffnen” und “schließen” und zwischendurch über ein virtuelles device /dev/mapper/[name] ansprechen und nach der Installation eines Dateisystems auch einbinden (mounten). Dieses ist in diesem Beispiel ext2. Man kann aber sicherlich auch andere nehmen.

Nötige Dateien:

Es müssen natürlich nicht diese Versionen sein. Neuere stabile werden es höchstwahrscheinlich auch tun.

Nötige Kernelkonfiguration (2.6)

 


Code maturity level options --->
[*] Prompt for development and/or incomplete code/drivers
Device Drivers --> RAID and LVM Support -->
[*] Multiple devices driver support (RAID and LVM)
<*> Device mapper support
<*> Crypt target support
Cryptographic Options -->
<*> AES cipher algorithims (i586)
<*> SHA256 digest algorithm
Device Drivers --> Block Devices -->
<*> Loopback device support

Reihefolge

  • 1.libgpg-error
  • 2.libcrypt
  • 3.devmapper
  • 4.cryptsetup-luks

Nun muss man erstmal die benötigte Software installieren. Wegen Abhängigkeiten ist es am besten die Reihenfolge einzuhalten… Ansonsten immer alles beim alten :

  • 0.Rootrechte werden im Folgendem im Zweifel immer benötigt.
  • 1.Entpacken
  • 2../configure
  • 3.make
  • 4.make install

Partition einrichten

Sind wir damit fertig können wir auch schon ans Eingemachte gehen. Dazu brauchen wir ersteinmal eine leere (!) Partition. Alle Dateien, die auf der Partition noch existieren werden gelöscht! In meinem Fall ist das /dev/sda4. Ich besitze SATA. ATA-User werden entsprechend wohl /dev/hda1 oder ähnliches verwenden. Vorsicht ist allerdings wie gesagt geboten. Nicht das man die falsche Partition erwischt! Als Dateisystem verwenden wir hier ext2.

root@sparta:~# cryptsetup -c aes-cbc-essiv:sha256 -y luksFormat /dev/sda4

WARNING!
========
This will overwrite data on /dev/sda4 irrevocably.

Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase:
Verify passphrase:
Command successful.
root@sparta:~# cryptsetup luksOpen /dev/sda4 geheim
mkfs.ext2 /dev/mapper/geheim

Partition öffnen

(Das Ausführen von cryptsetup kann man sich sparen, wenn man diese Anleitung von Anfang an nachvollzogen hat.)

cryptsetup luksOpen /dev/sda4 geheim
mount /dev/mapper/geheim /mnt/crypt

Über /mnt/crypt kann man nun unsere verschlüsselte Partition erreichen. Will man sie nun wieder schließen tut man folgendes.

Partition schliessen

umount /mnt/crypt
cryptsetup luksClose geheim

Der tägliche Gebrauch

Um die Partition gleich in den Bootvorgang zu integrieren kann man einfach folgendes an die /etc/rc.d/rc.lokal anhängen:

cryptsetup luksOpen /dev/sda4 geheim
mount /dev/mapper/geheim /mnt/crypt

Quellen

http://www.linuxforen.de/forums/showthread.php?t=207968 “DaGrrr”

Feedback

Für positive und negative Kritik bitten einfach die E-Mailadresse unter ‘Impressum’ nutzen. Ich würde mich freuen!

Continue reading slackware cryptsetup-luks

cups problem

If you receive

/usr/libexec/cups/filter/foomatic-rip failed

you could try

emerge --unmerge ghostscript-gpl cups foomatic-db \
foomatic-db-engine foomatic-db-ppds foomatic-filters \
foomatic-filters-ppds foomatic-gui

emerge -va cups

Cups seems to use it’s own filters (less but one for different printers) then. Works perfectly now.

I got these options activated

X dbus jpeg nls pam php png samba

but not especially for cups (-> /etc/make.conf)

open thunderbird out of firefox

To open thunderbird when you click on mailto: links with firefox you have to open the page “about:config” with firefox. There you create a new preference

network.protocol-handler.app.mailto

with the value

thunderbird

In case it doesn’t work after a restart of firefox try /usr/bin/thunderbird as value…

alternative

Software for linux (triggers-world-suggestions) and alternative windows-versions

  • k3ball well-known burning suites
  • open-office (pdf-export with one click!) – office
  • amarok (lyrics and coversearch made easy) – winamp
  • mozilla-firefox (see thunderbird) – IE
  • inkscape, gimp ~ PS
  • mozilla-thunderbird (virus?, buffer-overflow?, wtf?) – outlook
  • pidgin icq
  • kdenlivevarious (expensive) video-editing-suites
  • k9copy (the Linux DVD9 -> DVD5 solution) – clonedvd 

will be continued …

USB-Devices: difference system:/media and /media

I had problems with automounting. When I plugged in my MP3-Player it was not shown in system:/media. It could only be seen in /media. I recompiled everything (dbus, hal and ivman) but it still didn’t work. So i decided to test it under xfce. There I received a message about missing privileges. I searched the net and found the solution…

rm /usr/share/hal/fdi/policy/gparted-disable-automount.fdi

This also solved the problem in KDE.