-
Notifications
You must be signed in to change notification settings - Fork 0
/
fedora.txt
236 lines (207 loc) · 6.54 KB
/
fedora.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
//
// **********************************************************
// * UNLV *
// * *
// * geant4 and root installation guide on fedora *
// **********************************************************
//
//
///
///
https://youtu.be/RrRpXs2pkzg //7 Things You MUST Do After Installing Fedora 36
https://youtu.be/QItrmchEQWE //CERN ROOT Tutorial 2: Installing ROOT
https://youtu.be/Lxb4WZyKeCE //Geant4 Tutorial 1: Installation and Testing of Geant4
// virtualbox settings
$ sudo gpasswd -a user{$username} vboxsf
// fedora update
// https://getfedora.org //Fedora
// 38 - April 18, 2023
//
// dnf configuration
// https://dnf.readthedocs.io/en/latest/conf_ref.html
//
$ sudo nano /etc/dnf/dnf.conf
add in the last line
fastestmirror=True
max_parallel_downloads=10
keepcache=True
Ctrl+o
enter
Ctrl+x
$ sudo dnf -y clean all
// configuring xorg
// https://docs.fedoraproject.org/en-US/quick-docs/configuring-xorg-as-default-gnome-session/
//
$ sudo nano /etc/gdm/custom.conf
uncomment or remove "#" of "WaylandEnable=false"
add
DefaultSession=gnome-xorg.desktop
Ctrl+o
enter
Ctrl+x
$ reboot
// fedora
update "Software"
$ sudo dnf update
$ sudo dnf autoremove
// rpm fusion
// https://rpmfusion.org/Configuration //Configuration - RPM Fusion
//
$ sudo dnf install \
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
$ sudo dnf -y groupupdate core
// flatpaks
// https://flatpak.org/setup/Fedora //Fedora Quick Setup
//
$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
// media codecs
// https://rpmfusion.org/Configuration //Configuration - RPM Fusion
//
$ sudo dnf groupupdate sound-and-video
// root installation
// https://root.cern //ROOT: analyzing petabytes of data, scientifically.
//
// root dependencies
// https://root.cern/install/dependencies/ //Dependencies
//
$ sudo dnf groupinstall "Development Tools" "C Development Tools and Libraries"
$ sudo dnf install git vim
$ sudo dnf install git make cmake gcc-c++ gcc binutils \
libX11-devel libXpm-devel libXft-devel libXext-devel python openssl-devel
$ sudo dnf install redhat-lsb-core gcc-gfortran pcre-devel \
mesa-libGL-devel mesa-libGLU-devel glew-devel ftgl-devel mysql-devel \
fftw-devel cfitsio-devel graphviz-devel libuuid-devel \
avahi-compat-libdns_sd-devel openldap-devel python3-numpy \
libxml2-devel gsl-devel readline-devel qt5-qtwebengine-devel \
R-devel R-Rcpp-devel R-RInside-devel
// download and unpack source file
// https://root.cern/install/all_releases/ //Releases
// https://root-forum.cern.ch/t/root-cant-find-python3-libraries-on-centos-8/39766
// 6.26/02 - April 13, 2022
//
$ 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 ..
$ 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 dnf install cmake gcc g++ \
expat-devel libXmu-devel motif-devel \
mesa-libGL-devel qt5-qtbase qt5-qtbase-devel
// 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......
// media codecs //broken
// https://rpmfusion.org/Configuration //Configuration - RPM Fusion
//
$ sudo dnf groupupdate \
multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin
// option of latest releases of root
// root dependencies
// https://root.cern/install/dependencies/ //Dependencies
//
$ sudo dnf groupinstall "Development Tools" "C Development Tools and Libraries"
$ sudo dnf install git vim
$ sudo dnf install git make cmake gcc-c++ gcc binutils \
libX11-devel libXpm-devel libXft-devel libXext-devel python openssl-devel
$ sudo dnf install redhat-lsb-core gcc-gfortran pcre-devel \
mesa-libGL-devel mesa-libGLU-devel glew-devel ftgl-devel mysql-devel \
fftw-devel cfitsio-devel graphviz-devel libuuid-devel \
avahi-compat-libdns_sd-devel openldap-devel python3-numpy python3-devel \
libxml2-devel gsl-devel readline-devel qt5-qtwebengine-devel \
R-devel R-Rcpp-devel R-RInside-devel davix-devel
// 6.18/04 - September 11, 2019
// 6.24/06 - September 3, 2021
//
// compile and install
$ cmake -Dxrootd=OFF -Dbuiltin_xrootd=OFF -Druntime_cxxmodules=OFF ../
// 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......