This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
virtualisation:file-server [2018/02/28 07:58] – buettner | virtualisation:file-server [2022/02/16 10:50] (current) – schmitt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== How to set up a NB2800 | + | ====== 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, |
- | If you need instructions on how to set up a LXC Container on NB2800 Routers, you can refer to this page: [[http:// | ||
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 9: | Line 8: | ||
==== 1) Preparations ==== | ==== 1) Preparations ==== | ||
- | The first step you should take is to give your router a static IP adress. For this, use | ||
- | < | ||
- | nano / | ||
- | </ | ||
- | and set up a static IP configuration for your primary interface. In this example, the configuration for the eth0 interface looks like this: | ||
- | < | ||
- | auto eth0 | ||
- | iface eth0 inet static | ||
- | address 192.168.1.50 | ||
- | netmask 255.255.255.0 | ||
- | network 192.168.1.0 | ||
- | broadcast 192.168.1.255 | ||
- | gateway 192.168.1.105 | ||
- | dns-nameservers 192.168.1.105 | ||
- | </ | ||
- | After that, use | + | The first step you should take is to use |
< | < | ||
apt-get update | apt-get update | ||
Line 40: | Line 24: | ||
Now enter the IP address and the domain name you want it linked to and click " | Now enter the IP address and the domain name you want it linked to and click " | ||
- | {{ : | + | {{ : |
After this, your configuration should look like this: | After this, your configuration should look like this: | ||
- | {{ : | + | {{ : |
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 122: | Line 106: | ||
local_root=/ | local_root=/ | ||
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 153: | Line 137: | ||
[[https:// | [[https:// | ||
- | First, you have to download the Software from this [[https:// | + | First, you have to download the Software from this [[https:// |
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 163: | Line 147: | ||
After this, upload your downloaded and renamed folder to your web servers default location (e.g. / | After this, upload your downloaded and renamed folder to your web servers default location (e.g. / | ||
- | You also have to change the rigths | + | You also have to change the rights |
< | < | ||
chmod 777 temp | chmod 777 temp | ||
Line 344: | Line 328: | ||
This file contains the hash values of the password the user uses to login to the router. So this file is necessary automatically run actions with root level access. | This file contains the hash values of the password the user uses to login to the router. So this file is necessary automatically run actions with root level access. | ||
- | In the next step you have to create the " | + | In the next step you have to create the " |
{{ : | {{ : | ||
Line 356: | Line 340: | ||
</ | </ | ||
- | In the second example, all files in the container will be replaced by the files stored on the USB stick. | + | In the second example, all files in the container will be replaced by the files stored on the USB stick. |
< | < | ||
rsync -arv --delete / | rsync -arv --delete / | ||
Line 363: | Line 347: | ||
</ | </ | ||
- | Now format an USB stick to the FAT16 oder FAT32 file format. Copy the " | + | Now format an USB stick to the FAT16 oder FAT32 file format. Copy to it the " |
- | {{ :virtualisation:usb_3.png? | + | < |
+ | / | ||
+ | drw-r--r-- | ||
+ | drw-r--r-- | ||
+ | drw-r--r-- | ||
+ | drw-r--r-- | ||
+ | -rw-r--r-- | ||
+ | -rw-r--r-- | ||
+ | |||
+ | </ | ||
If you now plug in the stick into the router, the stick is mounted to the file system and all tasks from the " | If you now plug in the stick into the router, the stick is mounted to the file system and all tasks from the " | ||