วันอาทิตย์ที่ 10 กรกฎาคม พ.ศ. 2554

Install FLUKA in Ubuntu 10.04 OS

From Evernote:

Install FLUKA in Ubuntu 10.04 OS

Clipped from: http://mpgd.lzu.edu.cn/mediawiki/index.php/Install_FLUKA_in_Ubuntu_10.04_OS

Install FLUKA in Ubuntu 10.04 OS

How to install g77 in Ubuntu linux OS

  To install the g77 Fortran compiler in Ubuntu 10.04 (Karmic Koala) just follow these simple steps.  
  Open /etc/apt/sources.list and add the following Ubuntu 10.04 Hardy repositories:  
 deb http://hu.archive.ubuntu.com/ubuntu/ hardy universe deb-src http://hu.archive.ubuntu.com/ubuntu/ hardy universe deb http://hu.archive.ubuntu.com/ubuntu/ hardy-updates universe deb-src http://hu.archive.ubuntu.com/ubuntu/ hardy-updates universe  

Once you've saved the file open a terminal and run the commands:

 sudo aptitude update sudo aptitude install g77  

How to install FLUKA in Ubuntu 10.04

 In the first you have to install g77 in your system like above steps.  
  mkdir FLUKA  cd FLUKA  mkdir FLUKA_install  cd FLUKA_install  tar -zxvf /home/xiaodong/FLUKA/fluka2008.3d-linuxAA.tar.gz  make  

Until now,you have done the install step,Now you should setup your .bashrc

  sudo vi .bashrc  

add this line in your .bashrc and save and exit

  export FLUPRO=/home/xiaodong/FLUKA/FLUKA_install  

How to install flair of FLUKA interface tool

In the Ubunut OS you should do like the below steps

   1,  sudo apt-get install python python-tk idle python-pmw python-imaging  

Go to the web http://sourceforge.net/projects/tcl/files/Tcl/8.5.9/tcl8.5.9-src.tar.gz/download

   2, cp /home/xiaodong/Dowload/tcl8.5.9-src.tar.gz /home/xiaodong/FLUKA      cd FLUKA_tool      tar -zxvf /home/FLUKA/tcl8.5.9-src.tar.gz      cd tcl8.5.9/unix      ./configure      make      sudo make install  

Setup your .bashrc

    3, sudo vi .bashrc  

Add this line in the end of the .bashrc then save and exit

    4, alias flair=/home/xiaodong/FLUKA/FLUKA_tool/flair-0.9/flair  
Powered by MediaWiki

วันจันทร์ที่ 4 กรกฎาคม พ.ศ. 2554

Fix bug. Compile Fluka on Ubuntu 11.04

from URL: http://ubuntuforums.org/showthread.php?t=1750758

I upgraded from 10.10 to 11.04 and the link to libgcc_s was broken in the upgrade.
The bad link was: /lib/i386-linux-gnu/libgcc_s.so.1
The correct lib was: /usr/lib/gcc/i486-linux-gnu/3.4.6/libgcc_s.so
I re-created the link and this fixed my problem.

sudo ln -s /lib/i386-linux-gnu/libgcc_s.so.1 /usr/lib/gcc/i486-linux-gnu/3.4.6/libgcc_s.so

วันอาทิตย์ที่ 12 มิถุนายน พ.ศ. 2554

การทำให้ apt-get และ update manager ใช้ได้


Go to Applications > Accessories > Terminal
Type: sudo gedit /etc/apt/apt.conf
You may be prompted for password.
Modify the following accordingly with your details:
Code:
Acquire::http::proxy "http://username:password@proxy:port/";