PageRenderTime 61ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 1ms

/linkedfs/usr/share/doc/helpdocs.htm

https://bitbucket.org/harakiri/trk
HTML | 3436 lines | 3329 code | 52 blank | 55 comment | 0 complexity | 4c2861db8a40a8cae313c8b03843871c MD5 | raw file
Possible License(s): GPL-2.0, MIT, LGPL-3.0

Large files files are truncated, but you can click here to view the full file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html><head>
  3. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  4. <title>Trinity Rescue Kit | CPR for your computer | Trinityhome | </title>
  5. <style type="text/css">
  6. /* ========================================================*/
  7. /* Vision.To CMS / www.vision.to */
  8. /* SPECIAL CSS PRINT STYLE BY www.vision.to */
  9. /* ========================================================*/
  10. body {
  11. text-align: left; /* IE Only */
  12. margin: 0;padding: 0;
  13. color: #000;
  14. font-family: Georgia, "Times New Roman", Times, serif;
  15. font-size: 12pt;
  16. }
  17. /*---------------------------------------------------------------*/
  18. #print-wrapper {
  19. margin-top:0;
  20. padding: 2px;
  21. margin-left: 0;
  22. margin-right: auto;
  23. width: 600px;
  24. min-width:598px;
  25. border: 1px none #ddd;
  26. text-align: left;
  27. background:#fff;
  28. color:#000;
  29. }
  30. }
  31. /*---------------------------------------------------------------*/
  32. #print-header {
  33. /*clear: both;*/
  34. border-bottom: 1px solid #ddd;
  35. padding: 0.5em;
  36. margin-bottom: 2px;
  37. }
  38. /*---------------------------------------------------------------*/
  39. #print-content {
  40. /*float: left;*/
  41. width: 100%;
  42. position: relative;
  43. /*
  44. margin-left: auto;
  45. margin-right: auto;
  46. */
  47. text-align: left;
  48. color:#000;
  49. padding: 0.5em;
  50. min-height:650px;
  51. height:expression(this.scrollHeight > 650 ? "auto":"650px");
  52. }
  53. /*---------------------------------------------------------------*/
  54. #print-footer {
  55. text-align: center;
  56. color: #000;
  57. margin-top: 2px;
  58. padding: 0.5em;
  59. /* line-height: 1.2em; */
  60. clear: both;
  61. border-top: 1px solid #ddd;
  62. }
  63. .brclear {
  64. /* Use a break with this class to clear float containers- Thank You Big John :-) positioniseverything.net */
  65. clear:both;
  66. height:0;
  67. margin:0;
  68. font-size: 1px;
  69. line-height: 0;
  70. }
  71. </style>
  72. <meta content="text/html; charset=UTF-8" http-equiv="CONTENT-TYPE"><title></title><meta content="OpenOffice.org 3.1 (Unix)" name="GENERATOR"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)"><meta content="text/html; charset=UTF-8" http-equiv="CONTENT-TYPE"><title></title><meta content="OpenOffice.org 3.1 (Unix)" name="GENERATOR"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"><meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"><meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"><meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)"><meta content="text/html; charset=UTF-8" http-equiv="CONTENT-TYPE"><title></title><meta content="OpenOffice.org 3.1 (Unix)" name="GENERATOR"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)"><meta content="text/html; charset=UTF-8" http-equiv="CONTENT-TYPE"><title></title><meta content="OpenOffice.org 3.1 (Unix)" name="GENERATOR"><meta content="text/html; charset=UTF-8" http-equiv="CONTENT-TYPE"><title></title><meta content="OpenOffice.org 3.1 (Unix)" name="GENERATOR"><meta content="text/html; charset=UTF-8" http-equiv="CONTENT-TYPE"><title></title><meta content="OpenOffice.org 3.1 (Unix)" name="GENERATOR"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)"><meta content="text/html; charset=UTF-8" http-equiv="CONTENT-TYPE"><title></title><meta content="OpenOffice.org 3.1 (Unix)" name="GENERATOR"><meta content="text/html; charset=UTF-8" http-equiv="CONTENT-TYPE"><title></title><meta content="OpenOffice.org 3.1 (Unix)" name="GENERATOR"><meta content="text/html; charset=UTF-8" http-equiv="CONTENT-TYPE"><title></title><meta content="OpenOffice.org 3.1 (Unix)" name="GENERATOR"><meta content="text/html; charset=UTF-8" http-equiv="CONTENT-TYPE"><title></title><meta content="OpenOffice.org 3.1 (Unix)" name="GENERATOR"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)"><meta content="text/html; charset=UTF-8" http-equiv="CONTENT-TYPE"><title></title><meta content="OpenOffice.org 3.1 (Unix)" name="GENERATOR"><meta content="text/html; charset=UTF-8" http-equiv="CONTENT-TYPE"><title></title><meta content="OpenOffice.org 3.1 (Unix)" name="GENERATOR"><meta content="text/html; charset=UTF-8" http-equiv="CONTENT-TYPE"><title></title><meta content="OpenOffice.org 3.1 (Unix)" name="GENERATOR"><meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 3.1 (Unix)"><meta content="text/html; charset=UTF-8" http-equiv="CONTENT-TYPE"><title></title><meta content="OpenOffice.org 3.1 (Unix)" name="GENERATOR"><meta content="text/html; charset=UTF-8" http-equiv="CONTENT-TYPE"><title></title><meta content="OpenOffice.org 3.1 (Unix)" name="GENERATOR"></head><body>
  73. <div id="print-wrapper">
  74. <div id="print-header">
  75. <h1><img src="helpdocs_files/200610190000370.gif" alt="image" class="BartsCmsImage" height="135" width="140"> Trinityhome</h1>
  76. </div>
  77. <div id="print-content">
  78. <div id="page-container" class="page-container"><!-- open page-container -->
  79. <h1 class="page-title">Trinity Rescue Kit | CPR for your computer</h1>
  80. <div class="page-content">
  81. <a href="#K94N78PT0VFVLYYDHBV9JJ0N7EUA3RSDQMRNK66BSCW41">Getting started with TRK</a><br><a href="#E3JEBK6FCRUYGL65MT9YXJBJ20Z7EK5IEFNFQKKS25G8H">0. Quick and dirty guide to using TRK</a><br><a href="#841YA21RBZPBCRPIQGT0BYCFWYCIELPDGF1G8SY9GCAJU">0.1 The easiest way to get it onto a CD: a self burning TRK</a><br><a href="#YUU68L1SK1TXA04XDZX4MPPJJXTUJZP8J95IKX0WNJIN9">0.2 Burning TRK with Magiciso</a><br><a href="#NDQL3ZBZYMUVVWYN4348DUF9650TV0083FKX5LMUY6EJS">0.3 Booting from TRK</a><br><a href="#BL8Q8FN81J34KW4EMG9IHTQJZ2L5J22LD02C6FAXQ4S0Q">0.4 Resetting passwords</a><br><a href="#48H6PKLBPTE32K9P95Q4T4MADLMZA6W5431IEDKTWQLN0">1. TRK for Linux newbies</a><br><a href="#2FK5NB4F87EHQWYKAJWGIQZLFA53HWY9185EAZJ9XPGCA">1.1 What is TRK? What 's a live distribution?</a><br><a href="#BVJ9IR04WMV4XH1MSM34S6T8MGH4JW8KHHKQYBKKN6FBD">1.2 What is different between accessing your PC from Windows and accessing from TRK?</a><br><a href="#WQKZJKT0E8QJQM9HJZ4WTYKI5DK0ZDBLUMB3YUU2S9B7M">1.3 Getting around with common linux commands (cd, cp, mv, rm, more, grep, mount)</a><br><a href="#M69SKN1KBY3NSX3XG2DPJ306MHH6EL0SIZ9UD05EPYT7K">1.4 Reading information about your PC (dmesg, /proc/partitions)</a><br><a href="#QBRDPTSD001QIT0CN3AHZ75WRJKLINJYQ024JJ8A9ZQIH">2. TRK own commands and utils</a><br><a href="#XFPUBF4W6TFSCHXH5RXKMFAR0BVLGLR3S6NTBHF71KQ3T">2.1 Virusscan</a><br><a href="#HW79FF1ZME1FBEY6DVXDG60JAJVNKK6T64SB9I0MMSSPW">2.2 Winpass and regedit</a><br><a href="#SI14T7V9WN984HEA7MUC0E8RMGDSNVN63F0LCLKYZKWTS">2.3 Mass Clone: a multicast disk cloning tool</a><br><a href="#VZX1W3W6015LZRZ127YCKFJS9LX59AAU0YKLR6IHYETNW">2.4 Winclean</a><br><a href="#TTVJRRE5QQRJBVB2F61R719J0CHFRFVAZGJFXPBD4SM6D">2.5 Mountallfs</a><br><a href="#HH1WPPJEI4DHJTAHXPSYR3637JMCUVX22NNH2YLBSPI18">2.6 Updatetrk</a><br><a href="#DNEHBFA6ISQPQUF15A9HX1XVYX82E8LIMQQNVRJ480INJ">2.7 Trk2usb</a><br><a href="#WM8PAWXULFITSRN0X6I1YVCLB9IA41FQDD5E0TYBZ7VGP">2.8 Trk2iso</a><br><a href="#EGNT0M1F9DJ7XUB34LIEU8DXZVGDWEW0K9IAMAFLDQJ09">2.9 Fileserver</a><br><a href="#20T4DLR6P2JZL5SVUKVM5FB7MQPKJQUCFC6INMF3FQSSK">2.10 Bridge</a><br><a href="#PSTEW6D05PZF2FK7VHGLCYWQZWP8T538NMCAJF0FVPLMV">2.11 Setip</a><br><a href="#WU8QP3M0YGLR9XQ8V4MW69X4SZF6ZM1L701LTECHLNZLB">2.12 Setproxy</a><br><a href="#C3E9S86L5Q2DV4J2X7FRSW3NCGQ426N40T3HR0UMGLR1F">2.19 Ntfsundeleteall</a><br><a href="#MFRIGTQ75RPR5IIC4TXNKUF95JATHDEUIV3PEIMA01RV9">2.13 Getswap</a><br><a href="#U49HULJB0RZJRSQX054MZS1LH8P05M7QG7X0I628MRH48">2.14 Trinisup</a><br><a href="#FKJT61FZ5GVCPWKXWTXSLUF6CQM3YVP36YM2QSRKZCNEY">2.15 Pi - automated backup wrapper script originally for Partition Image</a><br><a href="#3HU5ZWWY8SYP7AEGNHT9CEDCSWG7RQEJXZELK1AJJYYGZ">2.20 Clonexp (obsoleted by mclone)</a><br><a href="#4WP777Y6KKDSK5E2140SK6QED0J74GSY26W03JWEV0X5V">3. Procedures</a><br><a href="#LIAT4IG4QYXT3EP1K2EVX276MK95G33SC3B7CH1S6NBZT">3.1 Rescueing files of dying harddiscs (mounting network =&gt; cp, ddrescue)</a><br><a href="#QVQWIA3HK45X8M47KB6N7V5KDDAWB7HSSYD1Y78814V0G">3.2 Recovering deleted files or files from formatted drives (ntfsundeleteall, photorec)</a><br><a href="#7PFVZK0Q4R5TZMDJ351RJA8VHEBE66K4KQP91EPVWKEKX">3.3 Recovering lost partitions (testdisk, gpart, fdisk)</a><br><a href="#L5ICUK4HDV6QAJA1ISR37W4DEYAHUY95TI8CT3KXNHCPR">3.4 Bootsector repair</a><br><a href="#UHPDX3JS857PC91QX5QDU7JHMFX9NFZ8NECA7MT6HQKJQ">3.5 Manually cloning a Windows installation</a><br><a href="#JVI22F4QK5AFSUR3MHQC9ZW33AWHWA05W9XNES3PN4V5N">3.6 Hardware testing</a><br><a href="#4PL88HNFBZGXK7BHVL44UCJIPXXUD8I7MU5L2JR38YRJW">3.7 Virus scanning</a><br><a href="#AKDLI8WEFV4L96NMKIKSXE2ZQWDFRHLSTQ42PQ6UB16AX">3.8 Manual PC cleaning</a><br><a href="#ZTZJTNZS1Z028YDFIX59T2IQNHU57JDW236KHV38JU1IH">4. Boot time options and triggers</a><br><a href="#Z034WGIXRNSS0HJZYHKU5ED0RRGXKGQA7I4TQDF6RYPH6">4.1 Boot menu options</a><br><a href="#EUGBVSAKSIDQ4SSW21D1CDTZC5RKS0DXKJY51ZFJ7J022">4.2 Triggers</a><br><a href="#9PAH415576DS0RB2Z5DH8AQ1XFD42G21V39QU4LS1P9S6">4.2.1 The TRK options server: make your lan TRK aware</a><br><a href="#CA4YM8MPTJ078B4RZR3V7NZDL7WUM33Q4XDGWQVE0KCZM">4.2.2 Scripts on the computer's local harddisks</a><br><a href="#B8MI3TRVGJ2SY2XHN562I89WYSUF20I4ZWCSETDL364RY">4.2.3 Script on the TRK medium</a><br><a href="#SMFWK0I2J980KIYM9IK3CSPF1J06UQ3C29YDZ75874YID">5. Upgrade, update and change of bootmedia procedures</a><br><a href="#VCMNDG08JQ9JED3YXFLITGXVHLRRQIXBL9PPFEMQUMZZR">5.1 TRK on CD</a><br><a href="#FIRS44G0F6QRJDGPU467B1R5DHKC3QV9ZCRU6XJBUZS43">5.2 How to install/upgrade your USB media to run the latest version of TRK</a><br><a href="#DJQBVW3TV8F9F6T9P2QZJ9WFCCVH0HU3SA5CWYWHX2G2Z">5.3 Setting up your PXE boot environment</a><br><a name="K94N78PT0VFVLYYDHBV9JJ0N7EUA3RSDQMRNK66BSCW41" &nbsp;="" id="K94N78PT0VFVLYYDHBV9JJ0N7EUA3RSDQMRNK66BSCW41"></a><h1>Getting started with TRK</h1><h2><span style="font-size: 10pt; font-family: Arial;"><o:p></o:p></span>Foreword and conventions of this documentation:</h2>
  82. <h3>Consulting help</h3>
  83. <p>-Trinity Rescue Kit 3.4 has manpages for almost every utility, even
  84. the ones specific to TRK (new since 3.4). So if you need help on a
  85. certain command, like f.i. Winpass, just type 'man winpass' at the
  86. commandline. All manpages themselves are always online available at
  87. http://trinityhome.org/manpages</p>
  88. <p>-This helppage is also available as a single document locally on the TRK medium. <strong>You can call on this documentation as one big page from TRK by typing 'trkhelp'</strong>
  89. at the command prompt (or chosen from the startup menu). This will
  90. start the builtin Links browser in graphical mode opening all of the
  91. documentation at once. To be able to switch between this help and your
  92. commandprompt, you must be in text mode</p>
  93. <p>Most commands also have a built-in help. Most of the time 'command -h' or 'command –help' will help you a lot further.</p>
  94. <p><br>
  95. Use the key "q" to quit links and type 'trkhelp -t' to run in text
  96. mode. Once in textmode, use alt+F2 to go the second console of TRK. In
  97. total there are 6 consoles, each switchable with their respective alt+
  98. function key.<br>
  99. If you are not online, you can consult the local documentation which is on the TRK medium by entering 'trkhelp -l'. <br>
  100. You can combine these two parameters: 'trkhelp -l -t' gets you the local helpfiles in textmode.</p>
  101. <p>-All TRK&nbsp;manpages are also available online in html format.&nbsp;Browse them here: <a href="http://trinityhome.org/manpages/">http://trinityhome.org/manpages/</a></p>
  102. <h3>&nbsp;<br>
  103. Conventions</h3>
  104. <p>-literal commands that you can execute in TRK or Linux are put
  105. between 'single quotes'. Omit the quotes when using the real
  106. commandline. Exceptions on these quotes will be mentionned (when single
  107. quotes really appear in the command).<br>
  108. <br>
  109. -"double quotes" are used to emphasise words, unless they are used inside commands.<br>
  110. <br>
  111. -&lt;trkmedium&gt; stands for the rootfolder of the medium on which TRK
  112. runs. TRK can be run from CD, usb stick/disk, fixed harddisk or from
  113. network over PXE. These specific bootmethods will be explained later in
  114. this document.<br>
  115. <br>
  116. -this documentation is intended for people who at least have some
  117. experience with computer troubleshooting or know how to install their
  118. own Windows. If you have absolutely no idea of this, I recommend you
  119. call someone who knows more.</p>
  120. <p>&nbsp;</p><br><a name="E3JEBK6FCRUYGL65MT9YXJBJ20Z7EK5IEFNFQKKS25G8H" &nbsp;="" id="E3JEBK6FCRUYGL65MT9YXJBJ20Z7EK5IEFNFQKKS25G8H"></a><h1>0. Quick and dirty guide to using TRK</h1><p>This
  121. page is intended for the really impatient who are passing by here and
  122. probably just want to reset a password in Windows. The procedures
  123. assume you are using MS&nbsp;Windows.</p>
  124. <p>I'll make sure I don't type too much text for you to read.</p>
  125. <h2>In short...</h2>
  126. <p>TRK&nbsp;is not a software you install on your computer in Windows
  127. but rather a completely independent operating system based on Linux and
  128. which runs from CD (or USB stick or network).</p>
  129. <p>To get the latest version of TRK, go to the download page or download the latest copy here.</p>
  130. <p>The quickest way to get you running TRK is to download and run the self-burning TRK&nbsp;version.</p>
  131. <p>If you want to see how the self burning of TRK&nbsp;is done, see the page on <a href="https://trinityhome.org/Home/index.php?content=0.1_THE_EASIEST_WAY_TO_GET_IT_ONTO_A_CD_A_SELF_BURNING_TRK&amp;front_id=19&amp;lang=en&amp;locale=en">0.1&nbsp;Self burning TRK</a></p>
  132. <p>Should you want to burn the iso with a 3rd party software called magiciso, see <a href="https://trinityhome.org/Home/index.php?content=0.2_BURNING_TRK_WITH_MAGICISO&amp;front_id=19&amp;lang=en&amp;locale=en">0.2&nbsp;Burning TRK&nbsp;with Magiciso</a></p>
  133. <p>For booting from TRK, see <a href="https://trinityhome.org/Home/index.php?content=0.3_BOOTING_FROM_TRK&amp;front_id=19&amp;lang=en&amp;locale=en">0.3&nbsp;Booting from TRK</a></p>
  134. <p>For password resetting, see <a href="https://trinityhome.org/Home/index.php?content=0.4_RESETTING_PASSWORDS&amp;front_id=19&amp;lang=en&amp;locale=en">0.4 Resetting passwords</a></p>
  135. <p>If you know how to burn an isofile, skip section 0.1 and 0.2.</p>
  136. <p>If you know how to boot from CD, skip section 0.3</p>
  137. <p>For password resets, you can equally skip section 0.4 because
  138. TRK&nbsp;3.4 now has a simple menu from which you can select whatever
  139. you need to do.</p>
  140. <p>&nbsp;</p><br><a name="841YA21RBZPBCRPIQGT0BYCFWYCIELPDGF1G8SY9GCAJU" &nbsp;="" id="841YA21RBZPBCRPIQGT0BYCFWYCIELPDGF1G8SY9GCAJU"></a><h1>0.1 The easiest way to get it onto a CD: a self burning TRK</h1><p>-Download and save the latest copy of the self-burning TRK, e.g. "trinity-rescue-kit.3.4-build-366.exe"</p>
  141. <p>-Doubleclick on "trinity-rescue-kit.3.4-build-366.exe"</p>
  142. <p>Now see the screenshots</p>
  143. <p>&nbsp;Ok, you've put your blank CD&nbsp;in the tray, now answer yes
  144. and see all of the next screens pass by.&nbsp;There 's no more work for
  145. you on the burning part!</p>
  146. <p><img src="helpdocs_files/10-selfburn-trk.jpg" alt="" height="138" hspace="5" vspace="5" width="587"></p>
  147. <p><img src="helpdocs_files/11-selfburn-trk.jpg" alt="" hspace="5" vspace="5"></p>
  148. <p>&nbsp;</p>
  149. <p><img src="helpdocs_files/12-selfburn-trk.jpg" alt="" hspace="5" vspace="5"></p>
  150. <p>&nbsp;</p>
  151. <p><img src="helpdocs_files/13-selfburn-trk.jpg" alt="" hspace="5" vspace="5"></p>
  152. <p>&nbsp;</p>
  153. <p><img src="helpdocs_files/14-selfburn-trk.jpg" alt="" hspace="5" vspace="5"></p>
  154. <p>&nbsp;...and that 's it, now boot from it.</p><br><a name="YUU68L1SK1TXA04XDZX4MPPJJXTUJZP8J95IKX0WNJIN9" &nbsp;="" id="YUU68L1SK1TXA04XDZX4MPPJJXTUJZP8J95IKX0WNJIN9"></a><h1>0.2 Burning TRK with Magiciso</h1><p>There
  155. are many other programs that can burn ISO files to a CD. Magiciso is
  156. just used as an example because it's one of the most easy to
  157. use.&nbsp;An alternative might be the very lightweight <a href="http://www.terabyteunlimited.com/downloads-free-software.htm">BurnCDCC</a> or another free and full blown CD writer is <a href="http://cdburnerxp.se/">CD&nbsp;Burner XP</a>.<br>
  158. Users from Windows 7 can just burn an ISO&nbsp;to disk without installing any additional software.</p>
  159. <p>Remember that to install programs or run the self burning TRK, you have to be an administrator of your local computer.</p>
  160. <p>The screenshots speak for themselves</p>
  161. <p>1<br>
  162. <img alt="" src="helpdocs_files/01-wwwmagicisocom.jpg" hspace="2" vspace="2"></p>
  163. <p>2<br>
  164. <img alt="" src="helpdocs_files/02-wwwmagicisocom.jpg" hspace="2" vspace="2"></p>
  165. <p>3<br>
  166. <img alt="" src="helpdocs_files/03-mi-disclaimer.jpg" hspace="2" vspace="2"></p>
  167. <p>4<br>
  168. <img alt="" src="helpdocs_files/04-burn1.jpg" hspace="2" vspace="2"></p>
  169. <p>5<br>
  170. <img alt="" src="helpdocs_files/05-open-file.jpg" hspace="2" vspace="2"></p>
  171. <p>6<br>
  172. <img alt="" src="helpdocs_files/06-burn2.jpg" hspace="2" vspace="2"></p>
  173. <p>7<br>
  174. <img alt="" src="helpdocs_files/07-burn3.jpg" hspace="2" vspace="2"></p>
  175. <p>8<br>
  176. <img alt="" src="helpdocs_files/07-burn4.jpg" hspace="2" vspace="2"></p><br><a name="NDQL3ZBZYMUVVWYN4348DUF9650TV0083FKX5LMUY6EJS" &nbsp;="" id="NDQL3ZBZYMUVVWYN4348DUF9650TV0083FKX5LMUY6EJS"></a><h1>0.3 Booting from TRK</h1><p>To
  177. be able to boot from TRK, I&nbsp;can give you a few tips, but there is
  178. never 1 uniform way on how to do it because every computer is different
  179. and every brand has different shortcut keys.</p>
  180. <p>In many cases, the fact that the CD with TRK&nbsp;is in your CD tray
  181. when you boot your computer might be enough to get it booting from it.</p>
  182. <p>In other cases, you get the option to select the bootdevice at
  183. startup. Depending on the brand, this might be with any different
  184. function key or even "esc" and "enter".&nbsp;Most of the time, the
  185. power on screen tells you what key to press.</p>
  186. <p>Ultimately you must set the bootsequence in the bios of the
  187. computer.&nbsp;The bios is basic configuration of a computer before
  188. even any operating system or software has been started.</p>
  189. <p>Here 's a few screenshots I've taken from VMWare, which basically behaves like any other physical computer.</p>
  190. <p>Here 's the initial bootsplash which lasts only a few seconds. <br>
  191. <img src="helpdocs_files/bootsplash-vmware.png" alt="" height="480" hspace="5" vspace="5" width="640"><br>
  192. The text speaks for itself. </p>
  193. <p>Hitting "esc" is enough to select a temporary bootdevice. <br>
  194. <img src="helpdocs_files/bootselection-vmware.png" alt="" height="418" hspace="5" vspace="5" width="546"></p>
  195. <p>Alternatively if you hit F2, you can go into the bios and set the
  196. bootsequence permanently.&nbsp;Remember that in that case when you have
  197. a bootable CD in your tray, your PC&nbsp;will always boot from
  198. that.&nbsp;It will also make startup slower because it will first look
  199. for a cd and its bootability.<br>
  200. <img src="helpdocs_files/bios-boot-vmware.png" alt="" height="480" hspace="5" vspace="5" width="640"></p>
  201. <p>Now this is only an example for VMWare.&nbsp;Any other computer is
  202. different in the fact that it can be any of the other function keys you
  203. need to press to enter the bios or choose a bootdevice.&nbsp;Read the
  204. text from the splash screen.</p>
  205. <p>To get a better explanation on setting the bootsequence, take a look at the documentation done for Hiren's Bootcd:</p>
  206. <p>
  207. <style type="text/css">
  208. <!--
  209. @page { margin: 0.79in }
  210. P { margin-bottom: 0.08in }
  211. A:link { so-language: zxx }
  212. -->
  213. </style>
  214. </p>
  215. <p><a href="http://www.hiren.info/pages/bios-boot-cdrom">http://www.hiren.info/pages/bios-boot-cdrom</a></p>
  216. <p>&nbsp;</p><br><a name="BL8Q8FN81J34KW4EMG9IHTQJZ2L5J22LD02C6FAXQ4S0Q" &nbsp;="" id="BL8Q8FN81J34KW4EMG9IHTQJZ2L5J22LD02C6FAXQ4S0Q"></a><h1>0.4 Resetting passwords</h1><p>Once
  217. you 've managed to burn TRK&nbsp;to CD and set the right bootsequence,
  218. you can start doing stuff with it, like resetting the password (that's
  219. what you came here for didn't you?).</p>
  220. <p>See this little <a href="https://trinityhome.org/Files/trk-screenshots/video/trk-winpass-howto-01.avi">movie</a> which runs you through it from A to Z and do some further reading on the <a href="https://trinityhome.org/Home/index.php?content=3922.2_WINPASS_AND_REGEDIT&amp;front_id=19&amp;lang=en&amp;locale=en">usage of winpass.</a></p>
  221. <p>You will notice that once you started TRK, the simple menu that you get is self explanatory.</p>
  222. <p>&nbsp;</p><br><a name="48H6PKLBPTE32K9P95Q4T4MADLMZA6W5431IEDKTWQLN0" &nbsp;="" id="48H6PKLBPTE32K9P95Q4T4MADLMZA6W5431IEDKTWQLN0"></a><h1>1. TRK for Linux newbies</h1><p>This
  223. section gives a quick introduction about the concepts of Linux, a live
  224. distribution and how you should see and control your computer from the
  225. viewpoint of TRK</p><br><a name="2FK5NB4F87EHQWYKAJWGIQZLFA53HWY9185EAZJ9XPGCA" &nbsp;="" id="2FK5NB4F87EHQWYKAJWGIQZLFA53HWY9185EAZJ9XPGCA"></a><h1>1.1 What is TRK? What 's a live distribution?</h1><p>
  226. <style type="text/css">
  227. <!--
  228. @page { margin: 0.79in }
  229. P { margin-bottom: 0.08in }
  230. H1 { margin-bottom: 0.08in }
  231. H1.western { font-family: "Times New Roman", serif }
  232. H1.cjk { font-family: "Bitstream Vera Sans" }
  233. H1.ctl { font-family: "Bitstream Vera Sans" }
  234. -->
  235. </style>
  236. </p>
  237. <p>This is a definition for people that have absolutely no idea of what
  238. an operating system means. If you don 't understand what I just said,
  239. you need to read the following text. The people who do know what it all
  240. means, might take the following definition as incorrect, but that 's
  241. just so I can explain in simple language what I mean.<br>
  242. <br>
  243. Trinity Rescue Kit" or <strong>TRK is a collection of programs that can start a computer in an alternate way if it failed to start normally.<br>
  244. </strong><br>
  245. TRK is a so called "live distribution" of Linux. Linux is in fact the
  246. "brain" and "the senses" that drives your computer, all the programs
  247. are the limbs that allow you to control it. All this put together make
  248. up a so called operating system. Because of confusion in terminology
  249. and because of the so many flavors, we talk about Linux being the
  250. operating system and what makes it complete with programs is called the
  251. distribution. And as for distributions, a lot of flavors exist
  252. (hundreds, maybe even thousands). One of these flavors is Trinity
  253. Rescue Kit. TRK is a "live" distribution because it can boot from
  254. removable media, perform hardware detection on-the-fly and automate as
  255. many configuration tasks as possible.<br>
  256. <br>
  257. TRK operates completely from RAM (= compare this with the short term
  258. memory of your brain) and read-only media. This means also it doesn t
  259. touch nor change anything stored on your computer until you tell it to
  260. do so. Another implication this will have is that by starting your
  261. computer with Trinity Rescue Kit you have the guarantee that no viruses
  262. that might be on your local computer can become active. In the case of
  263. your computer running Microsoft Windows in normal circumstances, it
  264. just is impossibe by design that a windows virus can run on TRK because
  265. TRK is Linux.<br>
  266. <br>
  267. You have the possibility of using 5 different antivirus scanners with
  268. TRK (current version of this writing: 3.4). One of them, the free open
  269. source Clamav is integrated in the distribution, the other 4, F-prot,
  270. Bitdefender Vexira and Avast get downloaded from the Internet when
  271. launched. For Avast you need a free license key handy, for which you
  272. need to<a href="http://www.avast.com/registration-free-antivirus.php"> register on their site</a>.<br>
  273. <br>
  274. More on what TRK is can be read on the frontpage</p>
  275. <h1 class="western"><br>
  276. &nbsp;</h1>
  277. <p>&nbsp;</p><br><a name="BVJ9IR04WMV4XH1MSM34S6T8MGH4JW8KHHKQYBKKN6FBD" &nbsp;="" id="BVJ9IR04WMV4XH1MSM34S6T8MGH4JW8KHHKQYBKKN6FBD"></a><h1>1.2 What is different between accessing your PC from Windows and accessing from TRK?</h1><p>
  278. <style type="text/css">
  279. <!--
  280. @page { margin: 0.79in }
  281. P { margin-bottom: 0.08in }
  282. -->
  283. </style>Instead
  284. of running programs on your computer using Windows, you are now
  285. starting your computer with something completely different. Trinity
  286. Rescue Kit is not designed to give you the same environment you get
  287. normally, but to provide you the means and the utilities to perform
  288. rescue and repair operations that might not be (anymore) possible on
  289. your computer in normal Windows operation mode.<br>
  290. <br>
  291. Because this is Linux, you will not see your drives in the same way you
  292. do under Windows (or DOS), but they will appear as logically assigned
  293. devices. So instead of the C:-drive, you will get /dev/hda1 in which
  294. hda is your first available harddisk ('h' in hda is for ide drives,
  295. 's' is for scsi, sata and removable drives), hda1 is the first
  296. (primary) partition on which a filesystem may reside. The filesystem
  297. used in general for Windows is NTFS. This stands for New Technology
  298. FileSystem, but in the mean time the "New" in technology is already
  299. more than 12 years old. Nevertheless, it has gotten some improvements
  300. over the years and it is, I must admit, a good filesystem. The other
  301. filesystem natively supported by Windows is FAT, which come in the
  302. flavors FAT12 (for floppies), FAT16 (for small disks up to 2Gb) and
  303. FAT32 (for bigger disks).<br>
  304. <br>
  305. What 's also different from Windows is that these filesystems are not
  306. accessible by default in Linux, you have to so called "mount" them.
  307. Where in Windows you will get a drive C: with your files on, in Linux
  308. you have to call the command 'mount' and mount the filesystem against a
  309. subdirectory. An example of this: let 's say your drive C: is /dev/hda1
  310. (/dev contains the collection of device references on your system). You
  311. have a directory /mnt0. In this case you type 'mount /dev/hda1 /mnt0'.
  312. When you invoke the command 'mount' afterwards without any parameters,
  313. you will see that /dev/hda1 is mounted on /mnt0. If you cd to that
  314. directory and type 'ls' (=equivalant of 'dir' in Windows), you will get
  315. a directory listing of what 's available on that C: drive.<br>
  316. <br>
  317. Now with this all explained, you should see the picture: TRK runs on
  318. your computer but treats it as a doctor inspecting a dead body:
  319. everything is there, but the person is not. You can now perform surgery
  320. on the body and try to revive it.
  321. </p>
  322. <p>&nbsp;</p><br><a name="WQKZJKT0E8QJQM9HJZ4WTYKI5DK0ZDBLUMB3YUU2S9B7M" &nbsp;="" id="WQKZJKT0E8QJQM9HJZ4WTYKI5DK0ZDBLUMB3YUU2S9B7M"></a><h1>1.3 Getting around with common linux commands (cd, cp, mv, rm, more, grep, mount)</h1><p>
  323. <style type="text/css">
  324. <!--
  325. @page { margin: 0.79in }
  326. P { margin-bottom: 0.08in }
  327. -->
  328. </style>
  329. </p>
  330. <p>This is a small tour on commands you will find useful when working
  331. with TRK (and Linux in general). Let 's take as a convention that
  332. commands you have to type are put between 'single quotes'. At the
  333. commandline you omit these quotes (unless I say not to).<br>
  334. <br>
  335. What I 'm going to teach here is basically how you work with files, like copying, moving, editing, etc...<br>
  336. <br>
  337. First, let's start with changing directories.<br>
  338. <br>
  339. People that have worked with the commandline in Windows or Dos will
  340. recognize many things. The big difference with this is that directories
  341. in Linux are separated by forward slashes instead of backslashes in
  342. Windows. Another big difference is that Linux folders and files are
  343. case sensitive: capitals have to be typed as capitals, otherwise the
  344. file or folder will not be found.<br>
  345. <br>
  346. -<strong>cd</strong><br>
  347. <br>
  348. The command to change a directory (or folder how it 's called in Windows) is 'cd'<br>
  349. f. i. you want to change to the directory /tmp you type 'cd /tmp'. If
  350. the folder contains spaces, there are two ways you can get into them:
  351. or you put the foldername between double quotes or you use so called
  352. escape characters to represent the spaces.<br>
  353. <br>
  354. Let 's say we want to cd to the folder 'Documents and Settings' you can
  355. type 'cd "Documents and Settings"' or 'cd Documents\ and\ Settings'
  356. where the backslash (\) in Linux is used to 'escape' characters, i.e.
  357. you treat the characters litterally instead of as a control character.
  358. Enough of that.<br>
  359. <br>
  360. Another way of easily changing directories is by typing the first
  361. letters of it and then pressing the tab-key. F.i. type 'cd Doc' and
  362. press tab. The command will complete as 'cd Documents\ and\ Settings'.
  363. If more files or folders match, the tab command will show you the
  364. possible options left. Very nice feature, saves you lots of time and
  365. painful fingers.<br>
  366. <br>
  367. -<strong>cp</strong><br>
  368. <br>
  369. File copying, the second thing you 'll probably need.<br>
  370. Once you 're in the right directory, you need to be able to copy files to other locations.<br>
  371. Here 's how to do it, together with the most important switches.<br>
  372. Take a file called file1, located in /tmp/ and you want to copy it to
  373. /home: simple command 'cp /tmp/file1 /home' or when you first cd-ed to
  374. /tmp: 'cp file1 /home/'. Source-target.<br>
  375. Suppose you want to copy multiple files, you can use a wildcard with
  376. '*'. If /tmp contains file1 and file2 and copy them both at the same
  377. time: 'cp /tmp/file* /home/'<br>
  378. If you want to copy files and folders recursively, together with all the attributes, use the switch '-a'<br>
  379. To see what gets copied while it 's busy, add the '-v' parameter too (verbose).<br>
  380. Say /tmp contains 'file1', 'file2', a subfolder called 'testfolder'
  381. which also contains 'file3', then perform 'cp -av /tmp/* /home' This
  382. will copy the complete contents of /tmp, including subfolders to /home.<br>
  383. If cp asks you to overwrite already existing files, you can force that by adding '-f' (force) to your command:<br>
  384. 'cp -avf /tmp/* /home'<br>
  385. <br>
  386. -<strong>mv</strong><br>
  387. <br>
  388. Moving files. This is the same principle as copying files but easier, e.g.<br>
  389. 'mv /tmp/* /home' moves all the contents, including subdirs to /home<br>
  390. Adding the parameters -v and f moves them verbosely without prompting to overwrite existing files.<br>
  391. <br>
  392. -<strong>rm</strong><br>
  393. <br>
  394. Remove files.<br>
  395. Remove 1 file, example: 'rm /tmp/file1'<br>
  396. Remove files recursively, without prompting: 'rm -rf /tmp/*'<br>
  397. <br>
  398. -<strong>more</strong><br>
  399. <br>
  400. Viewing files and output of commands. This is a util you can use any
  401. time there 's too much output coming to your screen or you need to look
  402. into a file.<br>
  403. E.g.: 'more /tmp/file1' shows you the contents of file1, but gives it a
  404. page at a time. To go to the next page, press space. The arrows and
  405. enter key scroll down line by line.<br>
  406. You can use this command also in combination with other commands to halt their output so you can read what it says.<br>
  407. Example: 'dmesg | more' : 'dmesg' gives you the output of your kernel
  408. startup procedure and recent system messages, but it 's maybe about 300
  409. lines of output. So in this case we so called "pipe" the output of
  410. 'dmesg' to 'more' using the "|" sign. In this way I have also explained
  411. you with an example the use of "command piping"<br>
  412. <br>
  413. -<strong>command piping</strong><br>
  414. <br>
  415. Continueing on this subject, let 's see what other uses command piping can do for us.<br>
  416. It can be used to filter out a certain line with a specific keyword.<br>
  417. Let 's say you want to know whether there 's a file called
  418. Document.doc' somewhere in a subdirectory, but you don 't know which.
  419. Then use this command from within the base directory you want to search
  420. in: 'find ./ | grep -i document.doc' (the -i parameter upper- or
  421. lowercase characters)<br>
  422. You can also pipe the output of a command to a file instead of the
  423. screen. F.i. to put the complete filelisting of a directory tree to a
  424. file, do like this 'find ./ &gt; /tmp/filelist.txt'<br>
  425. <br>
  426. -<strong>editing files</strong><br>
  427. <br>
  428. Here 's quickly how to use vi, the most common text editor on Linux.
  429. Beware: this does not edit Word documents or any other document format
  430. that is in binary format.<br>
  431. Open a file or create a new file: 'vi /tmp/file1'<br>
  432. Move your cursor around with your arrows to the line you want to edit.<br>
  433. To insert text, type 'i', this will put you in insert mode. To remove
  434. text, use 'x', (go out of insert mode first with escape). To remove or
  435. cut a complete line, use 'dd'. You can paste this line elsewhere with
  436. 'p'.<br>
  437. This is basically editing in vi. To save a document, go out of insert
  438. mode and type ':wq' (colon write quit). To exit without saving: ':q!'
  439. (colon quit exclamation mark).<br>
  440. If you don 't like vi, you can use pico which is a bit simpler to use, but less common on the different Linux systems.<br>
  441. <br>
  442. -<strong>mounting filesystems</strong><br>
  443. <br>
  444. When working with Linux and more specifically here with Trinity Rescue
  445. Kit, it is imperative that you understand the way you "talk" to
  446. filesystems.<br>
  447. Whereas Windows just assigns a driveletter to any local filesystem it
  448. knows and finds (which is only NTFS and FAT), Linux does it all by
  449. invoking "mount" of a filesystem against a directory where you mount it.<br>
  450. Trinity Rescue Kit has a utility called "mountallfs" that searches for
  451. every filesystem on the local computer's disk drives and mounts it in a
  452. directory that has the same basename as the device where the filesystem
  453. resides. More on that later in this documentation. In other, normal
  454. Linux distributions, local filesystems are detected or created on
  455. install.<br>
  456. <br>
  457. Let 's talk now how to perform manual mounting.<br>
  458. Mounting can be performed with any filesystem, regardless of it being local or on the network. <br>
  459. <br>
  460. *<u> Mounting a local filesystem can be done like this:</u><br>
  461. <br>
  462. To know what device contains te filesystem you want to mount, you can
  463. look at a file called "/proc/partitions" This will tell you the
  464. partition lay-out of your disks, which will most likely contain
  465. filesystems. A common "/proc/partitions" file may look like this:<br>
  466. <br>
  467. /dev/hda<br>
  468. /dev/hda1<br>
  469. /dev/hda2<br>
  470. <br>
  471. /dev/hda claims in fact the whole disk. Under Windows it is impossible
  472. to create a filesystem in there, under Linux it is possible but
  473. improbable and not recommended.<br>
  474. Most likely you will find a filesystem on /dev/hda1 and /dev/hda2, which will be you C: and D:-drive under Windows in general.<br>
  475. Mounting this is quite easy, in general you don 't have to give any paramters with it, Linux will detect the type of filesystem.<br>
  476. 'mount /dev/hda1 /mnt0'<br>
  477. <br>
  478. Trinity Rescue Kit by default has two directories for manual mounting
  479. of filesystems. You can create as many as you like, in as many subdirs
  480. as you like. That 's all I 'm going to explain about local filesystem
  481. mounting. I recommand you use "mountallfs". More on that later.<br>
  482. <br>
  483. * <u>Mounting network filesystems.</u><br>
  484. <br>
  485. This is a very interesting bit, because with Trinity Rescue Kit you
  486. will want to evacuate your files to another computer. In TRK (and most
  487. other Linux distributions) it is possible to talk to Windows
  488. filesharing technology. For those who want to know the name of this
  489. technology, it 's called SMB (=Server Message Block). TRK can act as a
  490. client as well as a server. In this case we 're talking about TRK as a
  491. client.<br>
  492. <br>
  493. Let 's say you have a running windows machine and you 've configured it
  494. to share "myshare". If you have not configured a share, you can connect
  495. to the c$ hidden share, but then you need to deactivate "Use simple
  496. simple filesharing" in the folder options of your Windows explorer. But
  497. let us take the "myshare" share.<br>
  498. <br>
  499. For the ease of use, it 's a good thing to create a user on your
  500. Windows machine called "root", give him a password and make it an
  501. administrator. But that 's not really necessary, you can also use the
  502. local "administrator" account, this will just require you to add a
  503. parameter to the mount command.<br>
  504. <br>
  505. Let 's take the case of the "myshare" share, your Windows pc has
  506. 10.0.0.5 as ip-address (always faster to just point to the ip-address
  507. instead of the name) and you 've created a local user called root. Then
  508. here 's the command: 'mount //10.0.0.5/myshare /mnt0'<br>
  509. <br>
  510. You will get prompted for a password in if no output is given, your
  511. share should appear under /mnt0. Make sure "myshare" has enough
  512. permissions for the user "root"<br>
  513. <br>
  514. If you don't want to create a user, you don 't want to create a share
  515. and you did disable simple filesharing (or your windows machine is
  516. member of a domain), you can go ahead like this:<br>
  517. 'mount -o username=administrator //10.0.0.5/c$ /mnt0' , which will
  518. prompt for the password an give you the credentials of "administrator".
  519. You can already pass the password (e.g. blahblah) in the commandline if
  520. nobody is looking over your shoulder: 'mount -o
  521. username=administrator,password=blahblah //10.0.0.5/c$ /mnt0'<br>
  522. <br>
  523. Below is a screenshot of a Windows PC that has opened the disk of a remote TRK booted machine.</p>
  524. <p><br>
  525. <img alt="" src="helpdocs_files/fileserver-explorer.png" height="600" hspace="5" width="800"></p>
  526. <p>&nbsp;</p>
  527. <p>&nbsp;</p><br><a name="M69SKN1KBY3NSX3XG2DPJ306MHH6EL0SIZ9UD05EPYT7K" &nbsp;="" id="M69SKN1KBY3NSX3XG2DPJ306MHH6EL0SIZ9UD05EPYT7K"></a><h1>1.4 Reading information about your PC (dmesg, /proc/partitions)</h1><p>
  528. <style type="text/css">
  529. <!--
  530. @page { margin: 0.79in }
  531. P { margin-bottom: 0.08in }
  532. -->
  533. </style>Let 's summarize a little what 's already been said and look at reading info on your computer.<br>
  534. <br>
  535. -<strong>/proc</strong><br>
  536. <br>
  537. Standard Linux always has a filesystem called "proc", which is a
  538. virtual filesystem in which files reside that have to do with your
  539. hardware and running processes. It 's a wonderful invention. We already
  540. talked about /proc/partitions, which is a file containing all local
  541. disk partitions.<br>
  542. <br>
  543. Another interesting file is /proc/cpuinfo, which gives you information about your CPUs<br>
  544. <br>
  545. /proc/meminfo gives you information about the memory usage. Don 't let
  546. yourself get misled by the Memfree line, which will always look very
  547. low. Actually, Linux always reserves most part of the memory so it can
  548. make use of it in a fast way. What you need to look at is the Active
  549. and Inactive. The maximum amount of memory you will see will never be
  550. more than 4Gb, since the TRK kernel needs to keep maximum compatibility<br>
  551. <br>
  552. Another useful file to read info on your cdrom drive is /proc/sys/dev/cdrom/info.<br>
  553. <br>
  554. Those are about the important files in /proc you need to know about now.<br>
  555. <br>
  556. -<strong>dmesg</strong><br>
  557. <br>
  558. The command "dmesg" gives you your kernel messages. Any hardware
  559. detected will give you a message somewhere in the output of this
  560. command. If you want to know the type of network card that has been
  561. detected, perform 'dmesg|more' and look for any mentions of eth0,
  562. eth1,...<br>
  563. <br>
  564. What type of harddisk controller you have: dmesg. Just use it when you
  565. find yourself stuck on hardware questions. Also disk failures will be
  566. visible with this command. Network errors, link down, etc, one command.<br>
  567. <br>
  568. Another way of looking at this information is through /var/log/messages
  569. (more /var/log/messages), which on normal Linux distributions contain
  570. output logs of previous boots too.<br>
  571. <br>
  572. To know what device your newly inserted USB stick has, plug it in, let
  573. it settle for a few seconds and then run dmesg again. Or just run
  574. 'dmesg|tail' to see only the last added lines.<br>
  575. Here 's an excerpt of what you might read from dmesg. It tells you something about your network card:<br>
  576. <font face="Courier New"><font size="2">eepro100.c:v1.09j-t 9/29/99 Donald Becker http://www.scyld.com/network/eepro100.html<br>
  577. eepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V. Savochkin &lt;saw@saw.sw.com.sg&gt; and others<br>
  578. ACPI: PCI Interrupt 0000:05:08.0[A] -&gt; GSI 20 (level, low) -&gt; IRQ 16<br>
  579. eth0: OEM i82557/i82558 10/100 Ethernet, 00:08:02:C6:4E:9D, IRQ 16.<br>
  580. Board assembly 262285-001, Physical connectors present: RJ45<br>
  581. Primary interface chip i82555 PHY #1.<br>
  582. General self-test: passed.<br>
  583. Serial sub-system self-test: passed.<br>
  584. Internal registers self-test: passed.<br>
  585. ROM checksum self-test: passed (0x04f4518b).</font></font><br>
  586. <br>
  587. -<strong>lspci and lsusb</strong><br>
  588. <br>
  589. This gives you any information on what 's on your PCI and respectively
  590. USB bus. This doesn 't only mean what 's in your PCI slots, but
  591. everything on the bus, so also onboard ethernet and usb controllers.
  592. </p>
  593. <p>
  594. <strong>-lshw</strong>
  595. </p>
  596. <p>Now here 's a great utility that can give you a complete listing of
  597. all your hardware, recognised and not recognised. When you run it, it
  598. will give you a LOT&nbsp;of output, so best here is to run it 'lshw |
  599. more', or if you only need specific info about f.i. disk drives, you
  600. can run 'lshw -C&nbsp;DISK'. Getting the info off your TRK can be done
  601. directly to the interweb (provided your network card got detected) by
  602. running 'lshw | wgetpaste', which will publish the output on
  603. http://pastebin.ca and return you a short url to where it can be found.</p>
  604. <p>
  605. <br>
  606. -<strong>smartctl</strong><br>
  607. <br>
  608. The smartmontools are part of Trinity Rescue Kit and not so common on
  609. normal Linux systems, yet they are a valuable addition to any system.
  610. What it does is read the s.m.a.r.t. information of disk drives so you
  611. can know when errors start to occur.<br>
  612. <br>
  613. Just use it like this: 'smartctl -a /dev/sda' where sda is your first
  614. scsi or sata drive. Make sure smart is enabled in the computer's bios.<br>
  615. <br>
  616. -<strong>acpi and acpitool</strong><br>
  617. <br>
  618. Two tools to read the battery and thermal information of your computer. Type acpi --help to get more info on possible options.<br>
  619. <br>
  620. acpitool can give you much more information like fan speeds and cpu.
  621. Also certain laptop types are supported for their special features like
  622. brigthness on Asus laptops etc...<br>
  623. <br>
  624. -<strong>df and du</strong><br>
  625. <br>
  626. Two standard utils provided in Linux. df shows you the usage of your
  627. mounted filesystems, du shows you the usage of a specific folder. Use
  628. it like 'df -h' and 'du -h' where "-h" stands for "human readable",
  629. making the output rounded to mega- and gigabytes.<br>
  630. This is in short how you can get to know your computer a little and how to jumpstart using Linux and Trinity Rescue Kit.<br>
  631. <br>
  632. <strong>-lshw</strong><br>
  633. <br>
  634. Recently recommended and added, but looks very promising, lshw gives
  635. you a complete list of all your hardware in your computer. Best to pipe
  636. this to a file, because the list can get long.
  637. </p>
  638. <p>&nbsp;</p><br><a name="QBRDPTSD001QIT0CN3AHZ75WRJKLINJYQ024JJ8A9ZQIH" &nbsp;="" id="QBRDPTSD001QIT0CN3AHZ75WRJKLINJYQ024JJ8A9ZQIH"></a><h1>2. TRK own commands and utils</h1><p>Let 's look at the added value of Trinity Rescue Kit, with its own specific commands and utils.</p><br><a name="XFPUBF4W6TFSCHXH5RXKMFAR0BVLGLR3S6NTBHF71KQ3T" &nbsp;="" id="XFPUBF4W6TFSCHXH5RXKMFAR0BVLGLR3S6NTBHF71KQ3T"></a><h1>2.1 Virusscan</h1><p>
  639. <style type="text/css">
  640. <!--
  641. @page { margin: 0.79in }
  642. P { margin-bottom: 0.08in }
  643. H1 { margin-bottom: 0.08in }
  644. H1.western { font-family: "Times New Roman", serif }
  645. H1.cjk { font-family: "Bitstream Vera Sans" }
  646. H1.ctl { font-family: "Bitstream Vera Sans" }
  647. H2 { margin-bottom: 0.08in }
  648. A:link { so-language: zxx }
  649. -->
  650. </style>
  651. </p>
  652. <p>Virusscan is a script that actually wraps 5 different virusscanners into one. <br>
  653. Only one of them is actually included on the TRK cd (Clamav), the others are downloaded from their website upon usage.</p>
  654. <p>When running virusscan, it is highly recommended that your computer
  655. has a decent internet connection so you can get the latest virus
  656. signatures.</p>
  657. <h2>Scan engines</h2>
  658. <p style="margin-bottom: 0in;">Currently, 5 AV engines and md5 file checksumming are implemented.</p>
  659. <h3>-ClamAV</h3>
  660. <p>This is the basic engine provided and is already preinstalled on
  661. TRK. It is very effective on mailservers but is quite slow and tends to
  662. crash when used as a commandline scanner. It also focuses more on
  663. mailworms and, from experience, has less effectiveness for local viri.
  664. Clamav is the only GPL licensed AV engine implemented. All others have
  665. some sort of free-for-non-commercial-use license and are closed source.
  666. The pros of Clamav are: <br>
  667. * very quick on new virus outbreaks <br>
  668. * included in TRK <br>
  669. * GPL licensed, so free for everyone <br>
  670. The cons: <br>
  671. * slow and very CPU and memory intensive <br>
  672. * detects the least viri of the 5 scanners in virusscan. <br>
  673. <br>
  674. Because it's in fact a mailserver scanner, it will focus more on worms
  675. than on filth that comes from malicious websites and such. <br>
  676. * cannot disinfect inside files on its own. What is done in this case
  677. is quarantine the infected files into a tar.gz archive in
  678. &lt;scandestination&gt;/TRK-INFECTED/. Should a file be accidentally
  679. deleted, you can recover it afterwards and rescan it with another
  680. antivirustool</p>
  681. <h3>-F-Prot</h3>
  682. <p>This antivirus tool and all the others are not included in TRK but
  683. get downloaded from the Internet as soon as you call upon them. They
  684. disappear after a reboot of TRK. If you want them to be available after
  685. a reboot, you have to run updatetrk. This will be explained later in
  686. this documentation. The pros of F-prot: <br>
  687. * lightweight, not a big download <br>
  688. * pretty fast, low cpu usage <br>
  689. * good disinfection method <br>
  690. The cons: <br>
  691. * does not detect everything <br>
  692. * their website sometimes fails and download of f-prot is aborted</p>
  693. <h3>-BitDefender Scanner</h3>
  694. <p>It has a good average between filesize, cpu/memory load and
  695. virusdetection. It can detect many different types of malware. From
  696. what has been experienced so far, it may detect other viri and malware
  697. than the other 4. It's recommended to sweep with this after another one
  698. has already run. <br>
  699. Pros of BitDefender Scanner: <br>
  700. * detects quite some viri <br>
  701. * pretty fast <br>
  702. * detects alternate malware <br>
  703. Cons: <br>
  704. * sometimes doesn't detect very common viri <br>
  705. * slow update process</p>
  706. <h3>-Vexira</h3>
  707. <p>This AV engine hasn't been tested so much, but it looks like a good average AV engine.</p>
  708. <h3>-Avast</h3>
  709. <p>Avast is the latest addition to virusscan (and replaces Grisoft AVG
  710. because AVG lacks cleaning support in its new version). Avast is a
  711. great AV on Windows, very lightweight, but has not been tested in depth
  712. yet on Linux/TRK. <br>
  713. For this particular AV engine you need a registered, free license key which is sent to you by mail. <br>
  714. Get it at <a href="http://www.avast.com/registration-free-antivirus.php">http://www.avast.com/registration-free-antivirus.php</a> <br>
  715. If you want to avoid entering the license key each time, it's recommened to run updatetrk</p>
  716. <h3>-MD5</h3>
  717. <p>This is not an antivirus engine but just reads all of your files and
  718. makes md5sums of it. It writes the result to a logfile in the same way
  719. like it does for an AV engine. The logfile format is: modification
  720. seconds since 1-1-1970 &lt;space&gt; md5sum &lt;space&gt; filepath.</p>
  721. <p>&nbsp;</p>
  722. <p>To get complete and up to date info, please check out the online version of the manpage for virusscan: <a href="http://trinityhome.org/manpages/man8/virusscan.8.html">http://trinityhome.org/manpages/man8/virusscan.8.html</a></p>
  723. <p><br>
  724. &nbsp;</p>
  725. <p>&nbsp;</p><br><a name="HW79FF1ZME1FBEY6DVXDG60JAJVNKK6T64SB9I0MMSSPW" &nbsp;="" id="HW79FF1ZME1FBEY6DVXDG60JAJVNKK6T64SB9I0MMSSPW"></a><h1>2.2 Winpass and regedit</h1><p>
  726. <style type="text/css">
  727. <!--
  728. @page { margin: 0.79in }
  729. P { margin-bottom: 0.08in }
  730. H2 { margin-bottom: 0.08in }
  731. A:link { so-language: zxx }
  732. -->
  733. </style>
  734. </p>
  735. <p style="margin-bottom: 0in;">Winpass is a bash wrapper script for <strong>chntpw </strong>supplied with Trinity Rescue Kit that resets MS Windows NT based local passwords.</p>
  736. <p>By default winpass without any arguments will reset the builtin
  737. administrator account of a locally installed Windows, but you can
  738. specify other accounts as well at the commandline. In fact, you can add
  739. any parameter from chntpw which will be parsed to the commandline. So
  740. winpass -l will list all usernames found in the SAM (=Windows user and
  741. password database). Should you have troubles that metacharacters are
  742. present in the username (such as the Ø or something), you can still
  743. use the HEX reference to the username listed next to it. Be sure to
  744. prepend that with a '0x'

Large files files are truncated, but you can click here to view the full file