ArchivePage 4 of 45

Eclipse - Export RCP Products for multiple platforms

When deploying you can export the product for any supported platform if you have installed the RCP delta pack. To download the delta pack go to the eclipse download page and select your desired eclipse release. Then scroll down to the section “Delta Pack” and download it, unzip the package somewhere. Open eclipse, go to “Window -> Preferences -> Plug-in Development” and select “Add …” on the “Plug-ins” Tab. Select the directory where you have unzipped the archive. Now you can close the dialog by clicking Ok and open your .product file where you should “Add Required Plug-ins” on the “Configuration” tab.

Bugs

Sometimes bugs are not faults but just plain nonsense. Take this as an example:

boolean status = false;
for(...) {
  if(...) status = true;
}
status = false;
return status;

Nice, isn’t it?

Arora - a lightweight, cross-plattform WebKit Browser

In case you haven’t heard of it: There is a new browser based on QtWebKit. It is fast, small (less than 10k LOC) und cross-plattform due to QT4.4. You can grab it from the project page on google code. I did compile a package for Debian lenny/AMD64, just in case you don’t want to compile it yourself. Ok, my fault, I did underestimate Debian. Arora is already in the archives. I didn’t even do an “apt-cache search arora” before compiling it … ouch.

Goodbye Google

Along with an update of my theme I have removed Google AdSense, Google Analytics and Feedburner from this page due to privacy concerns. I still use these products on other sites, but I don’t think it does make sense to use them here.

Terminal-Multiplexer Screen

Screen kann sehr praktisch sein, insbesondere wenn man öfter kritische Arbeiten über instabile SSH Verbindungen abwickelt.

Infos bei der Uni Erlangen und dem LinuxWiki.

IPTables - Block selected IPs

Sometimes people seem to think that bruteforcing a random server would a good idea. I don’t agree with them. They just fill up my auth.log and cause several alarm bells to ring. If you use fail2ban, fine, it will handle this for you. If you don’t use it, you could still ban them manually.

If you just want to ban a single source IP - beware of faked sources adresses - until the next reboot of your machine, use this:

iptables -I INPUT -s <sourceip> -j DROP

This reads as follows: Inside the input chain look for the source adress <sourceip> and the jump to chain “DROP”.

If you want to remove this entry you’ll just need to replace the -I in front of INPUT by -D.

OpenPGP/GnuPG Key Backup

Thought about Backup recently? What about Key-Backup?

If you happen to use OpenPGP to encrypt your files, you’ll probably want to do a key backup so you can decrypt them later if your OpenPGP installation should get lost. You’ll only need a few simple commands.

gpg -ao mypublic.key --export <keyid>
gpg -ao myprivate.key --export-secret-key <keyid>

This will export (-o) the public (–export) and private keys (–export-secret-key) of the keypair with the id <keyid> to two seperate files in ASCII (Base64) encoding (-a). How you find out the keyid? Use the parameter –list-keys.

OpenVPN: Static IP Assignments

OpenVPN is a great VPN solution: Easy to use, flexible and stable. But it lacks documentation. When trying to assign static ip adresses to my VPN clients I felt a bit lost. The solution is to create a directory inside the OpenVPN configuration directory and put the client-dependent configuration snippets there. Lets assume this directory is called “ccd” for “Client Configuration Directory”. Then you need to add the line “client-config-dir ccd” to your server.conf.

Inside the ccd you create one file for each client you want to configure and call the file exactly as the common name from the clients certificate. In this files you can use ordinary OpenVPN configuration statements. For assigning fixed IPs you would use “ipconfig-push 10.8.0.X 10.8.0.0″ if you use the suggested subnet of “10.8.0.0″.

Planetquake Forum gefährlich?

Eclipse 3.4 Issues

After migrating to the latest Eclipse Release 3.4 aka Ganymede, I had to reinstall the essential plugins. Neither PDT nor Subclipse did work OOTB. For PDT you can follow the instructions from the PDT Wiki and for Subclipse have a look at the mailing list archives.