Last active
November 3, 2021 21:11
-
-
Save UbuntuEvangelist/a1c255c16ed26c3510ed82aae32add96 to your computer and use it in GitHub Desktop.
open edx install
This file contains hidden or 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 -i | |
| apt update -y && apt-get upgrade -y | |
| apt update -y | |
| apt install build-essential checkinstall | |
| apt install ubuntu-restricted-extras | |
| apt install software-properties-common | |
| apt install apt-show-versions | |
| apt upgrade -o APT::Get::Show-Upgraded=true | |
| apt-show-versions | grep upgradeable | |
| apt update -y | |
| apt-get upgrade -y | |
| add-apt-repository ppa:git-core/ppa | |
| apt update -y && apt upgrade -y | |
| apt install git | |
| git config --global user.name "name" | |
| git config --global user.email [email protected] | |
| ssh-keygen -t rsa -b 4096 -C "[email protected]" | |
| eval "$(ssh-agent -s)" | |
| ssh-add ~/.ssh/id_rsa | |
| # Add SSH Key the GitHub | |
| cat /root/.ssh/id_rsa.pub | |
| apt upgrade -y && apt update | |
| apt-get install openssh-server | |
| nano /etc/ssh/sshd_config | |
| # Find (ctrl+w) this line and set | |
| PermitRootLogin yes | |
| PubkeyAuthentication yes | |
| PasswordAuthentication yes | |
| # Save & exit ctrl+s and ctrl+x then hit enter | |
| service ssh restart | |
| apt upgrade -y && apt update | |
| apt -f install && apt autoremove | |
| apt -y autoclean && apt -y clean | |
| apt upgrade -y && apt update | |
| reboot | |
| # Docker Install | |
| apt-get update -y && apt-get upgrade -y | |
| apt-get install apt-transport-https ca-certificates curl software-properties-common -y | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | |
| add-apt-repository \ | |
| "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
| $(lsb_release -cs) \ | |
| stable" | |
| apt-get update -y | |
| apt install docker-ce -y | |
| systemctl start docker | |
| systemctl enable docker | |
| usermod -aG docker ${USER} | |
| systemctl restart docker | |
| systemctl status docker | |
| docker --version | |
| # Docker Compose Install | |
| sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
| chmod +x /usr/local/bin/docker-compose | |
| ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose | |
| apt-get update -y | |
| apt-get upgrade -y | |
| docker-compose --version | |
| sudo apt update | |
| sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev | |
| sudo apt-get install build-essential checkinstall libyaml-dev | |
| sudo apt autoremove | |
| sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev | |
| cd /opt | |
| sudo wget https://www.python.org/ftp/python/3.8.6/Python-3.8.6.tgz | |
| sudo tar xzf Python-3.8.6.tgz | |
| ls -la | |
| sudo rm -f Python-3.8.6.tgz | |
| cd Python-3.8.6 | |
| sudo ./configure --enable-optimizations | |
| sudo make altinstall | |
| sudo apt-get install python3-pip | |
| python3.8 -V | |
| sudo nano ~/.bashrc | |
| # Add into the bottom | |
| alias python=python3 | |
| alias pip=pip3 | |
| # Save & Exit ctrl+s and ctrl+x | |
| alias python=python3 | |
| alias pip=pip3 | |
| source ~/.bashrc | |
| sudo apt update | |
| sudo apt upgrade -y | |
| python3 --version | |
| python --version | |
| pip3 --version | |
| python3 --version | |
| pip --version | |
| python --version | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment