Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
virtualisation:file-server [2018/03/15 15:27]
buettner
virtualisation:file-server [2022/02/16 10:50] (current)
schmitt
Line 1: Line 1:
-====== How to set up a NB2800 ​File Server ======+====== How to set up a File Server ======
  
-This Article describes how to install a file server on the NB2800 router+This Article describes how to install a file server on NetModule Routers. Most but not all routers support LXC-Containers,​ please check first.
  
-If you need instructions on how to set up a LXC Container on NB2800 Routers, you can refer to this page: [[http://​wiki.netmodule.com/​app-notes/​virtualisation]]. 
  
 This setup contains the installation and configuration of the vsftpd FTP server, the Net2FTP web frontend for vsftpd, and Samba shares. In addition, a way is shown to transfer files from an USB stick to your container: This setup contains the installation and configuration of the vsftpd FTP server, the Net2FTP web frontend for vsftpd, and Samba shares. In addition, a way is shown to transfer files from an USB stick to your container:
Line 25: Line 24:
  
 Now enter the IP address and the domain name you want it linked to and click "​Apply"​ Now enter the IP address and the domain name you want it linked to and click "​Apply"​
-{{ :​virtualisation:​local_domain_lxc2.png?​nolink&​600 |}}+{{ :​virtualisation:​dns0.png?​nolink&​600 |}}
  
  
 After this, your configuration should look like this: After this, your configuration should look like this:
  
-{{ :​virtualisation:​local_domain_lxc.png?​nolink&​600 |}}+{{ :​virtualisation:​dns.png?​nolink&​600 |}}
  
 Now you can access the file server with both its IP address a its local domain name. Now you can access the file server with both its IP address a its local domain name.
Line 107: Line 106:
 local_root=/​home/​Media local_root=/​home/​Media
 allow_writeable_chroot=YES allow_writeable_chroot=YES
-force_ssl_enable=YES+#force_ssl_enable=YES
 force_local_data_ssl=YES force_local_data_ssl=YES
 force_local_logins_ssl=YES force_local_logins_ssl=YES
Line 138: Line 137:
 [[https://​www.net2ftp.com/​|Net2FTP]] is a web interface for FTP servers. With this, you can up-and download files to your server just with your web browser and without the need of additional tools like FileZilla. [[https://​www.net2ftp.com/​|Net2FTP]] is a web interface for FTP servers. With this, you can up-and download files to your server just with your web browser and without the need of additional tools like FileZilla.
  
-First, you have to download the Software from this  [[https://​www.net2ftp.com/​homepage/​download.html|Site]] (net2ftp_v1.1.zip, 6MB). After unzipping the folder, you now have a folder named "​filed_to_upload"​. Rename this folder to a name you want to access your file server later (e.g. FTPserver).+First, you have to download the Software from this  [[https://​www.net2ftp.com/​index.php?​state=homepage&​state2=3|Site]] (net2ftp_v1.3.zip, 6MB). After unzipping the folder, you now have a folder named "​filed_to_upload"​. Rename this folder to a name you want to access your file server later (e.g. FTPserver).
  
 In the next step, you have to install a web server and PHP in your container: In the next step, you have to install a web server and PHP in your container:
Line 148: Line 147:
 After this, upload your downloaded and renamed folder to your web servers default location (e.g. /​var/​www/​html). Now you can access the FTP server over the name of this folder (For example, if your domain is mediacontainer.local and you renamed the folder to ftpserver, you can access it via http://​mediacontainer.local/​ftpserver). After this, upload your downloaded and renamed folder to your web servers default location (e.g. /​var/​www/​html). Now you can access the FTP server over the name of this folder (For example, if your domain is mediacontainer.local and you renamed the folder to ftpserver, you can access it via http://​mediacontainer.local/​ftpserver).
  
-You also have to change the rigths ​of the temp folder in your uploaded folder. Fot this, go to this folder and type+You also have to change the rights ​of the temp folder in your uploaded folder. Fot this, go to this folder and type
 <​code>​ <​code>​
 chmod 777 temp chmod 777 temp