View Full Version : shuttin down remotly
iv got a windows laptop on a network with an ubuntu computer. im too lazy to walk to the other room to turn of the pc...is there a way i can switch it off remotly from the windows laptop?
thanks!
Lorem-Ipsum
23-05-2010, 10:26 PM
you could install something such as http://www.cygwin.com/ and ssh into the linux machine after you've installed the package openssh-server onto it but the install and download's it requires are massive!
hmmm u would think it would be a lot easier...im guessing it is if they are both running linux?
blondeandy
24-05-2010, 08:45 AM
In work lately I wrote a little app to do this, only took a few hours.
Basically involved a tcp listener, waiting for commands one of which is to shut down, then just calls the shut down windows function if it gets the command to do so.
Mr Grapes
24-05-2010, 09:40 AM
which are you trying to shutdown?
if it's the linux box from the windows one, use PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/) (or KiTTY (http://lifehacker.com/5541871/kitty-adds-session-saving-portability-and-more-to-putty)) to log in remotely and type - sudo shutdown -h now
if it's the windows one from linux, then the command from a linux terminal is - net rpc SHUTDOWN -C "some comment here" -f -I x.x.x.x -U user_name%password where x.x.x.x is the Ip address and any text comment can go in the some comment here part
Taken from http://www.linuxforums.org/forum/redhat-fedora-linux-help/60324-remote-shutdown-windows-linux-box.html#post573872
and any of these actions can be made into a script which can be doubleclicked to instigate
Lorem-Ipsum
24-05-2010, 10:00 AM
hmmm u would think it would be a lot easier...im guessing it is if they are both running linux?
Yes that would help
which are you trying to shutdown?
if it's the linux box from the windows one, use PuTTY (http://www.chiark.greenend.org.uk/%7Esgtatham/putty/) (or KiTTY (http://lifehacker.com/5541871/kitty-adds-session-saving-portability-and-more-to-putty)) to log in remotely and type - sudo shutdown -h now
if it's the windows one from linux, then the command from a linux terminal is - net rpc SHUTDOWN -C "some comment here" -f -I x.x.x.x -U user_name%password where x.x.x.x is the Ip address and any text comment can go in the some comment here part
Taken from http://www.linuxforums.org/forum/redhat-fedora-linux-help/60324-remote-shutdown-windows-linux-box.html#post573872
and any of these actions can be made into a script which can be doubleclicked to instigate
wow thanks. That may come in very useful for me.
blondeandy
24-05-2010, 10:11 AM
Can you rdp from linux to Windows? That would be a ridiculously easy solution.
If you have an iPhone you can get free apps for rdp.
Then just connect, start, shutdown. Easy peasy.
Lorem-Ipsum
24-05-2010, 10:25 AM
Can you rdp from linux to Windows? That would be a ridiculously easy solution.
If you have an iPhone you can get free apps for rdp.
Then just connect, start, shutdown. Easy peasy.
For some reason the windows firewall is very jumpy and blocks random things out. Tried it and failed.
blondeandy
24-05-2010, 10:59 AM
Bah!
Well whatever system you go for, unless its a big stick or a well trained dog you'll need to get that firewall working the way you want because the only way you can remotely shut down a PC is .... remotely :)
Is it the built in Windows Firewall?
Lorem-Ipsum
24-05-2010, 11:16 AM
Yes it is. Its a pain in the neck as its so hard to configure.
Mr Grapes
24-05-2010, 01:38 PM
wow thanks. That may come in very useful for me.
I aim to please :)
thanks grapes, thats really useful :D i usually stream things to the laptop when im in my room but hate leaving my computer on all nite
grapes, im haveing problems with kitty...it says my connection is refused....
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.