Enable Remote Desktop (VNC) After 1.1 Update

From AwkwardTV

Jump to: navigation, search

Due to Apple removing the AppleVNCServer in the 1.1 update, if you want to use VNC on your AppleTV you'll need to install a third-party server, such as Redstone Software's Vine Server.

Contents

[edit] Requirements

  • Intel Mac
  • Fugu - graphical SFTP client (or use scp if you prefer)
  • Vine Server - OS X VNC server software (Version 2.2)

(make sure it is version 2.2, it doesn´t seem to work with current version 3)

[edit] Step 1

To enable Remote Desktop on your AppleTV after the 1.1 update, you'll need to download Vine Server, and run the Vine Server app from the mounted dmg. Setup Vine Server according to your needs then choose Start System Server from the Startup tab.

[edit] Step 2

Using Fugu (or scp) copy /Library/StartupItems/OSXvnc to your frontrow directory on your AppleTV. You can now stop the System Server process in the System tab of Vine Server. This removes the OSXvnc directory from your Intel Mac.

[edit] Step 3

SSH into your AppleTV, enable readwrite, and move the OSXvnc directory to /Library/StartupItems

 sudo mount -uw /
 sudo mv ~/OSXvnc /Library/StartupItems/OSXvnc

[edit] Step 4

Ensure you have the proper permissions by using chmod:

sudo chmod +x /Library/StartupItems/OSXvnc/OSXvnc
sudo chmod +x /Library/StartupItems/OSXvnc/OSXvnc-server
sudo chmod +x /Library/StartupItems/OSXvnc/OSXvnc-keepalive

[edit] Step 5

Reboot your AppleTV by sending it a shutdown command.

sudo reboot

Your AppleTV will now reboot and OSXvnc will load on startup. You can now log in to your VNC server.


[edit] ALTERNATIVE STEPS

If the first steps didn't work, you can try doing it this way:

[edit] Step 1 - Installation

Download Vine Server (I used version 3)

Copy Vine Server.app to the /Users/frontrow/ on the Apple TV.

[edit] Step 2 - Configuration

SSH to the Apple TV and run the following commands:

cd Vine\ Server.app
./storepasswd YOURPASSWORD /Users/frontrow/vncpasswd
cp Contents/Resources/OSXvnc-server /Applications/

[edit] Step 3 - Autostart

Now to make sure vnc server starts automatically with ATV:

create a file /System/Library/LaunchDaemons/com.OSXvnc.plist (use nano or echo >) with the following contents:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.atv.VNC</string>
<key>OnDemand</key>
<false/>
<key>RunAtLoad</key>
<true />
<key>ProgramArguments</key>
<array>
<string>/Applications/OSXvnc-server</string>
<string>-protocol</string>
<string>3.3</string>
<string>-rendezvous</string>
<string>Y</string>
<string>-rfbauth</string>
<string>/Users/frontrow/vncpasswd</string>
</array>
</dict>
</plist>

If you can't create a file right on the Apple TV:

create one on your local machine,

copy it to /Users/frontrow on ATV,

then ssh into it and

cp /Users/frontrow/com.OSXvnc.plist /System/Library/LaunchDaemons/


finally,

sudo reboot

[edit] Step 4 - Connect

now when your ATV boots up you should be able to connect to the VNC server using Chicken VNC or Jollys Fast VNC or any other client on port 5900 and whichever password you made in step 2

credit: Arfore dot com

[edit] Remote Desktop for TAKE 2

taken from the forum

mount the volume for read access

sudo mount -uw /
sudo touch /.readwrite

change to user folder

cd ~

mount recovery volumes (these Steps only work if your AppleTV came with Firmware Version 1.0 if your AppleTV had a newer Firmware installed you will need to get the recovery.dmg elsewhere)

sudo dd if=/dev/disk0s2 of=recovery.dmg bs=1m
sudo hdiutil mount recovery.dmg
sudo hdiutil mount /Volumes/Recovery/OS.dmg

Copy the Remote Management programs, and some extra perl stuff

sudo cp -pr /Volumes/OSBoot\ 1/System/Library/CoreServices/RemoteManagement/ /System/Library/CoreServices/RemoteManagement
sudo cp -pr /Volumes/OSBoot\ 1/System/Library/Perl/ /System/Library/Perl/
sudo cp -pr /System/Library/Perl/Extras/5.8.6/ /System/Library/Perl/5.8.6/

Configure the settings:


This is a hashed password "frontrow" which is used by VNC Server. The password "frontrow" was chosen to be easy to remember.

echo 71463E00FFDAAA95FF1C39567390ADCA > /Library/Preferences/com.apple.VNCSettings.txt
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart  -configure -clientopts -setvnclegacy -vnclegacy yes

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart  -activate -configure -access -on -users frontrow -privs -all -restart -agent -menu

and now start the service, as a background so you can keep using the ssh connection

/System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/MacOS/AppleVNCServer &


tested with apple remote desktop and Leopard Share Screen and "chicken of the VNC"

Personal tools