Remotely select OS at boot

Forum / General Discussions / Remotely select OS at boot

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24947
    davide445
    Participant

    Working on a dual boot Windows10/KDE Neon PC, I’m using GRUB at startup time to choose the OS I want to work on (KDE the default one currently, even if I’m working more on Windows).

    So I suppose this is a standard question, I didn’t find an answer on knowledge base: will be possible (with NoMachine, or any other way) to have this selection remotely, so that I can next connect using NoMachine and work remotely on either Windows or Linux.

    Since I use both platforms for different activities I need sometimes to reboot the machine and of course right now I can’t do it remotely. Just for information, I didn’t install Linux (or Windows) on a VM since I need to access the full resources of the machine in term of CPU, GPU and RAM due to heavy tasks.

    #24964
    davide445
    Participant

    Discovered about the grub-reboot command, so being Linux my default OS I can switch without problems from Linux to Win and back to Linux.

    #24972
    Bilbotine
    Participant

    Hi davide445,

    In case you still need it, here is the script:

    #!/bin/bash

    $(sudo grub-reboot “$(grep -i ‘windows’ /boot/grub/grub.cfg|cut -d “‘” -f2)” && sudo reboot)

    You can name the script reboot2windows

    Give it the right to execute – chmod +x reboot2windows

    And start it with sudo – sudo ./reboot2windows

Viewing 3 posts - 1 through 3 (of 3 total)

This topic was marked as solved, you can't post.