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

From AwkwardTV
Jump to: navigation, search
(IDIOTS GUIDE TO ATV COMMANDS)
(TO ACTIVATE SHARE USING APPLICATION)
Line 71: Line 71:
 
===TO ACTIVATE SHARE USING APPLICATION===
 
===TO ACTIVATE SHARE USING APPLICATION===
 
Create a file and type the command below. Save this file as ***.sh  
 
Create a file and type the command below. Save this file as ***.sh  
 +
 
#!/bin/bash
 
#!/bin/bash
 
/usr/sbin/shlight //192.168.1.***/atv /Users/frontrow/Movies/YADA
 
/usr/sbin/shlight //192.168.1.***/atv /Users/frontrow/Movies/YADA

Revision as of 02:34, 20 May 2007

IDIOTS GUIDE TO 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

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/yadafile\ with yada space

MOUNT COMMAND

hdiutil mount yadaimage.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/yadashare

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

Host f##

yada yada add your info at the bottom like this

1**.***.1.100 PCNAME


TO GET A SCREEN CAPTURE OF YOUR ATV

screencapture -s filename.png


TO ACTIVATE PHP COVER ART

php d:\yadashare\covergrabber.php d:\yadashare All

TO ACTIVATE SHARE USING APPLICATION

Create a file and type the command below. Save this file as ***.sh

  1. !/bin/bash

/usr/sbin/shlight //192.168.1.***/atv /Users/frontrow/Movies/YADA Once this is complete go to \Users\frontrow\Documents and edit the applist.txt with the name of your .sh It should look something like Mount Da Share,/Users/frontrow/mount.sh