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">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Movable Type 5.2.3" />
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"$>" />
12 <title>Status for Andrew DeFaria: July 2007 Archives</title>
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" />
18 <body class="layout-one-column">
20 <div id="container-inner" class="pkg">
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>
30 <div id="pagebody-inner" class="pkg">
32 <div id="alpha-inner" class="pkg">
34 <p class="content-nav">
35 <a href="http://defaria.com/blogs/Status/archives/2007_06.html">« 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 »</a>
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/">
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,..."
53 dc:date="2007-07-31T17:25:51-06:00" />
58 <h2 class="date-header">July 31, 2007</h2>
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">
65 <li>Fixed problem with cleartrig for the Linux clients</li>
67 <li>Investigated and found a work around to font problems between Linux and Sun</li>
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.
72 <h3>Cleartrig and font problems on Linux clients</h3>
74 <p>I hit a few problems when attempting to verify proper execution of Clearcase/Clearquest and our WOR integration on Linux machines.</p>
76 <h3>Cleartrig problems</h3>
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>
80 <h3>Font Problems</h3>
82 <p>his is running under the assumption that:</p>
85 <li>The user is on a Solaris box and running CDE and</li>
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>
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
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*-*-*-*-*-*-*-*-*
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>
102 <div class=code><pre>
105 *labelFontList: fixed
106 *buttonFontList: fixed
108 *DtEditor*textFontList: fixed
110 *XmText*FontList: fixed
112 *XmTextField*FontList: fixed
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>
118 <div class=code><pre>
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>
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>
131 | <a href="http://defaria.com/blogs/Status/archives/000657.html#trackback">TrackBacks (0)</a>
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/">
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..."
149 dc:date="2007-07-27T14:35:37-06:00" />
154 <h2 class="date-header">July 27, 2007</h2>
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">
161 <li>Worked with Kirk on getting Clearquest working on ranlin02/03</li>
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>
167 | <a href="http://defaria.com/blogs/Status/archives/000656.html#trackback">TrackBacks (0)</a>
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/">
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 & CQ install image over to RAN. Tried running Clearquest. Was receiving error Learned that we have a copy of cq_setup.csh..."
185 dc:date="2007-07-25T18:46:41-06:00" />
190 <h2 class="date-header">July 25, 2007</h2>
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">
197 <li>Finished recoding RAN web using PHP, better HTML coding and CSS</li>
199 <li>Documented new PHP Web</li>
201 <li>Copied large CC & CQ install image over to RAN. Tried running Clearquest. Was receiving error</li>
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>
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>
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
214 href="http://www-1.ibm.com/support/docview.wss?uid=swg21202987&aid=1">ClearQuest
215 and Clearquest MultiSite Release Notes</a> I find:</p>
218 <h3>Linux symbolic links to Motif libraries</h3>
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>
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>
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>
228 <tt>XFree86-devel-*</tt><br>
230 <p>package be installed when installing the OS.</p>
233 <p>And, of course:</p>
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>:
240 <p>So can we get XFree86-devel-* installed?</p>
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>
244 <p>I've made a modification to /proj/muosran/config/cq_setup.csh as such:</p>
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.
252 #eval `/opt/rational/clearquest/sun5/bin/clearquest -dumpcsh`<br>eval `/opt/rational/clearquest/bin/clearquest -dumpcsh`
261 #echo "You can now run 'clearquest' to start Rational ClearQuest."
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>
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>
269 | <a href="http://defaria.com/blogs/Status/archives/000655.html#trackback">TrackBacks (0)</a>
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/">
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..."
287 dc:date="2007-07-19T16:40:48-06:00" />
292 <h2 class="date-header">July 19, 2007</h2>
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">
299 <li>Created auto install script for Linux</li>
302 <h2>Automating Clearcase Installs</h2>
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>
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>
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>
310 <h3>Running install_release with -echo_cmd_only</h3>
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>
314 <p>The following is a quick script to install Clearcase 6.x on Redhat systems:</p>
316 <div class=code><pre>
319 # Quick script to install Clearcase 6.x on Redhat x86 64 bit
323 if [ $(id -u) != 0 ]; then
324 echo "ERROR: You must be root to install Clearcase"
328 # Define some parameters that might be changing
329 registry_region=cclinux
330 registry_host=cclinux
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)
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 \
353 -from $release_path \
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>
367 <li>I've defined a few variables that might change like the release area, registry host, registry region, etc.</li>
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>
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>
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>
378 | <a href="http://defaria.com/blogs/Status/archives/000654.html#trackback">TrackBacks (0)</a>
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/">
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..."
396 dc:date="2007-07-19T11:12:02-06:00" />
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">
408 <li>Delivered changed to build (removing checking out of Clearcase elements during build)</li>
410 <li>Investigated how ranweb is set up and documented differences in the menus</li>
412 <li>Wrote RAN.php which could be used to do the menus in a a consistent form</li>
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>
418 | <a href="http://defaria.com/blogs/Status/archives/000653.html#trackback">TrackBacks (0)</a>
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/">
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...."
436 dc:date="2007-07-18T16:25:16-06:00" />
441 <h2 class="date-header">July 18, 2007</h2>
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">
448 <li>Cleaned up and closed several help desk tickets</li>
450 <li>Delivered and closed RAX_LMC WOR</li>
452 <li>Worked with Kirk on installing Clearcase on Linux servers.</li>
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>
458 | <a href="http://defaria.com/blogs/Status/archives/000652.html#trackback">TrackBacks (0)</a>
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/">
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..."
476 dc:date="2007-07-11T17:11:16-06:00" />
481 <h2 class="date-header">July 11, 2007</h2>
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">
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>
490 <li>Did an analysis of view disk space usage</li>
492 <li>Assisted Kirk and Tom with Clearcase 7.0.1.0 installation on Linux</li>
494 <li>Fixed problem with ssh public key authentication</li>
499 <p>I looked into the disk space usage on the view2 server (partitions view2a, view2b and view2c0 and find the following:</p>
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>
508 <h2>View Policy and view_db.crs_file size</h2>
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
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>
522 <p><b>view_db.crs_file</b></p>
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>
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>
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>
532 <h2>Recovering View Space</h2>
535 href="http://members.cox.net/ejostrander/clearteam/cc_howto.html">Eric J. Ostrander's ClearCase / ClearQuest pages</a>:</p>
539 <h3> Release view database disk space back to the system.</h3>
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>
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>
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>
548 <div class=code><pre>
549 # ct recoverview -force -tag <i>view-tag</i>
550 # ct recoverview -force -tag <i>view-tag</i>
553 <p><b>NOTE:</b> Running recoverview does not affect view-private files.</p>
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>
559 <h3>Clearcase 7.0.1.0 Installation on Linux</h3>
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>
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>
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>
568 | <a href="http://defaria.com/blogs/Status/archives/000650.html#trackback">TrackBacks (0)</a>
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/">
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..."
586 dc:date="2007-07-10T16:17:52-06:00" />
591 <h2 class="date-header">July 10, 2007</h2>
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">
598 <li>Worked with Tom and Bryce to remove views from p57707</li>
600 <li>Wrote a document describing how to customize your Unix CDE environment</li>
603 <h3>Removing views with pending deliveries</h3>
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>
607 <h3>Tips on Personalizing your Unix/CDE environment</h3>
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>
611 <h3>Get control of your X Resources</h3>
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>
615 <div class=code><pre>
616 $ xrdb -q > ~/.Xresources
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>
621 <h3>To find if a resource is set</h3>
623 <p>You can see if a resource is set by using the following:</p>
625 <div class=code><pre>
626 $ xrdb -q | grep -i <<i>resource string</i>>
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: <<i>color</i>>" 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>
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>
633 <h3>Using Xresource Classes</h3>
635 <p>Rather than start Xterms (or dtterms) with:</p>
637 <div class=code><pre>
638 $ xterm -fg white -bg black -sl 5000 -cr green \
639 > -sb -e rsh <other machine>
640 $ xterm -fg yellow -bg blue -sl 5000 -sb -e rsh <other machine>
643 <p>thus having long lists of options, classify your resources such as:</p>
645 <div class=code><pre>
646 XServer*background: Black
647 XServer*foreground: Green
648 XServer*colorBD: Yellow
650 XServer*cursorColor: Yellow
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>
655 <div class=code><pre>
656 XTerm*saveLines: 5000
657 XTerm*scrollbar: True
660 <h3>Setting Meta (or the Diamond key) to be Emacs mode Meta key</h3>
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>
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>
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>
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>
683 <div class=code><pre>
684 Xterm*eightBitInput: True
689 <div class=code><pre>
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 => Meta. However ksh is not the only shell that this is useful for. It is also useful for tcsh and bash, for example.</p>
695 <h3>Taking Control of your Buttons and Keybindings</h3>
697 <p>The following:</p>
699 <div class=code><pre>
700 Dtwm*keyBindings: MyKeys
701 Dtwm*buttonBindings: MyButtons
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>
706 <p>You're dtwmrc can be very complicated. See dtwmrc(1) for more info. Here are MyButtons:</p>
708 <div class=code><pre>
711 <Btn1Down> root f.menu Terminals
712 <Btn1Down> window|frame|icon f.raise
713 <Btn2Click> root f.toggle_frontpanel
714 <Btn3Down> root f.menu DtRootMenu
715 <Btn3Down> icon f.post_wmenu
716 Shift<Btn1Click> frame|icon f.lower
717 <Btn1Click> frame|icon|window f.raise
718 <Btn1Click2> frame f.maximize
719 <Btn1Click2> icon f.restore
720 <Btn2Click> frame|icon f.raise_lower
721 <Btn3Down> frame|icon f.post_wmenu
722 Alt<Btn1Click> frame|icon|window f.raise
723 Alt<Btn1Click2> frame|window f.minimize
724 Alt<Btn1Click2> icon f.restore
725 Alt<Btn2Click> frame|icon f.raise_lower
726 Alt<Btn1Down> frame|icon|window f.move
727 Alt<Btn3Down> window f.minimize
731 <p>Many of these are taking from the defaults. Here are some of the changes I made:</p>
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>
738 <h3>Changing your desktop background</h3>
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>
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>
745 <p>Oh and if you wish feel free to:</p>
747 <div class=code><pre>
749 $ cp ~p6238c/Images ~/Images
754 <div class=code><pre>
755 $ ln -s ~p6258c/Images ~/Images
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*-*-*-*-*-*-*-*-*
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
801 *foreground: #000000000000
802 *labelFontList: -dt-interface system-medium-r-normal-s*-*-*-*-*-*-*-*-*:
805 *promptDialog.bboard.frame.form.text.columns: 45
807 *scrollBar_right: True
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
828 Dtwm*showSwitchArea: True
829 Dtwm*syncDesktopSwitch: False
830 Dtwm*useSameBackdrop: True
831 Dtwm.keyboardFocusPolicy: pointer
834 Dtwm*keyBindings: MyKeys
835 Dtwm*buttonBindings: MyButtons
838 Rxvt*font: "Lucida Console-*-16"
839 Rxvt*font1: "Lucida Console-*-18"
840 Rxvt*font2: "Lucida Console-*-20"
842 Rxvt*scrollBar_right: True
844 Rxvt*loginShell: True
845 Rxvt*background: SteelBlue
846 Rxvt*foreground: White
849 Rxvt*cursorColor: Red
852 Jupiter*background: MidNightBlue
853 Jupiter*foreground: White
856 Jupiter*cursorColor: Yellow
859 Starbase*background: MediumVioletRed
860 Starbase*foreground: White
861 Starbase*colorBD: Yellow
862 Starbase*colorUL: Red
863 Starbase*cursorColor: Yellow
866 Tiburon*background: Black
867 Tiburon*foreground: Magenta
868 Tiburon*colorBD: Yellow
870 Tiburon*cursorColor: Green
872 Pacifica*background: ForestGreen
873 Pacifica*foreground: White
874 Pacifica*colorBD: Red
875 Pacifica*colorUL: Red
876 Pacifica*cursorColor: Red
878 plebld01*background: Black
879 plebld01*foreground: Yellow
880 plebld01*colorBD: Yellow
881 plebld01*colorUL: Red
882 plebld01*cursorColor: Yellow
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
890 XServer*background: Black
891 XServer*foreground: Green
892 XServer*colorBD: Yellow
894 XServer*cursorColor: Yellow
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
907 XTerm*cursorColor: Yellow
908 XTerm*eightBitInput: False
911 Emacs*Background: Gray
912 Emacs*Font: -*-Lucida Sans Typewriter-medium-r-*-*-*-*-*-*-*-*-*
918 <div class=code><pre>
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
937 "Local X Term" f.action Xterm
938 "Remote X Term" f.action XtermRlogin
940 "Local DT Term" f.action Dtterm
941 "Remote DT Term" f.action DttermRlogin
948 "Arrange Icons" f.pack_icons
950 "Update" f.action UpdateWorkspaceMenu
951 "Kill" f.exec /usr/openwin/bin/xkill
954 Menu ApplicationsMenu
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
973 "File Manager" f.action Dtfile
974 "Find File" f.action SDtFind
975 "Properties..." f.action FileProperties
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
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
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
1016 "Shuffle Up" f.circle_up
1017 "Shuffle Down" f.circle_down
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
1030 "Restore" _R f.normalize
1033 "Minimize" _n f.minimize
1034 "Maximize" _x f.maximize
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
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
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
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
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
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
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
1116 Menu DefaultWindowMenu
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
1128 <div class=code><pre>
1132 use POSIX qw (setsid);
1136 my $sleep = 60 * 60;
1137 my $home = $ENV{HOME};
1138 my $xv = "/prj/Synopsis/gccsparcOS5/ccss/utils/xv/xv";
1140 my @images = `ls $home/Images`;
1143 my $arch = $^O =~ /MSWin/ ? "windows" :
1144 $^O =~ /cygwin/ ? "cygwin" : $^O;
1145 my $null = $^O =~ /MSWin/ ? "NUL" : "/dev/null";
1147 sub display_err ($;$$) {
1148 my ($msg, $handle, $nolinefeed) = @_;
1150 $handle = *STDERR if !defined $handle;
1153 print $handle "\n" if !defined $nolinefeed;
1157 my ($msg, $errno, $handle, $nolinefeed) = @_;
1160 $msg = "$FindBin::Script ERROR: $msg";
1162 $msg = "$FindBin::Script ERROR #$errno: $msg";
1165 display_err $msg, $handle, $nolinefeed;
1167 exit $errno if $errno;
1170 sub EnterDaemonMode (;$$) {
1171 my ($logfile, $errorlog) = @_;
1173 if (!defined $logfile or $logfile eq '') {
1177 if (!defined $errorlog or $errorlog eq '') {
1181 # Change the current directory to /
1182 my $root = $arch eq "windows" ? "C:\\" : "/";
1184 or error "Can't chdir to $root ($!), 1";
1189 # Redirect STDIN to $null
1191 or error "Can't read $null ($!)", 1;
1193 # Redirect STDOUT to logfile
1194 open STDOUT, ">>$logfile"
1195 or error "Can't write to $logfile ($!), 1";
1197 # Redirect STDERR to errorlog
1198 open STDERR, ">>$errorlog"
1199 or error "Can't write to $errorlog ($!)", 1;
1201 # Now fork the daemon
1202 defined (my $pid = fork)
1203 or error "Can't create daemon ($!)", 1;
1205 # Now the parent exits
1208 # Set process to be session leader
1210 or error "Can't start a new session ($!)", 1;
1213 sub SwitchWallPaper {
1214 # We don't need to do anything here, just handle the interrupt and
1215 # let the while loop continue.
1218 $SIG{USR2} = \&SwitchWallPaper;
1223 my $cmd = "$xv -root -maxpect -quit $home/Images/" . $images [int (rand $#images)];
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>
1234 | <a href="http://defaria.com/blogs/Status/archives/000649.html#trackback">TrackBacks (0)</a>
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/">
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..."
1252 dc:date="2007-07-05T10:35:30-06:00" />
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>
1265 <div class=code><pre>
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
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 <x>" 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>
1275 <p>Oh and if click on the Contact Us link you'll start and email that will be returned to you undeliverable!</p>
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>
1280 | <a href="http://defaria.com/blogs/Status/archives/000648.html#trackback">TrackBacks (0)</a>