- Posts: 16
- Thank you received: 0
Reboot Command
2 years 11 months ago #286119
by Cyber
Reboot Command was created by Cyber
How can I issue a reboot command to the mesa's card? any recommendations
Please Log in to join the conversation.
- snowgoer540
- Offline
- Platinum Member
-
Less
More
- Posts: 2580
- Thank you received: 0
2 years 11 months ago #286124
by snowgoer540
Replied by snowgoer540 on topic Reboot Command
What are you trying to achieve? If you are trying to reboot after updating the firmware that won’t work as it requires a power cycle.
Please Log in to join the conversation.
2 years 11 months ago #286125
by Cyber
Replied by Cyber on topic Reboot Command
Thank you for replying, I'm actually trying to write a script to remotely reboot a CNC machine
Please Log in to join the conversation.
- snowgoer540
- Offline
- Platinum Member
-
Less
More
- Posts: 2580
- Thank you received: 0
2 years 11 months ago #286127
by snowgoer540
Replied by snowgoer540 on topic Reboot Command
sudo shutdown -r now
Will reboot a machine.
Will reboot a machine.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22008
- Thank you received: 3
2 years 11 months ago #286130
by tommylight
Replied by tommylight on topic Reboot Command
So does
sudo reboot
and both require sudo and password, otherwise they do not work.
sudo reboot
and both require sudo and password, otherwise they do not work.
Please Log in to join the conversation.
- snowgoer540
- Offline
- Platinum Member
-
Less
More
- Posts: 2580
- Thank you received: 0
2 years 11 months ago #286132
by snowgoer540
Thank you for reminding me I forgot sudo...
Replied by snowgoer540 on topic Reboot Command
So does
sudo reboot
Thank you for reminding me I forgot sudo...
On a PathPilot machine, this is not true. both sudo shutdown -r now and sudo reboot will work without being prompted for a password.and both require sudo and password, otherwise they do not work.
Please Log in to join the conversation.
2 years 11 months ago #286155
by rodw
Replied by rodw on topic Reboot Command
That can be setup by placing a file in /etc/sudoers.d
With Linuxcnc's raspberry pi Bookworm installer, this was the default behaviour and we removed the feature. (by deleting the user's file)
I think this link explains how to do it. But what would I know I only undid it!
forums.bunsenlabs.org/viewtopic.php?id=5503
This was our script to remove the file created by the default installer.
rm -f /p2/etc/sudoers.d/010_${USERNAME}-nopasswd
With Linuxcnc's raspberry pi Bookworm installer, this was the default behaviour and we removed the feature. (by deleting the user's file)
I think this link explains how to do it. But what would I know I only undid it!
forums.bunsenlabs.org/viewtopic.php?id=5503
This was our script to remove the file created by the default installer.
rm -f /p2/etc/sudoers.d/010_${USERNAME}-nopasswd
Please Log in to join the conversation.
- snowgoer540
- Offline
- Platinum Member
-
Less
More
- Posts: 2580
- Thank you received: 0
2 years 11 months ago #286199
by snowgoer540
Replied by snowgoer540 on topic Reboot Command
That’s good to know, I will likely do that on my plasma and VMs. Typing the password is annoying.
Thanks for the heads up Rod.
Thanks for the heads up Rod.
Please Log in to join the conversation.
Time to create page: 0.150 seconds
