Freitag, 7. Mai 2010
HowTo compile MeshLab from source on ... Geschrieben von Jan Girlich
in technique um
23:35
Kommentare (0) Trackbacks (0) HowTo compile MeshLab from source on Ubuntu Lucid 10.04I want to use the latest MeshLab from source because of an annoying bug which makes it impossible to use MeshLab with any locale setting where "," is used instead of "." as decimal separator. Like my German one. I mainly followed this extensive HowTo: http://meshlab.sourceforge.net/wiki/index.php/Compiling_devel#Getting_the_sources and I used this advise: http://byeworld.blogspot.com/2009/01/libf2cso-undefined-reference-to-main.html Here you find the most important steps in a short instruction set. $ sudo apt-get install qt4-qmake libqt4-dev build-essential lib3ds-dev libbz2-dev liblapack-dev libf2c2-dev libmuparser-dev $ cd MyWorkFolder $ svn co https://meshlab.svn.sourceforge.net/svnroot/meshlab/trunk/meshlab meshlab $ svn co https://vcg.svn.sourceforge.net/svnroot/vcg/trunk/vcglib vcglib $ wget http://www.ics.forth.gr/~lourakis/levmar/levmar-2.5.tgz $ tar -xzf levmar-2.5.tgz $ cd levmar-2.5/ $ sudo rm /usr/lib/libf2c.so && sudo ln -s /usr/lib/libf2c.a /usr/lib/libf2c.so $ make $ mkdir ../meshlab/src/external/lib/linux-g++ $ cd ../meshlab/src/external/lib/linux-g++ $ ln -s ../../../../../levmar-2.5/liblevmar.a liblevmar.a $ ln -s /usr/lib/lib3ds.a lib3ds.a $ ln -s /usr/lib/libbz2.a libbz2.a $ ln -s /usr/lib/libmuparser.so libmuparser.a $ cd ../../.. $ qmake -recursive meshlabv12.pro $ make Now create a little shell script e.g. meshlab.sh and adjust your paths:
#!/bin/bash Make it executable and enjoy $ chmod +x meshlab.sh $ ./meshlab.sh Samstag, 10. April 2010
HowTo use jGnucashLib to import ... Geschrieben von Jan Girlich
in technique um
01:11
Kommentare (0) Trackbacks (0) HowTo use jGnucashLib to import PayPal transactions to GnuCash on UbuntuUrgh, got stuck at a bug. Too late to finish it tonight. So here you go with a few bulletpoints of the progress so far. Else download and extract jGnucashlib: Open the right file when jGnucashLibGui starts (not in .gnucash/books/ but wherever you actually saved your file) Be annoyed and give up in the end anyway because of: Samstag, 19. Dezember 2009
How I solved my Ubuntu Karmic 9.10 ... Geschrieben von Jan Girlich
in technique um
00:09
Kommentare (5) Trackbacks (0) How I solved my Ubuntu Karmic 9.10 ALSA OpenAL Sound problemsI was suffering from a soundproblem on my fresh Ubuntu Karmic installation. All programs using OpenAL would stop playing sound and start to play scratchy sounds until sound drops completely out. Plus those programs will hang when trying to shut them down. For example OpenArena and Warzone2100 are affected which comes really hard to me I tried a lot of different things with little success. Most solutions only helped for a moment until the problems came back. I think it's just that it works a little while after a reboot. Basically I don't know what really fixed the problem, but these changes here are in efffect right now and work for me.
Montag, 14. Dezember 2009
Using a guitar pick as a stylus for ... Geschrieben von Jan Girlich
in technique um
23:45
Kommentare (2) Trackbacks (0) Using a guitar pick as a stylus for your OpenMoko FreerunnerWith the OpneMoko Freerunner comes a stylus which you need if you want to use for example the tiny keys of the keyboard. In general the software I know of is not finger-use ready, yet. So to use a stylus is a good idea. But you have to separately carry the stylus around with you because it's not attached to the phone or has a pocket it goes into whennot in use. Actually I stole this idea from my friend:
Sonntag, 11. Oktober 2009
A plugin for using GCstar to ... Geschrieben von Jan Girlich
in technique um
18:49
Kommentare (0) Trackbacks (0) A plugin for using GCstar to catalogize your Lustige TaschenbücherYou might know that I collect Lustige Taschenbücher (LTB) since I was a little kid. I got 258 issues by now and wanted to catalogize them with GCstar to have a better overview. Unfortunately the plugins to automatically fetch all information about the books shipped with it do not cover any webpage listing LTB. That's probably because LTBs are only sold in German speaking areas and thus are only locally popular. But there is a quite nice webpage listing a lot of them at http://www.lustige-taschenbuecher.de/. So now all I had to do is writing a plugin to grab the data from this webpage and insert it in the database. Something dozens of people already did before me and is documented. I won't go into details here (I might at some other point in time if someone wants me to) but Perls HTML::parser comes directly out of hell! Anyway, I got it. If you want to use it as well download the plugin and place it in your GCstar lib directory (on my Ubuntu it's /usr/share/gcstar/lib/GCPlugins/GCcomics/). I changed the database layout of the generic GCcomics model a little to make it work with LTBs. See this diff for the changes and apply them to yours or the plugin won't work (most likely the file GCcomics.gcm is to be found at /usr/share/gcstar/lib/GCModels/). Now start your gcstar, create a new comicbook collection, add a new item, enter the issue number of the LTB as the volume, hit the internet search button, select to query by volume, select the LTB plugin and get happy. I just catalogized my whole collection within an hour. Be aware that some reprints are not listed on the webpage. Especially the early reprints up to about volume 120. PS: Anyone willing to swap some LTBs with me? Dienstag, 6. Oktober 2009
My Backup Solution using BackInTime Geschrieben von Jan Girlich
in technique um
22:49
Kommentare (2) Trackbacks (0) My Backup Solution using BackInTimeSince a while now I'm trying to figure out the right way of doing backups on my Ubuntu Linux system. I have some requiremtens I want to descibe brefely before continuing. Don't do regular full backupsI used sbackup so far but it regularly does a full backup, thus taking a long time (I have about 100GBs I want to be backuped) and using up a lot of disk space. Store the backups on a remote systemBackup basics: keep your backup at a logicaly and spacialy seperate place from your computer. So I want it to work over network and please encrypt the file transfer. And do only send the data of changed files, keeping nettraffic low. Don't bother meWork in the background and just do your job. Don't tell me what you're doing unless I ask you to do so. I don't even want to know you exist. The only reason I interact with you is the worst case: I got to restore something. Easy to setup and use I want an easy to setup solution which doesn't need complicated settings and extensive care to be kept running. I don't want to change tapes or drives, free disk space tell you that the target is avilable or not, figure it out for yourself and do something sensible. And if I ever have to restore files I want an easy to use interface which enables me to quickly restore everything. Restoring is also without the backup program easily possibleNo, looking inside incremental .tar.gz files is not easy. More like complete snapshots I can browse easily and copy the files I want out of with any basic operating system. But keep the needed needed space low. Try to backup every little change, ASAP Most annoying with most backup solutions I think is the fact they only do a backup once a day or similar. With a full backup of 100GBs over the network this might take longer than the longest contiguous uptime of my computer while at home for the day. But I still want pretty much any changed file to be backed up, so I can undo very recent changes. My solutionI really liked what I heard about TimeMachine from Apple. But I don't use Apple, so I was looking for something similar for Linux. There are a couple of promising projects like TimeVault and FlyBack, if they weren't deserted since about two years. And there is BackInTime which works fine and is quite recently maintaned (June 2009). It even looks like it's going to be part of Ubuntu 9.10 Karmic Koala (release date Oct. 29th). So what does BackInTime do that I like it so much?
But it does not store backups on remote systems. Well, you can mount a remote share and do the backup on that one. Luckily BackInTime internally uses rsync which uses Delta Encoding to reduce the amount of data to be sent over the network. But whenever the target is not available BackInTime gets annoying telling me about it every 30 seconds or so. Inacceptable. But there is something you can do about it. BackInTime is called every 5 minutes by Cron, so I wrote a little wrapper script checking if the target computer is found in the local network and mounting the share prior to calling BackInTime. #!/bin/sh It's assumed your servers share is accessible via SSH and your user uses SSH keys to log in. There's a good howto on that on Ubuntus help pages. Save it as e.g. ~/bin/backintimeprep.sh and change the crontab entry to something like ∗/5 ∗ ∗ ∗ ∗ ~/bin/backintimeprep.sh >/dev/null 2>&1 This script is very basic and fails if it finds another server with the same IP address. Try it out and have fun! I just finished my initial backup and have it running in the background. Hopefully this ended my struggle for a good backup solution. Using CIFS instead of SSHFSMy slug is very slow and I had a transfer rate of only about 1MB/s whilst totally hogging my CPU rendering it unusable for anything else during a backup. So I was looking for another solution with less CPU usage and better transfer rates. CIFS is quick and doesn't use much CPU time. But it lacks the security of an encrypted connection which I decided to be negligible in my local network. I assume you know your way around with samba i.e. how to add users. My /etc/samba/smb.conf on the server looks like this: [global] In the script backintimeprep.sh change the lines for mounting and unmounting the sahres like this. Mounting: # you might need to fiddle around with the charset to make i.e. Umlauts work Unmounting: unmount.cifs ${MOUNT}; Works great like this. Much better performance. EDIT:
Freitag, 2. Oktober 2009Online storage/backup/synchronisation services: UbuntuOne vs. DropBoxRecently a couple of services offering online sotrage and a software client for easy synchronisation between several clients, easy sharing and backup came up. It seems like the idea is actually quite old, but as I think really sexy. I only have a look at DropBox and UbuntuOne here, because those integrate fairly well with my Ubuntu. An incomplete list with similar services can be found at Wikipedia. There is a nice video at DropBox's webpage explaining what those services are good for, so I won't explain these advantages anymore but redirect you to the video. Storage sizeIf I wanted to backup all my valuable data I would need more than 100 GB, which is more than the 50 to 100 GB both services offer to paying customers. But just for quickly sharing files or making some important files available everywhere or similar things the 2 GBs offered by both services are fine.
Software ClientsWhile UbuntuOne comes with an open source client which can be trusted, adapted and ported to other plattforms DropBox is a proprietary closed source product. Funnily enough DropBox is also available for Mac and Windows while UbuntuOne isn't, yet. The DropBox client needs some tricks to install on a Ubuntu and probably other Linuxes, too. But in the long run I see a bigger potential in UbuntuOne being ported to anything you could possibly wish for just because it's open source. Both clients integrate very nicely with Nautilus and enable you via right click to share files or folders. Only details differ here. FeaturesFeaturewise those clients are not very different either, but the way it works is a little different. There is only one feature I really miss at UbuntuOne and why I use Dropbox. With DropBox you can share files via a simple http link while at UbuntuOne you can only share files when both partners have a launchpad.net account. This is very bad for the very typical situation where you want to send a large file to someone. DropBox's direct link you can obtain by right clicking a file comes in very handy in this use case. Conclusion Just now I prefer DropBox over UbuntuOne because of the Windows client being available and not needing any client or account for sharing files via direct weblink. But I predict bigger potential for UbuntuOne because of better integration possibilities with Ubuntu, easier installation and it being open source so there can be clients for any OS and architecture. Mittwoch, 29. Oktober 2008Dspam accuracyAfter I installed Dspam some time ago I checked on it's accuracy and made a small graph to illustrate it. Since my Dspam installation at Octobre 7th 22 days and 1141 emails passed by. All in all I'm very happy with Dspam. It works just fine and the overall accuracy is 98.51%. I got a false positive rate of 0.79% and a false negative rate of 0.70%. Those emails which got detected wrong were usually emails from persons or companies I never had a correspondence with before. Emails from the same senders were detected correctly after training the filter with the wrong detected emails.
Donnerstag, 9. Oktober 2008Dspam with procmail in usermode
I have a user account on a server which I use for my mail. Unfortunately there is no spam filter set up on the server and I don't have root privileges to install one. So I had to install a local solution running with user privileges utilizing procmail.
In this setup the mail comes from the postfix installation and is forwarded to procmail via the .forward mechanism. Procmail is sending the email via stdin to dspam which returns the tagged email to procmail on stdout. Procmail then sorts the mail into different .maildir folders by examining the X-DSPAM mail headers. The .maildir is then exported as IMAP and some folders are used to retrain false positives and false negatives and to contain spam emails. I never intended to use the dspam webinterface or the filter training mechnisms via forwarding spam, false positives and so on to certain email adresses of the form spam@... since I can't run perl programs on my web server nor can I set up email aliases. This is one of many ways to setup dspam. This way is not intended for server installations where you want several users to use dspam. Better try to integrate dspam as a queue in your MTA then. Postfix to procmail To forward your mail to procmail edit your ~/.forward to look like this: "|/usr/bin/procmail" Procmail to dspam and back The next step is to configure procmail to pipe the emails to dspam. We'll install, configure and train dspam in the following step. This is what my ~/.procmailrc looks like: # Begin spam treatment. Make sure to change the mail folders to match your setup. Invoked with the option --stdout dspam returns mails read from stdin to stdout after tagging. --deliver=innocent,spam overrides the default behaviour of putting spam in quarantine. Actually just using spam as a parameter here should be sufficient, but I thought I had to make sure. Installing, configuring and training dspam Well, I had to compile from source since I can't use the package management without root priviliges. So download the source and unpack it: wget http://dspam.nuclearelephant.com/sources/dspam-3.8.0.tar.gz Now it's time to configure dspam to make sure all the needed features are getting installed. cd dspam-3.8.0/ You might want to change your paths but the other options are important. All the user and group related options allow dspam to be run as user. Without the option --enable-spam-delivery all spams would be quarantined no matter what and would have been to be bailed out by cli or webui. I think --enable-delivery-to-stdout is easy to understand as is. Now compile and install dspam: make && make install You'll find dspams config under ~/etc/dspam.conf if you used --prefix=$HOME as I did. There are only minor things to fix since most options are set correctly automagically. Those are the options I changed to fit the setup: Home /home/vollkorn/var/dspam There are some cronjobs you should set up. So do a crontab -e and enter those lines: # a cleanup job recommended by dspam The scripts to handle the false positives and false negatives are quick & dirty so be careful when using them. Remember to change the paths and username. ~/.dspam/falsenegative.sh #!/bin/sh ~/.dspam/falsenegative.sh #!/bin/sh So the last thing left to do is to train dspam. After an initial training the accuracy is already very good. It's very important to not only train spam, but also some ham. I trained with 411 spams and about 900,000 hams (no typo). For training I used these two commands: find ~/.maildir/.ham/cur/ -name "*" -exec cat {} | dspam --source=corpus --class=innocent \ Results After using this setup for about 3 days I'm very pleased. Not a single spam made it into my inbox and my mail notification applet went off significantly less. I had one false positive thoug, but it was retrained properly after moving it to the right .maildir folder inside my mail client. Here is a little pie chart showing the accuracy of my dspam installation. ![]() Ressources I read these pages and can recommend having a look at them, too. Mittwoch, 1. Oktober 2008Rockbox on iRiver H10 with Ubuntu
Yesterday I got a iRiver H10 in return for helping out with a virus infected computer. So the first thing I did was putting rockbox on it. Next step was to make it work with my Ubuntu where I use Rhythmbox.
The Rockbox installation was rather easy though it has some glitches.
.is_audio_playerThis is it. Works fine for me. Samstag, 17. Mai 2008Setting up Asterisk with a Fritz!PCI ISDN card on Ubuntu ServerRecently I had the idea of setting up Asterisk on my up-to-date Ubuntu server. Asterisk is a very powerfull but also very complex, feature-rich and flexible telephony server. If all you want is sending and receiving faxes, an answering machine for your ISDN phones or similar simple things based on ISDN services, capisuite is the way to go. But as soon as you want services based on analog lines or VoIP, you should get familar with Asterisk. So I did.
After reading this article you might think: Why going through all this trouble with Ubuntu? Why not use AsteriskNow or Trixbox? Well, the problem with AsteriskNow 1.0.2 is that when you use the Fritz!PCI card the whole system will crash during the boot process. But only if you have the ISDN cable plugged in. But even if you boot without the cable plugged in there are several problems because the fcpci driver is just broken. I never tried Trixbox but I don't like the halfway commercial philosophy of the project and the fact that it rewrites the config files when you change something in the web interface. Getting the Fritz!PCI card up and running It should work out of the box in Ubuntu. But actually it doesn't. The driver is called fcpci.ko and resides in linux-restricted-modules, so installing this package and capiutils
loading some modules in /etc/modules.conf capidrvand uncommenting the proper line in /etc/capi.conf
should do the trick, but it doesn't as you can easily see when you have a look at capiinfo
In order to solve this problem you should build the module yourself. To do it the ubuntu way you should do it as described here. And don't backup the files in the target directory in the last step, just overwrite them. First download the proper sources.
After a reboot the module fcpci.ko will be built and loaded automatically. Installing Asterisk and get asterisk-chan-capi working Asterisk is in universe, so you can install it easily with apt-get. To make it work with ISDN you need asterisk-chan-capi for asterisk to be able to communicate with the CAPI layer. asterisk-config has a set of example configuration files. To have some sound files to work with you should also install at least asterisk-sounds-main.
Now set up a little example dialplan. First some backups.
The dialplan resides in /etc/asterisk/extensions.conf. Due to some reason I don't know the start-extension s doesn't work for CAPI devices, so you have to use the MSN you're calling asterisk at. In this example I use 123456.
Now we need to make sure chan_capi gets loaded when asterisk is started. To do so we need to edit /etc/asterisk/modules.conf. Change the line
to
So now we restart asterisk and connect to asterisk to see what's going on and then we call our MSN 123456. What you will see will look like this.
This looks pretty bad and google isn't a big help in this case. But the problem is known as well and can be solved by compiling the packet asterisk-chan-capi.
And now we should be able to call into asterisk and hear a very short "hello world". The next step From here on I suggest reading the asterisk book. I have some troubles playing back files I recorded with Record(). I'll work on this next although I probably won't use this function in my setup. Versions of the used packets This all was tested and done on May 17th 2008 on a Ubuntu Hardy Heron Server. kernel 2.6.24-16-generic Sources http://forum.ubuntuusers.de/topic/168953/ Sonntag, 4. November 2007Google Maps TestThis is my first test with a google map. I got paths and pictures, can click on them, they are embedded in my blog and everything basically works. In this example it's only 20 pictures and it might not be possible to use more than 50 pictures and they are all off place and there are two paths from two days in the map, but this is just some quite random test data I didn't prepare well. Well there are some problems left like the way I upload the pictures wherefor I have to create a nice workflow which integrates well with the software I use and the way I manage my photos. Right now it's just too much work and I create duplicate pictures and so on. And after puting the iframe for the map into an article of this serendipity blog I can't edit this article anymore. Just goes crazy and doesn't save any changes anymore. Probably within the neyt week I will be able to show some maps with my entries. Then I will explain how I produced them and all the details. Not too exciting actually. btw: this entry might not work anymore after I cleaned up my webserver and have a proper workflow for my maps. View Larger Map Dienstag, 30. Oktober 2007Gallery2Since I had problems with the built-in gallery of serendipity, like the thumbnails were square and thus stretched or the UTF8 encoded comments were not shown properly, I switched to gallery2. This gallery works fine and is even integrateable into serendipity. Plus it has a remote plugin which allows other programs to upload pictures directly. Like for example f-spot which I use to organize my photos. Pretty nifty just to click something like "upload" and a moment later all the pictures you had marked are uploaded in your photo gallery. OTOH I had to break the sophisticated security features of gallery2 in order to present the pictures in the right way as needed by the google maps overlays I generate for my travel routes with integrated pictures. "Gallery2" vollständig lesen Sonntag, 12. August 2007
Unicode in usergallery Geschrieben von Jan Girlich
in technique um
17:40
Kommentare (0) Trackbacks (0) Unicode in usergalleryUnfortunately the usergallery plugin for serendipity which I use doesn't handle Unicode User Comments of EXIF headers properly. So the comments are pretty much unreadable (have a look on any picture in the gallery) but I filed a bug report. Hopefully there will be some solution. If so you'll be informed about that here and advised to go through the pictures again to read all the nice comments
|
Twitter TimelineKalender
BildergallerieSucheKategorienBlog abonnierenVerwaltung des BlogsStatische SeitenKarte |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||