When running an SSH command that uses sudo, something like
ssh email@example.com "sudo apt -y update && sudo apt -y upgrade"
You may receive the following error.
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
To work around this, you can use the -t option. -q is not needed, but makes thing quieter.
ssh -qt firstname.lastname@example.org "sudo apt -y update && sudo apt -y upgrade "
The sudo password will also be hidden.
You can tell the computer to go to sleep by executing the following command from a terminal
The computer should immediately go to sleep.
Sleep with delay
If you would like to add a delay you can do the following. Replace 5 with the number of seconds you want to wait.
sleep 5 && systemctl suspend
Open up a command prompt with administrator privilages, either right click and Run as Administrator, or hit the Windows Key type in cmd and then hit CTRL+Shift+Enter.
Sometime you may need to turn it on so you can install a modded driver or something, other times it needs to be turned off so you can install EasyAntiCheat…
bcdedit -set TESTSIGNING ON
bcdedit -set NOINTEGRITYCHECKS ON
bcdedit -set TESTSIGNING OFF
bcdedit -set NOINTEGRITYCHECKS OFF
Reboot for the changes to take effect