Skip to content

Instantly share code, notes, and snippets.

View aljaxus's full-sized avatar
💭
68747470733a2f2f676974706c61632e73692f616c6a61787573

Aljaz S. aljaxus

💭
68747470733a2f2f676974706c61632e73692f616c6a61787573
View GitHub Profile
@aljaxus
aljaxus / centos7-install_mark2.sh
Last active July 23, 2019 18:46
centos7-install_mark2.sh
yum update -y
# Install requirements
yum install python-devel -y
yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel -y
yum install python-devel -y
yum install python-pip -y
pip install psutil urwid feedparser
pip install --upgrade pip
echo "deb http://download.proxmox.com/debian stretch pve-no-subscription" >> /etc/apt/sources.list
echo "deb http://deb.debian.org/debian stretch main" >> /etc/apt/sources.list
echo "deb-src http://deb.debian.org/debian stretch main" >> /etc/apt/sources.list
rm -f /etc/apt/sources.list.d/pve-enterprise.list
sudo add-apt-repository universe
apt-get update -y
apt-get upgrade -y
apt-get dist-upgrade -y
dnf update -y
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos
curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash -
sudo dnf install yarn -y
sudo dnf install cockpit -y
sudo systemctl enable --now cockpit.socket
sudo systemctl start --now cockpit.socket
sudo firewall-cmd --add-service=cockpit
yum update -y
yum install epel-release -y
yum update -y
yum install htop bmon vim curl wget git -y
# Install nodejs and yarn
curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash -