That means it’s not initially possible to copy any files to the root mount point (/etc, /usr, /var, for example) while it is running. One thing we’ve already learned from SSH is that the root filesystem on the Apple TV (aka OSBoot) is apparently mounted as a read-only filesystem. (Hey, what is /usr/bin/ripstop and why is it running under the frontrow user?) You can type ps auxww to see a list of running processes on your Apple TV. AFP, SCP or SFTP can now be used to copy files to the Apple TV!! Then you can connect to the Apple TV from your Mac by using the Connect to Server command in the Finder. For example, you can now type sudo /usr/sbin/AppleFileServer and cause the built-in Apple File Protocol (AFP) server to start. SSH opens up a lot of doors to accessing the Apple TV. Type “yes” when it asks if you want to permanently store the key. You need to get the IP address of the Apple TV from the Settings menu, once you know that, open a Terminal window from your Mac (or any OS that has ssh installed) and type: Unmount the OSBoot and Media volumes, reassemble your Apple TV, and power it on. Next, copy the ssh.plist file over, so launchd knows to start sshd on boot:Ĭp /System/Library/LaunchDaemons/ssh.plist /Volumes/OSBoot/System/Library/LaunchDaemons/ssh.plistĪlternatively, you could use the contents of the file from above to create an ssh.plist file. Step 1 – Using the Terminalįirstly, copy the sshd binary from your Mac to the AppleTV drive:Ĭp /usr/sbin/sshd /Volumes/OSBoot/usr/sbin/. In a nut shell, the ssh daemon is activated by launchd whenever an incoming connection on port 22 is detected. Using TextEdit, BBEdit, or your favorite text editor, copy and paste this text, replacing the original ssh.plist contents:Ĭlose the file and save it. You could copy the ssh.plist file from the same location in your Mac’s /System/Library/LaunchDaemons/, but for simplicity, we’ve included the contents of the plist here (if you do copy from your Mac, ensure SSH is enabled in System Preferences -> Sharing, or it won’t work – thanks to Adam Gill). Apple left a dummy plist file to throw us off the trail. If you open the Apple TV’s ssh.plist file from the LaunchDaemons directory, you’ll see why we need to replace it. In the OSBoot window, choose Go To Folder again and this time, enter /Volumes/OSBoot/System/Library/LaunchDaemons/. Now we need sshd to start when the Apple TV boots up. You now have sshd installed on your OSBoot volume. Be sure you are working to and from the respective /usr/sbin directories. Note: If you have accidentally ended up in /usr/bin instead of /usr/sbin and you accidentally copy the “ssh” file instead of “sshd”, you’ve made a big mistake and ssh will not work on your Apple TV. Your cursor will change in to the green plus sign to indicate that you are making a copy of the file. This is the same folder located on your Mac’s hard drive.įrom the Mac’s sbin folder, drag the file “sshd” to the Apple TV’s sbin folder. Open a new Finder window and do the same thing to go to a folder, this time, however, select /usr/sbin/. Type in /Volumes/OSBoot/usr/sbin/ and click Go. You’ll see something like this:įrom the Finder’s Go menu, select Go To Folder, or press Command-Shift-G. Once you have OSBoot mounted in the Finder, double click on its icon. The finder method is probably best if you aren’t sure what is going on, whereas the Terminal method is quicker if you are confident. There are 2 ways to go about this using the finder, or via the terminal. If someone would like to try using the PowerPC binary and let us know if it works, that would be great! This process assumes using an Intel Mac because the sshd binary may or may not be the same in the PowerPC version of Mac OS X we haven’t checked. Opening the Apple TV and connecting the hard drive to your Intel Mac are covered in the hard drive upgrade and elsewhere, so we’ll skip those steps and jump right to the point where you have the OSBoot and Media volumes mounted on your Mac.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |