Difference between revisions of "Idiot's Guide to Basic UNIX Commands"

From AwkwardTV
Jump to: navigation, search
(idiots guide to atv commands)
(idiots guide to atv commands)
Line 1: Line 1:
'''IDIOTS GUIDE TO SIMPLE ATV COMMANDS'''
+
IDIOTS GUIDE TO ATV COMMNADS
 +
 
  
 
'''HOW TO KILL FINDER'''
 
'''HOW TO KILL FINDER'''
Line 10: Line 11:
 
Kill 500
 
Kill 500
  
KILL FINDER VIA SCRIPT
+
''via script''
 
kill `ps ax|grep [F]inder|cut -b 2-5`
 
kill `ps ax|grep [F]inder|cut -b 2-5`
  
 +
'''HOW TO MOUNT AND UNMOUNT DMG'''
  
'''HOW TO MOUNT AND UNMOUNT DMG'''
 
 
Example:
 
Example:
 
UNMOUNT COMMAND
 
UNMOUNT COMMAND
Line 24: Line 25:
 
Mount Command
 
Mount Command
 
hdiutil mount imagename.dmg
 
hdiutil mount imagename.dmg
 +
  
 
'''HOW TO MOVE FILES AROUND'''
 
'''HOW TO MOVE FILES AROUND'''
 +
 
First run  
 
First run  
 
sudo mount -uw /
 
sudo mount -uw /
Line 32: Line 35:
  
 
Example to move:
 
Example to move:
 +
 
sudo mv /Users/frontrow/A52Codec.component /Library/Audio/Plug-Ins/Components/
 
sudo mv /Users/frontrow/A52Codec.component /Library/Audio/Plug-Ins/Components/
  
Line 41: Line 45:
  
  
'''TO START SHLIGHT'''
+
'''To start Shlight'''
 +
Example
 +
/usr/sbin/shlight //***.**.1.100/atv /Users/frontrow/Movies/share
 +
'''***make sure the /etc host file has the pc name correct***'''
  
Example
+
Host f##
/usr/sbin/shlight //***.168.***.100/atv /Users/frontrow/Movies/share
+
# Host Database
 +
#
 +
# localhost is used to configure the loopback interface
 +
# when the system is booting.  Do not change this entry.
 +
##
 +
127.0.0.1 localhost
 +
255.255.255.255 broadcasthost
 +
::1            localhost
 +
***.***.1.100 PCNAME
  
'''***make sure the /etc host file has the pc name correct***'''
+
'''TO GET A SCREEN CAPTURE OF YOUR ATV'''
  
'''TO GET A SCREEN SHOT OF YOUR ATV'''
 
 
screencapture -s filename.png
 
screencapture -s filename.png
  
'''COMMAND FOR COVERGRABBER'''
+
'''TO ACTIVATE PHP COVER ART'''
php d:\avi\covergrabber.php d:\avi All  
+
php d:\avi\covergrabber.php d:\avi All
activates the php covergrabber.php works well
 

Revision as of 02:39, 14 May 2007

IDIOTS GUIDE TO ATV COMMNADS


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

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 //***.**.1.100/atv /Users/frontrow/Movies/share ***make sure the /etc host file has the pc name correct***

Host f##

  1. Host Database
  2. localhost is used to configure the loopback interface
  3. when the system is booting. Do not change this entry.

127.0.0.1 localhost 255.255.255.255 broadcasthost

1 localhost
      • .***.1.100 PCNAME

TO GET A SCREEN CAPTURE OF YOUR ATV

screencapture -s filename.png

TO ACTIVATE PHP COVER ART php d:\avi\covergrabber.php d:\avi All