Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 2007_07.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
4 <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="generator" content="Movable Type 5.2.3" />
7
8    <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9    <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml"$>" />
11
12    <title>Status for Andrew DeFaria: July 2007 Archives</title>
13
14    <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15    <link rel="prev" href="http://defaria.com/blogs/Status/archives/2007_06.html" title="June 2007" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/2007_08.html" title="August 2007" />
17 </head>
18 <body class="layout-one-column">
19    <div id="container">
20       <div id="container-inner" class="pkg">
21
22          <div id="banner">
23             <div id="banner-inner" class="pkg">
24                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
25                <h2 id="banner-description">Searchable status reports and work log</h2>
26             </div>
27          </div>
28
29          <div id="pagebody">
30             <div id="pagebody-inner" class="pkg">
31                <div id="alpha">
32                   <div id="alpha-inner" class="pkg">
33                      
34                      <p class="content-nav">
35                         <a href="http://defaria.com/blogs/Status/archives/2007_06.html">&laquo; June 2007</a> |
36                         <a href="http://defaria.com/blogs/Status/">Main</a>
37                         | <a href="http://defaria.com/blogs/Status/archives/2007_08.html">August 2007 &raquo;</a>
38                      </p>
39                      
40                      
41                      <!--
42 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
43          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
44          xmlns:dc="http://purl.org/dc/elements/1.1/">
45 <rdf:Description
46     rdf:about="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000657"
47     trackback:ping="http://defaria.com/mt/mt-tb.cgi/44"
48     dc:title="CC/CQ on Linux"
49     dc:identifier="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000657"
50     dc:subject="General Dynamics"
51     dc:description=" Fixed problem with cleartrig for the Linux clients Investigated and found a work around to font problems between Linux and Sun Met with development/test teams regarding documentation visibility. Also worked out the differences in the documents between builds 1,..."
52     dc:creator=""
53     dc:date="2007-07-31T17:25:51-06:00" />
54 </rdf:RDF>
55 -->
56
57
58                      <h2 class="date-header">July 31, 2007</h2>
59                      <a id="a000657"></a>
60                      <div class="entry" id="entry-657">
61                         <h3 class="entry-header">CC/CQ on Linux</h3>
62                         <div class="entry-content">
63                            <div class="entry-body">
64                               <ul>
65   <li>Fixed problem with cleartrig for the Linux clients</li>
66
67   <li>Investigated and found a work around to font problems between Linux and Sun</li>
68
69   <li>Met with development/test teams regarding documentation visibility. Also worked out the differences in the documents between builds 1, 2 and 3</li.
70 </ul>
71                               
72                               <h3>Cleartrig and font problems on Linux clients</h3>
73
74 <p>I hit a few problems when attempting to verify proper execution of Clearcase/Clearquest and our WOR integration on Linux machines.</p>
75
76 <h3>Cleartrig problems</h3>
77
78 <p>The first problem was that the Linux installation of Cleartrig (remotely accessible through /cleartrib/bin) was missing execute permissions for group and other. The solution to this was to add execute permissions.</p>
79
80 <h3>Font Problems</h3>
81
82 <p>his is running under the assumption that:</p>
83
84 <ol>
85   <li>The user is on a Solaris box and running CDE and</li>
86
87   <li>The user is remotely logged into a Linux box (currently only ranlin02 and ranlin03) and displaying back to his/her Solaris machine</li>
88 </ol>
89
90 <p>The user may see dialog boxes with no text or other errors relating to fonts. Since most engineers use Solaris and CDE many X Font Resources are set to fonts only available on CDE supported systems<sup>1</sup>. For example, executing xrdb -q | grep -i font may result in the
91 following:</p>
92
93 <div class=code><pre>
94 *Font:             -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*
95 *FontList:         -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*
96 *labelFontList:    -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*
97 ...
98 </pre></div>
99
100 <p>Needless to say these "dt" fonts are not known in the Linux world and this causes Clearcase/Clearquest some problems when running remotely displayed to an X server using such font. The solution is to use more universally acceptable fonts such as fixed. The following set of X Font Resources seems to work:</p>
101
102 <div class=code><pre>
103 *Font:                  fixed
104 *FontList:              fixed
105 *labelFontList:         fixed
106 *buttonFontList:        fixed
107 *textFontList:          fixed
108 *DtEditor*textFontList: fixed
109 *systemFont:            fixed
110 *XmText*FontList:       fixed
111 *FontSet:               fixed
112 *XmTextField*FontList:  fixed
113 *fontGroup:             Courier
114 </pre></div>
115
116 <p>If you are experiencing problems with X Fonts when running from a Linux machine add the above lines to a file, say ~/.fonts then do</p>
117
118 <div class=code><pre>
119 $ xrdb -m ~/.fonts
120 </pre></div>
121
122 <h4>Notes:</h4>
123 <ol>
124   <li><a name="note1"></a>These "dt" fonts are often set into CDE's environment when say using the Style Manager to change your font settings.</li>
125 </ol>
126
127                               
128                               <p class="entry-footer">
129                                  <span class="post-footers">Posted by  at  5:25 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000657.html">Permalink</a>
130                                  
131                                  | <a href="http://defaria.com/blogs/Status/archives/000657.html#trackback">TrackBacks (0)</a>
132                               </p>
133                            </div>
134                         </div>
135                      </div>
136                      
137                      <!--
138 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
139          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
140          xmlns:dc="http://purl.org/dc/elements/1.1/">
141 <rdf:Description
142     rdf:about="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000656"
143     trackback:ping="http://defaria.com/mt/mt-tb.cgi/43"
144     dc:title="Clearquest on Linux"
145     dc:identifier="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000656"
146     dc:subject="General Dynamics"
147     dc:description=" Worked with Kirk on getting Clearquest working on ranlin02/03..."
148     dc:creator=""
149     dc:date="2007-07-27T14:35:37-06:00" />
150 </rdf:RDF>
151 -->
152
153
154                      <h2 class="date-header">July 27, 2007</h2>
155                      <a id="a000656"></a>
156                      <div class="entry" id="entry-656">
157                         <h3 class="entry-header">Clearquest on Linux</h3>
158                         <div class="entry-content">
159                            <div class="entry-body">
160                               <ul>
161   <li>Worked with Kirk on getting Clearquest working on ranlin02/03</li>
162 </ul>
163                               
164                               <p class="entry-footer">
165                                  <span class="post-footers">Posted by  at  2:35 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000656.html">Permalink</a>
166                                  
167                                  | <a href="http://defaria.com/blogs/Status/archives/000656.html#trackback">TrackBacks (0)</a>
168                               </p>
169                            </div>
170                         </div>
171                      </div>
172                      
173                      <!--
174 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
175          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
176          xmlns:dc="http://purl.org/dc/elements/1.1/">
177 <rdf:Description
178     rdf:about="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000655"
179     trackback:ping="http://defaria.com/mt/mt-tb.cgi/42"
180     dc:title="PHP Web/Clearquest install/cq_setup.csh"
181     dc:identifier="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000655"
182     dc:subject="General Dynamics"
183     dc:description=" Finished recoding RAN web using PHP, better HTML coding and CSS Documented new PHP Web Copied large CC &amp; CQ install image over to RAN. Tried running Clearquest. Was receiving error Learned that we have a copy of cq_setup.csh..."
184     dc:creator=""
185     dc:date="2007-07-25T18:46:41-06:00" />
186 </rdf:RDF>
187 -->
188
189
190                      <h2 class="date-header">July 25, 2007</h2>
191                      <a id="a000655"></a>
192                      <div class="entry" id="entry-655">
193                         <h3 class="entry-header">PHP Web/Clearquest install/cq_setup.csh</h3>
194                         <div class="entry-content">
195                            <div class="entry-body">
196                               <ul>
197   <li>Finished recoding RAN web using PHP, better HTML coding and CSS</li>
198
199   <li>Documented new PHP Web</li>
200
201   <li>Copied large CC & CQ install image over to RAN. Tried running Clearquest. Was receiving error</li>
202
203   <li>Learned that we have a copy of cq_setup.csh that is sourced by the csh startup scripts. But it uses a Sun version. This obviously causes problems for Linux machines</li>
204 </ul>
205                               
206                               <p>I downloaded the Rational 2003.06.00 release tarball that Carlos provided me and installed it on ranlin02. I have the following problem when trying to run Clearquest I get the following error:</p>
207
208 <div class=code><pre>
209 <font  color="#3333ff"><b>Ranlin02:</b></font><u>/opt/rational/clearquest/bin/clearquest</u>
210 /opt/rational/clearquest/rhat_x86/bin/clearquest_main: error while loading shared libraries: libXmu.so: cannot open shared object file: No such file or directory
211 </pre></div>
212
213 <p>Looking at the <a
214  href="http://www-1.ibm.com/support/docview.wss?uid=swg21202987&amp;aid=1">ClearQuest
215 and Clearquest MultiSite Release Notes</a> I find:</p>
216
217 <blockquote>
218   <h3>Linux symbolic links to Motif libraries</h3>
219
220   <p>ClearQuest uses the Motif libraries native to the machine, and these libraries need to include the proper symbolic links. If the symbolic links are not established, the following error occurs when invoking</p>
221
222   <tt>ClearQuest:/opt/rational/clearquest/rhat_x86/bin/clearquest_main:
223 error while loading shared libraries: libXmu.so: cannot open shared
224 object file: No such file or directory</tt> <br>
225
226   <p>The error complains about the first of several libraries it cannot find. To insure that the symlinks are created, it is necessary that the</p>
227
228   <tt>XFree86-devel-*</tt><br>
229
230   <p>package be installed when installing the OS.</p>
231 </blockquote>
232
233 <p>And, of course:</p>
234
235 <div class=code><pre>
236 <font color="#3333ff"><b>Ranlin02:</b></font><u>rpm -qa | grep XFree86-devel</u>
237 <font color="#3333ff"><b>Ranlin02</b></font>:
238 </pre></div>
239
240 <p>So can we get XFree86-devel-* installed?</p>
241
242 <p>On a different but related note, we generally support only Sun and only csh (and it's derivatives - tcsh). We have a serious of csh style start up scripts (which I've largely replicated/converted for bash...) one of which sources /prj/muosran/config/cq_setup.csh. That is merely a copy of a /opt/rational/clearquest/bin/cq_setup.csh. Contained therein is a reference to sun5 which is bad because this source of /prj/muosran/config/cq_setup.csh is global and thus sourced by users of Linux machines. Naturally Linux user will not be finding any sun5 executables nor executing them.</p>
243
244 <p>I've made a modification to /proj/muosran/config/cq_setup.csh as such:</p>
245
246 <div class=code><pre>
247 #!/bin/csh -f<br><br>#  Andrew@DeFaria.com 07-25-2007: By specifying sun5 we tie
248 # ourselves to an architecture. There is no need to do this.
249 # Call the clearquest in /opt/rational/clearquest/bin and let
250 # it figure out our architecture.
251
252 #eval `/opt/rational/clearquest/sun5/bin/clearquest -dumpcsh`<br>eval `/opt/rational/clearquest/bin/clearquest -dumpcsh`
253
254 set var = $status
255 if ($var != 0) then
256     unset var
257     exit(2)
258 endif
259 unset var
260
261 #echo "You can now run 'clearquest' to start Rational ClearQuest."
262 </pre></div>
263
264 <p>Still all of this seem pretty arbitrary. What is the above script doing but checking that clearquest can simply be run? Why set an environment variable (var) only to test it and then ultimately unset it?!? Seems like really odd and unnecessary code from IBM/Rational.</p>
265                               
266                               <p class="entry-footer">
267                                  <span class="post-footers">Posted by  at  6:46 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000655.html">Permalink</a>
268                                  
269                                  | <a href="http://defaria.com/blogs/Status/archives/000655.html#trackback">TrackBacks (0)</a>
270                               </p>
271                            </div>
272                         </div>
273                      </div>
274                      
275                      <!--
276 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
277          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
278          xmlns:dc="http://purl.org/dc/elements/1.1/">
279 <rdf:Description
280     rdf:about="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000654"
281     trackback:ping="http://defaria.com/mt/mt-tb.cgi/41"
282     dc:title="Automating Clearcase Installs"
283     dc:identifier="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000654"
284     dc:subject="General Dynamics"
285     dc:description=" Created auto install script for Linux..."
286     dc:creator=""
287     dc:date="2007-07-19T16:40:48-06:00" />
288 </rdf:RDF>
289 -->
290
291
292                      <h2 class="date-header">July 19, 2007</h2>
293                      <a id="a000654"></a>
294                      <div class="entry" id="entry-654">
295                         <h3 class="entry-header">Automating Clearcase Installs</h3>
296                         <div class="entry-content">
297                            <div class="entry-body">
298                               <ul>
299   <li>Created auto install script for Linux</li>
300 </ul>
301                               
302                               <h2>Automating Clearcase Installs</h2>
303
304 <p>Often you want to easily and quickly be able to install Clearcase on systems. Of course, there are lots of considerations, hence lots of parameters to consider. IBM/Rational's solution to this is <i>install_release</i> which is really just a script that calls <i>inst_rls</i>, yet another Perl script, to do the installation. As it does it prompts for parameters and performs the install. But it would be nice to be able to run through the prompts once, answering all the questions for a batch of similarly configured machines, then run that install on those machines.</p>
305
306 <p>Now IBM/Rational even thought of this and <i>install_release</i> has a facility to perform multiple installs remotely to a bunch of machines. But you may not have all of those machines up and running nor identified.</p>
307
308 <p>Or you may wish to automate the process yourself, scripting a solution that queries other things to determine exactly which type of install to do.</p>
309
310 <h3>Running install_release with -echo_cmd_only</h3>
311
312 <p>While no longer documented, running <i>install_release</i> with the parameter  -echo_cmd_only causes <i>install_release</i> to run through all of the prompts and then it just spits out the full command line that will perform the install as specified. This command line can then be used as the basis for your own automation.</p>
313
314 <p>The following is a quick script to install Clearcase 6.x on Redhat systems:</p>
315
316 <div class=code><pre>
317 #!/bin/bash
318 #
319 # Quick script to install Clearcase 6.x on Redhat x86 64 bit
320 #
321 # Andrew@DeFaria.com
322
323 if [ $(id -u) != 0 ]; then
324   echo "ERROR: You must be root to install Clearcase"
325   exit 1
326 fi
327
328 # Define some parameters that might be changing
329 registry_region=cclinux
330 registry_host=cclinux
331 license_host=cclic
332 release_path=/net/cclinux/opt/clearcase/ccrel6.0_pXX_rhat/2003.06.00/rhat_x86
333 release_area=$release_path/clearcase/install
334 logfile=/tmp/Rational_install.$(date +%y%m%d.%M.%S)
335
336 cd $release_area
337
338 # Now install
339 ./install_release      \
340   -nlog                \
341   -rbh Unknown         \
342   -comp
343 ratl_perl,atria_perl,atria_install,atria_basement,atria_cplus_shlib,
344 atria_base,CC_base,atria_X11_base,CC_client,atria_server,
345 atria_cplus_base,atria_gui,CC_doc,CC_bld_client,CC_vob_svr,
346 CC_view_svr,CC_int_client,CC_gui_client,CC_cnv_client,CC_MIN_STD,
347 CC_ONLY_SERVER,MS_shipping_server,CC_FULL,MS_all,MS_FULL   \
348   -rr $registry_region \
349   -to /opt/rational    \
350   -rebuild_vnode 0     \
351   -log $logfile        \
352   -level 5             \
353   -from $release_path  \
354   -patch_kernel 0      \
355   -rh $registry_host   \
356   -local               \
357   -model full          \
358   -lh $license_host    \
359   -no_query
360 </pre></div>
361
362 <h3>Notes:</h3>
363
364 <ol>
365   <li>I inserted a little check at the top to make sure you're root when you run this script. You need to be root to install Clearcase</li>
366
367   <li>I've defined a few variables that might change like the release area, registry host, registry region, etc.</li>
368
369   <li>Needed to add -no_query to get this install script to not stop querying for further options. This has been observed on Linux only.</li>
370
371   <li>All -comp components need to specified on one line, separated by comma with no spaces. It has been broken up above for readability purposes only.</li>
372 </ol>
373
374                               
375                               <p class="entry-footer">
376                                  <span class="post-footers">Posted by  at  4:40 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000654.html">Permalink</a>
377                                  
378                                  | <a href="http://defaria.com/blogs/Status/archives/000654.html#trackback">TrackBacks (0)</a>
379                               </p>
380                            </div>
381                         </div>
382                      </div>
383                      
384                      <!--
385 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
386          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
387          xmlns:dc="http://purl.org/dc/elements/1.1/">
388 <rdf:Description
389     rdf:about="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000653"
390     trackback:ping="http://defaria.com/mt/mt-tb.cgi/40"
391     dc:title="Deliver build changes"
392     dc:identifier="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000653"
393     dc:subject="General Dynamics"
394     dc:description=" Delivered changed to build (removing checking out of Clearcase elements during build) Investigated how ranweb is set up and documented differences in the menus Wrote RAN.php which could be used to do the menus in a a consistent form..."
395     dc:creator=""
396     dc:date="2007-07-19T11:12:02-06:00" />
397 </rdf:RDF>
398 -->
399
400
401                      
402                      <a id="a000653"></a>
403                      <div class="entry" id="entry-653">
404                         <h3 class="entry-header">Deliver build changes</h3>
405                         <div class="entry-content">
406                            <div class="entry-body">
407                               <ul>
408   <li>Delivered changed to build (removing checking out of Clearcase elements during build)</li>
409
410   <li>Investigated how ranweb is set up and documented differences in the menus</li>
411
412   <li>Wrote RAN.php which could be used to do the menus in a a consistent form</li>
413 </ul>
414                               
415                               <p class="entry-footer">
416                                  <span class="post-footers">Posted by  at 11:12 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000653.html">Permalink</a>
417                                  
418                                  | <a href="http://defaria.com/blogs/Status/archives/000653.html#trackback">TrackBacks (0)</a>
419                               </p>
420                            </div>
421                         </div>
422                      </div>
423                      
424                      <!--
425 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
426          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
427          xmlns:dc="http://purl.org/dc/elements/1.1/">
428 <rdf:Description
429     rdf:about="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000652"
430     trackback:ping="http://defaria.com/mt/mt-tb.cgi/39"
431     dc:title="Help Desk Cleanup"
432     dc:identifier="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000652"
433     dc:subject="General Dynamics"
434     dc:description=" Cleaned up and closed several help desk tickets Delivered and closed RAX_LMC WOR Worked with Kirk on installing Clearcase on Linux servers...."
435     dc:creator=""
436     dc:date="2007-07-18T16:25:16-06:00" />
437 </rdf:RDF>
438 -->
439
440
441                      <h2 class="date-header">July 18, 2007</h2>
442                      <a id="a000652"></a>
443                      <div class="entry" id="entry-652">
444                         <h3 class="entry-header">Help Desk Cleanup</h3>
445                         <div class="entry-content">
446                            <div class="entry-body">
447                               <ul>
448   <li>Cleaned up and closed several help desk tickets</li>
449
450   <li>Delivered and closed RAX_LMC WOR</li>
451
452   <li>Worked with Kirk on installing Clearcase on Linux servers.</li>
453 </ul>
454                               
455                               <p class="entry-footer">
456                                  <span class="post-footers">Posted by  at  4:25 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000652.html">Permalink</a>
457                                  
458                                  | <a href="http://defaria.com/blogs/Status/archives/000652.html#trackback">TrackBacks (0)</a>
459                               </p>
460                            </div>
461                         </div>
462                      </div>
463                      
464                      <!--
465 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
466          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
467          xmlns:dc="http://purl.org/dc/elements/1.1/">
468 <rdf:Description
469     rdf:about="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000650"
470     trackback:ping="http://defaria.com/mt/mt-tb.cgi/38"
471     dc:title="View space/Locked stream"
472     dc:identifier="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000650"
473     dc:subject="General Dynamics"
474     dc:description=" Resolved a ticket where the user was unable to deliver due to lock on activity - which is really a lock on the stream Did an analysis of view disk space usage Assisted Kirk and Tom with Clearcase 7.0.1.0..."
475     dc:creator=""
476     dc:date="2007-07-11T17:11:16-06:00" />
477 </rdf:RDF>
478 -->
479
480
481                      <h2 class="date-header">July 11, 2007</h2>
482                      <a id="a000650"></a>
483                      <div class="entry" id="entry-650">
484                         <h3 class="entry-header">View space/Locked stream</h3>
485                         <div class="entry-content">
486                            <div class="entry-body">
487                               <ul>
488   <li>Resolved a ticket where the user was unable to deliver due to lock on activity - which is really a lock on the stream</li>
489
490   <li>Did an analysis of view disk space usage</li>
491
492   <li>Assisted Kirk and Tom with Clearcase 7.0.1.0 installation on Linux</li>
493
494   <li>Fixed problem with ssh public key authentication</li>
495 </ul>
496                               
497                               <h2>View space</h2>
498
499 <p>I looked into the disk space usage on the view2 server (partitions view2a, view2b and view2c0 and find the following:</p>
500
501 <img src="/blogs/images/view2a.jpg"><br>
502 <img src="/blogs/images/view2a_list.jpg"><br>
503 <img src="/blogs/images/view2b.jpg"><br>
504 <img src="/blogs/images/view2b_list.jpg"><br>
505 <img src="/blogs/images/view2c.jpg"><br>
506 <img src="/blogs/images/view2c_list.jpg"><br>
507
508 <h2>View Policy and view_db.crs_file size</h2>
509
510 <p>When you use use dynamic view and <tt>clearmake(1)</tt> to utilize <i>build
511 avoidance</i> by <i>winking </i>in <i>derived objects</i>, Clearcase
512 stores <i>configuration records</i> in the view's storage directory
513 (.s):</p>
514
515 <blockquote>
516
517 <p><small class="AllCaps Text"><b>CONFIGURATION RECORDS.</b></small>
518 The file <b>view_db.crs_file</b> in the <b>.s</b> subdirectory is actually part of the view's database, as described inthe following section. It is the part that stores the configuration records of derived objects built in the view.</p>
519
520 <p>...</p>
521
522 <p><b>view_db.crs_file</b></p>
523
524 <p>Stores the configuration records of nonshareable and unshared derived objects. This file resides in subdirectory <b>.s</b> of the view storage directory, allowing it to be remote.</p>
525
526 <p>Compressed copies of the configuration records are cached in a view-private file, <b>.cmake.state</b>, located in the directory that was current when the build started. This speeds up configuration lookup during subsequent builds in the view.</p>
527
528 </blockquote>
529
530 <p>The view_db.crs_file can get fairly large over time. This is another reason why Rational says that "views should be used like Kleenex".</p>
531
532 <h2>Recovering View Space</h2>
533
534 <p>According to <a
535  href="http://members.cox.net/ejostrander/clearteam/cc_howto.html">Eric J. Ostrander's ClearCase / ClearQuest pages</a>:</p>
536
537 <blockquote>
538
539 <h3> Release view database disk space back to the system.</h3>
540
541 <p>As data is collected in a view, the view's database increases in size. Commands such as view_scrubber that remove DOs from a view merely release logical space inside the view's database. That is, the disk space taken by the database does not shrink. This is true for the <i>view-storage</i>/db/* files and the <i>view-storage</i>/.s/view_db.crs_file file (which contains the derived object configuration records). To actually release that
542 space back to the system, one needs to run recoverview twice on that view. Normally recoverview is only needed when a VOB is no longer available and the view's view-private files that once belonged to the VOB are now stranded. However, it has the added benefit that it calls reformatview, which in turn cleans up the database.</p>
543
544 <p>The recoverview must be run twice. The first pass releases any unused space in the database back to the system and cleans up CRs no longer attached to a DO. The second pass releases the now newly unused space (freed up in the first pass) back to the system. A third run has no affect.</p>
545
546 <p>An attempt to run reformatview by itself (which is actually the only part that is really needed) will result in the message "reformat not needed for view". Unfortunately,  reformatview does not have a -force option, but recoverview does.</p>
547
548 <div class=code><pre>
549 # ct recoverview -force -tag <i>view-tag</i>
550 # ct recoverview -force -tag <i>view-tag</i>
551 </pre></div>
552
553 <p><b>NOTE:</b> Running recoverview does not affect view-private files.</p>
554
555 <p><b><font color="red">WARNING!</font></b> Rational recommends not being
556 anywhere in the <i>view-storage</i>area during the recoverview/reformatview (reason unknown).</p>
557 </blockquote>
558
559 <h3>Clearcase 7.0.1.0 Installation on Linux</h3>
560
561 <p>In installing Clearcase 7.0.1.0 on Linux, Kirk and Tom were having problems getting it set up as a registry server. One problem was that they incorrectly named the config file rgy_srv.conf instead of rgy_svr.conf (I always get those wrong myself). There also seems to be an issue where there are two directories, both under /var/adm/rational/clearcase, one named rgy (where the registry is stored) and one named config (where other config files are stored). And there are additional config files related to the registry, rgy_hosts.conf and rgy_region.conf. As it seems to turn out those three files (rgy_svr.conf, rgy_hosts.conf and rgy_region.conf) need to be in both the rgy and config directories under /var/adm/rational/clearcase. Is this new for 7.0.1.0?</p>
562
563 <p>Turns out I was mistaken. While I was working on this so was Kirk. So our actions overlapped and effected each other. The real thing is that these rgy_*.conf files rightfully moved from the rgy directory to the conf directory for 7.0.</p>
564                               
565                               <p class="entry-footer">
566                                  <span class="post-footers">Posted by  at  5:11 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000650.html">Permalink</a>
567                                  
568                                  | <a href="http://defaria.com/blogs/Status/archives/000650.html#trackback">TrackBacks (0)</a>
569                               </p>
570                            </div>
571                         </div>
572                      </div>
573                      
574                      <!--
575 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
576          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
577          xmlns:dc="http://purl.org/dc/elements/1.1/">
578 <rdf:Description
579     rdf:about="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000649"
580     trackback:ping="http://defaria.com/mt/mt-tb.cgi/37"
581     dc:title="Removed views/documented customizing Unix environments"
582     dc:identifier="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000649"
583     dc:subject="General Dynamics"
584     dc:description=" Worked with Tom and Bryce to remove views from p57707 Wrote a document describing how to customize your Unix CDE environment..."
585     dc:creator=""
586     dc:date="2007-07-10T16:17:52-06:00" />
587 </rdf:RDF>
588 -->
589
590
591                      <h2 class="date-header">July 10, 2007</h2>
592                      <a id="a000649"></a>
593                      <div class="entry" id="entry-649">
594                         <h3 class="entry-header">Removed views/documented customizing Unix environments</h3>
595                         <div class="entry-content">
596                            <div class="entry-body">
597                               <ul>
598   <li>Worked with Tom and Bryce to remove views from p57707</li>
599
600   <li>Wrote a document describing how to customize your Unix CDE environment</li>
601 </ul>
602                               
603                               <h3>Removing views with pending deliveries</h3>
604
605 <p>Had an issue where a user (p57707) had left the company but still had UCM related views. In attempting to remove those views to free up space I was told that there was a delivery in progress. Yet if I set to that view and did ct deliver -cancel it would say that there was no delivery in progress. The best thing to do here is to do a ct lsact -cact which should be the deliver activity. Then find which view these was delivered from. IOW this view was the destination view for the delivery and we needed to find where the delivery was initiated from.  Then ct deliver -cancel|-resume from that stream/view.</p>
606
607 <h3>Tips on Personalizing your Unix/CDE environment</h3>
608
609 <p>Way back in the day I used to alpha test HP's VUE which latter became the basis for CDE. Oh yes it's brought back memories for sure, and a couple of head scratches as I strive to remember how to configure, customize and personalize things. Perhaps you too have wished to make the environment a little better. Well here's some tips...</p>
610
611 <h3>Get control of your X Resources</h3>
612
613 <p>A lot of CDE and X can be controlled via X Resources. But how do you manage your X resources in a CDE environment? In general, xrdb(1) is your friend. CDE saves your "session" using X resource files that are loaded via xrdb(1) at session start up. Additionally (I believe) that X loads any and all resources in ~/.Xresources at start. So the trick is to get all your X resources into ~/.Xresources and to start actively managing them. You can do this as follows:</p>
614
615 <div class=code><pre>
616 $ xrdb -q &gt; ~/.Xresources
617 </pre></div>
618
619 <p>Now you can add and/or adjust resources in to your liking then do xrdb -l ~/.Xresources. Remember, xrdb -l ~/.Xresources will always get you back to your <i>known set</i> of X Resources.</p>
620
621 <h3>To find if a resource is set</h3>
622
623 <p>You can see if a resource is set by using the following:</p>
624
625 <div class=code><pre>
626 $ xrdb -q | grep -i &lt;<i>resource string</i>&gt;
627 </pre></div>
628
629 <p>I've attached my ~/.Xresources. Let me bring a few to your attention. Note that resources that start with "*" are global in nature. Thus "*background: &lt;<i>color</i>&gt;" will serve as the background for any X application that doesn't explicitly set a background color. "*"'s between resource names are more general than "."'s. Just think "*" expands to anything where "." expands to one character.</p>
630
631 <p>The "Dtwm*0*backdrop*image: NoBackdrop" says not to set a CDE "Backdrop" on any of the workspaces. Instead I use xv to randomly change my backdrops from jpg images. More on that later...</p>
632
633 <h3>Using Xresource Classes</h3>
634
635 <p>Rather than start Xterms (or dtterms) with:</p>
636
637 <div class=code><pre>
638 $ xterm -fg white -bg black -sl 5000 -cr green \
639 &gt; -sb -e rsh &lt;other machine&gt;
640 $ xterm -fg yellow -bg blue -sl 5000 -sb -e rsh &lt;other machine&gt;
641 </pre></div>
642
643 <p>thus having long lists of options, classify your resources such as:</p>
644
645 <div class=code><pre>
646 XServer*background:    Black
647 XServer*foreground:    Green
648 XServer*colorBD:       Yellow
649 XServer*colorUL:       Red
650 XServer*cursorColor:   Yellow
651 </pre></div>
652
653 <p>Then use xterm -name XServer and all of those X Resources that start with, in this case, XServer will be used. You can set generic or global resources such as;</p>
654
655 <div class=code><pre>
656 XTerm*saveLines:      5000
657 XTerm*scrollbar:      True
658 </pre></div>
659
660 <h3>Setting Meta (or the Diamond key) to be Emacs mode Meta key</h3>
661
662 <p>Did you know that (even in tcsh) generally Emacs key bindings are in effect at the command line. This while arrow up gets you the previous command in the command history stack so does Cntl-P also go to the previous command. Other Emacs bindings that work:</p>
663
664 <ul>
665   <li>C-p: Previous command in history stack</li>
666   <li>C-n: Next command in history stack</li>
667   <li>C-a: Go to beginning of line</li>
668   <li>C-e: Go to end of line</li>
669   <li>C-f: Go forward one character</li>
670   <li>M-f: Go forward one word</li>
671   <li>C-b: Go backward one character</li>
672   <li>M-b: Go backward one word</li>
673   <li>C-d: Delete one character</li>
674   <li>M-d: Delete one word</li>
675   <li>C-t: Transpose two characters</li>
676 </ul>
677
678 <p>Additionally, in bash, C-r stands for search backward in the history stack. tcsh does not support this. Using such keybindings keeps your hands on the keyboard and improves your productivity.</p>
679
680 <p>M-f listed above means "hold the meta key down and type f". The meta key is defined as Escape, which, unfortunately will repeat if held down. Most people map this to the "Alt" key. The Sun keyboard has both an Alt key and two "Diamond" keys that are normally labeled Alt on PC keyboards. Therefore it's good to configure your terminal emulator to
681 use this Diamond/Alt key as Emacs' Meta key. To do this for Xterm use the following X resource (best put into your ~/.Xresouces):</p>
682
683 <div class=code><pre>
684 Xterm*eightBitInput: True
685 </pre></div>
686
687 <p>and Dtterm:</p>
688
689 <div class=code><pre>
690 Dtterm*kshMode: True
691 </pre></div>
692
693 <p>Side note about "kshMode". This is a misnomer really. True, ksh does support Emacs style keybindings (set -o emacs or set -o vi for you vi guys) and it is useful to have Alt =&gt; Meta. However ksh is not the only shell that this is useful for. It is also useful for tcsh and bash, for example.</p>
694
695 <h3>Taking Control of your Buttons and Keybindings</h3>
696
697 <p>The following:</p>
698
699 <div class=code><pre>
700 Dtwm*keyBindings:    MyKeys
701 Dtwm*buttonBindings: MyButtons
702 </pre></div>
703
704 <p>Tell the window manager (Dtwm) not to use the default keyBindings and buttonBindings but instead to use MyKeys and MyButtons instead. These are defined in your dtwmrc, which is under ~/.dt/en_US.ISO8859-1/dtwmrc (which I've also attached). I started by copying the system dtwmrc (cp /usr/dt/config/C/sys.dtwmrc ~/.dt/en_US.ISO8859-1) and then modified it.</p>
705
706 <p>You're dtwmrc can be very complicated. See dtwmrc(1) for more info. Here are MyButtons:</p>
707
708 <div class=code><pre>
709 Buttons MyButtons
710 {
711   &lt;Btn1Down&gt;        root              f.menu Terminals
712   &lt;Btn1Down&gt;        window|frame|icon f.raise
713   &lt;Btn2Click&gt;       root              f.toggle_frontpanel
714   &lt;Btn3Down&gt;        root              f.menu  DtRootMenu
715   &lt;Btn3Down&gt;        icon              f.post_wmenu
716   Shift&lt;Btn1Click&gt;  frame|icon        f.lower
717   &lt;Btn1Click&gt;       frame|icon|window f.raise
718   &lt;Btn1Click2&gt;      frame             f.maximize
719   &lt;Btn1Click2&gt;      icon              f.restore
720   &lt;Btn2Click&gt;       frame|icon        f.raise_lower
721   &lt;Btn3Down&gt;        frame|icon        f.post_wmenu
722   Alt&lt;Btn1Click&gt;    frame|icon|window f.raise
723   Alt&lt;Btn1Click2&gt;   frame|window      f.minimize
724   Alt&lt;Btn1Click2&gt;   icon              f.restore
725   Alt&lt;Btn2Click&gt;    frame|icon        f.raise_lower
726   Alt&lt;Btn1Down&gt;     frame|icon|window f.move
727   Alt&lt;Btn3Down&gt;     window            f.minimize
728 }
729 </pre></div>
730
731 <p>Many of these are taking from the defaults. Here are some of the changes I made:</p>
732
733 <ul>
734   <li>Changed Btn1Down to bring up the "Terminals" menu</li>
735   <li>Added "window" to the places where a Btn1Down would do a raise. This allows me to click on the window itself to raise it instead of having to find the window border.</li>
736 </ul>
737
738 <h3>Changing your desktop background</h3>
739
740 <p>I have a series of images that I like to constantly refresh on my background. I put them in ~/Images. CDE has terrible desktop background support (like circa 1990) and only supports xpm (which is a horrible image file format!). xv is an image viewer than handles more modern image file formats such as .gif, .jpg, and .png. It also has options
741 for setting the backdrop (provided CDE is not putting up a .xpm backdrop image, hence the "Dtwm*0*backdrop*image: NoBackdrop" setting). Now how do we get this to do this periodically?</p>
742
743 <p>The answer? Perl. I've attached a Perl script that sets your backdrop by choosing a random image from all of those under ~/Images every hour or whenever it receives a SIGUSR2.</p>
744
745 <p>Oh and if you wish feel free to:</p>
746
747 <div class=code><pre>
748 $ mkdir ~/Images
749 $ cp ~p6238c/Images ~/Images
750 </pre></div>
751
752 <p>Or</p>
753
754 <div class=code><pre>
755 $ ln -s ~p6258c/Images ~/Images
756 </pre></div>
757
758 <div class=code><pre>
759 *0*ColorPalette:        SoftBlue.dp
760 *0*ColorUse:    HIGH_COLOR
761 *DtEditor*textFontList: -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*:
762 *DtTerm*shadowThickness:        1
763 *Font:  -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*
764 *FontList:      -dt-interface system-medium-r-normal-s*-*-*-*-*-*-*-*-*:
765 *FontSet:       -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*
766 *HelpColorUse:  1
767 *XmText*FontList:       -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*:
768 *XmText*Translations:   #override\n\
769         Ctrl<Key>u:delete-to-start-of-line()\n\
770         Ctrl<Key>k:delete-to-end-of-line()\n\
771         Ctrl<Key>a:beginning-of-line()\n\
772         Ctrl<Key>e:end-of-line()\n\
773         Ctrl<Key>p:process-up()\n\
774         Ctrl<Key>b:backward-character()\n\
775         Ctrl<Key>n:process-down()\n\
776         Ctrl<Key>f:forward-character()
777 *XmTextField*FontList:  -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*:
778 *XmTextField*Translations:      #override\n\
779         Ctrl<Key>u:delete-to-start-of-line()\n\
780         Ctrl<Key>k:delete-to-end-of-line()\n\
781         Ctrl<Key>a:beginning-of-line()\n\
782         Ctrl<Key>e:end-of-line()\n\
783         Ctrl<Key>b:backward-character()\n\
784         Ctrl<Key>f:forward-character()
785 *background:    #9494D5D5DFDF
786 *buttonFontList:        -dt-interface system-medium-r-normal-s*-*-*-*-*-*-*-*-*:
787 *dtEnvMapForRemote:     DTAPPSEARCHPATH:DTHELPSEARCHPATH:DTDATABASESEARCHPATH:XMICONSEARCHPATH:XMICONBMSEARCHPATH
788 *enableBtn1Transfer:    button2_transfer
789 *enableButtonTab:       True
790 *enableCDEColorFactors: True
791 *enableDefaultButton:   True
792 *enableDragIcon:        True
793 *enableEtchedInMenu:    True
794 *enableMenuInCascade:   True
795 *enableMultiKeyBindings:        True
796 *enableThinThickness:   True
797 *enableToggleColor:     True
798 *enableToggleVisual:    True
799 *enableUrlAwareness:    True
800 *fontGroup:     Courier
801 *foreground:    #000000000000
802 *labelFontList: -dt-interface system-medium-r-normal-s*-*-*-*-*-*-*-*-*:
803 *loginShell:    True
804 *multiClickTime:        500
805 *promptDialog.bboard.frame.form.text.columns:   45
806 *saveLines:     500
807 *scrollBar_right:       True
808 *sessionVersion:        3.0
809 *systemFont:    -dt-interface system-medium-r-normal-s*-*-*-*-*-*-*-*-*:
810 *textFontList:  -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*:
811 *ttyModes:      intr ^c quit ^\\ erase ^h kill ^u eof ^d start ^q stop ^s susp ^z dsusp ^y rprnt ^r flush ^o weras ^w lnext ^v
812 *userFont:      -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*:
813 *xineramaDefaultFramebuffer:    0
814 Dtstyle*timeoutScale:   5
815 Dtwm*0*FrontPanel*geometry:     +67-4
816 Dtwm*0*helpResources:   \n  
817 Dtwm*0*initialWorkspace:        ws0
818 Dtwm*0*workspaceCount:  4
819 Dtwm*0*workspaceList:   "ws0" "ws1" "ws2" "ws3"
820 Dtwm*0*backdrop*image:  NoBackdrop
821 Dtwm*0*ws3*title:       Four
822 Dtwm*0*ws4*title:       New
823 Dtwm*0*ws5*title:       New_1
824 Dtwm*0*ws6*title:       New_2
825 Dtwm*focusAutoRaise:    False
826 Dtwm*gwmOnFrontPanel:   False
827 twm*moveOpaque: True
828 Dtwm*showSwitchArea:    True
829 Dtwm*syncDesktopSwitch: False
830 Dtwm*useSameBackdrop:   True
831 Dtwm.keyboardFocusPolicy:       pointer
832
833 ! Dtwm
834 Dtwm*keyBindings:       MyKeys
835 Dtwm*buttonBindings:    MyButtons
836
837 ! Rxvt
838 Rxvt*font:              "Lucida Console-*-16"
839 Rxvt*font1:             "Lucida Console-*-18"
840 Rxvt*font2:             "Lucida Console-*-20"
841 Rxvt*saveLines:         5000
842 Rxvt*scrollBar_right:   True
843 Rxvt*geometry:          80x24
844 Rxvt*loginShell:        True
845 Rxvt*background:        SteelBlue
846 Rxvt*foreground:        White
847  Rxvt*colorBD:          Red
848 Rxvt*colorUL:           Red
849 Rxvt*cursorColor:       Red
850
851 ! New server
852 Jupiter*background:     MidNightBlue
853 Jupiter*foreground:     White
854 Jupiter*colorBD:        Red
855 Jupiter*colorUL:        Red
856 Jupiter*cursorColor:    Yellow
857
858 ! Danni's desktop
859 Starbase*background:    MediumVioletRed
860 Starbase*foreground:    White
861 Starbase*colorBD:       Yellow
862 Starbase*colorUL:       Red
863 Starbase*cursorColor:   Yellow
864
865 ! Hewlett Packard
866 Tiburon*background:     Black
867 Tiburon*foreground:     Magenta
868 Tiburon*colorBD:        Yellow
869 Tiburon*colorUL:        Red
870 Tiburon*cursorColor:    Green
871
872 Pacifica*background:    ForestGreen
873 Pacifica*foreground:    White
874 Pacifica*colorBD:       Red
875 Pacifica*colorUL:       Red
876 Pacifica*cursorColor:   Red
877
878 plebld01*background:    Black
879 plebld01*foreground:    Yellow
880 plebld01*colorBD:       Yellow
881 plebld01*colorUL:       Red
882 plebld01*cursorColor:   Yellow
883
884 ccase-sj1-4*background: Black
885 ccase-sj1-4*foreground: Green
886 ccase-sj1-4*colorBD:    Green
887 ccase-sj1-4*colorUL:    Red
888 ccase-sj1-4*cursorColor:Yellow
889
890 XServer*background:     Black
891 XServer*foreground:     Green
892 XServer*colorBD:        Yellow
893 XServer*colorUL:        Red
894 XServer*cursorColor:    Yellow
895
896 ! XTerm
897 XTerm*Font:             -*-Lucida Sans Typewriter-medium-r-*-*-*-*-*-*-*-*-*
898 XTerm*saveLines:        5000
899 XTerm*scrollBar_right:  True
900 XTerm*scrollBar:        True
901 XTerm*geometry:         80x24
902 XTerm*loginShell:       True
903 XTerm*background:       SteelBlue
904 XTerm*foreground:       White
905 XTerm*colorBD:          Blue
906 XTerm*colorUL:          Red
907 XTerm*cursorColor:      Yellow
908 XTerm*eightBitInput:    False
909
910 ! XEmacs
911 Emacs*Background:       Gray
912 Emacs*Font:             -*-Lucida Sans Typewriter-medium-r-*-*-*-*-*-*-*-*-*
913
914 ! Dtterm
915 Dtterm*kshMode:         True
916 </pre></div>
917
918 <div class=code><pre>
919 Menu DtRootMenu 
920 {
921   "Menu"                f.title
922   "Applications"        f.menu ApplicationsMenu
923   "Terminals"           f.menu Terminals
924   "Files"               f.menu FilesMenu
925   "Folders"             f.menu FoldersMenu
926   "Hosts"               f.menu HostsMenu
927   "Tools"               f.menu ToolsMenu
928   "Windows"             f.menu WindowsMenu
929   "Lock"                f.action LockDisplay
930   "Suspend"             f.action SDTsuspend
931 }
932
933 Menu Terminals
934 {
935   "Terminals"           f.title
936   sep                   f.separator
937   "Local X Term"        f.action Xterm
938   "Remote X Term"       f.action XtermRlogin
939   sep                   f.separator
940   "Local DT Term"       f.action Dtterm
941   "Remote DT Term"              f.action DttermRlogin
942 }
943
944 Menu WindowsMenu
945 {
946     "Windows"           f.title
947     "Refresh"           f.refresh
948     "Arrange Icons"     f.pack_icons
949     "Restart"           f.restart
950     "Update"            f.action UpdateWorkspaceMenu
951     "Kill"              f.exec /usr/openwin/bin/xkill
952 }
953
954 Menu ApplicationsMenu
955 {
956   "Applications"        f.title
957   "Application Manager" f.action Dtappmgr
958   "Audio Control"       f.action SDtAudioControl
959   "Audio and Video"     f.action SDTjmplay
960   "Calculator"          f.action Dtcalc
961   "Calendar"            f.action Dtcm
962   "Icon Editor"         f.action Dticon
963   "Image Viewer"        f.action SDTimage
964   "Snapshot"            f.action SDTsnapshot
965   "Text Editor"         f.action TextEditor
966   "Text Note"           f.action Note
967   "Voice Note"          f.action Record
968 }
969
970 Menu FilesMenu
971 {
972   "Files"               f.title
973   "File Manager"        f.action Dtfile
974   "Find File"           f.action SDtFind
975   "Properties..."       f.action FileProperties
976 }
977
978 Menu FoldersMenu
979 {
980   "Folders"             f.title
981   "Empty Trash Can"     f.action DtEmptyTrash
982   "File Manager - Home" f.action DtfileHome
983   "Open Floppy"         f.action OpenFloppy
984   "Removable Media"     f.action Dtmediamgr
985   "Trash Can"           f.action Dttrash
986 }
987
988 Menu HostsMenu
989 {
990   "Hosts"               f.title
991   "Find Host..."        f.action HOST_Find
992   "Performance Meter"   f.action SDtPerfmeter
993   "Terminal Console"    f.action DttermConsole
994   "This Host"           f.action Terminal "/usr/dt/config/C/wsmenu/Hosts/This_Host"
995   "Workstation Info"    f.action SDtWsinfo
996 }
997
998 Menu ToolsMenu
999 {
1000   "Tools"                       f.title
1001   "Create Action"               f.action Dtcreate
1002   "Desktop Controls"            f.action DtControls
1003   "Hotkey Editor"               f.action SDtHotkey
1004   "Power Manager"               f.action SDTpowermgr
1005   "Print Manager"               f.action DtPrintManager
1006   "Printer Administrator"       f.action PrinterAdministratorDtspcd
1007   "Process Manager"             f.action SDtProcess
1008   "Solaris Management Console"  f.action smc
1009   "Terminal"                    f.action Terminal
1010   "Watch Errors"                f.action DttermErrorlog
1011 }
1012
1013 Menu DtPanelMenu
1014 {
1015   "Windows"                             f.title
1016   "Shuffle Up"                          f.circle_up
1017   "Shuffle Down"                        f.circle_down
1018   "Refresh"                             f.refresh
1019   "Clean Up Icons"                      f.pack_icons
1020   "Minimize/Restore Front Panel"        f.toggle_frontpanel
1021   "Restart Workspace Manager..."        f.restart
1022   "Update Workspace Menu"               f.action UpdateWorkspaceMenu
1023   "Disable Access Control"              f.action Xhost+
1024   "Enable Access Control"               f.action Xhost-
1025   "Kill Window..."                      f.exec /usr/openwin/bin/xkill
1026 }
1027
1028 Menu WindowMenu
1029 {
1030   "Restore"             _R                      f.normalize
1031   "Move"                _M                      f.move
1032   "Size"                _S                      f.resize
1033   "Minimize"            _n                      f.minimize
1034   "Maximize"            _x                      f.maximize
1035   "Lower"               _L                      f.lower
1036   "Workspace..."        _W                      f.workspace_presence
1037   "All Workspaces"      _A                      f.occupy_all
1038   "Remove Workspace"    _e                      f.remove
1039   "Close"               _C      Alt<Key>F4      f.kill
1040 }
1041
1042 Keys MyKeys
1043 {
1044   # Global
1045   #Alt<Key>Menu                 root|icon|window        f.toggle_frontpanel 
1046   Alt<Key>Tab                   root|icon|window        f.next_key
1047   Alt Shift<Key>Tab             root|icon|window        f.prev_key
1048   Alt<Key>Escape                root|icon|window        f.next_key
1049   Alt Shift<Key>Escape          root|icon|window        f.prev_key
1050   Alt<Key>Down                  root|icon|window        f.circle_down
1051   Alt<Key>Up                    root|icon|window        f.circle_up
1052   Alt<Key>Left                  root|icon|window        f.prev_workspace
1053   Alt<Key>Right                 root|icon|window        f.next_workspace
1054   Alt Ctrl Shift<Key>exclam     root|icon|window        f.set_behavior
1055
1056   # Root
1057   <Key>SunAgain                 root|ifkey              f.pack_icons
1058   <Key>SunProps                 root|ifkey              f.version
1059   <Key>SunUndo                  root|ifkey              f.refresh
1060   <Key>SunFront                 root|ifkey              f.circle_up
1061   Shift<Key>SunFront            root|ifkey              f.circle_down
1062   <Key>Down                     root                    f.circle_down
1063   <Key>Up                       root                    f.circle_up
1064   <Key>Right                    root                    f.next_workspace
1065   <Key>Left                     root                    f.prev_workspace
1066   #
1067   <Key>SunAudioMute             root|icon|window|ifkey  f.exec /usr/dt/appconfig/sdtvolctl/muteVolume
1068   <Key>SunAudioRaiseVolume      root|icon|window|ifkey  f.exec /usr/dt/appconfig/sdtvolctl/volumeUp
1069   <Key>SunAudioLowerVolume      root|icon|window|ifkey  f.exec /usr/dt/appconfig/sdtvolctl/volumeDown
1070   # Window/Icon
1071   <Key>SunFront                 window|icon|ifkey       f.raise_lower
1072   <Key>SunOpen                  window|ifkey            f.minimize
1073   Shift<Key>Escape              window|icon             f.post_wmenu
1074   Alt<Key>space                 window|icon             f.post_wmenu
1075   Alt<Key>F6                    window                  f.next_key transient
1076   Alt Shift<Key>F6              window                  f.prev_key transient
1077   Alt<Key>F4                    window|icon|ifkey       f.kill
1078   Alt<Key>SunProps              window|icon|ifkey       f.workspace_presence
1079   Alt<Key>SunPaste              window|icon|ifkey       f.occupy_all
1080   Alt<Key>SunCut                window|icon|ifkey       f.remove
1081   Alt<Key>KP_Insert             window|icon             f.occupy_all
1082   Alt<Key>Delete                window|icon             f.remove
1083   Ctrl<Key>L2                   window|ifkey            f.next_cmap
1084   Ctrl<Key>L4                   window|ifkey            f.prev_cmap
1085   # Icon
1086   <Key>SunOpen                  icon|ifkey              f.restore
1087   Alt<Key>F4                    icon|ifkey              f.kill
1088   <Key>SunProps                 icon|ifkey              f.workspace_presence
1089   <Key>SunPaste                 icon|ifkey              f.occupy_all
1090   <Key>SunCut                   icon|ifkey              f.remove
1091   <Key>KP_Insert                icon|ifkey              f.occupy_all
1092   <Key>Delete                   icon|ifkey              f.remove
1093 }
1094
1095 Buttons MyButtons
1096 {
1097   <Btn1Down>            root                    f.menu Terminals
1098   <Btn1Down>            window|frame|icon       f.raise
1099   <Btn2Click>           root                    f.toggle_frontpanel
1100   <Btn3Down>            root                    f.menu  DtRootMenu
1101   <Btn3Down>            icon            f.post_wmenu
1102   Shift<Btn1Click>      frame|icon              f.lower
1103   <Btn1Click>           frame|icon|window       f.raise
1104   <Btn1Click2>          frame                   f.maximize
1105   <Btn1Click2>          icon                    f.restore
1106   <Btn2Click>           frame|icon              f.raise_lower
1107   <Btn3Down>            frame|icon              f.post_wmenu
1108   Alt<Btn1Click>        frame|icon|window       f.raise
1109   Alt<Btn1Click2>       frame|window            f.minimize
1110   Alt<Btn1Click2>       icon                    f.restore
1111   Alt<Btn2Click>        frame|icon              f.raise_lower
1112   Alt<Btn1Down>         frame|icon|window       f.move
1113   Alt<Btn3Down>         window                  f.minimize
1114 }
1115
1116 Menu DefaultWindowMenu
1117 {
1118   "Restore"     _R      Alt<Key>F5      f.normalize
1119   "Move"        _M      Alt<Key>F7      f.move
1120   "Size"        _S      Alt<Key>F8      f.resize
1121   "Minimize"    _n      Alt<Key>F9      f.minimize
1122   "Maximize"    _x      Alt<Key>F10     f.maximize
1123   "Lower"       _L      Alt<Key>F3      f.lower
1124   "Close"       _C      Alt<Key>F4      f.kill
1125 }
1126 </pre></div>
1127
1128 <div class=code><pre>
1129 #!/bin/perl
1130 use strict;
1131 use warnings;
1132 use POSIX qw (setsid);
1133
1134 use FindBin;
1135
1136 my $sleep = 60 * 60;
1137 my $home = $ENV{HOME};
1138 my $xv = "/prj/Synopsis/gccsparcOS5/ccss/utils/xv/xv";
1139
1140 my @images = `ls $home/Images`;
1141 chomp @images;
1142
1143 my $arch             = $^O =~ /MSWin/  ? "windows"   :
1144                        $^O =~ /cygwin/ ? "cygwin"    : $^O;
1145 my $null             = $^O =~ /MSWin/  ? "NUL"       : "/dev/null";
1146
1147 sub display_err ($;$$) {
1148   my ($msg, $handle, $nolinefeed) = @_;
1149
1150   $handle = *STDERR if !defined $handle;
1151
1152   print $handle $msg;
1153   print $handle "\n" if !defined $nolinefeed;
1154 } # display_err
1155
1156 sub error ($;$$$) {
1157   my ($msg, $errno, $handle, $nolinefeed) = @_;
1158
1159   if (!$errno) {
1160     $msg = "$FindBin::Script ERROR: $msg";
1161   } else {
1162     $msg = "$FindBin::Script ERROR #$errno: $msg";
1163   } # if
1164
1165   display_err $msg, $handle, $nolinefeed;
1166
1167   exit $errno if $errno;
1168 } # error
1169
1170 sub EnterDaemonMode (;$$) {
1171   my ($logfile, $errorlog) = @_;
1172
1173   if (!defined $logfile or $logfile eq '') {
1174     $logfile = $null;
1175   } # if
1176
1177   if (!defined $errorlog or $errorlog eq '') {
1178     $errorlog = $null;
1179   } # if
1180
1181   # Change the current directory to /
1182   my $root = $arch eq "windows" ? "C:\\" : "/";
1183   chdir $root
1184     or error "Can't chdir to $root ($!), 1";
1185
1186   # Turn off umask
1187   umask 0;
1188
1189   # Redirect STDIN to $null
1190   open STDIN, $null
1191     or error "Can't read $null ($!)", 1;
1192
1193   # Redirect STDOUT to logfile
1194   open STDOUT, ">>$logfile"
1195     or error "Can't write to $logfile ($!), 1";
1196
1197   # Redirect STDERR to errorlog
1198   open STDERR, ">>$errorlog"
1199     or error "Can't write to $errorlog ($!)", 1;
1200
1201   # Now fork the daemon
1202   defined (my $pid = fork)
1203     or error "Can't create daemon ($!)", 1;
1204
1205   # Now the parent exits
1206   exit if $pid;
1207
1208   # Set process to be session leader
1209   setsid ()
1210     or error "Can't start a new session ($!)", 1;
1211 } # EnterDaemonMode
1212
1213 sub SwitchWallPaper {
1214   # We don't need to do anything here, just handle the interrupt and
1215   # let the while loop continue.
1216 } # SwitchWallPaper
1217
1218 $SIG{USR2} = \&SwitchWallPaper;
1219  
1220 EnterDaemonMode;
1221
1222 while () {
1223   my $cmd = "$xv -root -maxpect -quit $home/Images/" . $images [int (rand $#images)];
1224
1225   `$cmd`;
1226
1227   sleep $sleep;
1228 } # while
1229 </pre></div>
1230                               
1231                               <p class="entry-footer">
1232                                  <span class="post-footers">Posted by  at  4:17 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000649.html">Permalink</a>
1233                                  
1234                                  | <a href="http://defaria.com/blogs/Status/archives/000649.html#trackback">TrackBacks (0)</a>
1235                               </p>
1236                            </div>
1237                         </div>
1238                      </div>
1239                      
1240                      <!--
1241 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
1242          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
1243          xmlns:dc="http://purl.org/dc/elements/1.1/">
1244 <rdf:Description
1245     rdf:about="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000648"
1246     trackback:ping="http://defaria.com/mt/mt-tb.cgi/36"
1247     dc:title="Fun with IT in GD"
1248     dc:identifier="http://defaria.com/blogs/Status/archives/2007_07.html#entry-000648"
1249     dc:subject="General Dynamics"
1250     dc:description="OK so today I get an obvious phishing attempt email at GD: andrew.defaria: Maybe some mistake in your medcare form(attachment), please check it. Before your open it,rename medicare.vvv to medicare.mdb if you find some problem in you medcare ,please reply..."
1251     dc:creator=""
1252     dc:date="2007-07-05T10:35:30-06:00" />
1253 </rdf:RDF>
1254 -->
1255
1256
1257                      <h2 class="date-header">July  5, 2007</h2>
1258                      <a id="a000648"></a>
1259                      <div class="entry" id="entry-648">
1260                         <h3 class="entry-header">Fun with IT in GD</h3>
1261                         <div class="entry-content">
1262                            <div class="entry-body">
1263                               <p>OK so today I get an obvious phishing attempt email at GD:</p>
1264
1265 <div class=code><pre>
1266 andrew.defaria:
1267 Maybe some mistake in your medcare form(attachment), please check it.
1268 Before your open it,rename medicare.vvv to medicare.mdb
1269 if you find some problem in you medcare ,please reply to me
1270 Tel:(877) 449-07010
1271 </pre></div>
1272
1273 <p>along with an attachment of medicare.vvv. So, being a good, conscientious citizen I figured I'd report the incident in order to help others down the road. I asked around and was told that I need submit a help desk ticket and that I need to first contact the help desk to do so. Funny, I'd thought this would just be a "forward the email to &lt;x&gt;" and I'd be done with it. So I'm directed to a web page which has the number for the help desk. I call that number (it's 9:40 Am mind you) and I get voice mail saying "I'm sorry but nobody's here to take your call" and to leave a message. So, wanting to dispose of this issue rather than have it remain, I decided to go back to the web site and see if there was an answer to the question. I searched for "report phishing attempts" and "report spam" and there was nothing found! Oh well I tried but does this frustrate anybody else as much as it does me?</p>
1274
1275 <p>Oh and if click on the Contact Us link you'll start and email that will be returned to you undeliverable!</p>
1276                               
1277                               <p class="entry-footer">
1278                                  <span class="post-footers">Posted by  at 10:35 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000648.html">Permalink</a>
1279                                  
1280                                  | <a href="http://defaria.com/blogs/Status/archives/000648.html#trackback">TrackBacks (0)</a>
1281                               </p>
1282                            </div>
1283                         </div>
1284                      </div>
1285                      
1286                   </div>
1287                </div>
1288             </div>
1289          </div>
1290       </div>
1291    </div>
1292 </body>
1293 </html>