SiD3WiNDR Gears  Hacker Emblem  

Archive for the 'Linux' Category

Creating a Java package with make-jpkg
Date: April 17th, 2010 by SiD3WiNDR
Categories: Debian, Software

Looks like this tool is going away, it’s not in squeeze or sid anymore, but hey, I needed a newer JDK…

make-jpkg cannot create packages for Java 6 update 10 or newer, to fix this, edit /usr/share/java-package/sun-j2sdk.sh.

Add this stanza:

       "jdk-6u"[0-9][0-9]"-linux-x64.bin") # SUPPORTED
            j2se_version=1.6.0+update${archive_name:6:2}${revision}
            j2se_expected_min_size=130
            found=true
            ;;

right after

        "jdk-6u"[0-9]"-linux-x64.bin") # SUPPORTED
            j2se_version=1.6.0+update${archive_name:6:1}${revision}
            j2se_expected_min_size=130
            found=true
            ;;

Then try again, should be golden.

Comments Off on Creating a Java package with make-jpkg
Tuxdroid!
Date: August 14th, 2009 by SiD3WiNDR
Categories: Computing, Linux, ProTip

Quite a while back, I read in one of my magazines about the Tux Droid, produced by apparently Belgian company Kysoh. Back then, it cost 79 EUR. I wanted one, but I didn’t feel 79 euro was to be spent, so I put it on my wishlist. I revisited it a few months ago, and I almost fell off my chair when I saw the current price: 149 EUR!

My wife however found a nice deal a few weeks ago: if you buy the 2 year subscription to Linux+ magazine (for 49.99 EUR) you get a Tuxdroid as a welcome gift! That’s essentially a Tuxdroid for 50 euro with free shipping and with a free 2 year magazine as well 😉 Mine’s on the way, thanks to my wife who gave it to me as a gift – already received 2 issues and they’re interesting (read a chapter about forensics cd’s today).

Comments Off on Tuxdroid!
localhost not found
Date: July 18th, 2009 by SiD3WiNDR
Categories: Computing, Linux

I just had the following error while trying to start Smokeping on one of my newly installed machines:

ERROR: fping (‘/usr/bin/fping -C 1 localhost’) could not be run: localhost address not found

After digging around somewhat (this worked fine when run on the commandline) turns out my /etc/hosts was chmodded 700 instead of 744. Weird, but this meant only root could resolve it. What I don’t understand is why this did not work – my resolvers also return 127.0.0.1 for the “localhost” query.

Anyway, if you get this error, check if the smokeping user can resolve localhost too 😉

As Kris would say, it was some sort of DNS problem… 😉

Comments Off on localhost not found
Rescanning your disks after creating a new Areca RAID volume through the CLI tool
Date: July 8th, 2009 by SiD3WiNDR
Categories: Linux

Once you have created a new volume in the CLI tool, Linux does not automatically see the disks. To remedy, use the following:

# echo “- – -” > /sys/class/scsi_host/host0/scan

If one of the volumes was still initializing when you did that, it will have been detected by the driver, but not assigned a device node. In that case, performing the above ritual after it has been initialized will not help. You first have to remove the device again, then rescan again:

# dmesg|grep 0:0:
scsi 0:0:0:3: Direct-Access Areca ARC-1260-VOL#03 R001 PQ: 1 ANSI: 3
scsi 0:0:0:3: Attached scsi generic sg4 type 0
# echo “scsi remove-single-device 0:0:0:3” > /proc/scsi/scsi
# echo “- – -” > /sys/class/scsi_host/host0/scan
# dmesg|grep 0:0:
scsi 0:0:0:3: Direct-Access Areca ARC-1260-VOL#03 R001 PQ: 1 ANSI: 3
scsi 0:0:0:3: Attached scsi generic sg4 type 0
scsi 0:0:0:3: Direct-Access Areca ARC-1260-VOL#03 R001 PQ: 0 ANSI: 3
sd 0:0:0:3: Attached scsi disk sdd
sd 0:0:0:3: Attached scsi generic sg4 type 0

Post a comment (3 comments)
Upgraded to Jaunty
Date: July 4th, 2009 by SiD3WiNDR
Categories: Linux, Rants

Yesterday, I upgraded my Ubuntu Intrepid 8.10 laptop (fresh install) to Jaunty 9.04. Turns out this is a typical non-tested Ubuntu upgrade, as literally everything broke. My wifi is non-functional with the 2.6.28 kernel delivered with 9.04, luckily downgrading to the 8.10 kernel made it work fine. Purged linux-generic and all its descendants, so that’s “fixed”.

Next to that, I logged into KDE only to find the main panel missing. Having no clue how to fix this nor feeling like googling (especially since at that point my wifi did not work), I moved my old .kde out of the way and had it create a new one, so it worked again. Copied over some rc files for frequently used apps so most config could be saved, luckily.

When I “unplug” (turn off) my internal bluetooth adapter, or the laptop goes into suspend meaning the bluetooth sleeps too, the “KDE4 Bluetooth Framework” crashes. Somehow the bluetooth system tray icon still works though, it’s just odd.

I get most notifications a few times now, once in a tooltip popup from the system tray icon, and once in a generic yellow rectangle from KDE, containing the exact same text. How’s that for thoroughness!

The network manager icon no longer shows wifi strengh, it’s now a very ugly icon with some kind of antenna with radio wave circles around. Uergh.

KDE4’s battery manager icon is really fugly, and I mean “FUGLY could have done it better myself in mspaint in 20 seconds FUGLY”. Luckily, apt-get install kpowersave gets me the old power icon back with a way more useful hover tooltip, so I could remove the battery monitor applet.

Post a comment (2 comments)
KDE trouble
Date: April 17th, 2009 by SiD3WiNDR
Categories: Linux, Software

If you suddenly find your KDE on Ubuntu Intrepid without working keyboard focus and no window decorations (essentially, no window management functions), try getting to “system configuration” from the menu and check Appearance > Windows. If it says something about being able to load kcm_kwindecoration.so because of a missing libkephal.so, apt-get install kde-window-manager. Although it will already be installed, “somebody” fscked up dependencies.

Comments Off on KDE trouble
Xen fails on Debian Lenny after upgrade from Etch
Date: April 13th, 2009 by SiD3WiNDR
Categories: Linux, Software

Installed Debian Etch yesterday (I need a linux kernel with xen and vserver for now, and Lenny doesn’t have one) then upgraded it to Lenny. Afterwards the Xen tools wouldn’t start anymore and produced the following error:

# /etc/init.d/xend start
Restarting XEN control daemon: xendTraceback (most recent call last):
File "/usr/lib/xen-3.0.3-1/bin/xend", line 40, in <module>
from xen.xend.server import SrvDaemon
File "/usr/lib/xen-3.0.3-1/lib/python/xen/xend/server/SrvDaemon.py", line 17, in <module>
import xen.lowlevel.xc
ImportError: /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/lowlevel/xc.so: undefined symbol: Py_InitModule4

You can solve this in 2 ways. First, the silly way:

rm /usr/bin/python; ln -s /usr/bin/python2.4 /usr/bin/python

Or, the way you’re supposed to:

apt-get install xen-utils-3.2-1 
Post a comment (2 comments)
Extracting a boot image from a CD
Date: March 18th, 2009 by SiD3WiNDR
Categories: Linux, Software

Just needed to extract a boot image from a CD, geteltorito works nicely (except it outputs to stdout, sigh 😉 )

Comments Off on Extracting a boot image from a CD
debmirror gnupg problem
Date: March 2nd, 2009 by SiD3WiNDR
Categories: Debian

Something seems to have changed in the debmirror prorgam on lenny:

gpgv: Signature made Sun Mar  1 16:27:33 2009 CET using DSA key ID 1F41B907
[GNUPG:] ERRSIG 07DC563D1F41B907 17 2 00 1235921253 9
[GNUPG:] NO_PUBKEY 07DC563D1F41B907
gpgv: Can’t check signature: public key not found

This error turned up when I tried to mirror debian-multimedia.org after upgrading debmirror. Apparently the new version looks for the keys in ~/.gnupg/trustedkeys.gpg. If you installed the debian-multimedia-keyring package, you can use the following:

 gpg –no-default-keyring -a –keyring /usr/share/keyrings/debian-multimedia-keyring.gpg –export 07DC563D1F41B907 | gpg –no-default-keyring –keyring ~/.gnupg/trustedkeys.gpg –import –

This imports the current key into the new file.

Comments Off on debmirror gnupg problem
More lenny upgrade
Date: February 21st, 2009 by SiD3WiNDR
Categories: Debian

If you get the following error in your linux-vserver guest after upgrading it to lenny:

Feb 21 14:03:22 ftp sshd[18392]: error writing /proc/self/oom_adj: Permission denied
 

Adjust /etc/default/ssh ‘s SSHD_OOM_ADJUST=-17 into SSHD_OOM_ADJUST= then restart ssh to get rid of it.

 
Comments Off on More lenny upgrade
Weblog Calendar
December 2018
M T W T F S S
« Aug    
 12
3456789
10111213141516
17181920212223
24252627282930
31  
Sales

Browsing archives for the Linux category.

Pages
Archives
Categories
Links
Meta
© 2002-2018, SiD3WiNDR - Proudly powered by WordPress - XHTML Compliant - RSS (Entries) - RSS (Comments)