https://ekylibre.atlassian.net/spaces/EKYLIBRE/pages/11829377/Ubuntu+20.04+LTS
-
Install curl
sudo apt install git curl
-
Clone Rbenv && Ruby-build
git clone https://github.com/rbenv/rbenv.git ~/.rbenv git clone https://github.com/rbenv/ruby-build.git .rbenv/plugins/ruby-build
then :
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(rbenv init -)"' >> ~/.bashrc
-
Apply changes in your .bashrc
source ~/.bashrc
-
Ruby dependencies
sudo apt install git build-essential libreadline-dev libssl-dev zlib1g-dev redis-server
Then you can run :
rbenv install 2.6.6 rbenv global 2.6.6 gem install bundler
-
Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
If it does not works
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Then you can run
nvm install --lts > Installing latest LTS version. > v14.16.1 is already installed. > Now using node v14.17.4 (npm v6.14.12) nvm alias default 14.17.4
-
Install yarn
npm i -g yarn
-
Install postgresql/postgis/contrib
sudo apt install postgresql-13 postgresql-13-postgis-2.5 postgresql-13-postgis-2.5-scripts
-
Configure Postgres
sudo -su postgres createuser -d -P -s ekylibre echo "ALTER USER ekylibre SUPERUSER;" | psql # set 'ekylibre' as password
-
Edit pg_hba.conf to use md5 password authentication instead of peer authentication for unix sockets
sudo vim /etc/postgresql/13/main/pg_hba.conf
replace
local all all peer
with
local all all md5
4. [Optionnal] For developer who wants checking data, install PgAdmin4 Desktop
https://www.pgadmin.org/download/pgadmin-4-apt/
sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add
sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'
sudo apt install pgadmin4 pgadmin4-desktop
Renater CA certificates (used by pfi api) is not included in Ubuntu 20.04 and should be added.
sudo wget https://services.renater.fr/_media/tcs/geant_ov_rsa_ca_4_usertrust_rsa_certification_authority.pem -O /usr/local/share/ca-certificates/geant_ov_rsa_ca_4_usertrust_rsa_certification_authority.crt \
&& sudo wget https://services.renater.fr/_media/tcs/geant_ov_rsa_ca_4.pem -O /usr/local/share/ca-certificates/geant_ov_rsa_ca_4.crt \
&& sudo update-ca-certificates
-
Check your version of PROJ
dpkg -l | grep proj
-
If the version is greater than 5.2.0 then
- Download this file:
-
Extract the content of proj.tar.gz
-
Create a new directory
sudo mkdir -p /opt/proj/share
-
Then move the extracted proj file into the new repo
sudo mv proj /opt/proj/share
-
-
Install dependencies
sudo add-apt-repository ppa:rock-core/qt4 sudo apt-get update sudo apt-get install libqtcore4 sudo apt install imagemagick graphicsmagick libproj-dev libgeos-dev libffi-dev libgeos++-dev openjdk-8-jdk libqtwebkit-dev libicu-dev libpq-dev tesseract-ocr pdftk
-
Add JAVA_HOME in your .bashrc && .profile
echo 'export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64' >> ~/.bashrc echo 'export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64' >> ~/.profile source ~/.bashrc source ~/.profile