Hello,
I have two linux pc towers and both works normally.
I have only one keyboard.
When i plug the keyboard into the first pc, I connect to 2nd pc remotely and send reboot command. Second pc stucks on black screen.
Could you please guide me what I should do?
There is also typically a BIOS option for "Press F1 to continue on error" Something like that. Disable that function, so that its not sitting there waiting for you to hilariously press F1 (on the non-existant keybaord) to ack the error that there is no keyboard. That's what I've always done on any headless servers.
Thanks,
I got rid of similar problems as you have leaded.
I made below changes on ubuntu and it works when keyboard is not plugged or when ubuntu is not become alive after electricity interruptions:
Run Gedit as root (gksu gedit).
Open*/etc/default/grub*and locate the following lines:
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
Change the values as follows:
GRUB_HIDDEN_TIMEOUT=10
GRUB_HIDDEN_TIMEOUT_QUIET=false
Also add this line:
GRUB_RECORDFAIL_TIMEOUT=10
Save and run*sudo update-grub*from your terminal and reboot.
Beware that electricity interruptions are liable to reset your BIOS settings to default, after which it will "forget" it was supposed to do things like boot without a keyboard, or turn on after power loss. Consumer grade routers are also liable to forget their settings and go stupid. Very irritating.
If you are not dealing with server-grade hardware, the best solution is a sturdy UPS which is regularly tested. (If you are dealing with server-grade hardware, the best solution is still a sturdy UPS which is regularly tested.)
Or, if your needs are small, there was a late-90's-era PC which had actual DIP switches for "resume after power loss". It'll never forget.