Skip to main content

Timeline for Turn on my Ubuntu server remotely?

Current License: CC BY-SA 3.0

13 events
when toggle format what by license comment
Apr 19, 2017 at 23:06 comment added CyberFonic The device name for the socket.bind call is the device name on the machine sending the WoL packet, i.e. the RPi. The server is identified by the MAC. Please read the Wikipedia entry for WoL (see @mckenzm comments) to better understand what is going on. SO is not the place for detailed debugging assistance.
Apr 18, 2017 at 21:03 comment added Jono i managed to fix that issue but now it says 'no such device' socket.error?? i added the correct ethernet interface name of the server pc i am trying to turn on on socket.bind but its saying it cant find it?
Apr 14, 2017 at 1:56 comment added CyberFonic The error messages says it all. You need to run on Linux/Unix/BSD. Weren't you going to use a Raspberry Pi? BTW since you are accessing hardware, you do need to run such commands with sudo.
Apr 12, 2017 at 18:51 comment added Jono Hi i tried running your script with my mac address and got this error: sudo ./turnOnServerCommand.py ./turnOnServerCommand.py: 4: ./turnOnServerCommand.py: Send a WoL packet to the specified MAC address NB: Won't work on OS/X. The AF_PACKET is specific to Linux. Needs to be run with sudo. : not found
Apr 12, 2017 at 18:28 comment added Jono ok cool thanks. so if i save the below python script and save it inside the rasbperry pie. all i need to do is SSH into it and run the script? How do i run the script if the script is for example names turnOnServer.py
Apr 11, 2017 at 4:46 comment added CyberFonic Just standard Raspbian. I prefer Debian based OS since I'm comfortable using APT. But you could use any OS that supports CPython and Unix style AF_PACKET. Check the Python docs for more details on socket module.
Apr 9, 2017 at 13:42 comment added Jono which OS did u use?
Apr 5, 2017 at 10:35 comment added CyberFonic I used a first gen. Model B. You need eNet - so the Zero wouldn't be suitable.
Apr 5, 2017 at 8:42 comment added Jono I think i will go with this route and buy myself a raspberry pi. which one do you have as they have a standard version and a Zero version?
S Apr 4, 2017 at 10:35 history suggested user67110 CC BY-SA 3.0
Use Python text highlighting.
Apr 4, 2017 at 10:23 review Suggested edits
S Apr 4, 2017 at 10:35
Apr 4, 2017 at 9:47 comment added Chris Davies Also apt-get install wakeonlan
Apr 4, 2017 at 8:03 history answered CyberFonic CC BY-SA 3.0