Repository navigation
Expand file tree
/
Copy pathlinux-network.html
More file actions
430 lines (396 loc) · 11.3 KB
/
Copy pathlinux-network.html
File metadata and controls
430 lines (396 loc) · 11.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Linux on HEAD or CF network — Python4Astronomers v1.0 documentation</title>
<link rel="stylesheet" href="../_static/sphinxdoc.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '1.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="top" title="Python4Astronomers v1.0 documentation" href="../index.html" />
<link rel="up" title="Installing Scientific Python" href="installation.html" />
<link rel="next" title="Windows" href="windows.html" />
<link rel="prev" title="Linux self-managed machine" href="linux-self.html" />
<script type="text/javascript">
$(document).ready(function(){
$(".flip0").click(function(){
$(".panel0").slideToggle("normal");
});
$(".flip1").click(function(){
$(".panel1").slideToggle("normal");
});
$(".flip2").click(function(){
$(".panel2").slideToggle("normal");
});
$(".flip3").click(function(){
$(".panel3").slideToggle("normal");
});
$(".flip4").click(function(){
$(".panel4").slideToggle("normal");
});
$(".flip5").click(function(){
$(".panel5").slideToggle("normal");
});
$(".flip6").click(function(){
$(".panel6").slideToggle("normal");
});
$(".flip7").click(function(){
$(".panel7").slideToggle("normal");
});
$(".flip8").click(function(){
$(".panel8").slideToggle("normal");
});
$(".flip9").click(function(){
$(".panel9").slideToggle("normal");
});
});
</script>
<style type="text/css">
div.panel0,p.flip0
{
font-size: 0.9em;
margin: 0;
padding: 0.1em 0 0.1em 0.5em;
border-bottom: 1px solid #86989B;
}
p.flip0
{
color: white;
font-weight: bold;
background-color: #AFC1C4;
}
div.panel0
{
display:none;
}
div.panel1,p.flip1
{
font-size: 0.9em;
margin: 0;
padding: 0.1em 0 0.1em 0.5em;
border-bottom: 1px solid #86989B;
}
p.flip1
{
color: white;
font-weight: bold;
background-color: #AFC1C4;
}
div.panel1
{
display:none;
}
div.panel2,p.flip2
{
font-size: 0.9em;
margin: 0;
padding: 0.1em 0 0.1em 0.5em;
border-bottom: 1px solid #86989B;
}
p.flip2
{
color: white;
font-weight: bold;
background-color: #AFC1C4;
}
div.panel2
{
display:none;
}
div.panel3,p.flip3
{
font-size: 0.9em;
margin: 0;
padding: 0.1em 0 0.1em 0.5em;
border-bottom: 1px solid #86989B;
}
p.flip3
{
color: white;
font-weight: bold;
background-color: #AFC1C4;
}
div.panel3
{
display:none;
}
div.panel4,p.flip4
{
font-size: 0.9em;
margin: 0;
padding: 0.1em 0 0.1em 0.5em;
border-bottom: 1px solid #86989B;
}
p.flip4
{
color: white;
font-weight: bold;
background-color: #AFC1C4;
}
div.panel4
{
display:none;
}
div.panel5,p.flip5
{
font-size: 0.9em;
margin: 0;
padding: 0.1em 0 0.1em 0.5em;
border-bottom: 1px solid #86989B;
}
p.flip5
{
color: white;
font-weight: bold;
background-color: #AFC1C4;
}
div.panel5
{
display:none;
}
div.panel6,p.flip6
{
font-size: 0.9em;
margin: 0;
padding: 0.1em 0 0.1em 0.5em;
border-bottom: 1px solid #86989B;
}
p.flip6
{
color: white;
font-weight: bold;
background-color: #AFC1C4;
}
div.panel6
{
display:none;
}
div.panel7,p.flip7
{
font-size: 0.9em;
margin: 0;
padding: 0.1em 0 0.1em 0.5em;
border-bottom: 1px solid #86989B;
}
p.flip7
{
color: white;
font-weight: bold;
background-color: #AFC1C4;
}
div.panel7
{
display:none;
}
div.panel8,p.flip8
{
font-size: 0.9em;
margin: 0;
padding: 0.1em 0 0.1em 0.5em;
border-bottom: 1px solid #86989B;
}
p.flip8
{
color: white;
font-weight: bold;
background-color: #AFC1C4;
}
div.panel8
{
display:none;
}
div.panel9,p.flip9
{
font-size: 0.9em;
margin: 0;
padding: 0.1em 0 0.1em 0.5em;
border-bottom: 1px solid #86989B;
}
p.flip9
{
color: white;
font-weight: bold;
background-color: #AFC1C4;
}
div.panel9
{
display:none;
}
</style>
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="windows.html" title="Windows"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="linux-self.html" title="Linux self-managed machine"
accesskey="P">previous</a> |</li>
<li><a href="../index.html">Python4Astronomers v1.0 documentation</a> »</li>
<li><a href="installation.html" accesskey="U">Installing Scientific Python</a> »</li>
</ul>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h3><a href="../index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Linux on HEAD or CF network</a><ul>
<li><a class="reference internal" href="#path-configuration">Path configuration</a></li>
<li><a class="reference internal" href="#additional-packages">Additional packages</a></li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="linux-self.html"
title="previous chapter">Linux self-managed machine</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="windows.html"
title="next chapter">Windows</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/installation/linux-network.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="../search.html" method="get">
<input type="text" name="q" size="18" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="linux-on-head-or-cf-network">
<h1>Linux on HEAD or CF network<a class="headerlink" href="#linux-on-head-or-cf-network" title="Permalink to this headline">¶</a></h1>
<p>This is the easiest of all because nearly everything is already set up on the
HEAD or CF networks.</p>
<div class="section" id="path-configuration">
<h2>Path configuration<a class="headerlink" href="#path-configuration" title="Permalink to this headline">¶</a></h2>
<p>The main configuration that is needed is to set up your path to use the
correct Python version.</p>
<p>For the HEAD network (but <em>not</em> the CF network) you need to make a local bin directory with links to
three executables that are found in <tt class="docutils literal"><span class="pre">/usr/local/bin</span></tt>. Do the following:</p>
<div class="highlight-python"><pre>mkdir -p ~/.local/bin
cd ~/.local/bin
ln -s /usr/local/bin/python ./
ln -s /usr/local/bin/ipython ./
ln -s /usr/local/bin/easy_install ./</pre>
</div>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">You might ask why not just put
<tt class="docutils literal"><span class="pre">/usr/local/bin</span></tt> at the head of your PATH? The answer is that there are
many executables in /usr/local/bin that will override their counterparts
in <tt class="docutils literal"><span class="pre">/usr/bin</span></tt>. Given current setup on the HEAD network this can
have unpredictable consequences and it is not recommended.</p>
</div>
<p>Next you need to edit the appropriate shell startup file and insert
this corresponding command near the end:</p>
<table border="1" class="docutils">
<colgroup>
<col width="11%" />
<col width="8%" />
<col width="20%" />
<col width="62%" />
</colgroup>
<thead valign="bottom">
<tr><th class="head">Network</th>
<th class="head">Shell</th>
<th class="head">File</th>
<th class="head">Command</th>
</tr>
</thead>
<tbody valign="top">
<tr><td>HEAD</td>
<td>csh</td>
<td>~/.cshrc.user</td>
<td><tt class="docutils literal"><span class="pre">set</span> <span class="pre">path=($HOME/.local/bin</span> <span class="pre">$path)</span></tt></td>
</tr>
<tr><td>HEAD</td>
<td>bash</td>
<td>~/.bashrc</td>
<td><tt class="docutils literal"><span class="pre">export</span> <span class="pre">PATH=$HOME/.local/bin:$PATH</span></tt></td>
</tr>
<tr><td>CF</td>
<td>csh</td>
<td>~/.myrc</td>
<td><tt class="docutils literal"><span class="pre">set</span> <span class="pre">path=(/data/astropy/bin</span> <span class="pre">$path)</span></tt></td>
</tr>
<tr><td>CF</td>
<td>bash</td>
<td>~/.bashrc</td>
<td><tt class="docutils literal"><span class="pre">export</span> <span class="pre">PATH=/data/astropy/bin:$PATH</span></tt></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="additional-packages">
<h2>Additional packages<a class="headerlink" href="#additional-packages" title="Permalink to this headline">¶</a></h2>
<p>Now the extra packages needed for the workshop into your local area
(<tt class="docutils literal"><span class="pre">~/.local/lib/python2.6/site-packages</span></tt>) with the following commands:</p>
<div class="highlight-python"><pre>easy_install --user asciitable
easy_install --user http://www.stsci.edu/resources/software_hardware/pyfits/pyfits-2.4.0.tar.gz
easy_install --user pywcs
easy_install --user atpy
easy_install --user aplpy
easy_install --user http://stsdas.stsci.edu/astrolib/vo-0.6.tar.gz
easy_install --user http://stsdas.stsci.edu/astrolib/coords-0.37.tar.gz
easy_install --user pyparsing
easy_install --user pyregion</pre>
</div>
<p>Now go back to the <a class="reference internal" href="installation.html#installation-test"><em>Tests</em></a> section to verify everything is working.</p>
</div>
</div>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="windows.html" title="Windows"
>next</a> |</li>
<li class="right" >
<a href="linux-self.html" title="Linux self-managed machine"
>previous</a> |</li>
<li><a href="../index.html">Python4Astronomers v1.0 documentation</a> »</li>
<li><a href="installation.html" >Installing Scientific Python</a> »</li>
</ul>
</div>
<div class="footer">
© Copyright 2011, Smithsonian Astrophysical Observatory.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.5.
</div>
</body>
</html>