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.

Banana Pi - install and setup Postfix

In most cases, it is also advisable to install a Mail Transfer Agent (MTA) on your server to enable him to send mails itself.

Why is this useful?

  • The system sends a warning or critical states in an email to the user root.
  • software like Wordpress send emails when a problem has occurred
  • If you want to use the "forgot password" function in WordPress or Seafile, this is done via E-Mail

However, you should be very careful with the configuration so that the own server is not abused by spammers.

Banana Pi - Seafile with Https, NginX and MySQL

Again, the precondition is a LEMP installation as described in this article: Installation of Nginx, MySQL and PHP
Seafile has a its own little web server, but it can not handle the HTTPS protocol. So, to get an encrypted transmission to the cloud, you have to run Seafile behind a "real" web server - in this case, nginx.

The installation is done in 4 steps:

Banana Pi - Setup OwnCloud with Nginx and SSL

This requires a LEMP installation, as described here: Nginx, MySQL and PHP

This manual is written for an banana Pi, but it should also work for a Raspberry Pi or Beaglebone Black.
Step 1: Set up Nginx with SSL

These create the directory /etc/ssl/nginx, change to the directory and create a self-signed certificate.

Banana Pi - install Nginx, MySQL and PHP5

Whether you want to run OwnCloud, Baikal or WordPress on the Banana Pi - you will need a web server, MySQL and PHP. I have decided to use Nginx as web server, since it is very resource-friendly compared to Apache. And it is also known for its performance and stability.

This combination is known as LEMP: L inux + nginx(pronounced "engine x") + MySQL + PHP.

1. install Nginx

 apt-get install nginx 

Now start the server with

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: