README of VM-SL6 - Version du 9/01/2014 Geant4.10.00.p01 --------------------------------------------------------- ** What Vm-SL6 is ------------------------ - A linux system with the Scientific Linux 6.4 distribution (http://www.scientificlinux.org) - It contains several scientific libraries such as Geant4 Version 10.00.p01, OpenScientist, Root, ... ** Requirements --------------- - VmWare Player for Windows (version 5.03) and linux, Vmware Fusion for MacOS (http://www.vmware.com) The virtual machines are compatible VirtualBox - at least 2Go RAM for the virtual machine, the amount of memory can be changed by editing the virtual machine settings - at least 15 Go of free disk space - the number of processors can also be changed in the virtual machine settings, by default 2 processors are set * Downloads ------------ - Download the zipped file - Download the current free version of software VMwarePlayer for Windows PC (5.03), Vmware Fusion for MAC (http://www.vmware.com/fr/products/player/) or VirtualBox (https://www.virtualbox.org/) - Download if needed the free software 7Zip if you need a free software to decompress these files : http://www.7-zip.org/ ** Installation --------------- - Install VmwarePlayer, VmWareFusion or VirtualBox - Decompress the .zip file in a directory - At the end you can then delete the zipped file ** How to use the virtual machine ? ----------------------------------- - Execute Vmware Player (Fusion or VirtualBox) to open the virtual machine From VmWare Player, VmWare Fusion open the .vmx file, With VirtualBox only vmdk file is necessary, open the vmdk file and then modify the storage attachment with an IDE controller instead of the SATA controller. Then you probably have to configured the X server and the keyboard preferences. When you power on the virtual machine, VMware Player displays a message asking whether you have moved or copied the virtual machine. You have to answer "I copied it". This will create a new uuid and a new mac address for the virtual machine necessary for network connection. Once your virtual machine is powered on, you have a real SL6 system - A default user account exists, the login account is: local1 and the password is: local1 root password is scilinux6.4 The general environment is defined in the /usr/local/Env/SL6_x64 file. The personal environment is defined in the /home/local1/.cshrc and can be completed in the /home/local1/.ucshrc Specifics environments are defined in the /usr/local/Modules/3.2.10/modulefiles Source files and build files for geant4 are in the /usr/local/src directory ($G4BUILD and $G4SRC) - The default keyboard is french (pc 105, fr) it can be changed in the file /etc/sysconfig/keyboard by a different model with the root account. For us keyboard change by "pc105+inet" - TO SHARE FOLDERS WITH WINDOWS SYSTEM : It is possible to share folders between the Windows host and the Linux guest : activate the shared Folders in the VMware Player menu, select i"Player" "Manage" then "Virtual machine setting" and then in the "Option" menu, select "Shared Folder", make sure the Always enabled option is selected, then Add to add a new share folder, there you can give a Name to your shared directory and select the Host Directory to share with the Browse button. Under your linux session, your exchange directory is located at /mnt/hgfs/Name_Of_Share - TO ADD A NEW DISK : Its is possible to add a new disk in your virtual machine if you need more space for data. To do this, select "Virtual machine setting" and then click Add.. button and then Hard Disk and Next, validate the choices and specify the size of the disk you want to create. After you have to create a new partition (under the linux session, fdisk /dev/sdxx) and then format the new partition (mke2fs -cjv /dev/sdxx). To mount it automatically create a mount point and declare it in the /etc/fstab file. - To BUILD examples, please refer to the documentation http://geant4.web.cern.ch/geant4/support/userdocuments.shtml For example with the B2 example, mkdir $HOME/buildB2 cd buildB2 cmake -DGeant4_DIR=$G4COMP $G4EXAMPLES/basic/B2 make -j2 (make -j4) cd B2a ./exampleB2a Contact : seznec@cenbg.in2p3.fr