Skip to content

Instantly share code, notes, and snippets.

View doevelopper's full-sized avatar

Adrien H doevelopper

  • Versailles
View GitHub Profile

Courtesy to jonschlinkert

Hello, and thanks for contributing to <%= name %>!

tldr

There are three main goals in this document, depending on the nature of your pr:

  • description: please tell us about your pr
  • checklist: please review the checklist that is most closly related to your pr
1. Create an empty repo in BitBucket
2. `git clone --bare [email protected]:user/repo.git`
3. `cd repo.git`
4. `git push --mirror [email protected]:user/repo.git`
@doevelopper
doevelopper / rpi3-ubuntubase.md
Last active July 31, 2018 12:35
Raspberry Pi 3 System from scratch using ubuntu-base FS

Differnet necessary dependencies

>$ sudo apt-get install bison flex gsoap build-essential gawk libgcrypt20-dev libcrypto++-dev
>$ sudo apt-get install python-wheel cython cython3 python3-wheel
>$ sudo apt-get install mesa-common-dev libglu1-mesa-dev libpcap-dev libglib2.0-dev libssl1.0-dev
>$ sudo apt-get install libcgsi-gsoap-dev libgnutls28-dev libcurl4-gnutls-dev libgnutls-openssl27
>$ sudo apt-get install libssh2-1-dev python-libssh2 xsltproc asciidoctor ruby-asciidoctor-plantuml [xmlto]
>$ sudo apt-get install libxml2-dev libxml2-utils python3-setuptools python-setuptools

OpenDDS Dependencies

Build
```sh
>$ wget -qO- http://download.objectcomputing.com/OpenDDS/OpenDDS-3.12.2.tar.gz | tar xvz
>$ cd OpenDDS-3.12 && mkdir arm-distrib
>$ ./configure \
--no-tests \
--target=linux-cross \
--target-compiler=$(which armv8l-linux-gnueabihf-g++) \
--prefix=$(pwd)/arm-distrib/ && \

Install dependencies log4cxx Dependencies

>$  sudo apt-get install doxygen libldap2-dev libldap-2.4-2  libmysql++-dev
>$  sudo apt-get install libmysqlclient-dev libsqlite3-dev libgnutls28-dev libssl-dev
>$  sudo apt-get install unixodbc-dev libgdbm-dev libodb-pgsql-dev
>$  sudo apt-get install libcrossguid-dev  uuid-dev libossp-uuid-dev 
>$  sudo apt-get install libghc-uuid-dev libghc-uuid-types-dev 

But these libapr1 libapr1-dev libaprutil1 libaprutil1-dev libexpat

Expat

   qemu-system-aarch64 -m <memory size> -M <machine name> -drive if=none,file=<hard drive file name>,id=hd0 \
 -device virtio-blk-device,drive=hd0 -netdev type=tap,id=net0 -device virtio-net-device,netdev=net0

Read for RPI3 and qemu 2.12

https://translatedcode.wordpress.com/2018/04/25/debian-on-qemus-raspberry-pi-3-model/

Setup Buildroot environment

@doevelopper
doevelopper / RPI_qemu_prrempRT_x64.md
Last active August 7, 2018 13:52
qemu linux preempt RT x64

Build RPI3 image using Buildroot

>$ WORKING_DIR=$(readlink -f `pwd`)
>$ BUILDROOT_DIRECTORY=${WORKING_DIR}/buildroot
>$ OUTPUT_DIRECTORY=${WORKING_DIR}/cfsos-x64-linux-4.14.52
>$ TEST_TOOLS_OUTPUT_DIRECTORY=${WORKING_DIR}/cfsos-test-x64-linux-4.14.52
>$ QEMU_KERNEL=${WORKING_DIR}/qemu_cfsos-x64-linux-4.14.52
>$ export CONCURRENCY_LEVEL=$(nproc)

>$ cd ${BUILDROOT_DIRECTORY}

In Bitnami GITLAB console

Copy of the current self-signed certificates:

$> sudo mv /etc/gitlab/ssl/server.crt /etc/gitlab/ssl/server.crt.back 
$> sudo mv /etc/gitlab/ssl/server.key /etc/gitlab/ssl/server.key.back
$> sudo mv /etc/gitlab/ssl/server.csr /etc/gitlab/ssl/server.csr.back

Create your private key:

$> sudo openssl genrsa -out /etc/gitlab/ssl/conf/gitlab.devsecops.acme.key 2048