Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
dnf groupinstall "Development Tools"
boring(){
wget https://boringssl.googlesource.com/boringssl/+archive/853ca1ea1168dff08011e5d42d94609cc0ca2e27.tar.gz
mkdir boringssl && cd boringssl
tar -xf ../853ca1ea1168dff08011e5d42d94609cc0ca2e27.tar.gz -C.
mkdir build && cd build
cmake -DFIPS=1 -DCMAKE_BUILD_TYPE=Release ..
make
find -name "*.a"
#
# Output shoul be as follow
#
# ./libboringssl_gtest.a
# ./ssl/libssl.a
# ./decrepit/libdecrepit.a
# ./crypto/libcrypto.a
# ./crypto/fipsmodule/libbcm_hashunset.a
# ./crypto/fipsmodule/libbcm_c_generated_asm.a
# Check fips mode
#
./tool/bssl isfips
mkdir ../../boringssl_build
cp ./libboringssl_gtest.a
./ssl/libssl.a
./decrepit/libdecrepit.a
./crypto/libcrypto.a
./crypto/fipsmodule/libbcm_hashunset.a
./crypto/fipsmodule/libbcm_c_generated_asm.a
./tool/bssl
../../boringssl_build
}
openssl(){
# Please select the latest version with fips support and Long Term Support(LTS).
# https://www.openssl.org/source/
# https://www.openssl.org/policies/releasestrat.html
wget https://www.openssl.org/source/old/3.0/openssl-3.0.8.tar.gz
tar -xf openssl-3.0.8.tar.gz -C.
cd openssl-3.0.8
chmod +x ./config
./Configure
make
make test
make install
ldconfig
ln -s /usr/local/bin/openssl /usr/bin/
openssl version
#
# openssl version
# openssl: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
openssl version
# OpenSSL 3.0.8 7 Feb 2023 (Library:OpenSSL 3.0.8 7 Feb 2023)
cd ..
}
libevent(){
#####################################
# Libevent Compilation
#####################################
# We are using latest version of libevent library
# Check https://libevent.org/ for latest version
# https://github.com/libevent/libevent/tree/release-2.1.12-stable#readme
# !! Attention !!
# python3 to python
# which python3
# output: /usr/bin/python3.8
# alias python=/usr/bin/python3.8
wget https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
tar -xf libevent-2.1.12-stable.tar.gz -C.
cd libevent-2.1.12-stable
./configure --disable-shared
make
#make verify # (optional)
#sudo make install
find -name "*.a"
#
# Output should be as follow
#
# ./.libs/libevent.a
# ./.libs/libevent_openssl.a
# ./.libs/libevent_core.a
# ./.libs/libevent_extra.a
# ./.libs/libevent_pthreads.a
cd ..
}
maria_connector_c(){
###########################################
# Maria DB client Compilation
###########################################
# We are using latest version of mariadb client library
# https://mariadb.com/kb/en/mariadb-connector-c-release-notes/
# https://dlm.mariadb.com/browse/c_connector/
# https://mariadb.com/kb/en/configuration-settings-for-building-connectorc/
wget https://dlm.mariadb.com/3439457/Connectors/c/connector-c-3.3.7/mariadb-connector-c-3.3.7-src.tar.gz
tar -xf mariadb-connector-c-3.3.7-src.tar.gz -C .
#
cd mariadb-connector-c-3.3.7-src
#
cmake -DCMAKE_BUILD_TYPE=Release -DWITH_SSL=OFF
#
make
#
find -name "*.a"
#
# Output should be as follow
#
#./external/zlib/libzlib.a
#./libmariadb/libmariadbclient.a
#./libmariadb/libmariadb.a
#./unittest/libmariadb/libma_getopt.a
#./unittest/mytap/libcctap.a
#
cd ..
}
coturn(){
###########################################
# TURN Server Compilation
###########################################
# We are using latest version of TURN Server
# Check https://github.com/coturn/coturn/releases for latest version
# https://github.com/coturn/coturn/releases/
# https://github.com/coturn/coturn/blob/4.6.2/docs/Build.md
#
wget https://github.com/coturn/coturn/archive/refs/tags/4.6.2.tar.gz
tar -xf 4.6.2.tar.gz
#
cd coturn-4.6.2
#
#patch -Np1 < ../../repo/turn-monitor.patch
#
#patch -Np1 < ../../repo/turn-configure.patch
#
#echo "#include "../../crypto/fipsmodule/modes/internal.h"" > ../boringssl/include/openssl/modes.h
#
PREFIX=. TURN_DISABLE_RPATH=1 CC=gcc TURN_NO_DTLS=-DTURN_NO_DTLS
MYSQL_CFLAGS="-I../mariadb-connector-c-3.3.7-src/include"
MYSQL_LIBS="../mariadb-connector-c-3.3.7-src/libmariadb/libmariadbclient.a -ldl -lm"
EVENT_CFLAGS="-I../libevent-2.1.12-stable/include"
EVENT_LIBS="../libevent-2.1.12-stable/.libs/libevent_pthreads.a
../libevent-2.1.12-stable/.libs/libevent_core.a
../libevent-2.1.12-stable/.libs/libevent_extra.a
../libevent-2.1.12-stable/.libs/libevent.a
../libevent-2.1.12-stable/.libs/libevent_openssl.a"
./configure
#
make
#
ldd bin/turnserver
#
# Make sure turn server DOES NOT use any shared library for
# Libevent Libmysqlcliet Libssl or Libcrypto
#
# linux-vdso.so.1 (0x00007ffd13741000)
# librt.so.1 => /lib64/librt.so.1 (0x00007f31f4273000)
# libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f31f405b000)
# libcrypto.so.1.1 => /lib64/libcrypto.so.1.1 (0x00007f31f3b71000)
# libssl.so.1.1 => /lib64/libssl.so.1.1 (0x00007f31f38dd000)
# libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f31f36bd000)
# libc.so.6 => /lib64/libc.so.6 (0x00007f31f32f8000)
# libz.so.1 => /lib64/libz.so.1 (0x00007f31f30e0000)
# libdl.so.2 => /lib64/libdl.so.2 (0x00007f31f2edc000)
# /lib64/ld-linux-x86-64.so.2 (0x00007f31f447b000)
cd ..
}
prepare_load(){
# Getting BUILD outputs
# You need to copy the following files from the BUILD machine. In order to install this files to the target system You will need to follow
# instructions in section 2 of this README file.
# ${HOME}/compile/boringssl/build/tool/bssl
# ${HOME}/compile/coturn-4.6.2/bin/turnadmin
# ${HOME}/compile/coturn-4.6.2/bin/turnserver
# ${HOME}/compile/coturn-4.6.2/bin/turnutils_natdiscovery
# ${HOME}/compile/coturn-4.6.2/bin/turnutils_oauth
# ${HOME}/compile/coturn-4.6.2/bin/turnutils_peer
# ${HOME}/compile/coturn-4.6.2/bin/turnutils_rfc5769check
# ${HOME}/compile/coturn-4.6.2/bin/turnutils_stunclient
# ${HOME}/compile/coturn-4.6.2/bin/turnutils_uclient
# ${HOME}/compile/coturn-4.6.2/examples/etc/turn_client_cert.pem
# ${HOME}/compile/coturn-4.6.2/examples/etc/turn_client_pkey.pem
# ${HOME}/compile/coturn-4.6.2/examples/etc/turn_server_cert.pem
# ${HOME}/compile/coturn-4.6.2/examples/etc/turn_server_pkey.pem
# ${HOME}/compile/coturn-4.6.2/examples/etc/turnserver.conf
#
mkdir build_out && cd build_out
#
cp ../coturn-4.6.2/bin/turn*
../coturn-4.6.2/examples/ca/turn*.pem
../coturn-4.6.2/examples/etc/turn*.conf .
tar -czf turnserver.tgz .
#
cd ..
}
rm -rf compile
mkdir compile
cd compile
openssl
libevent
maria_connector_c
coturn
prepare_load
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team