Skip to content

Instantly share code, notes, and snippets.

@Donut3228
Last active February 7, 2020 12:25
Show Gist options
  • Save Donut3228/a31f9a501774ce9edaedab3c3a87e02d to your computer and use it in GitHub Desktop.
Save Donut3228/a31f9a501774ce9edaedab3c3a87e02d to your computer and use it in GitHub Desktop.
#!/bin/bash
# wget https://gist.githubusercontent.com/Donut3228/a31f9a501774ce9edaedab3c3a87e02d/raw/49565e26500eb9d424cc1b04783ce0f97044b981/pokhshop_lxc_install.sh
yum -y install epel-release
yum -y update
yum -y install wget zlib zlib-devel openssh-server openssh-client \
bash-completion bash-completion-extras mlocate vim \
zlib-devel bzip2-devel openssl-devel ncurses-devel \
sqlite-devel readline-devel tk-devel gdbm-devel \
db4-devel libpcap-devel xz-devel python3-devel
updatedb
source /etc/profile.d/bash_completion.sh || true
systemctl enable --now sshd
if [[ "$(python3 --version)" != "Python 3.6.9" ]]; then
echo "Python installed"
else
rm -rf /tmp/python3.6.9_install
mkdir -p /tmp/python3.6.9_install
cd /tmp/python3.6.9_install
wget https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tar.xz
tar -xJf Python-3.6.9.tar.xz
cd Python-3.6.9
./configure
make
make install
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment