==============================================================
 ╔═╗    ╔╦╗      ╔═╗  ╔╦╗     ╔═╗                   ╔═══════╗
 ║ ║    ╚╩╝  ╔═══╝ ╚══╩╬╝ ╔═══╝ ╚═══╗  ╔════════╗  ╔╝ ╔═══╗ ║
 ║ ╚══════╗  ╚═══╗ ╔═══╝  ║ ╔═════╗ ║  ║ ╔════╗ ║  ║ ╔╝  ╔╝ ║
 ║ ╔══════╝  ╔═╗ ║ ║ ╔═╗  ╚═╝   ╔═╝ ║  ║ ║    ║ ║  ╚═╝  ╔╝ ╔╝
 ║ ╚══════╗  ║ ║ ║ ║ ║ ║     ╔══╝ ╔═╝  ║ ╚════╝ ║     ╔═╝ ╔╝
 ╚════════╝  ╚═╝ ╚═╝ ╚═╝     ╚════╝    ╚════════╝     ╚═══╝
==============================================================


== INDEX ==

## Mac ## * restart menu bar * F8~12 have error (Mission Control) * nfs mount server * multistage ssh * change Google Chrome font * change icons * permit ssh with X window * restart ssh daemon * enable super user * terminal color dark * download Xcode Command Line Tools * private file of Karabiner (KeyRemap4MacBook) * hide Application Dock icon * remove MobileBackups * time sync on Marvericks * change local hostname * input combining charactor * image cropping by terminal * check registered printer IP * right click drag in touch pad * back to page from address bar (Google Chrome) * UNIX_TIME <-> time conversion * install LATEX by Homebrew ## Linux ## * authorized_keys * check the version of RedHat * install sshd by apt get * add sudo user * Lunar Linux virtio setting * set Emacs key bind * hide desktop icons ## Zsh ## * zshall * conditional expressions * Globbing Flags * Glob Qualifiers * Parameter Expansion Flags * error at complementation (Tab key) ## Git ## * add submodule * rm submodule * update submodule * replace submodule * change submodule position * add new repository on GitHub * clone new repository from GitHub * conflict error * do not open editor at merge * install git under home * check tracked files * recover removed file * rebase brew Formula * add new repository to private git server * remove file from all history * download tag from remote repository * change remote repository URL ## Vim ## * install vim with lua under HOME dir (Linux) * install vim with luajit instead of lua (Linux) * install vim with lua by homebrew (Mac) * install vim with luajit instead of lua (Mac) * install vim with python under HOME dir (Linux) * start without X server * modeline ## Tmux ## * install tmux under HOME dir * use clip board (Mac) * press Esc key immediately * show only 1 pane temporary ## Geant4 ## * install geant4 (Mac) * cmake src with ROOT * install VRML (Mac) * cmake error about ROOT * suppress G4ParticleGun messages * set filter for trajectries in macro ## ROOT ## * install ROOT with cocoa * change default setting * install ROOT with cocoa by homebrew * upgrade error on homebrew * change print size * change X range of TGrap * TText TLatex * change TStyle for some part * set file name for output in macro ## Homebrew ## * update error because of git * permission error ## Other ## * set htaccess on HP * rsync error for large size file * Gmail search option * atan2 (C language) * KEKCC batch queue back

## Geant4 ############################

* install geant4 (Mac) % install xerces-c +-------------------------+ | $ brew install xerces-c | +-------------------------+ % set environment +---------------------------------------------------+ | export G4INSTALL=/usr/local/geant4/geant4.9.6.p02 | +---------------------------------------------------+ % get geant4 code +-------------------------------------------------------------------+ | $ wget http://geant4.cern.ch/support/source/geant4.9.6.p02.tar.gz | | $ cd /usr/local | | $ mkdir geant | | $ cd geant | | $ tar zxvf ~/geant4.9.6.p02.tar.gz | | $ mkdir geant4.9.6.p02-build | | $ cd geant4.9.6.p02-build | +-------------------------------------------------------------------+ % make +---------------------------------------------------------------------------------------+ | $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DXERCESC_ROOT_DIR=/opt/local \ | | -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_RAYTRACER_X11=ON -DGEANT4_INSTALL_DATA=ON \ | | -DGEANT4_USE_GDML=ON $G4INSTALL | | $ make -j4 | | $ make install | +---------------------------------------------------------------------------------------+ NOTE : ln -s /opt/X11 /usr/X11R6 is needed % geant.sh +---------------------+ | $ cd /usr/local/bin | | $ source geant4.sh | | $ cd - > /dev/null | +---------------------+ NOTE : DYLD_LIBRARY_PATH should be "" * cmake src with ROOT +-----------------------------------------------------------------------+ | $ cmake -DGeant4_DIR=/usr/local/lib/Geant4-9.6.2 \ | | -DCMAKE_MODULE_PATH=/usr/local/geant/geant4.9.6.p02/cmake/Modules \ | | ../<src_dir> | +-----------------------------------------------------------------------+ * install VRML (Mac) use FreeWRL  +-------------------------------------------------------------------------------------------------+ | $ cd | | $ cp /Volumes/FreeWRL\ 1.22.13-Pre1\ install/FreeWRL-1.22.13-pre1.pkg/Contents/Archive.pax.gz . | | $ gunzip Archive.pax.gz | | $ open Archive.pax | | $ cd unidst | | $ cp -pr Applications/FreeWRL /Applications | | $ sudo cp -p usr/local/lib/lib* /usr/local/lib/ | | $ sudo cp -p usr/bin/* /usr/local/bin/ | +-------------------------------------------------------------------------------------------------+ % no need ? +-----------------------------------------------+ | $ rm /usr/local/lib/libfree* | | $ sudo ln -s /opt/X11/lib/libfreetype.6.dylib | +-----------------------------------------------+  export G4VRMLFILE_VIEWER=freewrl  at .zshrc /vis/open VRML2FILE /vis/viewer/flush * cmake error about ROOT if geant can not find root path, edit /usr/local/geant/geant4.10.00/cmake/Modules/FindROOT.cmake +---------------------------------------------+ | if(NOT ROOT_CONFIG_EXECUTABLE) | | set(ROOT_FOUND FALSE) | | else() | | set(ROOT_FOUND TRUE) | | ^set(ROOT_CONFIG_EXECUTABLE "root-config")^| +---------------------------------------------+ * suppress G4ParticleGun messages +------------------------------------------------------------------------------+ | ^#include "G4strstreambuf.hh"^ | | | | ^G4strstreambuf* oldBuffer = dynamic_cast<G4strstreambuf*>(G4cout.rdbuf(0));^| | ... | | particleGun->SetParticleMomentum(G4ThreeVector(px*GeV, py*GeV, pz*GeV)); | | ... | | ^G4cout.rdbuf(oldBuffer);^ | +------------------------------------------------------------------------------+ * set filter for trajectries in macro +-------------------------------------------------------------------------------+ | /vis/filtering/trajectories/create/particleFilter | | /vis/filtering/trajectories/particleFilter-0/add <particle> | | | | /vis/filtering/trajectories/create/chargeFilter | | /vis/filtering/trajectories/chargeFilter-0/add <charge> | | | | /vis/filtering/trajectories/create/attributeFilter | | /vis/filtering/trajectories/attributeFilter-0/setAttribute IMag | | /vis/filtering/trajectories/attributeFilter-0/addInterval <min> MeV <max> MeV | +-------------------------------------------------------------------------------+ % particle anti_proton, gamma, etc.