• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Use netPi as a FTP server
#1
Hello community,

I would like to execute the following task on the netPi:

I've currently a sensor which I can configure to use an ftp server, so that it could post sensor data to the defined ftp server.
Now I would like to configure the netPi as a FTP server, but I don't know how to do this via the web UI.

Furthermore, I would like to run a container providing a web interface visualizing the data on the internal FTP server.
Is there anyone who could help me with the ftp server installation and data access?

Thank you for your help.
  Reply
#2
Well martech,

as you have recognized netPI is just a plattform where additional software can be added using Docker technology. By default netPI and its configuration web interface does not support any FTP server. You have to add it yourself.

This means that for your special demand ... as you describe it ... you have to develop your own software container, that contains an FTP server and ... an extra web server to visualize your data.

Since both software packages in combo you will not find preinstalled in any container available on the web I recommend you the following procedure how I would start:

I would load the Raspbian container to my netPI first from here. This is a good starter and gives you access to netPI via a remote terminal program like Putty over SSH. To make development much easier you should start the container in network mode Host, which exposes all containers Ethernet ports to the host. So postinstallations of FTP programs etc. will immediately take effect and can be reached from outside.

From there you can start your development as normal Linux developer.

Code:
sudo apt-get update

... will be propably the first command you use.

As next I would follow this post to install an FTP server into the container https://www.raspberrypi.org/documentatio...ess/ftp.md


Code:
sudo apt-get install pure-ftpd
...

Please note down all your commands you entered during the whole installation ... this makes it easier for you to create a container build script for an automated build later. Then you can let create a container instead of a manual procedure like described automatically with a defined scope of software.

As next you have to install a web server. I use nginx normally as wb server. Also for nginx a raspberry web site helps here how to install it.


Code:
sudo apt-get install nginx
...


Please take into account that netPI occupies the HTTP/HTTPS ports 80 and 443. So before starting nginx you have to configure its ports right within its configuration file

/etc/nginx/sites-enabled/default

After that it is up to you to create your own HTML sites which relates to data from the FTP server.

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [SOLVED] netPI stops working (502 - Bad Gateway) Andi 3 35 June-19th-2019, 03:58 PM
Last Post: Andi
  [SOLVED] netPI with Raspbian Desktop firefly 7 49 May-17th-2019, 09:15 AM
Last Post: Armin@netPI
  [SOLVED] WebConfig netpi-nodered-fieldbus JohnyD94 13 64 May-6th-2019, 12:20 AM
Last Post: JohnyD94
  New Container example "OPC UA server" Armin@netPI 0 16 April-12th-2019, 11:51 AM
Last Post: Armin@netPI
  [INFO]Docker DNS server Armin@netPI 0 19 March-7th-2019, 09:02 AM
Last Post: Armin@netPI
  [SOLVED] node-red Dashboard Docker Image for netPI? anrodriguez 1 23 February-7th-2019, 05:35 PM
Last Post: Armin@netPI
  [SOLVED] Azure IotEdge on netPI rene.divossen 7 68 January-29th-2019, 10:37 AM
Last Post: rene.divossen
  [SOLVED] Building Custom Images for Netpi Rahulsagar 2 104 December-17th-2018, 10:01 PM
Last Post: Rahulsagar
  [SOLVED] Using netPI's HDMI port Rahulsagar 2 76 December-14th-2018, 02:29 PM
Last Post: Rahulsagar
  [SOLVED] NetPI storage FULL flaminid 3 121 October-29th-2018, 08:05 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)