2/24/2023 0 Comments Monit startNote: To be able to use ports below 1024, for example the standard port for webbrowsing, 80, you need to run domoticz as the root user. If you want to use another web interface port change the '8080' in: DAEMON_ARGS="-daemon www 8080" to your own port.If you installed it in an alternate location for example /usr/local/domoticz/ you should change DAEMON to /usr/local/domoticz/$NAME If you installed Domoticz in the USERNAME home directory /home/yourusername/domoticz you don't need to change the DAEMON variable.It's recommended to run domoticz as its own user and not as root, due to security reasons. Change the USERNAME variable to the user you want domoticz to be run as. The lines you usually need to change are USERNAME, DAEMON and DAEMON_ARGS To let Domoticz start automatically when the system boots (which is probably the case, as most people run it on a headless server), run the commands below, (You want to end up in /home/YOURUSERNAME/domoticz/) Note: The "pre-built" install method already creates a service that starts Domoticz after reboot or restart of your system. On modern systems the systemd method is generally preferred. There are basically two ways to do this - via init.d (which starts things serially) or via systemd (which starts things up in parallel and therefore leads to faster booting). Use the static link in Domoticz.įor more information on udev rules have a look here: Starting Domoticz automatically when the system boots This is a static name that is useful when you have multiple usb-serial devices that go into your box. The added SYMLINK+= creates an additional link to the device node. Lrwxrwxrwx 1 root root 7 Nov 10 15:27 /dev/ttyUSB21 -> ttyUSB1 Unplug and replug the device and execute:Ĭrw-rw- 1 domoticz domoticz 188, 1 Nov 10 15:27 /dev/ttyUSB1 Save it to a file under /etc/udev/rules.d/ with the. SUBSYSTEM="tty", SUBSYSTEMS="usb", ATTRS="6001", SYMLINK+="ttyUSB21", OWNER="YOURUSERNAME", GROUP="YOURGROUPNAME" If you wish to run Domoticz under the YOURUSERNAME credentials, who is member of the YOURGROUPNAME group and your device has serial YOURSERIAL a suitable udev rule would be: Udevadm info -a -p $(udevadm info -q path /dev/ttyUSB1) | less To find which attributes match your device use the command: (Where you replace YOURUSERNAME with the user that runs Domoticz.)Īlternatively you can setup (as root) a udev rule that matches the RFXCOM device. This can be done by running the command below: For most people the first one by adding the user to the dialout goup is enough and by far the easiest. So if you have Domoticz running under a separate user (which is always a good idea to make the system more secure), Domoticz isn't allowed access to your RFXCOM for example. If you don't plan on interfacing Domoticz with USB and/or serial devices, you can skip this step.īy default (at least on Ubuntu) a non-root user has no permission to access the ttyUSB* ports. If you made source code changes or your environment is not compatible with the pre-built images you can compile and install Domoticz yourself.īuild Domoticz from source with Vagrant Allow non-root user to access ttyUSB* ports Go to wiki page Docker for the instructions You can also install Domoticz as a Docker container. Now you can go on and visit the Getting started documentation area for more information. Just point your browser to the IP address of your Linux system, and use the port specified during the installation script.įrom 2023.1 Stable: By default Domoticz is protected by a username ( admin) and password ( domoticz). You will get an install dialog and some questions will be asked about HTTP/HTTPS enablement for WebUI and related ports. Minimum supported Ubuntu version for pre-built: 20.04 LTS If no source code changes or special compile actions/environments are needed just install a pre-built binary (see the downloads page for that). 10 How to set up a virtual machine to run Domoticz.6.1 Script to update almost automatically.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |