Friday, April 3, 2015

howto set the script for using STARLINK package

1. download the current version of STARLINK package
2. extract all files to somewhere on your computer

3. type these commands on your terminal
export STARLINK_DIR=/home/MyUserName/star-2014A
source $STARLINK_DIR/etc/profile

Thursday, March 5, 2015

Tuesday, February 3, 2015

installation IRAF package for Linux 64bit

Now, I am using Linux 64bit and trying to use IRAF package as a beginner. Here are those installation method which could work properly.
Thanks information from the website and 
**Notethat: run bash shell before using IRAF .....after you have created LOGIN.CL script
the command to start or ecl should work properly. 
= IRAF Setup on Ubuntu/Debian Linux =

This page describes how to setup IRAF on a 64-bit Ubuntu/Debian machine.
Installation of X11IRAF, DS9 and key packages are also included. 

It will be easiest if you just copy-paste the instructions one by one except 
for the parts in [[ ]].

For 32-bit installation, see -

An excellent and easy alternative installation option is provided by the Ureka project -

- Rubab Khan


sudo apt-get install tcsh libxss1 lib32z1 lib32ncurses5 lib32bz2-1.0 libXmu6:i386


[[If the prompt does not return after 100% then hit ctrl+c and proceed]]

sudo mkdir /iraf

sudo mkdir /iraf/iraf

sudo mv iraf.lnux.x86_64.tar.gz /iraf/iraf/.

cd /iraf/iraf

sudo tar -zxf iraf.lnux.x86_64.tar.gz

sudo rm iraf.lnux.x86_64.tar.gz

sudo ./install

[[Keep hitting Enter for all prompts]]

sudo mkdir /iraf/x11iraf

cd /iraf/x11iraf

sudo wget

sudo tar -zxf x11iraf-v2.0BETA-bin.linux.tar.gz

sudo rm x11iraf-v2.0BETA-bin.linux.tar.gz

sudo ./install

[[Keep hitting Enter for all prompts]]

sudo wget

sudo tar -zxf ds9.linux64.7.2.tar.gz

sudo rm ds9.linux64.7.2.tar.gz

sudo mv ds9 /usr/local/bin/.



sudo chmod u=rwx iraf

mkdir IRAF



[[Select "xgterm" as your IRAF shell when prompted]]



The command ./iraf from home directory will now launch a complete IRAF session containing DS9,
xgterm and ecl, based in the IRAF direcory. Alternately, start "xgterm' (typing xgterm), 
cd into the directory where you did "mkiraf", type "ecl" for enhanced IRAF or 
"cl" for VO IRAF, and "ds9" for standalone DS9 launch. 

The following steps show how to add external packages. If you don't need extra packages, 
then you are done already.


cd /iraf/iraf/extern

sudo ./configure

[[The next two lines will take some time to complete, even with fast internet. Be patient.]]

sudo make adccdrom ctio cfh12k esowfi mscdb mscred stsdas nfextern optic

sudo make deitab euv mem0 mtools rvsao song sqiid stecf ucsclris upsqiid xdimsum



Next time you start IRAF, the available packages will be listed.

= END =

Saturday, August 9, 2014

how to run GFORTRAN on private machine

ทุกครั้งที่ใช้งานบน machine อื่น ให้ทำการ re-compile ก่อนทุกครั้งเสมอ ก่อนใช้งานนะ

[aips@localhost happy]$ make -f makehappy
make: `happy' is up to date.
[aips@localhost happy]$ rm *.o
[aips@localhost happy]$ !mak
make -f makehappy
gfortran -c -g -o happy.o happy.f
gfortran -c -g -o filesearch.o filesearch.f
gfortran -c -g -o stringlength.o stringlength.f
gfortran -c -g -o new_paramfile.o new_paramfile.f
gfortran -c -g -o open_intell.o open_intell.f
gfortran -c -g -o message.o message.f
gfortran -c -g -o banner.o banner.f
gfortran -c -g -o grunge.o grunge.f
gfortran -c -g -o filelength.o filelength.f
gfortran -c -g -o write_stuff.o write_stuff.f
gfortran -c -g -o numberize.o numberize.f
gfortran -c -g -o stonum.o stonum.f
gfortran -c -g -o filter.o filter.f
gfortran -c -g -o polarise.o polarise.f
gfortran -c -g -o error_calc.o error_calc.f
gfortran -c -g -o brightness.o brightness.f
gfortran -o happy happy.o filesearch.o stringlength.o new_paramfile.o open_intell.o message.o banner.o grunge.o filelength.o write_stuff.o numberize.o stonum.o filter.o polarise.o error_calc.o brightness.o

Sunday, May 25, 2014

How to mount NTFS fileson Centos 6.5

Today, I am trying to mount NTFS files for the Centos 6.5 system and here is the useful tool for those  who are newbies...
P.S. credit ....



The latest stable version is ntfs-3g_ntfsprogs-2014.2.15, released on February 23, 2014.



Linux: Most distributions include and use NTFS-3G by default. Please use that one unless it’s an old version. If you wish to install NTFS-3G from the source code then make sure you have installed the basic development tools (gcc compiler, libc-dev libraries). Then type:
make install # or 'sudo make install' if you aren't root

Non-Linux: Please see the OS specific installation and source packages above.



If there was no error during installation then the NTFS volume can be mounted in read-write mode for everybody as follows. Unmount the volume if it had already been mounted, replace /dev/sda1 and /mnt/windows, if needed.
mount -t ntfs-3g /dev/sda1 /mnt/windows
Please see the NTFS-3G Manual for more options and examples.
You can also make NTFS to be mounted during boot by adding the following line to the end of the /etc/fstab file:
/dev/sda1 /mnt/windows ntfs-3g defaults 0 0

Saturday, May 24, 2014

AIPS troubleshooting with Xterm (Centos ver.6)

I am using Centos 6.0 and just updated all the system and trying to install AIPS. I found the problem ..... /home/aips/31DEC14/SYSTEM/UNIX/XASERVERS &.....xterm command not found......

It means you have to install XTERM for  your operating system and then AIPS will work normally.

Tuesday, January 21, 2014

Ubuntu 13.10 with no effect graphic and Linux command so on

Task: Change Password For Other User Account You must login as root user, type the following command to change password for user vivek: # passwd vivek

 Install gnome-session-fallback and consider disabling the visual effects
sudo apt-get install gnome-session-fallback