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:

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.

Swap-File on a Beaglebone Black

If you want to use a Beaglebone Black or Raspberry Pi as a small server, it makes sense to give him a little swap space.
But if you you are not able to use an own swap-partition, you can use a swap-file.

This can be done in a few steps

  1. Create a file in the desired size
    The easiest way is to use the universal tool dd. The command is:
    dd if=/dev/zero of=/Path-to-File/swapfile bs=1M count=size of the paging file

    So if you want to have a 128 (256, 512) megabyte swap file, the command would be:

Using Raspberry Pi or Beaglebone Black as Mail-Server

If you are working with more than one computer you might know this problem - your incoming and outgoing mails are spread over your several computers and often enough you have to search one specific mail on several machines.

To avoid that an IMAP-Mailbox with enough storage ist the best solution. But if you are not in the comfortable situation that someone has already done that for you, you might want to build one on your own.

I decided to use my Raspberry Pi to achieve that.

Pages