This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| app-notes:samba-server [2026/02/11 14:54] – [Prerequisites] gray | app-notes:samba-server [2026/02/11 20:45] (current) – [2. Adjust the LXC config so that the USB port can be used in the container.] gray | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ===== Goal ===== | ===== Goal ===== | ||
| + | |||
| + | The wiki shows how to install a Samba server on an LXC container running under the Alpine OS. In addition, external storage is set up via the USB port for the container and made available for use by the Samba client. | ||
| + | |||
| + | |||
| ===== Prerequisites ===== | ===== Prerequisites ===== | ||
| Line 14: | Line 18: | ||
| </ | </ | ||
| ** | ** | ||
| + | |||
| + | ---- | ||
| + | ===== - Set up the LXC Contianer ===== | ||
| + | |||
| + | Activate the LXC container on the router | ||
| + | |||
| + | {{: | ||
| + | |||
| + | In the second step the image of the LXC container in this case a alpine 3.23. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | The easiest way to do this is to install the whole thing over the Internet. However, the router requires a mobile connection to the Internet. | ||
| + | |||
| + | From a Jenkins server you get the current image for the container | ||
| + | |||
| + | * Jenkins Server Page image-alpine '' | ||
| + | |||
| + | The "'' | ||
| + | |||
| + | Here you can get a alpine image for '' | ||
| + | |||
| + | {{: | ||
| + | |||
| + | The image is the "'' | ||
| + | |||
| + | It would be structured like this: | ||
| + | |||
| + | '' | ||
| + | |||
| + | When the " | ||
| + | |||
| + | Set up the LXC container further. A network interface is enabled here. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | |||
| + | The container has now also been assigned an IP address. | ||
| + | |||
| + | < | ||
| + | ~ $ lxc-info guest0 | ||
| + | Name: | ||
| + | State: | ||
| + | PID: 2255 | ||
| + | IP: | ||
| + | CPU use: 1.57 seconds | ||
| + | BlkIO use: 4.00 KiB | ||
| + | Memory use: 6.29 MiB | ||
| + | KMem use: 1.18 MiB | ||
| + | Link: virt0 | ||
| + | TX bytes: | ||
| + | RX bytes: | ||
| + | Total bytes: | ||
| + | ~ $ | ||
| + | </ | ||
| + | |||
| + | Always assign a fixed IP address for the LXC container via the DHCP server. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Log in to the LXC container and test whether it can access the Internet. | ||
| + | |||
| + | < | ||
| + | ~ $ lxc-attach guest0 | ||
| + | root@LXCNAME: | ||
| + | PING heise.de (193.99.144.80) 56(84) bytes of data. | ||
| + | 64 bytes from redirector.heise.de (193.99.144.80): | ||
| + | 64 bytes from redirector.heise.de (193.99.144.80): | ||
| + | 64 bytes from redirector.heise.de (193.99.144.80): | ||
| + | --- heise.de ping statistics --- | ||
| + | 3 packets transmitted, | ||
| + | rtt min/ | ||
| + | root@LXCNAME: | ||
| + | </ | ||
| + | |||
| + | The container is installed and set up. Now you can set up further tools on the container. | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== - Adjust the LXC config so that the USB port can be used in the container. ===== | ||
| + | |||
| + | |||
| + | Enable USB administration on the router | ||
| + | |||
| + | {{: | ||