I prefer the reboot or shutdown commands for restarting my Ubuntu servers. Before you start the next section, you may like to clear the terminal window of the previous commands so the output of the following commands can be clearly. If this works as expected, you may not even need NoMachine, really, though I guess it's supposed to be faster. Then invoke whatever x client command you like it's tradition to test this using xeyes. You can cancel a scheduled reboot or shutdown with the following command: sudo shutdown -c Bonus tip: Use systemd commandĬonsidering that Ubuntu uses systemd, you can use the systemctl command to restart your Ubuntu system: sudo systemctl reboot when you SSH to the Pi, be sure to set up XForwarding: ssh -X foopi. In order to generate SSH Key Pair, the public and private key, with a specifying a key length, such as 2048 bits, execute the following command at your server console. Reboot scheduled for Mon 20:00:00 UTC, use 'shutdown -c' to cancel. It will inform you about the scheduled reboot: :~# shutdown -r 20:00 To restart the server automatically at 20:00 hours (in local system time): sudo shutdown -r 20:00 The Nomachine installer will install an application as well as service. To restart the server automatically after 30 minutes from now, use: sudo shutdown -r +30 Step 2 Connect Remote Desktop with NoMachine. You can change the reboot schedule by delaying it for certain minutes to certain hours. The system is going down for reboot at Mon 15:13:31 UTC! If there are other users logged on to the server, they will receive a message about the scheduled reboot: Broadcast message from on pts/0 (Mon 15:12:31 UTC): Reboot scheduled for Mon 15:13:31 UTC, use 'shutdown -c' to cancel. Then from the search menu that appears, search for the Terminal application and launch it. By default, GUI mode is not installed in Linux servers. In order to open the Terminal, go to the Activities tab in the top left corner of your desktop. To do this, open up a terminal window and issue the command: ssh-keygen -t rsa You will be asked. This will schedule a shutdown in one minute. To restart a service, command-line Terminal is used. You can also use the shutdown command with option -r to restart the system. Schedule a reboot with shutdown command in Ubuntu
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |