-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebian.txt
203 lines (177 loc) · 5.47 KB
/
debian.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
//
// **********************************************************
// * UNLV *
// * *
// * geant4 and root installation guide on ubuntu *
// **********************************************************
//
//
///
///
https://youtu.be/QItrmchEQWE //CERN ROOT Tutorial 2: Installing ROOT
https://youtu.be/J8iQVm0DLzY //CERN ROOT Tutorial 1-Korean
https://youtu.be/Lxb4WZyKeCE //Geant4 Tutorial 1: Installation and Testing of Geant4
https://youtu.be/gVcbeLQEHNw //Geant4 Tutorial-Korean
// virtualbox settings
/Devices/Insert Guest Additions
/VBox_GAs_{VBoxClient_version}/autorun.sh/Run as a Program
$ VBoxService --version //check guest additions version
$ sudo gpasswd -a user{$username} vboxsf
$ reboot
// ubuntu update
// https://ubuntu.com //Ubuntu
// 22.04.3 LTS - August 10, 2023
//
// disable sleep
/Settings/Privacy/Screen/Blank Screen Delay
/Settings/Privacy/Screen/Automatic Screen Lock
// ubuntu
update "Ubuntu Software"
Ctrl+Alt+T //open terminal
$ sudo apt -y update && sudo apt -y upgrade
$ sudo apt autoremove
// flatpaks
// https://flatpak.org/setup/Ubuntu //Ubuntu Quick Setup
//
$ sudo apt install flatpak
$ sudo apt install gnome-software-plugin-flatpak
$ reboot
$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
// media codecs
$ sudo apt install ubuntu-restricted-extras
tab //move
enter //ok
yes //accept
// root installation
// https://root.cern //ROOT: analyzing petabytes of data, scientifically.
//
// root dependencies
// https://root.cern/install/dependencies/ //Dependencies
//
$ sudo apt install build-essential git vim
$ sudo apt-get install dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev \
libxft-dev libxext-dev 2to3 dh-python python-is-python3 libssl-dev
$ sudo apt-get install gfortran libpcre3-dev \
libglu1-mesa-dev libglew-dev libftgl-dev \
libmysqlclient-dev libfftw3-dev libcfitsio-dev \
libgraphviz-dev libavahi-compat-libdnssd-dev \
libldap2-dev python2-dev:i386 python2:i386 python2-dev python2 python-dev-is-python3 \
libxml2-dev libkrb5-dev \
libgsl-dev qtwebengine5-dev
// download and unpack source file
// https://root.cern/install/all_releases/ //Releases
// 6.28/04 - May 7, 2023
//
$ mv /home/user{$username}/Downloads/root{$root_version}.source.tar.gz ~
$ tar -xzvf root{$root_version}.source.tar.gz
// compile and install
$ cd root{$root_version}
$ cd build
$ cmake -Dbuiltin_llvm=ON ../
$ lscpu
N = the number of central processing unit;
$ make -jN
$ sudo make install -jN
// setup scripts
$ cd ~
$ cd /usr/local/bin
$ source thisroot.sh
// run
$ root
-l //without logo
--web=off //revert to TBrowser
$ new TBrowser //RBrowser
TRootBrowser //TBrowser
$ .q
// geant4 installation
// https://geant4.web.cern.ch //GEANT4: A SIMULATION TOOLKIT
//
// geant4 prerequisites
// https://geant4-userdoc.web.cern.ch/UsersGuides/InstallationGuide/html/gettingstarted.html
// https://doc.qt.io/qt-5/linux.html
//
$ sudo apt-get install cmake gcc g++ \
libexpat1-dev libxmu-dev libmotif-dev \
libgl1-mesa-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
// download and unpack source file
// https://geant4.web.cern.ch/support/download
// 10.7/patch-04 - September 9, 2022
//
$ mv /home/user($username}/Downloads/geant{geant4_version}.tar.gz ~
$ tar -xvf geant{geant4_version}.tar.gz
// compile and install
$ cd geant{geant4_version}
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_QT=ON ../
$ make -jN
$ sudo make install -jN
// setup scripts
$ cd ~
$ cd /usr/local/bin
$ . geant4.sh
// run Example B1
$ cd geant{geant4_version}
$ cd examples/basic/B1
$ mkdir build
$ cd build
$ cmake ..
$ make -jN
$ ./exampleB1
$ run/beamOn 100
$ exit
// batch mode
$ cd geant{geant4_version}
$ cd examples/basic/B1/build
$ vim batch.mac
i
add
/run/beamOn 1000
esc
:x or :wq
$ ./exampleB1 batchmac
$ exit
// creating a permanent environment variables in bash
// https://devconnected.com/set-environment-variable-bash-how-to //how to set env in bash
$ sudo nano /home/user{$username}/.bashrc
add in the last line
source /usr/local/bin/thisroot.sh
source /usr/local/bin/geant4.sh
Ctrl+o
enter
Ctrl+x
// vim
$ vi .vimrc
i
add
set number
esc
:x
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
// option of old releases of root
// 6.18/04 - September 11, 2019
//
// compile and install
$ cmake -Dxrootd=OFF -Dbuiltin_xrootd=OFF -Druntime_cxxmodules=OFF ../
-Dxrootd=OFF -Dmysql=OFF -Dkrb5=OFF -Dodbc=OFF -Doracle=OFF \
-Dpgsql=OFF -Dqt=OFF \
-Dpython=ON -Dpython3=ON -Dpcre=ON -Dzlib=ON \
-Dunuran=ON -Dexplicitlink=ON -Dminuit2=ON -Droofit=ON \
-Dfftw3=ON -Dgsl=ON -DOpenGL_GL_PREFERENCE=GLVND //cmake flags
// run
$ root
-l //without logo
$ new TBrowser
$ .q
// option of latest releases of geant4
// 11.0.p03 - December 10, 202
//
// compile and install
$ cmake ..
// option of OpenGL //geant4
// geant4 prerequisites
$ sudo apt-get install libx11-dev libxpm-dev libxft-dev libxext-dev libglu1-mesa-dev
// compile
$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DGEANT4_INSTALL_DATA=ON \
-DGEANT4_USE_OPENGL_X11=ON ../
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......