du -a . | sort -n -r | head -n 10

# kill -STOP 945
# kill -CONT 945

compile dd4hep

cmake -D DD4HEP_USE_GEANT4=ON -DBoost_NO_BOOST_CMAKE=ON -D DD4HEP_USE_LCIO=ON -D Geant4_DIR=/cvmfs/ilc.desy.de/sw/x86_64_gcc49_sl6/v01-19-03/geant4/10.02.p02/lib64/Geant4-10.2.2/ -D DD4HEP_USE_CXX11=ON -DROOT_DIR=$ROOTSYS ..

pine

alias pine='alpine -p "{polsmtp.in2p3.fr/novalidate-cert/user="jeans"/norsh}remote_pinerc"'

mysql

cd /opt/exp_soft/ilcs/LOCAL_LLR/auxsw/mysql/
mysqld_safe &

mysqladmin -u root -p shutdown

update databases_tbl set srvname='localhost' where db_id=1;

minimal ubuntu installation

install basic ubuntu

sudo apt-get update
sudo apt-get install xorg xterm gdm icewm menu firefox --no-install-reommends
sudo service gdm start

svn

(public) svn co https://svnsrv.desy.de/public/calice/calice_reco/tags/v06-00-02/
(admin) svn co https://svnsrv.desy.de/svn/calice/calice_reco/tags/v06-00-02
svn commit -m "new FitConstants structure" FitConstants.hh
svn diff TBTrackDbHandler.hh
svn mv https://svnsrv.desy.de/desy/Garlic/branches/v2.03-pre https://svnsrv.desy.de/desy/Garlic/tags/v2.03
primer

svn2git


use svn2git from https://github.com/petricm/svn2git
mkdir test; cd test
svn2git -v https://svnsrv.desy.de/public/calice/calice_dd_testbeams --authors ../authors_all --authors-prog ../myAuthors.sh
git remote add origin ssh://git@gitlab.cern.ch:7999/calice/calice_dd4heptestbeamsim.git [after creating this new gitlab project]
git push -u origin --all
git push -u origin --tags

cmake

cmake -DCMAKE_INSTALL_PREFIX=../install_calice_reco_svn/trunk -C ~/caliceSoft_v04-02/calice.cmake ~/caliceSoft_v04-02/calice_reco_svn/trunk

bash

gdb

gdb Marlin
$ set arg test.xml
$ run

cdrecord


# wodim --devices
0 dev='/dev/scd0' rwrw-- : 'TSSTcorp' 'CD/DVDW SH-S183L'
wodim -eject dev=/dev/scd0 -v -data image.iso

linux single user mode


grub
kernel ... blah blah ... single

libreoffice/ibus not working on ubuntu


sudo apt-get install libreoffice-gtk

nice eps from ooffice drawing (with embedded fonts)


save picture as pdf, then convert to eps:
pdftops -eps xx.pdf xx.eps

cernlib installation

copied from this page.

Here is a working recipe to build the rpm packages:
Download the src.rpm file: https://kojipkgs.fedoraproject.org//packages/cernlib/2006/35.fc14/src/cernlib-2006-35.fc14.src.rpm
Install it (as normal user):
rpm -ivh cernlib-2006-35.fc14.src.rpm

locate the cernlib.spec file
Add the following line before the %build line
sed -i 's|printf (flis_name|printf ( "\%s",flis_name|' src/packlib/kuip/code_kuip/kmenu.c

build (as normal user):
rpmbuild -ba cernlib.spec
(if rpmbuild complains about missing packages, install them)

The building stops "forever" while running an executable called "exam1"; kill it.
(Quite dirty trick, indeed)

I tested that the procedure give rise to the requird rpm packages:

Wrote: /home/bruno/rpmbuild/SRPMS/cernlib-2006-35.fc21.src.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/cernlib-2006-35.fc21.x86_64.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/cernlib-devel-2006-35.fc21.x86_64.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/cernlib-static-2006-35.fc21.x86_64.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/cernlib-utils-2006-35.fc21.x86_64.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/geant321-2006-35.fc21.x86_64.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/kuipc-2006-35.fc21.x86_64.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/paw-gfortran-2006-35.fc21.x86_64.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/cernlib-packlib-gfortran-2006-35.fc21.x86_64.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/patchy-gfortran-2006-35.fc21.x86_64.rpm