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 29, 2007 - August 4, 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/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" />
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/week_2007_07_22.html">« 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 »</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/week_2007_07_29.html#entry-000659"
47 trackback:ping="http://defaria.com/mt/mt-tb.cgi/46"
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..."
53 dc:date="2007-08-03T17:56:27-06:00" />
58 <h2 class="date-header">August 3, 2007</h2>
60 <div class="entry" id="entry-659">
61 <h3 class="entry-header">ssh</h3>
62 <div class="entry-content">
63 <div class="entry-body">
65 <li>Helped Aaron with ssh</li>
68 <h2>Adding ssh actions to CDE</h2>
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>
72 <p>Add the following to ~/.dt/types:</p>
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 \
99 EXEC_STRING ksh -c 'export _title="%"Starbase?"%"; \
100 export _user="%"Username"%"; \
101 /usr/dt/bin/dtterm -name $_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.
112 <p>Then invoke the actions with:</li>
114 <div class=code><pre>
119 <p>or better yet put it into your Dtwm menus like:</p>
121 <div class=code><pre>
125 "Terminal" f.action Dtterm
126 "Remote Terminal" f.action Ssh
127 "Remote Terminal (user)" f.action SshUser
128 "X Terminal" f.action Xterm
132 <h2>Configuring ssh for passwordless but secure public key authentication</h2>
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>
136 <div class=code><pre>
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>
142 <p>This should create a directory ~/.ssh with files in it. For example:</p>
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>
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>
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>
162 <div class=code><pre>
163 <b><font color="#3333ff">$</font></b> <u>cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys</u>
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 -> 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>
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>
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>
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>
175 | <a href="http://defaria.com/blogs/Status/archives/000659.html#trackback">TrackBacks (0)</a>
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/">
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..."
193 dc:date="2007-08-01T13:04:27-06:00" />
198 <h2 class="date-header">August 1, 2007</h2>
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">
205 <li>After resolving issue with cleartrig and fonts, released ranlin0[2|3] to production</li>
208 <h3>New Linux workstations ranlin02 & 03 now ready</h3>
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>
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>
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
217 <div class=code><pre>
218 #ident "@(#)local.cshrc 1.2 00/05/01 SMI"
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
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`] "'
230 alias ct /usr/atria/bin/cleartool
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>
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>
244 | <a href="http://defaria.com/blogs/Status/archives/000658.html#trackback">TrackBacks (0)</a>
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/">
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,..."
262 dc:date="2007-07-31T17:25:51-06:00" />
267 <h2 class="date-header">July 31, 2007</h2>
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">
274 <li>Fixed problem with cleartrig for the Linux clients</li>
276 <li>Investigated and found a work around to font problems between Linux and Sun</li>
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.
281 <h3>Cleartrig and font problems on Linux clients</h3>
283 <p>I hit a few problems when attempting to verify proper execution of Clearcase/Clearquest and our WOR integration on Linux machines.</p>
285 <h3>Cleartrig problems</h3>
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>
289 <h3>Font Problems</h3>
291 <p>his is running under the assumption that:</p>
294 <li>The user is on a Solaris box and running CDE and</li>
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>
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
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*-*-*-*-*-*-*-*-*
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>
311 <div class=code><pre>
314 *labelFontList: fixed
315 *buttonFontList: fixed
317 *DtEditor*textFontList: fixed
319 *XmText*FontList: fixed
321 *XmTextField*FontList: fixed
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>
327 <div class=code><pre>
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>
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>
340 | <a href="http://defaria.com/blogs/Status/archives/000657.html#trackback">TrackBacks (0)</a>