Tag Info

Hot answers tagged

3

A couple of things to try: Add a line to the following file: /etc/default/grub when you open the line will most likely read: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" change this line to be: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=off" when you're all done you need to update grub for the change to take effect sudo grub-update I believe the ...


1

You can do this in dconf editor. You can install this with sudo apt-get install dconf-editor See below for the adjustments to make. You can also choose to suppress the restart menu item (among others) Suppressing the menu item will remove the option from the menu in the upper right corner of the screen. (After a reboot). Of course the option won't exist ...


1

You'll need to setup a script to automatically run on shutdown. See http://askubuntu.com/a/564674 Create /etc/init.d/vagrant with this content: #!/bin/bash vagrant global-status | awk '/running/{print $1}' | xargs -r -d '\n' -n 1 -- vagrant suspend Make it executable and link it into the shutdown run modes: chmod +x /etc/init.d/vagrant ln -s ...


1

The correct command would be sudo shutdown -h 23:45 - without the -h or -r switch it isn't a valid command (there are others - see man page). Using +9 instead of the time gives you any easy way to say 'in 9 minutes'. Any reference to E:/ tells us that there is some reference to a windows command going on here as linux has no E:/ which is partly why there ...


1

You can give www-data permission to execute the shutdown command. Try this: As root, use the command 'visudo' to edit your /etc/sudoers file. The last lines should look like this: # Cmnd alias specification # User privilege specification root ALL=(ALL:ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ...


1

The syntax for shutdown from command line is sudo shutdown -P now ## for system POWEROFF sudo shutdown -h now ## for system HALT or POWEROFF If that did not work we can also perform a forced poweroff sudo poweroff --force In case we start the script from a user session (as was the case in a custom session) we can either allow users to shutdown without ...


1

First of all I thank the members Takkat and David Foerster for the help. :) The solution I've found: If you have problem like this post, one solution is get the consolekit and insert the following code in your bash script to shutdown the system: /usr/bin/dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" ...



Only top voted, non community-wiki answers of a minimum length are eligible