Welcome to iraf.net Thursday, March 28 2024 @ 11:22 PM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 installing iraf to 30+ unbuntu 14.04 machines
   
raph38
 08/28/2014 11:15AM (Read 2470 times)  
+----
Newbie

Status: offline


Registered: 05/26/2014
Posts: 3
I have been assigned the task to install iraf on a number of ubuntu 14.04 machines, if possible in an automatic fashion, at the same time as the machines get installed.
I have attempted to build packages that would install all files in the proper system location and failed (I can't even seem to get the thing to build properly however I try)
If I try following the binary tarball route, "I am installing for the First Time"
step 1 is easily doable,
step 2 is trivial
step 3 has 2 issues
- the manual should state the script is "install.csh"
- I can't go and press "enter" 12 times on those machines which are located in all corners of the lab
(doing remote reboot and pxe instalaltions here)

any advice ?

 
Profile Email
 Quote
favilac
 08/29/2014 03:18PM  
+----
Newbie

Status: offline


Registered: 12/16/2005
Posts: 10

You may use my installer for Ubuntu:

Installer for Ubuntu 14.04

Just mount the .iso file and run the install script.


 
Profile Email Website
 Quote
fitz
 08/29/2014 03:53PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040

The README in the ftp archive wasn't updated properly from the earlier release, the real path to the install script for v2.16.1 is $iraf/install and it is now a Bash script. Responding to prompts automatically is doable in a script, e.g.

PHP Formatted Code
#!/bin/csh

set dist = "ftp://iraf.noao.edu/iraf/v216/PCIX/iraf-linux.tar.gz"

wget -O /tmp/iraf-linux.tar.gz $dist            # download the distro

mkdir /iraf /iraf/iraf                          # create iraf dir and unpack
cd /iraf/iraf
tar zxf /tmp/iraf-linux.tar.gz

$iraf/install --system << EOF_INSTALL    # execute install w/ newlines for prompts





EOF_INSTALL

cd extern                            # install an external package
./configure                          # need once per install
make fitsutil                       # as other packages as desired
 


Note however that in this example script you're creating IRAF in /iraf and doing a system-wide install, so the script must be executed as root or with 'sudo' which also means the iraf tree will be owned by root as well. An 'iraf' account isn't required and in the latest release it's possible to do a non-root install as well. You could modify this script as needed and then simply execute it on each machine to automate the whole process.

 
Profile Email
 Quote
   
Content generated in: 0.14 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login