Saturday, 16. December 2017 13:01
Search

Hardware

Virtualisation

Tools and scripts

Compiled things

Games and fun

freiesMagazin

Counter
Sponsored by

Make JDownloader 1 compilable again

2015-09-25 09:18
Twitter article

Fetch the source code via SVN with svn co -r 09581 svn://svn.jdownloader.org/jdownloader

Download the patch file to the JDownloader source directory.

Apply the patch with patch -p1 < JDownloader-09581-compile.patch

Now you can make your changes and compile the source with ant


Nagios for Debian Lenny 6

2011-05-31 14:00
Twitter article

  1. Install the basic Nagios 3 packages: apt-get install nagios3 nagios-plugins

  2. Create a new user for the Nagios webinterface: htpasswd -c /etc/nagios3/htpasswd.users nagiosadmin

  3. Edit /etc/nagios3/nagios.cfg and set "check_external_commands=1".

  4. Then become the user nagios: su -s /bin/bash nagios

  5. If you want to monitor things that are only working (in the following example a webserver on port 9000 that answers only localhost) internally, than you need SSH. Now generate a new set of SSH keys (public and private): cd ~; ssh-keygen -t dsa -N "" The contents of the public key (.ssh/id_dsa.pub) can now be inserted in the file .ssh/authorized_keys in the home directory of the user that should allow password-less logins via ssh. E.g. /root/.ssh/authorized_keys for the user root.

  6. Now it's time for the first host to check. This is a very complete config file and you normally will not need all the config options. Recurrent definitions and delarations should be placed in /etc/nagios3/commands.cfg, /etc/nagios3/conf.d/hostgroups_nagios2.cfg, /etc/nagios3/conf.d/contacts_nagios2.cfg or /etc/nagios3/conf.d/services_nagios2.cfg. Create a new config file in /etc/nagios3/conf.d/ (e.g. name it example.cfg) and add the following contents and adjust at your needs:L

    #Define a new contact for sending mails to, if errors occurr.
    define contact{
        contact_name                  guru
        alias                         guru
        service_notification_period   24x7
        host_notification_period      24x7
        service_notification_options  w,u,c,r
        host_notification_options     d,r
        service_notification_commands notify-service-by-email
        host_notification_commands    notify-host-by-email
        email                         guru@example.org
    }
    
    
    #Define a host (the server to monitor)
    define host{
        use            generic-host    ; Name of host template to use
        host_name      example.org
        alias          example
        contact_groups guru, admins
    }
    
    
    #Check if the webserver answers
    define service {
        host_name             example.org
        service_description   HTTP
        check_command         check_http
        use                   generic-service
        notification_interval 1440
    }
    
    
    #Define a new SSH command to check the webserver, that answers only on localhost and at port 9000
    define command {
        command_name check_port9000
        command_line /usr/lib/nagios/plugins/check_by_ssh -H example.org -C "wget 127.0.0.1:9000 -O /dev/null -qq" -l root
    }
    
    
    #Check the special webserver at port 9000
    define service {
        host_name             example.org
        service_description   port9000
        check_command         check_port9000
        use                   generic-service
        notification_interval 1440
    }
    


WebM for Debian

2011-04-30 11:58
Twitter article

Download ffmpeg and libvpx to a new directory and extract both archives.

Then go to the libvpx directory and do a

./configure --prefix=/usr

If there are errors about missing libraries: Install the according libraries and run configure again. If all works well do

make

You can now build a Debian package, if all worked well. Do the following as root:

checkinstall -D

This will build the package and install it. You may want/need to adjust the parameters ckecinstall asks for. Leave root after all works well.

Now switch to the ffmpeg directory and do

./configure --prefix=/usr --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-gpl

If there are errors about missing libraries: Install the according libraries and run configure again. If all works well do

make

You can now build a Debian package, if all worked well. Do the following as root:

checkinstall -D

This will build the package and install it. You may want/need to adjust the parameters ckecinstall asks for. Leave root after all works well.

Now you should have a working ffmpeg with WebM enabled.

/usr/share/ffmpeg/

Trinity Desktop Environment howtos

2011-08-02 09:23
Twitter article

The "Trinity Desktop Environment" continues the development of KDE 3 as a fork. There are packages that can be installed on Debian (Lenny and Squeeze) and Ubuntu.

Trinity mirror

A Trinity mirror on SF is available. Add the following lines to your /etc/apt/sources.list:
deb http://downloads.sourceforge.net/project/dodger-tools/trinity/trinity squeeze main
deb http://downloads.sourceforge.net/project/dodger-tools/trinity/trinity-builddeps squeeze main
Then do
apt-get update
apt-get install kde-triniy
to install the Trinity desktop.

Running Trinity applications, if KDE 4 and Trinity are installed together

Scenario: You have installed KDE 4 (on Squeeze) and the Trinity packages and run the Trinity desktop. When you have installed applications with the same name (e.g. kate) and want to run them from the konsole, it may happen that the KDE 4 version and not the Trinity pedant is called. To ensure that the Trinity application is run (if it is existing) put the following in your ~/.bashrc, after then (maybe existing) PATH declaration:
	trinityCount=`ps -A | grep kicker$ -c`
	
	if [ $trinityCount -gt 0 ]
	then
	        PATH="/opt/trinity/bin/:${PATH}"
	fi
	
	export PATH

Changing charset for kio_ftp

If you want to access an FTP server that uses a different encoding that UTF-8 for directories and file names, the names will be converted wrongly during the file transfer. To fix this behaviour, you can adjust the file ~/.trinity/share/config/kio_ftprc to change the encoding. Just add the following line (maybe you have to create the file), if you want to change the encoding for the FTP server with the IP 192.168.23.23 to iso 8859-1:
	[192.168.23.23]
	Charset=iso 8859-1

Compiling dvbcut for Debian Squeeze

2011-03-10 11:28
Twitter article

Here are some simple insctructions to fetch, compile and install dvbcut (and build a Debian package) on Debian Squeeze.

	svn co https://dvbcut.svn.sourceforge.net/svnroot/dvbcut dvbcut
	cd dvbcut/trunk
	autoconf
	./configure --prefix=/usr --with-qt3-include=/usr/include/qt3/
	make
	checkinstall -D
If all works well, you will get a Debian package that can be installed on Debian Squeeze. The package I build this way can be downloaded here.

Howtos

2010-07-05 15:40
Twitter article

The howto section contains recipes and step-by-step instructions for doing basic and advanced tasks.


Trinity Desktop Environment howtos

2011-02-20 13:52
Twitter article

The "Trinity Desktop Environment" continues the development of KDE 3 as a fork. There are packages that can be installed on Debian (Lenny and Squeeze) and Ubuntu.

Running Trinity applications, if KDE 4 and Trinity are installed together

Scenario: You have installed KDE 4 (on Squeeze) and the Trinity packages and run the Trinity desktop. When you have installed applications with the same name (e.g. kate) and want to run them from the konsole, it may happen that the KDE 4 version and not the Trinity pedant is called. To ensure that the Trinity application is run (if it is existing) put the following in your ~/.bashrc, after then (maybe existing) PATH declaration:
	trinityCount=`ps -A | grep kicker$ -c`
	
	if [ $trinityCount -gt 0 ]
	then
	        PATH="/opt/trinity/bin/:${PATH}"
	fi
	
	export PATH

Changing charset for kio_ftp

If you want to access an FTP server that uses a different encoding that UTF-8 for directories and file names, the names will be converted wrongly during the file transfer. To fix this behaviour, you can adjust the file ~/.trinity/share/config/kio_ftprc to change the encoding. Just add the following line (maybe you have to create the file), if you want to change the encoding for the FTP server with the IP 192.168.23.23 to iso 8859-1:
	[192.168.23.23]
	Charset=iso 8859-1

Change and build Debian packages

2010-07-06 09:47
Twitter article

Sometimes it is needed to create new Debian packages from changed/patched source codes. This howto will show the basic tasks to change the source code and make a new Debian package from the modified sources. This howto will use the grub package from Debian Lenny and the ext4 patch from trac.cross-lfs.org as example. Of course you can create other package with your new knowledge lerned by this howto ;-)

  1. Create a new directory and jump to it. This directory will contain all parts of the new package.
  2. Grab the source code: You will most likely start from an existing Debian source package. To fetch it, get its code via:

    apt-get source grub

    This will create the directory "grub-0.97" and some other files.
    Hint: If you have the source file(s) (*.tar.gz/bz2) and the dsc file, you can extract them via:

    dpkg-source -x packageNameIWantToExtract.dsc

  3. To get the packages installed, that are needed to build grub, do a:

    apt-get build-dep grub

  4. Go to the directory "grub-0.97"
  5. Now it's time to download the patch to get included into our package. All patches are stored in the subdirectory "debian/patches". So we will place the ext4 patch in this directory. This can be done via

    wget http://trac.cross-lfs.org/export/6dbe0567756704704b192bc36040fe6b2f605d42/patches/grub-0.97-ext4-1.patch -O debian/patches/ext4.patch
  6. To inform the Debian package build tools about the added patch, we need to add its name in the file debian/patches/00list. To do so, you can use the nano editor:

    nano debian/patches/00list

    Add a new line and write "ext4.patch". Then save the file by pressing Ctrl+X.
  7. Now it's time to give our package a new version name. The version number of the original package is "0.97" and we want to add ext4 support. So we

    debchange -v"0.97-ext4"

    An editor will be openend and now it's time to give some information about the changes we did to our package. Add your comments after the occurring "* ". Here we just write "Added ext4 support".
    If you want to add another entry to the changelog, you can do this by:

    debchange -a

    Hint: debchange will mark your changes with an email address created by your username and the name of your computer. E.g. if your user name is foo and your comuter is named, debchange will assume foo@bar as your eMail. If you want to use a different eMail address, you can set the environment variable "DEBEMAIL". E.g. with:

    export DEBEMAIL="test@example.com"

  8. Hints for other packages: The grub package is quite simple because it doesn't contain any libraries. If we have a more complicated package, it might be needed to adjust settings in the file "debian/rules". E.g. the parted package needed to have the LIBPKGVER variabe get incremented. parted's rules says: When incrementing this because of a new library SONAME, add an 'a' to the end if there isn't already one, otherwise increment the letter that is already there. When incrementing this, also set DEPVER to the current package version. But you may need to change other things in rules.
    If your packages contains libraries it is most likely that it replaces the libraries of the original package. APT may run into an error, if you don't tell it, that that your package contains never versions of the libraries. To do so, edit the file debian/control. There you should write the old library name(s) (maybe together with a condition like ( (<< 1.4.24-2) ) ) in the lines starting with "Conflicts" and "Replaces".
  9. Now it's time to compile and build our changed package after doing our changes. The building is done by a simple:

    debuild


<< Previous articles

My other projects

m23 software distribution

m23 is a software distribution and management system for Debian, Ubuntu and Kubuntu. With m23 you can install and administrate hundreds of clients in an easy way!

Visit the m23 project at SourceForge: m23.sf.net.

Grass Roots Democracy Machine (GRDM)

The GRDM, the Grass Roots Democracy Machine is a software development project designed to create a voting system. The aim is to implement the basic goals of anonymous and comprehensible votings into software.

Visit the GRDM project at SourceForge: grassrootsdemoc.sf.net.

khtml2png

khtml2png is a command line program to create screenshots of webpages.

Visit the khtml2png project at SourceForge: khtml2png.sf.net.

based on devalcms
devalcms