Batland



Home
GeneralNewsPerlProFTP
Archives
Batland's Photos
Login
Jul
05
Padre on Mac OS X Leopard

Hi,

Padre is becoming an open source IDE for perl which is under heavy development. It is written in Perl with wxwidgets for the GUI. Therefore, it is (almost) platform independent and, as far as I know, the only free perl IDE still being actively developed (no, I neither count vi nor emacs as an IDE, even though you can use it as such). So I tried to installed Padre on my macbook pro. The Padre download pages have detailed instructions on that topic, but for me they never worked. So I’ll document my way, maybe someone else doesn’t need to spend one complete evening to install an IDE.

First of all we need to upgrade wxwidgets because leopard uses version 2.8.4. and Padre requires at least version 2.8.8. Therefore, download a source tarball from here. After extracting the file, run the following commands after changing into the newly created directory

mkdir osx-build
cd osx-build
../configure --prefix=/usr/ --enable-mediactrl --enable-listctrl --with-opengl
make
make install

Now you’ve got an up-to-date version of wxwidgets. The next step is to install some requirements of Wx and Padre. I had to install the following modules before installing Wx because Wx depends on them, but cpan doesn’t resolve the dependency for some unknown reason. So you install the following three modules first:

Some tests of File::HomeDir failed, therefore I forced the installation in the cpan shell via

force install File::HomeDir

I could not use the newest version of Wx supplied by cpan, because it failed to compile (some XS bugs) and cpan onyl provides the newest version of a module, you need to download an older version, I chose 0.95. Before, installed this version by hand, give cpan a try and even if it fails, all dependencies are installed. Then extract the tar file and change in the newly created directory to run:

perl MakeFile.pl
make
make install

Now I suggest to change you cpan settings so that cpan will stop an installation if an required module does not install.This makes life simpler to track down modules which need to be installed by force. In the last step you need to start cpan witht the wxperl executable which is done by:

wxPerl -MCPAN -eshell

And you can now install Padre. After an successful installation you can start padre via /usr/local/bin/padre. Enjoy it. And here some screenshots of padre 0.66.

Padre on OS X

Padre on OS X

Bye
Dennis

Posted by: admin | Add comment

Jul
02
ProFTPd Administrator 1.3

Hello,

during the last couple of weeks I spent some of my time to enhance proftpd Administrator. This is a web frontend to manage ftp accounts and the proftpd server. The project’s last release dates back to 2006, but the latest Version (1.2) has a lot of nice features. Therefore, I fixed some bugs and added a lot of new features to it and removed some others. If you find any bugs or need help, just contact me via info(q)batland(d)de where (q) stands for @ and (d) for a dot. So far, this is the only documentation. But, I’ll add some more during the next couple of weeks if needed.
This Version has been tested with FreeBSD 7.3, Ubuntu 10.04 and SLES 10.0, but it should work on any other *nix and Windows, too, as long as mysql, proftpd, php and apache can be installed.
You’ll find all the needed information in the following paragraphs. The changelog is incomplete. I’ve applied many minor changes so that I just wrote down the important changes.

New Features: Removed Features: Bug Fixes: Download

You can download the ProFTPd Administrator here.


Install Instructions:
Upgrading Instructions:

General Instructions:

Management of administrators via scripts:

createAdmin.pl A "createuser" unix like script. It takes no argument. All needed information will re requested interactively by the script.
enableAdmin.pl First argument is the name of the administrator which shall be activated because the account is deactivated after 10 failed login attempts.
deleteAdmin.pl Deletes a administrator. The scripts takes no argument. All needed information will re requested interactively by the script.
upDateAdminPwd.pl Changes the password of an administrator. The scripts takes no argument. All needed information will re requested interactively by the script.


Instructions for use import:

The cvs file needs to have the following format regarding the columns:

  1. Username
  2. Password
  3. Groupename
  4. Is deactivated (=1) or is active (=0)
  5. Expiration date. Set to 0 if the account does not expire. Otherwise use the following format: YYYY-MM-DD HH:MM:SS
  6. Real name of the user
  7. Address
  8. Notes

Note: The groups of the users need to exist otherwise the import will fail.


A few Screenshots:

overview

(After successful login)

createUser

(create user)

groups

(overview of all groups)

userreport

(report when the user is created)

QuotaOverviewUser

(the overview about the used quota for a standard ftp user)

Bye, Dennis

Posted by: admin | 3 Comments

Jun
10
New Project: Batland's Photos Hi,

one of the my hobby which is not PC related is photography. One year ago I made the switch from analog to digital photography, because even I had to admit that the new digital SLR cameras are affordable and have caught up with the analog cameras in the field of quality. So now more and more pictures are filling up my hard drive and I think I got some nice ones. Therefore, I started Batland's Photos to publish some.

The Batland's Photos blog is strictly devoted to my photography. The photos cover everything except human beings because I believe in privacy and anonymity of the web. Futhermore, I don't believe in photoshop. So all the photos you see are not edited, except for converting a photo from color to black & white.

Feel free to leave a comment ;)

Bye,
Dennis


Posted by: admin | 1 Comment

Jun
03
Blocked because of fully generic DNS (#5.7.1)

I’ve never really found an error which google has not at least a few entries covering the error message to some degree. But for a couple of month now I was not able to send a mail from batland.de to a specific mail server, because the mail was always rejected by the postmaster of this particular server, because of this:


Blocked because of fully generic DNS (#5.7.1)

Google came up with zero entries which quote this error message. And at first I had no clue what a fully generic DNS is. So I just decided to not sent mails to this server via batland.de! Yesterday, for some unknown reason I definitely wanted to fix this issue. I thought back to my college time when I had a lecture on SPAM and how to fight spam.


On simple way to fight phishing mails and spam in general is to only accept mails from a mail server, if this mail server is authorized to sent mails for this domain. So a trivial approach is to check, if a mail sent from mail server yx.com belongs to this domain. Therefore, the recipient mail server just checks this by doing a reverse DNS query on the IP. This is a in a nutshell description of the Sender Policy Framework (SPF) with some simplifications. So I checked on the reverse DNS name of my IP and, guess what, it does not resolve to batland.de, but a different domain because several domains run on this IP. So I changed the reverse dns entry to batland.de and after a while (because of the caching) it just worked.

So anyone else stumbling over this error has some information on where to look for a solution to this problem. In the next days I need to take a closer look at the dns entries regarding SPF so that all domains on this IP can sent mails to a mail server which uses SPF.

Bye,
Dennis

Posted by: admin | 1 Comment

May
30
Patch for proftpd: New Option for CreateHome to specify a UID Hi,

I just added a patch for proftpd to extend the functionality of the CreateHome directive. My problem was that the home directory should not be created with the owner being the ftp user, because this can lead to several problems in some deployment scenarios. Basically it boils down to this: Several
users share the same home directory and they shall be able to read each
others files, but a user shall only be able able to delete it's own
files. Currently the owner of the directory can delete all files, even though the sticky bit is set, because the
user who first logs on will own the directory and, therefore, be able to
delete all files, regarding of the files' permissions.
Therefore, I needed a way to automatically create the home directory while being able to specify the owner.

So I added a new option to the CreateHome directive. The option is called homeuid and can be used as follows:
CreateHome on homeuid UID
So when the home directory is created the owner of the directory is set to UID. This option can be used with all the other officially supported options. For example,  assume the directory /ftp already exists and the home directory of the new user is set to /ftp/foobar/new, the following directive:
CreateHome on mode 755 uid 150 gid ~ homeuid 10000
will result in creating the following directories:
  • /ftp/foobar being owned by UID 150 and GID being the new user's group.
  • /ftp/foobar/new is owned by UID 10000 and GID of the new user's group.

The patch for mod_auth.c and mkhome.c can be found here. I'll submit this to the official proftpd project during the next couple of days. I'll inform you if the patch is accepted or not.

Bye,
Dennis 


Posted by: admin | 1 Comment

May
20
online for good

Today, I moved this homepage to become the new main page of batland.de. The delay is caused by a bug in Microsoft's Live Writer. I hate online editors, therefore, I searched for a good and free publishing software and this was Live Writer for me. But after publishing the first article for batland v3 it stopped working. So I started to debug it and then, suddenly, the weekend was over. Therefore, the change is late. I hope I'll have time to write a line during the weekend. I've got a nice patch for proftpd which I would like to publish here.


Bye Mips

Posted by: admin | 1 Comment

May
13
Back online with batland.de v3

Two versions of batland have been online since 2005. I used to only ranodmly publize small IT related articles. The main problem with taht is that the articles become deprected, because of changes in the software, and I seldomly have enough time to write a longer article. Therefore, I haven?t published anything in over a year. I dont really believe in not using batland to publsih anything.

So I had this idea during the last couple of days to move from an article centric page to a more blog like type of homepage. batland.de will not become just a blog. I try to combine a blog with a static homepage so that I can just post some smaller stuff that can become irrelevant in a few month and articles which will be accessable for a long time.

I have not yet compelete the new cms to fit my needs. But the current setup is good enough to go online with it. So back I am.

I don?t know if I will port any of the old stuff to batland v3, but the old version is still accessable here.

So see you soon.

Mips

Posted by: admin |

Impressum | RSS | Powered by NucleusCMS | Ported by VinhBoy | Designed by DemusDesign