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.We will show you in this practice tip, how to test whether this Feature also. On my system, this is /usr/sbin/pm-suspend. With Wake-on-Lan you can Wake it up with Linux, a computer on the network. First, get the full path: which pm-suspend. Here is it pm-suspend, use poweroff to turn off the computer. b Send the wake-up packet to the broadcast address. On the target, we need to let the hass user execute the program needed to suspend/shut down the target computer. The single required parameter is a station (MAC) address or a host ID that can be translated to a MAC address by an ethers (5) database specified in nf (5) OPTIONS ether-wake needs a single dash (-) in front of options.On the server, verify that you can reach your target machine without password by ssh TARGET.Be sure to connect the NIC with the motherboard if neccesary, and enable the WOL function in the BIOS. ![]() This script sends magic packets to wake-on-lan enabled ethernet adapters and motherboards, in order to switch on the called PC. In shutdown options you have the ability to specify the message that will be displayed to logged-in users, you may specify a time delay before shutdown, and if any apps are open. You can select more than one host to shutdown. An options window will popup like this one. Enter the password you created in step 3. Page de manuel de wakeonlan - IPaddress -p port -f file hardwareaddress. To shutdown a host, right-click it and select Shutdown.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |