-
Notifications
You must be signed in to change notification settings - Fork 0
/
archlinux.txt
249 lines (214 loc) · 6.47 KB
/
archlinux.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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
//
// **********************************************************
// * UNLV *
// * *
// * geant4 and root installation guide on asahilinux *
// * geant4 and root installation guide on endeavourOS *
// **********************************************************
//
//
///
///
https://youtu.be/StHVU-Zvacs //7 Things After Installing EndeavourOS
https://youtu.be/QItrmchEQWE //CERN ROOT Tutorial 2: Installing ROOT
https://youtu.be/Lxb4WZyKeCE //Geant4 Tutorial 1: Installation and Testing of Geant4
// welcome
Select "Start the Installer"
Select "Online"
// installer settings with 1) Plasma KDE 2) Xfce4
/Erase disk
Select "Swap to file" //for lower RAM usage
// virtualbox settings
$ VBoxService --version //check guest additions version
$ sudo gpasswd -a user{$username} vboxsf
$ reboot
// shared folder directory in Plasma
/Devices/endeavouros/media/sf_vboxsf
// endeavouros update
// https://endeavouros.com //endeavouros
// artemis - June 25, 2022
//
// disable sleep in Plasma
/System Settings/Workspace/Workspace Behavior/Screen Locking
/System Settings/Hardware/Power Management/Energy Saving
// welcome
Select "Update Mirrors" //After Install
Select "Update System" //After Install
Select "Package cleanup configuration" //After Install
// konsole //terminal
$ sudo pacman -Syu
// pamac configuration
// https://wiki.manjaro.org/index.php/Pamac
//
// configuration
$ yay
$ yay -S pamac-aur
n //remove
n //diffs to show
y //remove dependencies
y //proceed
// update
$ pamac checkupdates -a
$ pamac upgrade -a
$ pamac clean
--keep 3 //cleaning the cache except for the latest 3
// third party codecs
// https://linuxconfig.org/how-to-install-third-party-codecs-extras-on-manjaro-linux
//
$ sudo pacman -S a52dec faac faad2 flac jasper lame libdca libdv libmad libmpeg2 \
libtheora libvorbis libxv opus wavpack x264 xvidcore
// root installation
// https://root.cern //ROOT: analyzing petabytes of data, scientifically.
//
// root dependencies
// https://root.cern/install/dependencies/ //Dependencies
//
$ sudo pacman -S --needed base-devel
$ sudo pacman -S git vim
$ sudo pacman -S git make cmake gcc binutils libx11 libxpm libxft libxext python openssl
$ sudo pacman -S gcc-fortran pcre mesa glu glew ftgl mysql fftw cfitsio graphviz \
util-linux-libs avahi openldap python3 libxml2 gsl readline qt5-webengine
1 //default
y //proceed
// download and unpack source file
// https://root.cern/install/all_releases/ //Releases
// 6.24/06 - September 3, 2021
//
$ 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 -Dxrootd=OFF -Dbuiltin_xrootd=OFF -Druntime_cxxmodules=OFF ../
$ 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
$ new 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 pacman -S cmake gcc expat libxmu openmotif mesa qt5-base
// 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 i3 window manager
https://youtu.be/j1I63wGcvU4 //i3wm: Jump Start
// option of xset //xorg
$ sudo pacman -S xorg-xset
$ xset
noblank //disable blank
s off //disable sleep
s 3600 3600 //change blank time to 1 hrs
-dpms //turn off dpms
s off -dpms //disable dpms
dpms force off //turn off screen immediately
dpms force standby //standby
dpms force suspend //suspend
q //query the current settings
// option of disable energy saving //gnome
$ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
// option of pamac configuration //outdated
// https://wiki.manjaro.org/index.php/Pamac
//
$ yay
$ yay pamac-all
1 //lst option
1 //default
n //remove
n //diffs to show
y //proceed
// option of pamac from the chaotic-aur
// https://itsfoss.com/install-pamac-arch-linux
//
$ sudo pacman-key --recv-key FBA220DFC880C036 --keyserver keyserver.ubuntu.com
$ sudo pacman-key --lsign-key FBA220DFC880C036
$ sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst'\
'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
$ sudo nano /etc/pacman.conf
Ctrl+o
enter
Ctrl+x
$ sudo pacman -Syu pamac-aur
// option of latest releases of root
// 6.26/06 - July 29, 2022
//
// compile and install
$ cmake ..
// run
$ root
-l //without logo
--web=off //revert to TBrowser
$ new TBrowser //RBrowser
TRootBrowser //TBrowser
$ .q
// option of latest releases of geant4
// 11.0.p03 - December 10, 202
//
// compile and install
$ cmake ..
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......