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:
<html xmlns:o="urn:schemas-microsoft-com:office:office"
 
xmlns:w="urn:schemas-microsoft-com:office:word"
 
xmlns:st1="urn:schemas-microsoft-com:office:smarttags"
 
xmlns="http://www.w3.org/TR/REC-html40">
 
  
<head>
+
'''== IDIOTS GUIDE TO SIMPLE ATV COMMANDS =='''
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
 
<meta name=ProgId content=Word.Document>
 
<meta name=Generator content="Microsoft Word 10">
 
<meta name=Originator content="Microsoft Word 10">
 
<link rel=File-List
 
href="IDIOTS%20GUIDE%20TO%20SIMPLE%20ATV%20COMMANDS_files/filelist.xml">
 
<title>IDIOTS GUIDE TO SIMPLE ATV COMMANDS</title>
 
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 
name="PlaceName"/>
 
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 
name="PlaceType"/>
 
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 
name="place"/>
 
<!--[if gte mso 9]><xml>
 
<o:DocumentProperties>
 
  <o:Author>Ultra</o:Author>
 
  <o:LastAuthor>Ultra</o:LastAuthor>
 
  <o:Revision>1</o:Revision>
 
  <o:TotalTime>6</o:TotalTime>
 
  <o:Created>2007-05-14T02:22:00Z</o:Created>
 
  <o:LastSaved>2007-05-14T02:28:00Z</o:LastSaved>
 
  <o:Pages>1</o:Pages>
 
  <o:Words>182</o:Words>
 
  <o:Characters>1040</o:Characters>
 
  <o:Company>Microsoft Inc.</o:Company>
 
  <o:Lines>8</o:Lines>
 
  <o:Paragraphs>2</o:Paragraphs>
 
  <o:CharactersWithSpaces>1220</o:CharactersWithSpaces>
 
  <o:Version>10.2625</o:Version>
 
</o:DocumentProperties>
 
</xml><![endif]--><!--[if gte mso 9]><xml>
 
<w:WordDocument>
 
  <w:SpellingState>Clean</w:SpellingState>
 
  <w:GrammarState>Clean</w:GrammarState>
 
  <w:Compatibility>
 
  <w:BreakWrappedTables/>
 
  <w:SnapToGridInCell/>
 
  <w:WrapTextWithPunct/>
 
  <w:UseAsianBreakRules/>
 
  </w:Compatibility>
 
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 
</w:WordDocument>
 
</xml><![endif]--><!--[if !mso]><object
 
classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object>
 
<style>
 
st1\:*{behavior:url(#ieooui) }
 
</style>
 
<![endif]-->
 
<style>
 
<!--
 
/* Style Definitions */
 
p.MsoNormal, li.MsoNormal, div.MsoNormal
 
{mso-style-parent:"";
 
margin:0in;
 
margin-bottom:.0001pt;
 
mso-pagination:widow-orphan;
 
font-size:12.0pt;
 
font-family:"Times New Roman";
 
mso-fareast-font-family:"Times New Roman";}
 
span.SpellE
 
{mso-style-name:"";
 
mso-spl-e:yes;}
 
span.GramE
 
{mso-style-name:"";
 
mso-gram-e:yes;}
 
@page Section1
 
{size:8.5in 11.0in;
 
margin:1.0in 1.25in 1.0in 1.25in;
 
mso-header-margin:.5in;
 
mso-footer-margin:.5in;
 
mso-paper-source:0;}
 
div.Section1
 
{page:Section1;}
 
-->
 
</style>
 
<!--[if gte mso 10]>
 
<style>
 
/* Style Definitions */
 
table.MsoNormalTable
 
{mso-style-name:"Table Normal";
 
mso-tstyle-rowband-size:0;
 
mso-tstyle-colband-size:0;
 
mso-style-noshow:yes;
 
mso-style-parent:"";
 
mso-padding-alt:0in 5.4pt 0in 5.4pt;
 
mso-para-margin:0in;
 
mso-para-margin-bottom:.0001pt;
 
mso-pagination:widow-orphan;
 
font-size:10.0pt;
 
font-family:"Times New Roman";}
 
</style>
 
<![endif]-->
 
</head>
 
  
<body lang=EN-US style='tab-interval:.5in'>
+
HOW TO KILL FINDER
 +
ps ax | grep finder
  
<div class=Section1>
+
Example:
 +
Look for the /System/Library/CoreServices/Finder.app/Contents/Mac0
 +
should have a number like 500
  
<p class=MsoNormal align=center style='text-align:center'><b style='mso-bidi-font-weight:
+
Kill 500
normal'>IDIOTS GUIDE TO SIMPLE ATV COMMANDS<o:p></o:p></b></p>
 
  
<p class=MsoNormal align=center style='text-align:center'><b style='mso-bidi-font-weight:
+
KILL FINDER VIA SCRIPT
normal'><o:p>&nbsp;</o:p></b></p>
+
kill `ps ax|grep [F]inder|cut -b 2-5`
  
<p class=MsoNormal><b style='mso-bidi-font-weight:normal'>HOW TO KILL FINDER<o:p></o:p></b></p>
 
  
<p class=MsoNormal><span class=SpellE><span class=GramE>ps</span></span> ax | <span
+
HOW TO MOUNT AND UNMOUNT DMG
class=SpellE>grep</span> finder<o:p></o:p></p>
+
Example:
 +
UNMOUNT COMMAND
 +
-bash-2.05b$ hdiutil detach /Volumes/ATVFiles\ 0.1.0
 +
"disk1" unmounted.
 +
"disk1" ejected.
 +
-bash-2.05b$
  
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
+
Mount Command
 +
hdiutil mount imagename.dmg
  
<p class=MsoNormal>Example:<o:p></o:p></p>
+
HOW TO MOVE FILES AROUND
 +
First run
 +
sudo mount -uw /
  
<p class=MsoNormal>Look for the
+
Then sudo mv /current location /future location
/System/Library/CoreServices/Finder.app/Contents/Mac0<o:p></o:p></p>
 
  
<p class=MsoNormal><span class=GramE>should</span> have a number like 500<o:p></o:p></p>
+
Example to move:
 +
sudo mv /Users/frontrow/A52Codec.component /Library/Audio/Plug-Ins/Components/
  
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
+
sudo mv /Users/frontrow/AC3MovieImport.component /Library/QuickTime/
  
<p class=MsoNormal>Kill 500<o:p></o:p></p>
+
sudo mv /Users/frontrow/Perian.component /Library/QuickTime/
  
<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><o:p>&nbsp;</o:p></b></p>
+
sudo mv /Users/frontrow/ATVFiles.component /System/Library/CoreServices/Finder.app/Contents/PlugIns
  
<p class=MsoNormal><b style='mso-bidi-font-weight:normal'>KILL FINDER VIA
 
SCRIPT<o:p></o:p></b></p>
 
  
<p class=MsoNormal><span class=GramE>kill</span> `<span class=SpellE>ps</span> <span
+
== TO START SHLIGHT ==
class=SpellE>ax|grep</span> [F]<span class=SpellE>inder|cut</span> -b 2-5`<o:p></o:p></p>
 
  
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
+
Example
  
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
+
/usr/sbin/shlight //***.168.***.100/atv /Users/frontrow/Movies/share
  
<p class=MsoNormal><b style='mso-bidi-font-weight:normal'>HOW TO MOUNT AND
+
***make sure the /etc host file has the pc name correct***
UNMOUNT DMG<o:p></o:p></b></p>
 
  
<p class=MsoNormal>Example:<o:p></o:p></p>
+
TO GET A SCREEN SHOT OF YOUR ATV
 +
screencapture -s filename.png
  
<p class=MsoNormal>UNMOUNT COMMAND<o:p></o:p></p>
+
COMMAND FOR COVERGRABBER
 
+
php d:\avi\covergrabber.php d:\avi All  
<p class=MsoNormal>-<span class=GramE>bash-</span>2.05b$ <span class=SpellE>hdiutil</span>
+
activates the php covergrabber.php works well
detach /Volumes/<span class=SpellE>ATVFiles</span>\ 0.1.0<o:p></o:p></p>
 
 
 
<p class=MsoNormal>&quot;disk1&quot; <span class=SpellE>unmounted</span>.<o:p></o:p></p>
 
 
 
<p class=MsoNormal>&quot;disk1&quot; ejected.<o:p></o:p></p>
 
 
 
<p class=MsoNormal>-<span class=GramE>bash-</span>2.05b$<o:p></o:p></p>
 
 
 
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
 
 
 
<p class=MsoNormal><st1:place><st1:PlaceType>Mount</st1:PlaceType> <st1:PlaceName>Command</st1:PlaceName></st1:place><o:p></o:p></p>
 
 
 
<p class=MsoNormal><span class=SpellE><span class=GramE>hdiutil</span></span>
 
mount <span class=SpellE>imagename.dmg</span><o:p></o:p></p>
 
 
 
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
 
 
 
<p class=MsoNormal><b style='mso-bidi-font-weight:normal'>HOW TO MOVE FILES
 
AROUND<o:p></o:p></b></p>
 
 
 
<p class=MsoNormal>First run <o:p></o:p></p>
 
 
 
<p class=MsoNormal><span class=SpellE><span class=GramE>sudo</span></span>
 
mount -<span class=SpellE>uw</span> /<o:p></o:p></p>
 
 
 
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
 
 
 
<p class=MsoNormal>Then <span class=SpellE>sudo</span> <span class=SpellE>mv</span>
 
/current location /future location<o:p></o:p></p>
 
 
 
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
 
 
 
<p class=MsoNormal>Example to move:<o:p></o:p></p>
 
 
 
<p class=MsoNormal><span class=SpellE><span class=GramE>sudo</span></span> <span
 
class=SpellE>mv</span> /Users/frontrow/A52Codec.component
 
/Library/Audio/Plug-Ins/Components/<o:p></o:p></p>
 
 
 
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
 
 
 
<p class=MsoNormal><span class=SpellE><span class=GramE>sudo</span></span> <span
 
class=SpellE>mv</span> /Users/frontrow/AC3MovieImport.component
 
/Library/QuickTime/<o:p></o:p></p>
 
 
 
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
 
 
 
<p class=MsoNormal><span class=SpellE><span class=GramE>sudo</span></span> <span
 
class=SpellE>mv</span> /Users/<span class=SpellE>frontrow/Perian.component</span>
 
/Library/QuickTime/<o:p></o:p></p>
 
 
 
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
 
 
 
<p class=MsoNormal><span class=SpellE><span class=GramE>sudo</span></span> <span
 
class=SpellE>mv</span> /Users/<span class=SpellE>frontrow/ATVFiles.component</span>
 
/System/Library/<span class=SpellE>CoreServices/Finder.app/Contents/PlugIns</span><o:p></o:p></p>
 
 
 
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
 
 
 
<p class=MsoNormal><b style='mso-bidi-font-weight:normal'>TO START SHLIGHT<o:p></o:p></b></p>
 
 
 
<p class=MsoNormal>Example<o:p></o:p></p>
 
 
 
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
 
 
 
<p class=MsoNormal>/<span class=SpellE>usr/sbin/shlight</span> //***.168.***.100/atv
 
/Users/<span class=SpellE>frontrow</span>/Movies/share<o:p></o:p></p>
 
 
 
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
 
 
 
<p class=MsoNormal>***make sure the /etc host file has the pc name correct***<o:p></o:p></p>
 
 
 
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
 
 
 
<p class=MsoNormal><b style='mso-bidi-font-weight:normal'>TO GET A SCREEN SHOT
 
OF YOUR ATV <o:p></o:p></b></p>
 
 
 
<p class=MsoNormal><span class=SpellE><span class=GramE>screencapture</span></span>
 
-s <span class=SpellE>filename.png</span><o:p></o:p></p>
 
 
 
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
 
 
 
<p class=MsoNormal><b style='mso-bidi-font-weight:normal'>COMMAND FOR
 
COVERGRABBER<o:p></o:p></b></p>
 
 
 
<p class=MsoNormal><span class=SpellE><span class=GramE>php</span></span>
 
d:\avi\covergrabber.php d:\avi All <o:p></o:p></p>
 
 
 
<p class=MsoNormal><span class=GramE>activates</span> the <span class=SpellE>php</span>
 
<span class=SpellE>covergrabber.php</span> works well</p>
 
 
 
</div>
 
 
 
</body>
 
 
 
</html>
 

Revision as of 02:28, 14 May 2007

== 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