This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
virtualisation:file-server-setup-guide [2018/03/16 08:08] – created buettner | virtualisation:file-server-setup-guide [2018/09/04 07:11] (current) – [How to set up a NB2800 File Server] juraschek | ||
---|---|---|---|
Line 3: | Line 3: | ||
This Article describes how to install a file server on the NB2800 router. | This Article describes how to install a file server on the NB2800 router. | ||
- | If you need instructions on how to set up a LXC Container on NB2800 Routers, you can refer to this page: [[http:// | + | If you need instructions on how to set up a LXC Container on NB2800 Routers, you can refer to this page: [[virtualisation:start|LXC Virtualization]]. |
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 10: | Line 10: | ||
==== 1) Preparations ==== | ==== 1) Preparations ==== | ||
- | The first step you should take is to use | + | In the first step, download the [LXC container image LINK] which provides all needed programs |
- | < | + | |
- | apt-get update | + | |
- | </ | + | |
- | and | + | |
- | < | + | |
- | apt-get upgrade | + | |
- | </ | + | |
- | to bring your system up to date. | + | |
If your network setup doesn' | If your network setup doesn' | ||
Line 32: | Line 24: | ||
{{ : | {{ : | ||
- | Now you can access the file server with both its IP address | + | Now you can access the file server with both its IP address |
+ | For logging in to vsftpd/ | ||
+ | You can change the given password by using | ||
+ | < | ||
+ | sudo passwd USERNAME | ||
+ | </ | ||
+ | On default, all transfered files are saved in the "/ | ||
==== 2) Net2FTP ==== | ==== 2) Net2FTP ==== | ||
Line 40: | Line 37: | ||
[[https:// | [[https:// | ||
- | First, you have to download | + | You can access |
- | 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:// | ||
+ | ==== 3) The VSFTPD FTP Server==== | ||
- | ==== 4) The samba file server ==== | + | Vsftpd is a very smooth working FTP server. You can access it by using a FTP client program like FileZilla, or you can access it via your web browser using Net2FTP as described above. |
+ | |||
+ | If you have changed the user for vsftpd, you have to tell the program about the new user. To do this open the / | ||
+ | < | ||
+ | ftpuser | ||
+ | NEW USER | ||
+ | </ | ||
+ | Of course, you can delete the ftpuser entry in this file if only your new user may have access to the server. | ||
+ | |||
+ | |||
+ | ==== 4) The Samba file server ==== | ||
With samba, you can easily share your folders and files from other computers with Windows, Linux or macOS installed. | With samba, you can easily share your folders and files from other computers with Windows, Linux or macOS installed. | ||
+ | |||
+ | In Samba, the login credentials described in the vsftpd chapter are used again to get access to Samba. If you want to add a new user to Samba, enter | ||
+ | < | ||
+ | smbpasswd -a < | ||
+ | </ | ||
+ | After this, you are asked to give a new password to this new user. Be aware that while entering this new password, no placeholder like * are shown. | ||
To add the shared folders to your Windows machine, go to "This PC (Arbeitsplatz)" | To add the shared folders to your Windows machine, go to "This PC (Arbeitsplatz)" | ||
Line 74: | Line 87: | ||
Next, go to " | Next, go to " | ||
+ | |||
{{ : | {{ : | ||
+ | |||
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 this example, files located in folders on the stick (Video-trans, | + | In this example |
+ | In the second example [LINK], all files in the container will be replaced by the files stored on the USB stick. You will get an one-to-one copy of your USB stick. | ||
- | In the second | + | The last example |
+ | Now format an USB stick to the FAT16 oder FAT32 file format. Copy to it the " | ||
- | Now format an USB stick to the FAT16 oder FAT32 file format. Copy to it the " | ||
< | < | ||
/ | / |