Tuesday, April 1, 2008

Idiot's Guide to Basic UNIX Commands - AwkwardTV

Idiot's Guide to Basic UNIX Commands - AwkwardTV

Idiot's Guide to Basic UNIX Commands

From AwkwardTV

Jump to: navigation, search

This is a simple list of commands needed to install applications, plugins or do some other "unixy" stuff on the AppleTV.

Contents

[hide]

[edit] Become root

sudo -s
  • sudo will ask for the current user's password, which is "frontrow".
  • type "exit" to "undo" being root.

[edit] Kill Finder.app

kill $(ps ax | grep [F]inder | cut -c 1-5)

[edit] Mount/unmount a dmg file

[edit] Unmounting

hdiutil detach /Volumes/

If that doesn't work:

hdiutil detach -Force /Volumes/

[edit] Mounting

hdiutil mount someimage.dmg

[edit] Remount your root (/) file system read/write

  • needs to be executed as root user (see above)
mount -rw /

[edit] Move files around

  • might need to have the root file system mounted in read/write mode
mv /file/you/want/to/move /target/location/

[edit] Start shlight

  • needs shlight installed
  • if problems arise, please first add the servername to /etc/hosts (see below)
/usr/sbin/shlight /// /Users/frontrow/Movies/somemountpoint

[edit] Add a host to /etc/hosts

echo -e "\t" >> /etc/hosts

[edit] Get a screen capture of your AppleTV

screencapture -s filename.png

No comments: