Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / week_2007_07_29.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 29, 2007 - August  4, 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/week_2007_07_22.html" title="July 22, 2007 - July 28, 2007" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/week_2007_08_05.html" title="August  5, 2007 - August 11, 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/week_2007_07_22.html">&laquo; July 22, 2007 - July 28, 2007</a> |
36                         <a href="http://defaria.com/blogs/Status/">Main</a>
37                         | <a href="http://defaria.com/blogs/Status/archives/week_2007_08_05.html">August  5, 2007 - August 11, 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/week_2007_07_29.html#entry-000659"
47     trackback:ping="http://defaria.com/mt/mt-tb.cgi/46"
48     dc:title="ssh"
49     dc:identifier="http://defaria.com/blogs/Status/archives/week_2007_07_29.html#entry-000659"
50     dc:subject="General Dynamics"
51     dc:description=" Helped Aaron with ssh..."
52     dc:creator=""
53     dc:date="2007-08-03T17:56:27-06:00" />
54 </rdf:RDF>
55 -->
56
57
58                      <h2 class="date-header">August  3, 2007</h2>
59                      <a id="a000659"></a>
60                      <div class="entry" id="entry-659">
61                         <h3 class="entry-header">ssh</h3>
62                         <div class="entry-content">
63                            <div class="entry-body">
64                               <ul>
65   <li>Helped Aaron with ssh</li>
66 </ul>
67                               
68                               <h2>Adding ssh actions to CDE</h2>
69
70 <p>Secure SHell or ssh is a more modern and secure way to access a remote system. You can add ssh actions to CDE by doing the following:</p>
71
72 <p>Add the following to ~/.dt/types:</p>
73
74 <div class=code><pre>
75 ACTION Ssh
76 {
77   LABEL           Secure shell
78   ICON            Dtterm
79   ARG_COUNT       0
80   TYPE            COMMAND
81   WINDOW_TYPE     NO_STDIO
82   EXEC_STRING     ksh -c 'export _title="%"Starbase?"%";          \
83     /usr/dt/bin/dtterm -name $_title                              \
84     -title "Opening hailing frequencies to starbase $_title..."   \
85     -e ksh -c "ssh $_title; sleep 5;";'
86   DESCRIPTION     The Secure shell action prompts the user for    \
87                   the name of a system, opens a dtterm terminal   \
88                   emulator window, and then performs an ssh to    \
89                   that system.
90 }
91
92 ACTION SshUser
93 {
94   LABEL           Secure shell
95   ICON            Dtterm
96   ARG_COUNT       0
97   TYPE            COMMAND
98   WINDOW_TYPE     NO_STDIO
99   EXEC_STRING     ksh -c 'export _title="%"Starbase?"%";          \
100     export _user="%"Username"%";                                  \
101     /usr/dt/bin/dtterm -name $_title                              \
102     -title                                                        \
103       "Opening hailing frequencies to starbase $_user@$_title..." \
104     -e ksh -c "ssh $_user@$_title; sleep 5;";'
105   DESCRIPTION     The Secure shell action prompts the user for    \
106                   the name of a system and a username and opens   \
107                   a dtterm terminal emulator window, and then     \
108                   performs an ssh to that system.
109 }
110 </pre></div>
111
112 <p>Then invoke the actions with:</li>
113
114 <div class=code><pre>
115 $ dtaction Ssh
116 $ dtaction SshUser
117 </pre></div>
118
119 <p>or better yet put it into your Dtwm menus like:</p>
120
121 <div class=code><pre>
122     Menu Terminals
123     {
124       "Terminals"           f.title
125       "Terminal"            f.action Dtterm
126       "Remote Terminal"     f.action Ssh
127       "Remote Terminal (user)"      f.action SshUser
128       "X Terminal"          f.action Xterm
129     }
130 </pre></div>
131
132 <h2>Configuring ssh for passwordless but secure public key authentication</h2>
133
134 <p>In order to do public key authentication you need to first generate a public key. You do this for ssh with ssh-keygen:</p>
135
136 <div class=code><pre>
137 $ ssh-keygen -t rsa
138 </pre></div>
139
140 <p>Note you can also do -t dsa. There are RSA keys and DSA keys. I forget what the prompts are, something about a passphrase, etc. Enter no passphrase.</p>
141
142 <p>This should create a directory ~/.ssh with files in it. For example:</p>
143
144 <div class=code><pre>
145 <b><font color="#3333ff">$</font></b> <u>ssh-keygen -t rsa</u>
146 Enter file in which to save the key(/home/p6258c/.ssh/id_rsa):
147 Generating public/private rsa key pair.
148 Enter passphrase(empty for no passphrase): 
149 <b><font color="#3333ff">$</font></b> <u>ls -l ~/.ssh</u>
150 total 32
151 -rw-------    1 p6258c   ccusers       226 Jun 15 13:28 authorized_keys
152 -rw-------    1 p6258c   ccusers       887 Jun 15 13:27 id_rsa
153 -rw-rw-r--    1 p6258c   ccusers       226 Jun 15 13:27 id_rsa.pub
154 -rw-r--r--    1 p6258c   ccusers      4082 Jul 31 15:05 known_hosts
155 <b><font color="#3333ff">$</font></b> <u>ls -ld .</u>
156 drwxr-xr-x   43 p6258c   ccusers      2048 Aug  3 10:28 ./
157 <b><font color="#3333ff">$</font></b>
158 </pre></div>
159
160 <p>Then the task is to get the ~/.ssh/id_rsa.pub key added to the authorized_keys file (creating it if you need to). Here in GD that is easy. Siimply:</p>
161
162 <div class=code><pre>
163 <b><font color="#3333ff">$</font></b> <u>cat ~/.ssh/id_rsa.pub &gt;&gt; ~/.ssh/authorized_keys</u>
164 </pre></div>
165
166 <p>Now, since all GD machines in the RAN subnet share your same home directory (automounted from the same common location) viola! You now have passwordless ssh access using public key authentication through the RAN (note this does not cross from RAN -&gt; GD network due to firewall issues). Whenever you ssh to a new machine it will bother you about adding it to the known_hosts file but after that it should not prompt again.</p>
167
168 <p>Also note that if this were a different situation you'd have to get the contents of ~/.ssh/id_rsa.pub over to the remote machine. For example, I could generate my keys as described above then email the ~/.ssh/id_rsa.pub from here to my home Linux system, append it to my ~/.ssh/authorized_keys on my home Linux system then I could ssh from here to home. Normally I configure my house to <b>only</b> allow public key authenticated logins from the outside world. I can't do it here from GD because the firewall prohibits it (which is odd)!</p>
169
170 <p>Final note: Sometimes, if ssh is configured to by strict about permissions, you need to change your home directory to be 755 as shown above. Normally I'm a sharing kinda guy so I have my home directory set to 775 but with ssh strict permissions that'll cause passwordless ssh to not work anymore.</p>
171                               
172                               <p class="entry-footer">
173                                  <span class="post-footers">Posted by  at  5:56 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000659.html">Permalink</a>
174                                  
175                                  | <a href="http://defaria.com/blogs/Status/archives/000659.html#trackback">TrackBacks (0)</a>
176                               </p>
177                            </div>
178                         </div>
179                      </div>
180                      
181                      <!--
182 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
183          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
184          xmlns:dc="http://purl.org/dc/elements/1.1/">
185 <rdf:Description
186     rdf:about="http://defaria.com/blogs/Status/archives/week_2007_07_29.html#entry-000658"
187     trackback:ping="http://defaria.com/mt/mt-tb.cgi/45"
188     dc:title="ranlin0[2|3] released"
189     dc:identifier="http://defaria.com/blogs/Status/archives/week_2007_07_29.html#entry-000658"
190     dc:subject="General Dynamics"
191     dc:description=" After resolving issue with cleartrig and fonts, released ranlin0[2|3] to production..."
192     dc:creator=""
193     dc:date="2007-08-01T13:04:27-06:00" />
194 </rdf:RDF>
195 -->
196
197
198                      <h2 class="date-header">August  1, 2007</h2>
199                      <a id="a000658"></a>
200                      <div class="entry" id="entry-658">
201                         <h3 class="entry-header">ranlin0[2|3] released</h3>
202                         <div class="entry-content">
203                            <div class="entry-body">
204                               <ul>
205   <li>After resolving issue with cleartrig and fonts, released ranlin0[2|3] to production</li>
206 </ul>
207                               
208                               <h3>New Linux workstations ranlin02 & 03 now ready</h3>
209
210 <p>The new Linux workstations ranlin02 and ranlin03 are now ready for use. Clearcase and Clearquest have been installed on them and they have been properly configured into the RAN network.</p>
211
212 <p>There is a slight issue regarding problems with Clearquest and clearprompt (a dialog box tool used by our tools) and fonts. Sometimes this leads to dialog boxes that lack any text due to font rendering problems.</p>
213
214 <p>A fix had been implemented. For users who will be using these new Linux boxes (especially if they use Solaris desktops, will be remotely logging into these Linux boxes and displaying things back to their Solaris boxes running CDE) simply add the following "source" to their
215 ~/.cshrc:</p>
216
217 <div class=code><pre>
218 #ident  "@(#)local.cshrc        1.2     00/05/01 SMI"
219 umask 002
220 set path=(/bin /usr/bin /usr/ucb /etc /usr/sbin /usr/atria/etc
221 /usr/atria/bin /usr/openwin/bin /usr/dt/bin /usr/local/bin
222 /opt/hpnpl/bin .)
223 if ( $?prompt ) then
224    set history=64              # previous commands to remember.
225    set savehist=64             # number to save across sessions.
226    setenv system `hostname`     # set hostname
227    set prompt="[$system`pwd`] " # set prompt
228    alias       cd      'cd \!*; set prompt="[$system`pwd`] "'
229 endif
230 alias ct /usr/atria/bin/cleartool
231 alias ll 'ls -l'
232 alias la 'ls -a'
233 alias cdd 'cd ..'
234 alias cddd 'cd ../..'
235 #alias shello /vobs/cello/civ/test_utilities/scripts/shello
236 source /prj/muosran/config/.cshrc.muosran
237 <b><u><font color="#ff0000">source /prj/muosran/config/.cshrc.linux</font></u></b>
238 </pre></div>
239
240                               
241                               <p class="entry-footer">
242                                  <span class="post-footers">Posted by  at  1:04 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000658.html">Permalink</a>
243                                  
244                                  | <a href="http://defaria.com/blogs/Status/archives/000658.html#trackback">TrackBacks (0)</a>
245                               </p>
246                            </div>
247                         </div>
248                      </div>
249                      
250                      <!--
251 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
252          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
253          xmlns:dc="http://purl.org/dc/elements/1.1/">
254 <rdf:Description
255     rdf:about="http://defaria.com/blogs/Status/archives/week_2007_07_29.html#entry-000657"
256     trackback:ping="http://defaria.com/mt/mt-tb.cgi/44"
257     dc:title="CC/CQ on Linux"
258     dc:identifier="http://defaria.com/blogs/Status/archives/week_2007_07_29.html#entry-000657"
259     dc:subject="General Dynamics"
260     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,..."
261     dc:creator=""
262     dc:date="2007-07-31T17:25:51-06:00" />
263 </rdf:RDF>
264 -->
265
266
267                      <h2 class="date-header">July 31, 2007</h2>
268                      <a id="a000657"></a>
269                      <div class="entry" id="entry-657">
270                         <h3 class="entry-header">CC/CQ on Linux</h3>
271                         <div class="entry-content">
272                            <div class="entry-body">
273                               <ul>
274   <li>Fixed problem with cleartrig for the Linux clients</li>
275
276   <li>Investigated and found a work around to font problems between Linux and Sun</li>
277
278   <li>Met with development/test teams regarding documentation visibility. Also worked out the differences in the documents between builds 1, 2 and 3</li.
279 </ul>
280                               
281                               <h3>Cleartrig and font problems on Linux clients</h3>
282
283 <p>I hit a few problems when attempting to verify proper execution of Clearcase/Clearquest and our WOR integration on Linux machines.</p>
284
285 <h3>Cleartrig problems</h3>
286
287 <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>
288
289 <h3>Font Problems</h3>
290
291 <p>his is running under the assumption that:</p>
292
293 <ol>
294   <li>The user is on a Solaris box and running CDE and</li>
295
296   <li>The user is remotely logged into a Linux box (currently only ranlin02 and ranlin03) and displaying back to his/her Solaris machine</li>
297 </ol>
298
299 <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
300 following:</p>
301
302 <div class=code><pre>
303 *Font:             -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*
304 *FontList:         -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*
305 *labelFontList:    -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*
306 ...
307 </pre></div>
308
309 <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>
310
311 <div class=code><pre>
312 *Font:                  fixed
313 *FontList:              fixed
314 *labelFontList:         fixed
315 *buttonFontList:        fixed
316 *textFontList:          fixed
317 *DtEditor*textFontList: fixed
318 *systemFont:            fixed
319 *XmText*FontList:       fixed
320 *FontSet:               fixed
321 *XmTextField*FontList:  fixed
322 *fontGroup:             Courier
323 </pre></div>
324
325 <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>
326
327 <div class=code><pre>
328 $ xrdb -m ~/.fonts
329 </pre></div>
330
331 <h4>Notes:</h4>
332 <ol>
333   <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>
334 </ol>
335
336                               
337                               <p class="entry-footer">
338                                  <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>
339                                  
340                                  | <a href="http://defaria.com/blogs/Status/archives/000657.html#trackback">TrackBacks (0)</a>
341                               </p>
342                            </div>
343                         </div>
344                      </div>
345                      
346                   </div>
347                </div>
348             </div>
349          </div>
350       </div>
351    </div>
352 </body>
353 </html>