Idiot's Guide to Basic UNIX Commands

From AwkwardTV
Revision as of 02:30, 14 May 2007 by Blah (talk | contribs) (idiots guide to atv commands)
Jump to: navigation, search

IDIOTS GUIDE TO SIMPLE ATV COMMANDS

HOW TO KILL FINDER ps ax | grep finder

Example: Look for the /System/Library/CoreServices/Finder.app/Contents/Mac0 should have a number like 500

Kill 500

KILL FINDER VIA SCRIPT kill `ps ax|grep [F]inder|cut -b 2-5`


HOW TO MOUNT AND UNMOUNT DMG Example: UNMOUNT COMMAND -bash-2.05b$ hdiutil detach /Volumes/ATVFiles\ 0.1.0 "disk1" unmounted. "disk1" ejected. -bash-2.05b$

Mount Command hdiutil mount imagename.dmg

HOW TO MOVE FILES AROUND First run sudo mount -uw /

Then sudo mv /current location /future location

Example to move: sudo mv /Users/frontrow/A52Codec.component /Library/Audio/Plug-Ins/Components/

sudo mv /Users/frontrow/AC3MovieImport.component /Library/QuickTime/

sudo mv /Users/frontrow/Perian.component /Library/QuickTime/

sudo mv /Users/frontrow/ATVFiles.component /System/Library/CoreServices/Finder.app/Contents/PlugIns


TO START SHLIGHT

Example /usr/sbin/shlight //***.168.***.100/atv /Users/frontrow/Movies/share

***make sure the /etc host file has the pc name correct***

TO GET A SCREEN SHOT OF YOUR ATV screencapture -s filename.png

COMMAND FOR COVERGRABBER php d:\avi\covergrabber.php d:\avi All activates the php covergrabber.php works well