ViewVC logotype

Contents of /trunk/www/own-scripts.html

Parent Directory Parent Directory | Revision Log Revision Log

Revision 183 - (show annotations)
Mon Jul 4 13:31:17 2011 UTC (10 years, 4 months ago) by sng
File MIME type: text/html
File size: 15720 byte(s)
- Fixing a misplaced cd command in usb.html
- Adding a basic tutorial (basic-vi.html)
- Updating trunk site

1 <!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 <title>Clonezilla-SysRescCD - Documentation: Clonezilla-SysRescCD own scripts</title>
7 <style type="text/css">
8 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; }
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;}
18 #contarea {display: block; width: 980px; margin: auto; padding: auto; background-color: #FFF2DD; clear:both;}
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;}
26 #lastupdate {float: right; display: block; text-align: right; margin: 0; margin-top: -1.2em; padding: 0; padding-right: 15px;}
28 #rss { float: right; text-align: right; padding-top: 3px;}
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; }
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;}
40 #content { float: left; display: block; width: 950px; margin: auto; padding: 15px;}
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;}
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 #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 </style>
72 <link href="warning.css" rel="stylesheet" type="text/css" />
73 <!--
74 The file waring.css exists only in the root of the site
75 and it hides the UNSTABLE warnings. Its contents are
76 #warning { display: none; }
77 -->
78 <META NAME="Keywords" CONTENT="multiboot Multi Boot bootable cd rescue clonezilla sysresccd backup restore samba">
79 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
81 </head>
83 <body>
84 <div id="warning" align="center">
85 WARNING<br>
86 This is the UNSTABLE version of Clonezilla-SysRescCD<br>
87 To access our current stable version, please click <a href="../index.html">here</a>
88 </div>
89 <div id="header">
90 <div id="lphp" style=""><a target="_blank" title="Display all in one long page" href="onepage.html"><img src="images/chain.png" border="0" /></a><a target="_blank" title="Display printable page" href="printable.php"><img src="images/print_it.png" border="0" /></a></div>
91 <H2>Clonezilla-SysRescCD</H2>
92 <H3>Documentation: Clonezilla-SysRescCD own scripts</H3>
93 <div style="margin:0; padding: 3px; width: 980; position relative;">
94 <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: 04/07/2011</H4></div>
96 </div>
97 </div>
98 <div id="linkline">
99 <a href="index.html">Home</a>
100 <a href="news.php">News</a>
101 <!-- <a href="features.html">Features</a>-->
102 <a class="here" href="doc.html">Documentation</a>
103 <a href="download.html">Download</a>
104 <a href="screenshots.html">Screenshots</a>
105 <a href="index.html#credits">Credits</a>
106 <a href="help.html">Help</a>
108 <div id="rss">
109 <a href="clonezilla-sysresccd.rss"><img src="images/rss-orange-11.png" width="30" height="14" border="0"/></a>
110 </div>
111 <!-- docline-top-->
112 <div id="docline-top"> <a href="recover.html">&lt; PREV</a> <a href="doc.html">UP</a> <a href="annex-a-devices.html">NEXT &gt;</a> </div>
113 </div>
114 <div id="contarea">
115 <div id="content">
116 <a name="scripts-top"></a>
118 <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>
120 <p>In this page I will present the scripts I have ever written for <b>Clonezilla-SysRescCD</b></p>
121 <!-- On the CD -->
123 <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>
124 <p>Included in: <b>SystemRescueCD</b><br><br>
126 This script determines the device names for your CDs/DVDs, and whether they can read/write CD/DVD-ROMs<br><br>
128 Its help screen is the following:</p>
130 <p class="newcode"># <font color="Green">what-cd&nbsp;-h</font><br>
131 what-cd&nbsp;-&nbsp;v&nbsp;1.0.0&nbsp;-&nbsp;S.&nbsp;Georgaras&nbsp;&lt;sng@hellug.gr&gt;<br>
132 <br>
133 what-cd&nbsp;will&nbsp;try&nbsp;to&nbsp;identify&nbsp;your&nbsp;CD/DVDs<br>
134 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>
135 CD-Writer,&nbsp;DVD-Reader,&nbsp;and&nbsp;DVD-Writer.<br>
136 <br>
137 Usage:&nbsp;what-cd&nbsp;[options]<br>
138 Availabe&nbsp;options&nbsp;are:<br>
139 &nbsp;&nbsp;&nbsp;&nbsp;d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;info&nbsp;about&nbsp;DVDs<br>
140 &nbsp;&nbsp;&nbsp;&nbsp;w&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print&nbsp;info&nbsp;about&nbsp;writers<br>
141 &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>
142 &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>
143 &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>
144 &nbsp;&nbsp;&nbsp;&nbsp;e&nbsp;deviceID&nbsp;&nbsp;Eject&nbsp;device&nbsp;deviceID<br>
145 &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>
146 &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>
147 &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>
148 &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>
150 <p>Its typical usage would be to identify the DVD writer:</p>
152 <p class="newcode"># <font color="Green">what-cd -dw</font><br>
153 Device /dev/hdd (id=0) can not write DVDs<br>
154 Device <font color="Magenta">/dev/hdc</font> (id=1) can write DVDs</p>
156 <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>
158 <p class="newcode"># <font color="Green">what-cd -dwb</font><br>
159 /dev/hdc</p>
161 <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>
162 <p>Included in: <b>SystemRescueCD</b><br><br>
164 <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>
166 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>
168 <p>Its help screen is the following:</p>
170 <p class="newcode"># <font color="Green">continue-multi-cd&nbsp;-h</font><br>
171 continue-multi-cd&nbsp;-&nbsp;v&nbsp;2.0.0&nbsp;-&nbsp;S.&nbsp;Georgaras&nbsp;&lt;sng@hellug.gr&gt;<br>
172 <br>
173 Usage:&nbsp;continue-multi-cd&nbsp;[options]&nbsp;&lt;path&nbsp;to&nbsp;be&nbsp;added&nbsp;to&nbsp;CD&gt;<br>
174 <br>
175 Available&nbsp;options&nbsp;are:<br>
176 &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>
177 &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>
178 &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>
179 &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>
180 &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>
181 &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>
182 &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>
183 &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>
184 &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>
186 <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>
188 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>
190 <p class="newcode"><font color="Green">continue-multi-cd -mwr /home/user/extra-doc</font></p>
192 <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>
194 <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>
196 <p class="newcode">mkdir -p /tmp/for-the-cd<br>
197 cp -r /home/user/extra-doc /tmp/for-the-cd<br>
198 <font color="Green">continue-multi-cd -r /tmp/for-the-cd</font><br>
199 rm -rf /tmp/for-the-cd</p>
201 <!--not-on-txt-->
202 <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>
203 <p>Included in: <b>SystemRescueCD</b><br><br>
205 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>
207 <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.
209 <!--end-not-on-txt-->
210 </div>
214 <!--<a name="template-top"></a>-->
216 <div id="footer">
217 <div id="docline-bottom"> <a href="recover.html">&lt; PREV</a> <a href="doc.html">UP</a> <a href="annex-a-devices.html">NEXT &gt;</a> </div>
218 <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/>
219 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>
220 </div>
221 </div>
222 <div id="warning" align="center">
223 WARNING<br>
224 This is the UNSTABLE version of Clonezilla-SysRescCD<br>
225 To access our current stable version, please click <a href="../index.html">here</a>
226 </div>
227 </body>
228 </html>


Name Value
svn:executable *

ViewVC Help
Powered by ViewVC 1.1.26