0
votes
0answers
59 views

Ubuntu 14.04 cannot start after execute command 'sudo apt-get install gtk+-' and shutdown laptop

Well, a little while ago, i was installing a serie of apps, and one requirement was to have installed gtk+ 3.4, next, as can be expected, I googled how to install it and...I executed the command 'sudo ...
0
votes
0answers
21 views

Shutdown the system after a specific time from command line? [duplicate]

Sometimes after I finished my work at computer I need to leave it open for a specific time to do some other jobs, then after a specific time it should close itself. I have looked at the shutdown ...
0
votes
2answers
76 views

Terminal commands to hard shutdown and hard restart

I want to do hard restart and hard shutdown(immediate shutdown and restart) through terminal. Is this possible through terminal commands? And note that no answers in this How do I restart /shutdown ...
-1
votes
2answers
247 views

Cannot shut down Ubuntu 14.04 [duplicate]

this is my first time using Ubuntu 14.04 version. I'm not sure what I've done, but I can't shut down my laptop. But if I log in as the guest, then it will shut down if I press the button and I'm not ...
1
vote
0answers
24 views

What is the command to bring up GUI shutdown box? [duplicate]

Unity brings up a window with shutdown/reboot options when pressed my pc power button. But how to do that with a command?
3
votes
1answer
415 views

What command is executed when shutdown from the graphical menu in 14.04?

I understand that clicking "shut down" from the menu that comes up on clicking the cogwheel triggers the following command to be executed: dbus-send --system --print-reply --dest=org.freedesktop.Hal ...
0
votes
1answer
113 views

Closing - not killing - gedit instances via the terminal (to save changes)?

How can I close multiple instances of Gedit windows through the command line? Some of the windows may contain changes to documents. So, I would like to be prompted to save them or not. If I use ...
3
votes
1answer
175 views

What commands show pending/scheduled tasks in Terminal?

What commands can I use in Terminal to see pending or scheduled tasks for today or tomorrow. For example how can I detect pending system shutdown?
0
votes
0answers
18 views

Automatic shut down and reboot at specific time [duplicate]

I have an assignment that requires me to write a script that shuts down a server at 11pm and reboots it at 6am daily. So far, I have only written a command to shut it down but I do not know how to ...
3
votes
1answer
45 views

Stop process on power button press

I have an old ubuntu pc running a minecraft server, but I only want it on at certain times. I want to be able to turn it on and off using only the power button. I am able to turn it on, but to turn ...
3
votes
1answer
134 views

Confirm shutdown with Zenity?

I got this command which enables me to shutdown Ubuntu 13.10 directly from the keyboard (without needing to open a terminal and running something like sudo shutdown -h now): dbus-send --system ...
0
votes
0answers
27 views

how to display last error message after automatic shutdown [duplicate]

My computer is shutting down automaticly using the Bitcoin client during catching up with the blockchain stage. Sometimes after hours and sometimes after 30 minutes. It could be heat related. A second ...
0
votes
2answers
144 views

Why's this shutdown one-liner command not working

It works fine from terminal, but when called from a thread in python, it fails. history -d $((HISTCMD-1)) && echo 'password' | sudo -S shutdown -h 08:00 from python, here's what I did: ...
1
vote
1answer
221 views

Problems with shutdown from command line

Whenever I attempt to shutdown my dell inspiron 1545 laptop from the command line with sudo shutdown now I get the following error after the ubuntu shutdown screen closes: Could not get system ...
2
votes
1answer
357 views

How to shut down the 70+ systems by the one remote machine?

What ways are there to shut down a computer remotely? My desktop is running Ubuntu 12.04 desktop edition and when I try to shut it down remotely, it doesn't actually work. I used the command sudo ...
0
votes
1answer
42 views

what problem should/can I solve first?

I am currently running Ubuntu 13.04 x64 with brand new hard drive to replace a damaged component, on my 17.5 inch wide screen gateway laptop with mostly after market components. can not remember the ...
0
votes
1answer
218 views

Shutdown command history in terminal

The default terminal in Ubuntu (13.04) preserves previous commands in an iterable list, even from session to session. Same with Byobu terminal. But for some reason sudo shutdown .... is never ...
2
votes
2answers
131 views

Why do CLI and GUI methods for shutting down have different security measures?

CLI option for shutting down the system is sudo shutdown -h now This requires the user to give the administrator password, whereas shutting down via GUI doesn't require any password. Why does GUI ...
0
votes
0answers
283 views

Execute BASH script on shutdown [duplicate]

I have a KVM switch (Trendnet TK 409) that helps me switch between my Ubuntu laptop and Linux computer. The switch use a hotkey for switching (numlock+numlock). Unfortunatly, that only works on ...
0
votes
1answer
116 views

Computer shut down during resizing of drive, stuck!

Basically I was trying to resize my drive since I was low on disk space for the Ubuntu OS using a WUBI of Ubuntu 12.10(I believe that or 12.04). But my computer shut down in the process. Now when I ...
4
votes
3answers
7k views

what is the right way to shutdown ubuntu using the command line? [duplicate]

I know that there are several commands that shutdown an Ubuntu computer. I was just wondering if there is a right one to use and what the implications are for using the other ones; or what the various ...
3
votes
1answer
121 views

Gracefully close appications on shutdown

How to automatically close an application on shutdown (graceful close, not kill)? I try to call wmctrl -c "App" in powerbtn.sh, but it does not work. The same wmctrl command works perfectly when ...
9
votes
1answer
6k views

`shutdown -r now` command completely shutting down instead of restarting

Hi we've just installed Ubuntu 12.04 LTS onto a new server. It's on a SuperMicro X9SCA-f Motherboard . Now we're aiming to locate this in a remote server room - however when we execute a shutdown -r ...
1
vote
2answers
3k views

Transmission shutdown script for multiple torrents?

I have written a shutdown script for transmission. Transmission calls the script after a torrent download finishes. The script runs perfectly on my machine (Ubuntu 11.04 & 12.04). #!/bin/bash ...
112
votes
4answers
260k views

How do I restart /shutdown from a terminal?

How to shutdown the Ubuntu installed system and restart it by using terminal ?
15
votes
3answers
17k views

Shutdown from terminal without entering password?

I have desktop edition of Ubuntu. I like the Terminal so that that I prefer to shutdown my computer with the shutdown command. However when I type shutdown now it prompts me to enter my password.Is ...
2
votes
1answer
1k views

problem with halt command to power off

I use Ubuntu 11.10. My problem is that I cannot power off the computer with sudo halt command. Ubuntu shutting down screen comes and stops at there (something like the pic below). I waited about 15 ...
5
votes
5answers
403 views

How can I add to a already running process an additional 'shutdown' command?

On a regular basis I forget to add && shutdown -h now to a long-running process. Is there any way to add a shutdown -h now command after the first command was invoked? It is not intended to ...
4
votes
3answers
1k views

How to shutdown/restart/suspend … without authentication or confirmation?

I am looking for a terminal command to shutdown without having to write down my password and without installing any extra programs. As when clicking the shutdown button, why it is not asking me for ...
21
votes
4answers
31k views

What is the proper terminal-way to shutdown?

I was trying to shutdown my PC through SSH. I executed sudo shutdown now The user was logged-out and Ubuntu starting turning off, but it froze at the last screen with the Ubuntu logo and the loading ...
9
votes
3answers
4k views

What is the command to open the shutdown dialog?

I would like to use a gesture to shutdown/restart my computer and I need to know the command that launches the shutdown dialog:
13
votes
4answers
1k views

Why does nothing happen when I click “Shutdown” from the “shutdown…” dialog?

I've been through all questions with the 'Shutdown' tag on this site - but this is different. I choose "Shutdown..." from the session menu. I then click "Shutdown" on the dialog that appears. ...
3
votes
1answer
412 views
6
votes
9answers
9k views

How to shut down the computer after a task has been completed?

I usually start a download before I go to school. Which command should I use to automatically make the necessary saves and turn off the computer after a particular task has been completed? (Say, ...
11
votes
3answers
8k views

How can I safely shutdown/reboot/logout KDE from the command line?

I am not talking about shutdown and reboot commands. I want to initiate the same routine from command line that would be performed if I would press the logout/reboot/shutdown button inside the KDE ...