Ubuntu :: How To Properly Shut Down System Remotely With SSH
Apr 21, 2010
So I've got a backup server that has a daily cronjob to back up all my systems. My desktop PC is usually in sleep mode to save power. So my backup server has to wake up the desktop via wake-on-LAN to start the backup job. When the backup script is done, my backup server sends a shutdown command to the desktop to put it back in sleep mode.
The trouble is that SSH is timing out during the shutdown process and waits a ridiculous amount of time before giving up and allowing my backup server to move on to the next backup script. Here's the portion of my backup script for the desktop that does the shutdown stuff:
Code:
ssh user@host.lan '/usr/bin/shutdown -p +1'
Here's what cron sends me via e-mail:
Code:
Read from remote host host.lan: Connection timed out
real 164m46.280s
user 5m16.160s
sys 1m39.760s
Normally the entire backup job will only take about 5 minutes. But because of SSH timing out, it takes 164 minutes!
As a matter of detail, my backup server is running Ubuntu 9.10, and the desktop is Windows 7 x64 with Cygwin. The -p option for the shutdown command in Cygwin is for sleep mode.
View 1 Replies
ADVERTISEMENT
Oct 27, 2010
suddenly ,I get a project to shutdown all xp's by a Linux server(RHEL5) using a single command.by net command i did that.but in this case i have to specify all the ip addresses manually .Is there any way that Linux server obtain the ip addresses automatically on a network and then shut down all the pc's
View 2 Replies
View Related
Oct 13, 2009
Offlate I installed F11 i586 on my laptop. F11 shares the hard disk with Vista Home Premium 32-bit. The problem is that when running F11 (or even Ubuntu), my system shut off suddenly(not a normal OS shut down, but a sudden power off without any warning). This could have been a hardware trouble(heating) but it doesn't happen with Vista.
Machine specifications:
Maker: Toshiba
Model: Satellite L305D-S5881
AMD Turion X2 Dual Core Mobile Processor RM-70
3072 MB 800 MHz SDRAM
I don't want to open up my machine unnecessarily, if it isn't a hardware issue.
I am not sure how to verify the bit length of the machine and the OS and does it create a compatibility issue ?
Your advise would be highly appreciated.
Raman
View 3 Replies
View Related
Nov 20, 2009
I installed Fedora 12 and after I wantd to shut down the system. I waited but fedora not going to shut down. I got black screen with Power Down
View 7 Replies
View Related
May 1, 2011
after installing ubntu natty in my pc and when i shut down it the monitor stay on purple colorand the funn of the cpu is runing and the facade indicatore of my pc stay on i d ont now why i have a asus mother board and intel ship set family i have a new installation not a upgrade from 10.10
View 8 Replies
View Related
Mar 5, 2011
Many times it happens that when i shut down ubuntu 10.04 at that time it keeps on showing that screen which displays "Ubuntu" written & below it 5 dots. I waited for 15 minutes than also it keeps on showing that.I have to use hardware restart button in such case.What should i do?
View 2 Replies
View Related
Aug 3, 2010
The same Mandriva box that won't run my latest updates, won't shut down properly. I just turn the thing off -- it doesn't seem to cause a problem, but who knows. How do I get this to turn off properly?
View 2 Replies
View Related
Feb 7, 2010
If I log out or shut down Ubuntu with Transmission still open, the next time I start Transmission it will verify the local data, which take a very long time because I have lots of torrents. Does anyone knows how I can prevent this without having to explicitly close Transmission every time?
If I explicitly close Transmission before shutting down Ubuntu, it works fine.
I'm using Ubuntu and 9.10 (Karmic Koala) and Transmission 1.75
View 9 Replies
View Related
May 26, 2011
Whenever I close Banshee by clicking the 'x' in the upper left-hand corner; the player moves to the next track and keeps on playing, just without a GUI. I had this problem in Rhythmbox as well. I'm also having the same problem with Software Center.It certainly looks like the UI/Window Manager is not always sending the application 'kill' signal to the running process. I'm currently using Gnome 2.x / Ubuntu Classic. I haven't tried this in Unity yet; but I suspect I will have the same problems there as well.
View 2 Replies
View Related
Apr 12, 2010
I have no idea why I can not shut down my system properly. Every time I try to shut down, it just hangs and the only thing what I can see is my wallpaper. Then I am forced to do hard shut down, holding shut down button for a few seconds. Can someone help me with this? I have to mention that month ago everything was fine. No major system changes where done till that. My F11 is all up to date. Laptop: Acer Aspire One 751H.
View 9 Replies
View Related
Apr 11, 2011
I'm runnning the Desktop x64 version of Maverick on my Laptop, and every time I use "Ubuntu Software Center" I have to 'kill' it with either the command line or System Monito
View 4 Replies
View Related
Apr 6, 2010
properly set up ssh to only allow one IP address to login remotely
View 2 Replies
View Related
May 9, 2009
I just wounder why a ntfs partition need that my window xp shut down properly before i can mount it on my new Debian install.What happen it that when scanning window xp for virus i got a blue screen and window just crash repeatedly , so i tough i could just mount that partition with ntfs-3g, find the virus witch i identify to be in c:/window and delete it, but my ntfs partition would not mount and the boot message said something like (ntfs partition is still in use). Long story short, i finally managed to get a full window xp boot followed by a clean shut down, then my ntfs partition mounted and i was able to delete that virus.I could mount that partition with ntfs ro option in fstab, but not with ntfs-3g rw until i got a clean xp shutdown.
View 4 Replies
View Related
Sep 6, 2010
I have a bit of a weird problem, I have updated the BIOS for my motherboard (MSI K9A2 Platinum V2) to version 1.B which updates the CPU AGESA code. After the update I was unable to properly shut down linux (gentoo linux 64 bit, kernel 2.6.34, kde 4.4), when I try to do a shut down (tried it from kde and from the command line as well with the same result) the computer shuts down but then it starts up again, only this time the keyboard doesn't work. I think that somehow, the way the pc shuts down has changed (maybe linux is sending the wrong commands in order to shut down) because from windows 7 I can shut down the pc properly.
I have tried to recompile the kernel (I thought that maybe I forgot to add support for some ACPI, APM or CPU options that could affect the shut down procedure) but with no luck.
View 7 Replies
View Related
Jul 9, 2010
I am experiencing an issue with the system shut down.
Everything works fine, but the system is not able to automatically power off and I have to manually switch it off.
How could I fix this behavior?
View 5 Replies
View Related
Oct 29, 2009
My system just shut itself down as I was using it. I'd like to try to understand why.
First, I noticed there are 1 to 4 messages per second in my messages.1 through messages.4 files in /var/log going back to September 27. It probably started before then, but I don't have older logs.
There almost nothing else in the messages log but these messages, millions of them. They look like these:
Quote:
Then just before shutdown, there are a few dozens of these:
Quote:
And then right at the end, a switch to runlevel 0. I did not initiate that. Something else did. And finally a dbus-daemon segfault.
Quote:
What other logs can I look at?
View 5 Replies
View Related
Mar 12, 2010
Using the ubuntu live cd 9.10 I get weird error messages when shutting down the system, sometimes it is this one:
device removed: /freedesktop/Hal/devices/net_80_00_60_0f_e8_00
Other times it is bunch of errors saying something like:
i/o error/end request/dev/sector ****, with all different sector numbers..
These happens even when I have not installed anything, not using any flash drives etc...
View 1 Replies
View Related
Jul 16, 2010
I just installed 11.3 and Gnome yesterday and all went well except that the system will not shut down, it simply reboots. I've tried shutting it down using halt and shutdown now as root and each time the machine reboots. I didn't have this problem with 11.1.
View 7 Replies
View Related
Dec 27, 2010
I am using lenny on an Intel 5200 dual core machine with 2 GB RAM
The problem facing is sometimes The dialog box "The sustem will immediately shut down" is shown and goes to power off. I thinks it is connected with a hardware problem. But It is difficult to trace out what is the problem and in which part of the hardware it is.
The motherboard of this computer was complaint and it was replaced by the company (It is seen than it is the same motherboard with one IC replaced)
The problem is difficult to identify since it is not happening every time. When the service persons are here it is working fine. But when i works with the computer seriously, the problem arises - mostly in night. I have checked the power, voltage etc - everything fine. Also it is in linux, service persons don't pay attentions to solve the problem.
Is it the problem with RAM? It is a new RAM. Even if it is bad I can't replace it because it is working! and in windows (service persons check it with windows only)
View 14 Replies
View Related
Sep 3, 2009
I have an online server which I can not reach any more !
Code:
normally works just fine but now there is a timeout...
Code:
Status of csf:csf and lfd have been disabled, use 'csf -e' to enable Status of lfd:lfd is stopped. The only thing I have is a management-interface with a command prompt(luckily !) You can see that any firewall is disabled.
Still I can not reach my server. Not through webmin via the public address, not through the VPN on the private address (10.10.0.1). So no webmin. I cannot reach my server via ssh. I cannot ping my server on the public IP-address from my client.
What else besides the firewall can restrict my access to my server ?
View 14 Replies
View Related
Jun 17, 2011
I have a client that needs 5 machines updated. They are all running Ubuntu 9.04. Long story short, I can only log in over VPN for the time being (as they're in another city).
That said, is there any good way to remotely update the systems without the need to remain logged in (e.g.via SSH)? I'd like to simply kick off the updates and check back in at a later time.
View 6 Replies
View Related
Aug 3, 2010
I am using Ubuntu 9.04. Years ago, I did UNIX and DOS line commands, but I am 66 and dim, though my doctor says he still thinks I have my marble.Anyway, my Linux shuts down automatically faster than I want it to.How does one control this?
View 3 Replies
View Related
Mar 25, 2010
I am at my own desktop and I have root access on my own desktop.
I also have root access on a Desktop Ubuntu system (192.168.5.10) on the LAN. I need to create another desktop user account on that 192.168.5.10 system.
So I logged into that system with: ssh -Y myself@192.168.5.10
Then I did: sudo users-admin
This brings up the Users Settings but the Add User and Unlock buttons are disabled. How do I enable these buttons?
View 5 Replies
View Related
Aug 7, 2010
I am trying to setup the most efficient way to remotely administer an ubuntu system. So far I was successful in setting up ssh. I have the server running and made sure it only uses keys to authenticate and changed the default port. I can connect to the ssh-server. This system is behind nat and bots trying to break-in when I forwarded the port. I used the AllowUsers option, which helped in knocking back these rouge connections. I was not comfortable leaving a port open all the time, so I set up logmein Hamachi VPN and closed the ports that were open on NAT.
Now I use Hamachi and am very impressed. I use VNC in VPN. But Vino is slow, I tested x11vnc and it was slightly faster. I also tried to set up freenx but nxsetup file was missing. some one posted that file in the forums and suggested copying to the system but I was not sure if I want to download a script from the forum and use it. So for the time being, I thought I will just concentrate on X11vnc until freenx is fixed.
I would like to create a separate desktop on the server and use it to access remotely. This way we will not have to fight over the cursor (sounds funny but very frustrating). From what I understand x11vnc has this function inbuilt (uses vncserver). I cannot get it to work! when using ssh, at the remote machine's command prompt, if I type "evince xyz.pdf", it does not launch the "xyz.pdf". what am I doing wrong? When using VNC, how can I change between different users on the remote machines? Right now I can only use VNC in one account that I first setup. When I try to change to another user, vnc client goes blank. How can I get as much control of the remote system as possible? Right now I need someone to switch on the remote system and login to their account before I can VNC. Can I use ekiga inside VPN, I use skype right now and it's sometimes terrible with dropouts. I looked around and someone suggested using ekiga as it works very well over lan. How do set up ekiga so that I have a direct connection with the remote system? Is there any client that just takes the IP address and creates a connection? Mumble seems to be the popular choice, it's most suited to LANparties, I just need a connection between two systems. I am trying to set this up to help users with hardly any computer knowledge to use the system without any issues.
View 7 Replies
View Related
Aug 24, 2010
I'm still pretty new to servers and ubuntu and have ran into something I could see being a problem in the future. On a dedicated remote server I have installed a web server using the "How To Forge - Perfect server set up for ubuntu 10.04 and ispconfig". I have a forum and email up and running and shoutcast radio and teamspeak3 servers also. We can also nx into it if need be. I can reformat the 1T hdd remotely from my provider control panel and ssh is installed at the same time and a new root password is sent via email. The thing is I now realise that by default the file system is written to a 10gig partition.
This might usually be ok but ispconfig uses the /var/www folder on the file system to house the forum I host and the partition is filling up. My mate I co rent with is talking about starting a parrot/bird owners forum and i might eventually like to have a gaming forum as well. I realise I should probably have set things up differently but like I said I am new at all this and tbh the home directories never going to have much in it so theres 900 gig doing nothing. So my question is can I use anything to enlarge that partition remotely? I know theres gparted on disc and all the articles I found say I need to use a disc which obviously is out of the question.
So what I think I need is some sort of partition magic for ubuntu. I would really like to expand it so all my current files etc on it would stay as is. I'm also currently looking into back up methods and wondered if that would be the way to go? Back up my file system and home directories and then reformat and make the partition larger? Or could I copy the entire www folder to a newly created folder in /home and re write the site enabled files to point to it? Would this work and if so what else would I need to edit?
View 9 Replies
View Related
Jan 4, 2011
Does anyone know or recommend some software or a script to remotely power on a PC from standby to on, or even better from completely off?
I guess the completely OFF to ON is much more complicated - would probably require an extra piece of hardware(?)
View 2 Replies
View Related
Jan 29, 2010
me using redhat linux.i want to to remotely access a system that have windows OS.I tried to install the utility rdesktop using following command. "yum install rdesktop" the following error occur
"Loading "security" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
[code]....
View 2 Replies
View Related
May 2, 2011
I'm in a bit of a unique situation here. I have a remote system running two instances of RHEL5.1 (dualbooting) and I need to install RHEL6 on the other partition from the active one. I understand that you can't upgrade 5.1 to 6.0 so I would need to do a fresh install. My basic question are, is there a way to install an OS from an existing OS to another partition? Can anaconda be run from an already installed system? Is it possible to manually install a system just from RPMs?
I've come across things like debootstrap for Debian and haven't found anything similar for Red Hat systems.
As I'm currently in a different part of the country from this machine I would like to achieve this without having to be physically at the box or reboot the machine (reducing risk of being completely cut off from it).
View 3 Replies
View Related
Mar 31, 2010
If I click on the shutdown bottom (in my lower panel) I get an new window to choose if I really want to shut down or restart or suspend or hibernate. Under that alternatives there is an text that says: "[...] The system will automatically shut down in 60 seconds." Why is the text "60" not running down like a countdown? Can I set another (shorter) time for the automatic shutdown (10 seconds)? If so, where? Or shut I just make another bottom to shut down immediately?
I use (normally) OpenSuse/SUSE Linux
Release 11.1
Kernel Linux 2.6.27.45-0.1-pae
Gnome 2.24.1
View 9 Replies
View Related
Jan 26, 2010
I want to know the exact command to shut down a red hat linux server.I was using init 0. but some one said its not the proper method to shut down my linux server.If not which is the exact command
View 6 Replies
View Related