Sleep Tight (itch) Mac OS

broken image


I made this game in 3 days with little sleep, so mind any bugs you run into. Enjoy, and be sure to eat your maggoty bread. NOTE: Unlike the video, I could use only original voices for this game. Thanks for checking out the game!-Credits: UI, Coding, Gameplay, Design: BurtBot. Find games for macOS like Friday Night Funkin', Cold Shot, Wrong Floor, Deepest Sword, Dying of Thirst on itch.io, the indie game hosting marketplace.

The Quick and Dirty Wake-On-Lan+VNC Setup Roboshot mac os.


I have two computers on my local area network:


1) a Mac mini with Mac OS 10.4 (Tiger). It is connected to the Internet using a usb 3g modem. Internet Sharing is used to share the connection to the LAN.


2) a Windows XP pc, usually in sleep mode. I use it only to play online poker, since Ray has a poker client only for Windows, and it does not work well with Wine. There is a browser-based flash poker, but it is excruciatingly slow and awkward to use.

[Update Mon Oct 1 02:46:26 EEST 2012 -- sold my Pentium 4to a place where it will serve the humanity better months ago and now have ZEROWindows® in my home ;-)]


The problem:


I don't want to use two keyboards and two mice, or even crouch to reach a power switch to get my poker fix.


The recipe:


0) Assume that the PC and the Mac are already connected to each other and everything is working dandily, and gather some information:


0.1) the IP address on the Windows machine

- Right-click on the LAN connection icon on system tray and choose 'Status' (finnish: 'Tila')

- Select the 'Support' tab (finnish: 'Tuki')

or

- Open the Command Prompt (finnish: 'Komentorivi') and type 'ipconfig', then press Enter.

Example: 192.168.2.3

Sleep Tight (itch) Mac Os Download


0.2) the MAC address of the Windows machine

- On the 'Support' tab, click the 'Details.' (finnish: 'Tiedot.') button

- Note the 'Physical address' (finnish: 'Fyysinen osoite')

or

- On the Command Prompt, type 'ipconfig /all', then press Enter.

- Note the 'Physical address' (finnish: 'Fyysinen osoite')


For example, 00-11-2F-CD-18-1C. Change the hyphens ('-') to colons (':') to get something like


00:11:2F:CD:18:1C


0.3) the broadcast address of your LAN

- You can deduce this from the ipconfig information if you know what a broadcast address is.

or

- On the Macintosh, open Terminal and type 'ifconfig', press Enter.

- From after the line that begins with 'en0:' look for the address after the text 'broadcast'.


Example: 192.168.2.255


0.4) Invent a name for the Windows machine to name the connection.


Sunset (itch) mac os.

Example: winxp


Whenever I mention the example values above, substitute you own.



1) Get the VNC remote desktop connection working:


1.1) Install TightVNC on the Windows machine, set the server to run as service so it is always available. Set something simple as the password. If your PC is not directly connected to the Internet, like mine, the password strength does not really matter. If you want to play it safe(r), add an access control rule to limit access to your local LAN.


1.2) Install Chicken on the Macintosh computer (you may also try using the integrated vnc client if your Mac OS is at least 10.5 Leopard, which mine is not, so you're on your own if you try that)


1.3) Test the connection:

- Open Chicken

- Click the '+' button below the Servers list

- Double click on the 'New Server' item and type 'winxp' to name the item.

- Type '192.168.2.3' in the Host field

- Leave the Display or port field as '0'

- Type the TightVNC password.

- Check the 'Remember Password' box

- Click 'Connect'

- Your windows desktop should appear.


2) Make the Windows computer power up magically when the Macintosh wants it to:


2.1) Turn on wake-on-lan on the PC:

- Right-click on the LAN connection icon on system tray and choose 'Status' (finnish: 'Tila')

- Click on the 'Properties' (finnish: 'Ominaisuudet') button

- Click the 'Configure.' (finnish: 'Määritä.') button next to your ethernet adapter

- On the 'Power Management' (finnish: 'Virranhallinta') tab, check all the boxes

- On the 'Advanced' (finnish: 'Lisäasetukset') tab, maybe make some device dependent magic.

- On my PC with an Yukon adapter I needed to set 'Wake Up Capabilities' to 'Magic Packet'

- Put the PC into sleep mode (Start -> Shutdown. -> Standby mode)


2.2) Wake the PC up from the Macintosh:

- Download the WakeOnLan utility from http://www.gknw.net/wol.html

- Open Terminal

- Change to the directory where the wol executable is (probably 'cd Desktop/wol')

- Type './wol 192.168.2.255-00:11:2F:CD:18:1C' and press Enter.

- Your PC should power on.

- Put the wol executable file somewhere, I suggest /opt/local/bin if you have MacPorts.


3) Tie them together with a shell script for one-doubleclick access to the PC from the Mac desktop:


3.1) Create the shell script 'winxp':


- Open Terminal

- Go to the desktop folder ('cd Desktop')

See full list on mrmacintosh.com

- Create shell script 'winxp' with the following contents ('nano winxp'):


#!/bin/bash


remotemac=00:11:2F:CD:18:1C

remoteip=192.168.2.3

remotenet=192.168.2.255

vncprofilename=winxp


function pingtest {

ping -t 1 -c 1 $1 >&/dev/null

}

Just

- Create shell script 'winxp' with the following contents ('nano winxp'):


#!/bin/bash


remotemac=00:11:2F:CD:18:1C

remoteip=192.168.2.3

remotenet=192.168.2.255

vncprofilename=winxp


function pingtest {

ping -t 1 -c 1 $1 >&/dev/null

}


if ! pingtest $remoteip; then

# cross fingers for wake up magick!

/opt/local/bin/wol $remotenet-$remotemac

while ! pingtest $remoteip; do

sleep 1

done

fi

/Applications/Chicken.app/Contents/MacOS/Chicken $vncprofilename


- Make the shell script executable ('chmod a+x winxp')

- Put your PC to sleep and try the script ('./winxp')

- Your PC should wake up, and after a while, you should see the Windows desktop!


Note: If you want to try the MacOS builtin vnc client, you might try replacing the last line of the script with

Cached

open vnc://$remoteip/ Lake of voices mac os.


3.2) Create an 'application' that you can double-click from your desktop or dock:


- In the previously opened Terminal window, type:


mkdir -p winxp.app/Contents/MacOS

mv winxp winxp.app/Contents/MacOS


- Now locate the new 'winxp' application icon on your desktop, and doubleclick it.


- Change the application icon into something funnier if you wish.

Sleep Tight (itch) Mac Os X


4) PROFIT!


4.1) Learn how to play poker without losing your money


More resources on the web:

http://itworkerdaily.wordpress.com/2007/06/01/wol-wake-up-on-lan-how-to-set-it-up/


TODO:


- Adapt to other operating systems (Linux should be easy)

- Some packaging perhaps

- Make the Windows PC to go to sleep when disconnecting.


Actually, this can be done by running this horrible .bat file:


@echo off

:waitnovnc

ping -w 1000 -n 3 127.0.0.1 >nul

netstat -n|find '192.168.2.3:5900' >nul

if not errorlevel 1 goto waitnovnc Dunkatron mac os.


echo No VNC in netstat, sleeping.

Rundll32 Powrprof.dll,SetSuspendState Sleep


:waitforvnc

ping -w 1000 -n 3 127.0.0.1 >nul

netstat -n|find '192.168.2.3:5900' >nul

if errorlevel 1 goto waitforvnc

echo Found VNC in netstat, looping.


goto waitnovnc


Argh, the kludgeness of it all!


Joker jester slot.

--

spoof@hear.fi Fri Jan 27 09:37:45 EET 2012







broken image