AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Add this line last in the file: hass ALL=NOPASSWD:/usr/sbin/pm-suspend, where you replace hass with the name of your user on the target, if different, and /usr/sbin/pm-suspend with the command of your choice, if different. On the target, using an account with sudo access (typically your main account), sudo visudo.enter the MAC address of the target computer, its external IP address, and the port. On my system, this is /usr/sbin/pm-suspend. Wake on LAN configuration The configuration file /etc/config/wolis. First, get the full path: which pm-suspend. have the last public IP used by your computer and your public IP changes. Here is it pm-suspend, use poweroff to turn off the computer. Wake-on-LAN over the Internet (Wake-on-WAN) Make sure to configure your router. On the target, we need to let the hass user execute the program needed to suspend/shut down the target computer.On the server, verify that you can reach your target machine without password by ssh TARGET.Enter the password you created in step 3. (Make sure the opened folder contains your build tool scripts, for example, pom.xml or adle). On the server, transfer your public SSH key by ssh-copy-id where TARGET is your target machine’s name or IP address. VS Code for Java will detect your projects and import them automatically.If you do, you can leave out in the SSH commands below. It’s recommended using the same user name as on the server. Just press enter on all questions except password. And set up the public address through teamviewer using my routers ip address (not the 10.0.1.3 one - Its one that Airport Utility says is the routers IP, if I use the 10. On the target, create a new account that Home Assistant can ssh into: sudo adduser hass.On the server, create SSH keys by running ssh-keygen.On the server, log in as the user account Home Assistant is running under.Suggested recipe for letting the turn_off script suspend a Linux computer (the target)įrom Home Assistant running on another Linux computer (the server). Here are some real-life examples of how to use the turn_off variable.
0 Comments
Read More
Leave a Reply. |