Academia JavaEE Workspace in Ubuntu: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 72: Line 72:


==References==
==References==
* [https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-18-04  Install and Use PostgreSQL on Ubuntu 18.04]
* [https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-ubuntu-18-04  Install and Secure Redis on Ubuntu 18.04]
* [https://www.linuxbabe.com/desktop-linux/install-telegram-ubuntu Install Telegram Messenger on Ubuntu]
* [https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-18-04 Install Java with Apt on Ubuntu 18.04]
* [https://www.sublimetext.com/docs/3/linux_repositories.html#apt Sublime Text Linux Package Manager]
* [https://gist.github.com/invinciblycool/ecc1c6e32b581b68932ac7452f4c911c Installing Postman on Ubuntu]
* [https://www.pgadmin.org/download/pgadmin-4-apt/ Install PgAdmin4 desktop]
* [[PostgreSQL]]
* [[PostgreSQL]]

Revision as of 11:19, 5 January 2021

Java

apt install openjdk-8-jdk-headless
apt install redis-server
nano /etc/redis/redis.conf
systemctl status radis-server
apt install nodejs
apt install maven
apt install npm
apt install ant
snap install postman
snap install telegram-sergiusens

PostgreSQL

Install

apt install postgresql postgresql-contrib
createdb $USER

Schema

CREATE DATABASE academia;
CREATE USER academia WITH ENCRYPTED PASSWORD 'academia';
GRANT ALL PRIVILEGES ON DATABASE academia TO academia;
psql academia < academia.sql

Redis

systemctl status redis-server

Workspace

mkdir -p $HOME/chorke
mkdir -p /opt/dev/$USER/chorke/academia

export ACADEMIA_WSS="$HOME/chorke/academia"
ln -s /opt/dev/$USER/chorke/academia $ACADEMIA_WSS
ls -lah $HOME/chorke
nano ~/.bashrc

Editor

sudo apt install apt-transport-https
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt update;sudo apt install sublime-text

Git SCM

cd ~/.ssh/
ssh-keygen -t rsa -b 4096 -C "[email protected]"
mv id_rsa.pub git_academia_chorke_org_rsa.pub
mv id_rsa git_academia_chorke_org_rsa

nano config
Host git.academia.chorke.org
     HostName git.academia.chorke.org
     PreferredAuthentications publickey
     IdentityFile ~/.ssh/git_academia_chorke_org_rsa
     User git

git config --global user.name "FULL NAME"
git config --global user.email "[email protected]"

References