Academia JavaEE Workspace in Ubuntu: Difference between revisions
Jump to navigation
Jump to search
(→Schema) |
|||
Line 29: | Line 29: | ||
ln -s /opt/dev/$USER/chorke/academia $ACADEMIA_WSS | ln -s /opt/dev/$USER/chorke/academia $ACADEMIA_WSS | ||
ls -lah $HOME/chorke | ls -lah $HOME/chorke | ||
nano ~/.bashrc | |||
</source> | |||
==Editor== | |||
<source lang="bash"> | |||
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 | |||
</source> | |||
==Git== | |||
<source lang="bash"> | |||
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]" | |||
</source> | </source> | ||
==References== | ==References== | ||
* [[PostgreSQL]] | * [[PostgreSQL]] |
Revision as of 11:00, 5 January 2021
Java
PostgreSQL
Install
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
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]"