If you have SSH access to your Mac, you can remotely enable Remote Desktop. However, if you want to VNC into the Mac, you'll need to set a VNC password and turn VNC on. The following huge command turns on Remote Desktop, enables VNC, and sets the password to password.
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -restart -agent -privs -all -setvnclegacy -vnclegacy yes -setvncpw -vncpw password
However, the last part doesn't seem to work, so you can run:
sudo nano /Library/Preferences/com.apple.VNCSettings.txt
and put this as a single line:
6755221DFCC7B786FF1C39567390ADCA
which is the encoding of "password". Now use SSH tunnels, connect, and it should work. You can then change the password via system Preferences to a more secure one.
To turn off Remote Desktop run:
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off
2008-10-29
Enable Mac OS X Leopard Remote Desktop for VNC via SSH
Posted by
bombcar
at
11:02
3
comments
Labels: apple remote desktop, Mac, mac os x, SSH, vnc
2007-12-19
Remotely waking up a Mac
I had forgotten to change a cronjob on my Mac Book Pro at home, but by the time I got to work and sshed back in, it was asleep.
The server was on Gentoo, so I looked at the Gentoo wiki and found that "emerge wakeonlan" would get me the tool to wake up the Mac.
But now I needed the MAC address, and it was asleep! But I remembered dhcp, and looked in /var/lib/dhcp/dhcp.leases and sure enough, there was the MAC address of the Mac.
Running wakeonlan, waiting for it to come alive, and sshing in worked great.
2007-08-27
Running the DOS TIE Fighter on a Mac
I was digging through my old files (some are almost 20 years old!) and I found my original copy of TIE Fighter for DOS.
Posted by
bombcar
at
19:57
8
comments