Protect your Server with Fail2Ban

Even if it's just a tiny computer - as soon as he hangs on the Internet, it is at risk and may be subject to attacks.

To avoid that you would have look through every log file, out from which IP the attack ran out and then lock this IP by hand using iptables as beschriben in this post Reduce Spam in Wordpress by blocking IP-Addresses with iptables

Category: 

Banana Pi - Setup FTP-Server

This time it is completely simple: All you need to do is nothing!

The package OpenSSH, which is installed by default in almost all Linux distributions and that is responsible for the fact, that you can log in to your banana via SSH, contains already a SFTP server. SFTP = Secure File Transfer Protocol, that means an encrypted FTP protocol.

That means, users who are set up on the Banana Pi can immediately connect the banana with a FTP client such as FileZilla. You just have to take care, that you specify "SFTP" as protokoll.

Seafile-Server-Upgrade on a Beaglebone / Raspberry

Seafile is an open-source cloud solution and on a BeagleBone or Raspberry a really good alternative to OwnCloud (see the article OwnCloud alternative with Seafile and Baikal ).
Seafile is now running on my BeagleBone Black for a few months and I must say that it is working very reliable since now. Meanwhile, around 600 GB of data are in the cloud and I have found no problems yet.

Reduce Spam in Wordpress by blocking IP-Addresses with iptables

For anyone running a blog or a website with a comment section, spam in the comments is a vexed issue. Though there are tools for WordPress that already sort out the spam pretty well and pack it into a spam folder, these entries needs to be checked anyway, because you dont't want to accidentally delete a real comment, that landed in the spam folder for some reason.
This takes time and just annoying!

Luckily, there are some mmore options for you - at least, if you have a root access to your Linux server.

Simple Map-Server with MapServer, Shape-Files and OpenLayers

Card services such as Open Street Map or Google Map are really a fine and useful thing. You can easy enter some coordinates and display them, display a route and so on.

But what to do when there is no net available, such as on the high seas or somewhere in the middle of the wilderness? Either you spend a lot of money and get a satellite connection, or you build your own little map server with only a few handles.

Baikal with Nginx and https

If you want to have your calendar- and contact-data synchronized and don't want to give it away to third parties, it is possible with very simple means to synchronize it at home on your own server. The flagship in this direction is OwnCloud, which also provides CalDAV and CardDAV for synchronization. However, I had always had problems with the synchronization, and so I wanted to give Baikal a try.
Baikal is a PHP written, small and robust server to synchronize calendar and contact data using CalDAV and CardDAV.

Owncloud-Alternative with Seafile und Baikal

Now that I finally had my little server, I wanted to sync all my stuff from a variety of electronic devices: ie the working files on different computers, and also the calendar data and addresses should finally be in sync on all devices.

After a quick search I am first came to OwnCloud. A truly worry-free solution and also really easy to install.
OwnCloud offers:

Localisation of Debian

After Debian is installed on the BeagleBone, the localization must be adjusted so that the correct fonts are available.
By default, the location is set to "en_US", but this font can not display German characters and some special characters.
So the correct fonts must be installed.

So in Debian type the command

dpkg-reconfigure locales

A menu will appear where you can easily select to install fonts.

spdns Dynamic DNS Update-Client

Dyn stops its free service.

I've chosen Spdns as an alternative. A service of Secure Point GmbH .
One may invest up to 5 hosts there and can choose between several top-levels-domains.
Registration is simple and straightforward and requires only a username/password and an email-address for submission.
You can reach the service at spdns.de .

The only problem was that my router has no way to deal with this service.

Beaglebone Black set the right timezone

After installing Debian / Ubuntu on a BeagleBone the correct time zone needs to be set. This can be done easily with the command

dpkg-reconfigure tzdata

Maybe the appropriate package needs to be installed with

apt- get install tzdata

Now you can easily select the right time zone based on its location.

Pages