Saturday, August 9, 2014

how to run GFORTRAN on private machine

ทุกครั้งที่ใช้งานบน machine อื่น ให้ทำการ re-compile ก่อนทุกครั้งเสมอ
**ที่สำคัญมี gfortran และหลังจากรันเสร็จแล้วให้เอาไฟล์ใหม่จากรันไปไว้ในโฟลเดอร์ดาต้าด้วย

[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

หลังจากนี้รันด้วยคำสั่ง ./happy

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