• 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
  netPI opc ua server pull image error wswitula 3 3,114 August-27th-2021, 10:47 AM
Last Post: wswitula
  OPC UA server with NetPi RTE DSongra 9 4,213 July-27th-2021, 12:01 PM
Last Post: Armin@netPI
  REST API server data communication MGharat 2 2,442 July-21st-2021, 07:01 AM
Last Post: MGharat
  [SOLVED]DHCP server not working m-yoshikawa 24 13,627 June-11th-2021, 07:04 AM
Last Post: tad
  how to pick up PROFINET data and store them to OPC UA server on Node-RED/netPI. tad 7 5,584 March-16th-2020, 10:21 AM
Last Post: Armin@netPI
  PM - develope OPC UA Server using the Codesys Lingyue 5 4,014 January-17th-2020, 11:12 AM
Last Post: Armin@netPI
  [SOLVED] netPI with Raspbian Desktop firefly 8 5,661 November-28th-2019, 06:01 PM
Last Post: Armin@netPI
  [SOLVED] Help with fieldbus node Farani 5 3,876 August-20th-2019, 07:22 AM
Last Post: Armin@netPI
  [SOLVED] How to update firmware philippbruhin.ch 12 9,102 July-16th-2019, 11:20 AM
Last Post: patrick
  [SOLVED] Docker issues AlexRegev 7 5,109 June-26th-2019, 02:14 PM
Last Post: AlexRegev

Forum Jump:


Users browsing this thread: 2 Guest(s)