Last active
August 30, 2022 05:56
-
-
Save lohithn4/72aa940df7d637da5958dfcaf2470653 to your computer and use it in GitHub Desktop.
Initial Setup Development Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get -y install vim git python3-pip | |
#postgresql | |
sudo sh -c 'echo "deb [arch=amd64] http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get -y install postgresql | |
sudo apt-get install libpq-dev | |
#vscode--------------- | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ | |
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' | |
rm -f packages.microsoft.gpg | |
sudo apt-get -y install apt-transport-https | |
sudo apt-get update | |
sudo apt-get -y install code # or code-insiders | |
#------------------ | |
# nodejs & npm Using Ubuntu | |
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash - | |
sudo apt-get -y install nodejs | |
sudo apt-get update | |
# create a directory for global installations: | |
mkdir ~/.npm-global | |
# Configure npm to use the new directory path: | |
npm config set prefix '~/.npm-global' | |
#In your preferred text editor, open or create a | |
#vim ~/.profile | |
#file and add this line: | |
LINE='export PATH=~/.npm-global/bin:$PATH' | |
FILE='.profile' | |
cd $HOME | |
grep -qxF -- "$LINE" "$FILE" || echo "$LINE" >> "$FILE" | |
#On the command line, update your system variables: | |
source "$FILE" | |
#sudo apt-get install -y npm | |
sudo apt-get install gcc g++ make | |
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null \ | |
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list \ | |
sudo apt-get update && sudo apt-get install -y yarn | |
#wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
#sudo sh -c 'echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | |
#sudo apt update | |
#sudo apt-get install -y google-chrome-stable | |
# FOR H265 HIGHER CODEC INSTALL ERROR | |
#sudo apt install libdvdnav4 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libdvd-pkg -y | |
#sudo apt install ubuntu-restricted-extras | |
#install python3.7 | |
sudo apt-get install software-properties-common -y | |
sudo apt-get-repository ppa:deadsnakes/ppa -y | |
sudo apt-get update && sudo apt-get upgrade | |
sudo apt-get install python3.7 -y | |
sudo apt-get install python3.7-venv | |
#chatterbot with python3.7 | |
pip install chatterbot | |
pip install spacy | |
python -m spacy download en_core_web_sm | |
#install uwsgi | |
sudo apt-get install python3.10-venv | |
sudo apt-get install gcc | |
sudo apt-get install libpython3.10-dev | |
pip install uwsgi | |
#install rabbitmq | |
sudo apt-get update | |
sudo apt-get -y install rabbitmq-server | |
#install pytorch | |
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment