This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| virtualisation:bluetooth [2018/01/12 13:47] – buettner | virtualisation:bluetooth [2025/04/29 07:25] (current) – [Testing] dodenhoeft | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== LXC Bluetooth Image ====== | ====== LXC Bluetooth Image ====== | ||
| - | This Article | + | This article |
| + | <WRAP center round important 100%> | ||
| + | The configuration has been accomplished and verifed with the following software versions: | ||
| + | |Software version|4.2.0.105| | ||
| + | |Debian version|jessie (8)| | ||
| + | |Kernel version|4.19| | ||
| + | We will not take any responsiblity or support whether this configuration will work with different versions. | ||
| + | </ | ||
| + | |||
| ===== Requirements ===== | ===== Requirements ===== | ||
| - | Beside of a NB800 Router, you will need the correct LXC Container file to run Bluetooth on your router. This file can be downloaded [[ftp://public: | + | Beside of a NB800 Router, you will need the correct LXC Container file to run Bluetooth on your router. This file can be downloaded [[https:// |
| - | Beside that, you will need a virtualization licence. [[http:// | + | Beside that, you will need a virtualization licence |
| ===== Configuration ===== | ===== Configuration ===== | ||
| * If you are using Windows to set up your router, use f.e. WinSCP to connect to your routers file system. | * If you are using Windows to set up your router, use f.e. WinSCP to connect to your routers file system. | ||
| Line 25: | Line 34: | ||
| < | < | ||
| - | tar -xzvf debian-jessie-bluetooth.tar.gz -C / | + | tar -xJvf debian-jessie-bluetooth.tar.gz -C / |
| </ | </ | ||
| * Extract the tar file to the guest0 folder. | * Extract the tar file to the guest0 folder. | ||
| + | |||
| + | * To add a new virtualization profile in the router GUI, go to System - Virtualization | ||
| + | |||
| {{ : | {{ : | ||
| - | * Under System - Virtualization, | + | * Enable |
| Line 38: | Line 50: | ||
| - | * Set up this LXC config for your needs, | + | * Set up this LXC config for your needs, make sure that you enable the BLUEZ1 module in the Devices menu. |
| {{ : | {{ : | ||
| - | | + | ===== Container ===== |
| - | + | | |
| - | * Go back to your LXC folder and enter | + | |
| < | < | ||
| - | chmod 755 -R guest0 | + | lxc-info -n guest0 |
| </ | </ | ||
| + | < | ||
| + | ~ $ lxc-info -n guest0 | ||
| + | Name: | ||
| + | State: | ||
| + | PID: 3072 | ||
| + | IP: | ||
| + | CPU use: 48.65 seconds | ||
| + | Memory use: 8.51 MiB | ||
| + | Link: virt0 | ||
| + | TX bytes: | ||
| + | RX bytes: | ||
| + | Total bytes: | ||
| + | ~ $ | ||
| + | </ | ||
| - | to give the guest0-container | + | * If the container |
| - | + | ||
| - | ===== Container ===== | + | |
| - | * Enter | + | |
| < | < | ||
| / | / | ||
| </ | </ | ||
| - | to start the LXC container | + | to start it manually. |
| + | |||
| + | * To enter the LXC container | ||
| < | < | ||
| lxc-attach -n guest0 | lxc-attach -n guest0 | ||
| </ | </ | ||
| - | to enter the container. | + | |
| < | < | ||
| ~ $ lxc-attach -n guest0 | ~ $ lxc-attach -n guest0 | ||
| Line 70: | Line 93: | ||
| - | | + | |
| + | ===== Testing ===== | ||
| + | | ||
| < | < | ||
| cd | cd | ||
| </ | </ | ||
| - | to change to the containers root folder and enter | + | to change to the containers root folder and |
| < | < | ||
| - | /.start-bluetooth.sh | + | ./start-bluetooth.sh |
| </ | </ | ||
| Line 90: | Line 115: | ||
| to start the bluetooth starting script. | to start the bluetooth starting script. | ||
| If everything works correctly, you will get a confirmation like in the picture. | If everything works correctly, you will get a confirmation like in the picture. | ||
| - | ===== Testing ===== | ||
| * When everything is set up correctly, for example, you can use commands like | * When everything is set up correctly, for example, you can use commands like | ||
| < | < | ||
| hcitool scan | hcitool scan | ||
| </ | </ | ||
| - | to scan your surrounding for active bluetooth devices. | ||
| < | < | ||
| root@jessie: | root@jessie: | ||
| Scanning ... | Scanning ... | ||
| - | 6C:4D:73:D3:41:CC | + | 6C:4D:73:E3:31:AA |
| + | |||
| </ | </ | ||
| + | |||
| + | to scan your surrounding for active bluetooth devices. | ||
| + | |||
| + | |||
| + | ---- | ||
| + | === Other HowTos === | ||
| + | |||
| + | [[configuration: | ||
| + | |||
| + | |||