/[clonezilla-sysresccd]/trunk/www/2doc/doc/own-scripts.html
ViewVC logotype

Annotation of /trunk/www/2doc/doc/own-scripts.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 180 - (hide annotations)
Mon Jun 6 18:57:10 2011 UTC (12 years, 9 months ago) by sng
File MIME type: text/html
File size: 15170 byte(s)
- updating email addresses (bottom of page and "Contact me" in index.html
- updating site
  Please do not commit anything in trunk/www
  This folder is updated by script 2site and any manual changes are
  overwritten. Escpecially, doc.html is an index file which exists
  only in trunk/www (its contents are the H1,H2,H3 headers existing
  in html files under trunk/www/working

1 sng 49 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2     <html>
3     <head>
4     <link rel="alternate" type="application/rss+xml" title="RSS" href="http://clonezilla-sysresccd.hellug.gr/clonezilla-sysresccd.rss">
5     <link rel="shortcut icon" href="favicon.ico">
6 sng 52 <title>Clonezilla-SysRescCD - Offline Documentation: Clonezilla-SysRescCD own scripts</title>
7 sng 49 <style type="text/css">
8 sng 149 body { font-family: Arial, 'sans serif'; color: black; font-size: 12pt; background : fixed no-repeat; background-color: #333333; padding: 0; margin: 0; margin-top: 5px; margin-bottom: 5px; }
9 sng 49
10    
11    
12     #header {position:relative; display: block; width: 980px; height: 121px;margin: auto; padding: auto; background-color: #D37624; background-image: url('images/header.png');clear:both;}
13     #header h2{ color: #FFE6BC; font-weight: bold; font-size: 2.2em; margin:0; padding:0; padding-left: 10px; padding-top: 7px; text-shadow: #333333 2px 2px 4px;}
14     #header h3{ color: #FFE6BC; font-weight: bold; font-size: 1.8em; margin:0; padding: 0; padding-left: 10px; text-shadow: #333333 2px 2px 4px;}
15     #header h4{ color: #FFE6BC; font-weight: bold; font-size: 1.2em; margin:0; padding: 0; padding-left: 10px; padding-right: 10px; text-shadow: #333333 2px 2px 4px;}
16     #header a {text-decoration:none;}
17    
18     #contarea {display: block; width: 980px; margin: auto; padding: auto; background-color: #FFF2DD; clear:both;}
19    
20     #linkline { width: 980px; height: 29px;margin: auto; padding: auto; background-color: #D37624; background-image: url('images/linkline.png');clear:both; }
21     #linkline a{float: left; color: #FFE6BC; font-weight: bold; font-size: 0.8em; text-decoration: none; text-shadow: #333333 2px 2px 4px; padding-left: 10px; padding-right: 10px; padding-top: 5px;}
22     #linkline a:visited{color: #FFE6BC;}
23     #linkline a:hover{color: #333333;}
24     #linkline a.here {color: #333333; text-decoration: none;}
25    
26     #lastupdate {float: right; display: block; text-align: right; margin: 0; margin-top: -1.2em; padding: 0; padding-right: 15px;}
27    
28     #rss { float: right; text-align: right; padding-top: 3px;}
29    
30     #docline-top { float: right; padding-right: 40px; text-align: right; }
31     #docline-bottom { float: right; padding-right: 40px; text-align: right; font-size: 0.8em; padding-top: 15px; }
32     #docline-bottom a{ padding-left: 10px; padding-right: 10px; }
33    
34     #menu { float: right; display: block; width: 170px; margin: auto; padding: 15px; font-size: 0.8em; font-weight: bold; background-color: #FFE6BC;}
35     #menu h1 {color: #990000; font-size: 1.8em;text-shadow: gray 2px 2px 4px;}
36     #menu a,a:visited{ color: black; text-decoration: none; font-weight: normal;}
37     #menu a:hover{ text-decoration: underline;}
38     #menu p{ margin-bottom: 10px;}
39    
40     #content { float: left; display: block; width: 950px; margin: auto; padding: 15px;}
41    
42    
43     #footer {display: block; width: 980px; height: 100px;margin: auto; padding: auto; background-color: #D37624; background-image: url('images/footer.png');clear:both;text-shadow: #333333 2px 2px 4px;}
44     #footer p{color: #FFE6BC; font-weight: bold; padding:15px; padding-left: 10px;}
45     #footer a,a:visited{color: #FFE6BC; font-weight: bold; text-decoration:none;}
46     #footer a:hover{ color: #333333; text-decoration: none;}
47    
48    
49     #content H1,H2,H3,H4{color: #990000; text-align: left;}
50     #content H2{margin-top: 2em;}
51     #content H3{margin-top: 1.5em}
52     #content H4{margin-top: 1em}
53     #content li { margin-top: 1em;}
54     #content a,a:active,a:visited{text-decoration: none; color: #4075CA; font-weight: normal;}
55     #content a:hover{text-decoration: underline; font-weight: normal;}
56     #content .hidden{ display:none; }
57     #content p,td,table,tr,li { font-family: Arial, 'sans serif'; }
58     #content .nav{margin-left: 0pt;}
59     #content .newcode{font-family : "Courier New", Courier, monospace; font-weight: bold; background-color: #F2F2F2; border: solid 1px #DEDEDE;padding: 20pt;}
60     #content .note{margin-top: 30pt; margin-bottom: 30pt; text-align: left; background-color: #FFEFEF; border: double 3px; border-color: #FFD5D5;}
61     #content hr{color: Black; background-color: Black; height: 1px; border: none;}
62     #content .header-news{margin-top: 2em; margin-left: 25pt; font-weight: bold; color: #990000;}
63     #content .item-news{margin-left: 45pt; margin-right: 45pt;}
64     #content .otherpage{border: solid 1px darkgoldenrod; padding: 20pt; background-color: lemonchiffon;}
65     #content IMG {display: block; margin-left: auto; margin-right: auto; }
66     #content .red{color: white; background-color: Red; font-weight: bold;}
67     #lphp{text-align: right; padding-left: 10px; padding-right: 10px; padding-top: 50px; float: right;}
68     #lphp a{padding-left: 5px;}
69 sng 149 #warning { margin: 5px; padding: .4em; background-color: Red; color: White; align: center; font-weight: bold; border-width: 2px; border-color: white; border-style: solid; }
70     #warning a { color: white; font-weight: bold; text-decoration: underline; }
71     #warning { display: none; }
72 sng 49 </style>
73 sng 149 <link href="warning.css" rel="stylesheet" type="text/css" />
74     <!--
75     The file waring.css exists only in the root of the site
76     and it hides the UNSTABLE warnings. Its contents are
77     #warning { display: none; }
78     -->
79 sng 49 <META NAME="Keywords" CONTENT="multiboot Multi Boot bootable cd rescue clonezilla sysresccd backup restore samba">
80     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
81    
82     </head>
83    
84     <body>
85 sng 149 <div id="warning" align="center">
86     WARNING<br>
87     This is the UNSTABLE version of Clonezilla-SysRescCD<br>
88     To access our current stable version, please click <a href="../index.html">here</a>
89     </div>
90 sng 49 <div id="header">
91     <H2>Clonezilla-SysRescCD</H2>
92 sng 52 <H3>Offline Documentation: Clonezilla-SysRescCD own scripts</H3>
93 sng 49 <div style="margin:0; padding: 3px; width: 980; position relative;">
94 sng 180 <div style="position: absolute; left: 0px;"><H4>30/06/2011 - v 3.2.0</H4></div>
95     <div style="position: absolute; right: 0px;"><H4>Last update: 06/06/2011</H4></div>
96 sng 49 </div>
97     </div>
98     <div id="linkline">
99    
100    
101     <!-- <a href="features.html">Features</a>-->
102 sng 52 <a class="here" href="../README.html">Offline Documentation</a>
103 sng 49
104    
105    
106    
107 sng 113
108 sng 49 <!-- docline-top-->
109     <div id="docline-top"> <a href="recover.html">&lt; PREV</a> <a href="../README.html">UP</a> <a href="annex-a-devices.html">NEXT &gt;</a> </div>
110     </div>
111     <div id="contarea">
112     <div id="content">
113     <a name="scripts-top"></a>
114    
115     <H2 style="margin-top: 0;"><a name="scripts-intro"></a>Intro <span class="hideprint">[<a href="#scripts-top" title="go to top of the page">^</a>]</span></H2>
116    
117     <p>In this page I will present the scripts I have ever written for <b>Clonezilla-SysRescCD</b></p>
118     <!-- On the CD -->
119    
120     <H2><a name="scripts-what-cd"></a>what-cd <span class="hideprint">[<a href="#scripts-top" title="go to top of the page">^</a>]</span></H2>
121     <p>Included in: <b>SystemRescueCD</b><br><br>
122    
123     This script determines the device names for your CDs/DVDs, and whether they can read/write CD/DVD-ROMs<br><br>
124    
125     Its help screen is the following:</p>
126    
127     <p class="newcode"># <font color="Green">what-cd&nbsp;-h</font><br>
128     what-cd&nbsp;-&nbsp;v&nbsp;1.0.0&nbsp;-&nbsp;S.&nbsp;Georgaras&nbsp;&lt;sng@hellug.gr&gt;<br>
129     <br>
130     what-cd&nbsp;will&nbsp;try&nbsp;to&nbsp;identify&nbsp;your&nbsp;CD/DVDs<br>
131     You&nbsp;can&nbsp;use&nbsp;it&nbsp;to&nbsp;identify&nbsp;the&nbsp;device&nbsp;name&nbsp;of&nbsp;your&nbsp;CD-Reader&nbsp;(default),<br>
132     CD-Writer,&nbsp;DVD-Reader,&nbsp;and&nbsp;DVD-Writer.<br>
133     <br>
134     Usage:&nbsp;what-cd&nbsp;[options]<br>
135     Availabe&nbsp;options&nbsp;are:<br>
136     &nbsp;&nbsp;&nbsp;&nbsp;d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;info&nbsp;about&nbsp;DVDs<br>
137     &nbsp;&nbsp;&nbsp;&nbsp;w&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;info&nbsp;about&nbsp;writers<br>
138     &nbsp;&nbsp;&nbsp;&nbsp;b&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Batch&nbsp;mode.&nbsp;Only&nbsp;print&nbsp;one&nbsp;device&nbsp;name.<br>
139     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;more&nbsp;than&nbsp;one&nbsp;device&nbsp;is&nbsp;found,&nbsp;print<br>
140     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nothing.&nbsp;For&nbsp;use&nbsp;with&nbsp;scripts<br>
141     &nbsp;&nbsp;&nbsp;&nbsp;e&nbsp;deviceID&nbsp;&nbsp;Eject&nbsp;device&nbsp;deviceID<br>
142     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accecpable&nbsp;values:&nbsp;-1...num&nbsp;of&nbsp;devices<br>
143     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Use&nbsp;-1&nbsp;when&nbsp;in&nbsp;batch&nbsp;mode<br>
144     &nbsp;&nbsp;&nbsp;&nbsp;v&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;version&nbsp;info&nbsp;and&nbsp;exit<br>
145     &nbsp;&nbsp;&nbsp;&nbsp;h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;this&nbsp;screen&nbsp;and&nbsp;exit</p>
146    
147     <p>Its typical usage would be to identify the DVD writer:</p>
148    
149     <p class="newcode"># <font color="Green">what-cd -dw</font><br>
150     Device /dev/hdd (id=0) can not write DVDs<br>
151     Device <font color="Magenta">/dev/hdc</font> (id=1) can write DVDs</p>
152    
153     <p>When used in batch mode, it will only print a device name. This is especially useful in scripts, but also in the command line, as shown in section "<a href="restore.html#burn">Burning the DVD</a>".</p>
154    
155     <p class="newcode"># <font color="Green">what-cd -dwb</font><br>
156     /dev/hdc</p>
157    
158     <H2><a name="scripts-cont-cd"></a>continue-multi-cd <span class="hideprint">[<a href="#scripts-top" title="go to top of the page">^</a>]</span></H2>
159     <p>Included in: <b>SystemRescueCD</b><br><br>
160    
161     <b>continue-multi-cd</b> helps you append data to a multi session CD; that is it helps you prepare and burn any consecutive sessions to it. It may lack some of the functionality you would have had if you used the command line tools themselves (mksiofs and cdrecord), but because of it, it keeps you away from writing a lot of parameters.<br><br>
162    
163     You could use it for example, to burn some extra documentation to <b>Clonezilla-SysRescCD</b> CD, but you cannot use it to change the configuration files of <b>isolinux</b>, as it just reads the first session when booting.<br><br>
164    
165     <p>Its help screen is the following:</p>
166    
167     <p class="newcode"># <font color="Green">continue-multi-cd&nbsp;-h</font><br>
168     continue-multi-cd&nbsp;-&nbsp;v&nbsp;2.0.0&nbsp;-&nbsp;S.&nbsp;Georgaras&nbsp;&lt;sng@hellug.gr&gt;<br>
169     <br>
170     Usage:&nbsp;continue-multi-cd&nbsp;[options]&nbsp;&lt;path&nbsp;to&nbsp;be&nbsp;added&nbsp;to&nbsp;CD&gt;<br>
171     <br>
172     Available&nbsp;options&nbsp;are:<br>
173     &nbsp;&nbsp;&nbsp;&nbsp;d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specify&nbsp;write&nbsp;device&nbsp;(in&nbsp;case&nbsp;auto&nbsp;detection&nbsp;does&nbsp;not&nbsp;work)<br>
174     &nbsp;&nbsp;&nbsp;&nbsp;c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Close&nbsp;the&nbsp;CD.&nbsp;No&nbsp;more&nbsp;burning&nbsp;will&nbsp;be&nbsp;possible<br>
175     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default&nbsp;is&nbsp;to&nbsp;leave&nbsp;it&nbsp;open<br>
176     &nbsp;&nbsp;&nbsp;&nbsp;l&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Don't&nbsp;burn&nbsp;the&nbsp;CD&nbsp;after&nbsp;image&nbsp;creation<br>
177     &nbsp;&nbsp;&nbsp;&nbsp;o&nbsp;&lt;image&nbsp;name&gt;&nbsp;&nbsp;&nbsp;Save&nbsp;the&nbsp;image&nbsp;file&nbsp;as&nbsp;&lt;image&nbsp;name&gt;<br>
178     &nbsp;&nbsp;&nbsp;&nbsp;r&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove&nbsp;the&nbsp;image&nbsp;file&nbsp;after&nbsp;burning<br>
179     &nbsp;&nbsp;&nbsp;&nbsp;f&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;On&nbsp;the&nbsp;fly&nbsp;burning&nbsp;of&nbsp;the&nbsp;CD.&nbsp;No&nbsp;image&nbsp;file&nbsp;will&nbsp;be&nbsp;created<br>
180     &nbsp;&nbsp;&nbsp;&nbsp;v&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;version&nbsp;info&nbsp;and&nbsp;exit<br>
181     &nbsp;&nbsp;&nbsp;&nbsp;h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;this&nbsp;screen&nbsp;and&nbsp;exit</p>
182    
183     <p>You have to note one thing though: the folder <b>&lt;path&nbsp;to&nbsp;be&nbsp;added&nbsp;to&nbsp;CD&gt;</b> will not be present on the CD; only its contents will.<br><br>
184    
185     Let's suppose that you want to add to the CD the folder <b>extra-doc</b>, which contains <b>q-a.html</b> and <b>faq.html</b>, and that its full path is <b>/home/user/extra-doc</b>. If you issue the command</p>
186    
187     <p class="newcode"><font color="Green">continue-multi-cd -mwr /home/user/extra-doc</font></p>
188    
189     <p>you will not have a <b>extra-doc</b> folder on the root of your CD, but the files <b>q-a.html</b> and <b>faq.html</b> will be present there.</p>
190    
191     <p>In order to have <b>extra-doc</b> on the CD, you have to copy it to a temporary location and pass that path to <b>continue-multi-cd</b>. Let's see how it's done:</p>
192    
193     <p class="newcode">mkdir -p /tmp/for-the-cd<br>
194     cp -r /home/user/extra-doc /tmp/for-the-cd<br>
195     <font color="Green">continue-multi-cd -r /tmp/for-the-cd</font><br>
196     rm -rf /tmp/for-the-cd</p>
197    
198     <!--not-on-txt-->
199     <H2><a name="scripts-startx"></a>startx-ttf-ati <span class="hideprint">[<a href="#scripts-top" title="go to top of the page">^</a>]</span></H2>
200     <p>Included in: <b>SystemRescueCD</b><br><br>
201    
202     This script will help you start the X server (graphical environment), if you have a ATI video card and a TTF monitor. The normal <b>startx</b> command will not work in this case; you will end up with a blank screen.</p>
203    
204     <p><span class="red">&nbsp;Update:&nbsp;</span>&nbsp;<b>startx-ttf-ati</b> has been removed in version 3.1.0, since the "ATI video card vs. TTF monitor" problem has been resolved.
205    
206     <!--end-not-on-txt-->
207     </div>
208    
209    
210    
211     <!--<a name="template-top"></a>-->
212    
213     <div id="footer">
214     <div id="docline-bottom"> <a href="recover.html">&lt; PREV</a> <a href="../README.html">UP</a> <a href="annex-a-devices.html">NEXT &gt;</a> </div>
215 sng 180 <p>Copyright: &#169; <a href="mailto:&#115;&#110;&#103;&#064;&#104;&#101;&#108;&#108;&#117;&#103;&#046;&#103;&#114;?subject=About Clonezilla-SysRescCD v 3.2.0" title="About Clonezilla-SysRescCD">Spiros Georgaras</a>, 2007-2011 &amp; <a href="mailto:&#115;&#097;&#110;&#100;&#103;&#116;&#120;&#064;&#103;&#109;&#097;&#105;&#108;&#046;&#099;&#111;&#109;?subject=About Clonezilla-SysRescCD v 3.2.0 documentation" title="About Clonezilla-SysRescCD Documentation">Jyrki Vesterinen</a>, 2010-2011<br /><br/>
216 sng 149 Hosted by <a href="http://hellug.gr/index.php/OSullogos/Tautothta?from=Main.HELLUG" target="_blank" title="Hellenic Linux User Group">HEL.L.U.G.</a></p>
217 sng 49 </div>
218     </div>
219 sng 149 <div id="warning" align="center">
220     WARNING<br>
221     This is the UNSTABLE version of Clonezilla-SysRescCD<br>
222     To access our current stable version, please click <a href="../index.html">here</a>
223     </div>
224 sng 49 </body>
225     </html>

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26