Pages

Tuesday, April 19, 2011

Scientific Linux 6

Scientific Linux 6 based on Red Hat 6
Using 64 bit LiveDVD(around 2.2GB) download link SL-60-x86_64-2011-03-07-LiveDVD.iso
Installed to Acer Ferrari One(AMD Athlon X2 L310 1.2Ghz, 4 GB DDR2 RAM, vga ATI Radeon HD3200)

Some work todo:
  • change hostname -> /etc/sysconfig/network and edit this line HOSTNAME="<hostname>"
  • install ati proprietary driver from ati website, (made compiz works, but booting with default plymouth(ugly) verbose, 3d accel work)
  • enabling other repo(note: many dependency problem ocurred if enabling many repo at the same time), see below
install atrpms-repo-6-4.el6.x86_64.rpm
wiki EPEL repo for redhat, install epel-release-6-5.noarch.rpm
download latest rpmforge-release from http://packages.sw.be/rpmforge-release/


Test result for the moment:
worked well
  • webcam
  • power management -> sleep, hibernate
  • audio
  • display with 3d accel, compiz
  • vga port to external display(better than in ubuntu lucid 64 bit that hang when the monitor res are not meet the conf)
  • bluetooth
  • wifi
  • lan

worked but uhmm:
  • firefox weird, lag when scrollng page, so just install chrome(work well, no lag) from google directly http://www.google.com/chrome/ , use 'rpm -Uvh google-chrome-stable_current_x86_64.rpm' and  need to install redhat-lsb pkg first
  • battery performance not as good as in ubuntu lucid lynx 64 bit  now battery fine after install ati proprietary driver

http://www.scientificlinux.org/

Install OpenCL and PyOpenCL in Scientific Linux 6 (RHEL 6, CEntOS 6)

My rig is 64 bit system with RedHat 6 based OS, but my fera not supported for OpenCL using VGA(3200), so it using SSE2 from L310 processor  :(

Note that my Scientific Linux 6 installed from a 64 bit LiveDVD version, so might be a different step if using LiveCD.

Installing AMD APP:
Test using a sample
$ ./HelloCL
HelloCL!
Getting Platform Information
Creating a context AMD platform
Getting device info
Loading and compiling CL source
Running CL program
Done
Passed!

Installing PyOpenCl:
  • download PyOpenCL from PyOpenCL
  • make sure C++ compiler(g++), python, numpy, C++ boost library are installed
  • Tricky when execute configure.py: python configure.py   --cl-inc-dir=$HOME/AMD-APP-SDK-v2.4-lnx64/include   --cl-lib-dir=$HOME/AMD-APP-SDK-v2.4-lnx64/lib/x86_64   --cl-libname=OpenCL
  • then just make -> su -c "make install"

Result Test Running examples benchmark-all.py
$ ./benchmark-all.py
('Execution time of test without OpenCL: ', 34.952448844909668, 's')
=============================================
('Platform name:', 'AMD Accelerated Parallel Processing')
('Platform profile:', 'FULL_PROFILE')
('Platform vendor:', 'Advanced Micro Devices, Inc.')
('Platform version:', 'OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10)')
---------------------------------------------------------------
('Device name:', 'AMD Athlon(tm) X2 Dual Core Processor L310')
('Device type:', 'CPU')
('Device memory: ', 3706, 'MB')
('Device max clock speed:', 1200, 'MHz')
('Device compute units:', 2)
Execution time of test: 0.00733989 s
Results OK

Monday, April 11, 2011

LTI Transient-Response Analysis using Python(numpy, scipy, matplotlib)

In undergraduate Engineering Physics, i learn how to modelling a system by using a mathematical model of the system, to analyze the character of the system.

This script can be used to generate plot as in the Book of Modern Control Engineering 4th edition, International Edition, by Katsuhiko Ogata, Prentice Hall

Once when taking a subject Automatic Control is often to make a plot of LTI system, that generated in s(signal) domain by transforming mathematical model of the system using Laplace Transformation.

This example i took from page 307 of that book.
To plot transfer function =
(6.3223 s^2 + 18 s +12.811) / (s^4 + 6 s^3 + 11.3223 s^2 + 18s + 12.811)

The plot generated by those script as below

Pertama Kali Pake OS Berbasis GNU Linux

Gak kerasa, udah 3 tahun gw pake GNU Linux, waktu itu gara2 punya netbook super lemot acer aspire one a110 yg versi Linux, so default OS nya Linux, lupa distro-nya apa namanya.

Speknya Intel Atom generasi pertama yg N270, RAM cm 1 GB n gk bisa dual channel pula nih RAM, tp bkn komponen utama(CPU n RAM) yg bikin tuh laptop lemot, tapi harddisk-nya yg ternyata cm memory sejenis flashdisk yg berkapasitas 8GB dan kemampuan Read-Write-nya very poor banget dah..

Dah gitu tuh OS bawaanny buset gk bisa dibuat apa2 n gk eye catching sama sekali, paling cm utk task2 sedehana macem ketik2 kebutuhan office n dengerin MP3. Disini gw nyoba ganti ke windows XP, yah gw saat itu adalah org Indonesia yg umum sekali sebagai pengguna produk bajakan, tp FAIL, lalu gw coba ganti ke windows 7(yah bajakan lagi) n sama FAIL.

Yah FAIL, krn ternyata windows terlalu bnyk Read-Write ke harddisk, dan harddisk gw lemot puoooll, jd tuh LED indicator nyala terus n gk bisa dipake sama sekali tuh netbook jadinya.

Kemudian gw tny ama mbah Google seputar problem solving utk masalah ini, dan membawa suatu pencerahan utk menggunakan Linux pada laptop lemot ini, wah sial mana gw gk bisa Linux lg, iya kalo gw anak Informatika atw sebangsanya bakal no problem dah utk bljr OS ginian. Maka keyword selanjutnya yg gw tny ke mbah Google adlh Linux for Newbie Dumies... wkwkwkwk... Dan si mbah jawab "Ubuntu"...

Baca2 sana sini di internet utk install Linux... Dan akhirnya netbook gw yg lemot itu ternyata bisa running normal pas pake Ubuntu GNU Linux...

Waktu itu jg bnyk2 coba distro Linux lainnya, macem Fedora, PCOSLinux, OpenSuse, Mandriva, tp kayakny yg buat nubitol Linux itu Ubuntu deh...
Karena Ubuntu yg ternyata basisnya dari Debian, bisa bikin "everything just works" krn Ubuntu yg paling up to date dlm hal kompatibilitas hardware...

Mulai saat itu hingga kini, gw menemui banyak fakta yg ternyata teknologi windows yg sifatnya proprietary gak ada apa2nya kalo seandainya vendor2 hardware memberikan full support ke Linux...

Sampai saat blog ini gw tulis, gw lg pake Firefox 4 di Ubuntu Lucid Lynx 64 bit 10.04 eit tapi dengan laptop yang berbeda... Yah gw dah ganti pake Acer Ferrari One(gw namain fera) skr...

OS bawaannya yg orisini(cieh ori) tetep gw simpen, for just in case kalo ada software yg reseh cm ada utk windows...

Sunday, April 10, 2011

The Story of Linux: Commemorating 20 Years of the Linux Operating System



I'am celebrating 20 years of Linux...

Scientific Computing with Python Webinar 9/18/2009:Curve Fitting

Interpolation with SciPy and NumPy

Scientific Computing with Python Webinar March 19: 3D Visualization with Mayavi

Scientific Applications with Python

Enthought Inc @ slideshare