Skip to content

Instantly share code, notes, and snippets.

@ayan4m1
Last active May 15, 2019 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayan4m1/97ec6f623fcf38096a1319fd1d436687 to your computer and use it in GitHub Desktop.
Save ayan4m1/97ec6f623fcf38096a1319fd1d436687 to your computer and use it in GitHub Desktop.
Setup of a CentOS 7 install for Pterodactyl development

Basic system provisioning

sudo su

yum remove -y iwl*-firmware

yum install -y epel-release

yum update -y

yum groupinstall -y X11

yum groupinstall -y "Xfce"

yum install -y dejavu* chromium wget vim git-core git-gui gitk bash-completion-extras file-roller unzip yum-utils

systemctl set-default graphical

sudo reboot

Ensure you select "Xfce" as desktop environment when logging in using gdm

sudo yum install -y kernel-devel dkms make gcc gcc-c++

Ensure VirtualBox Guest Additions CD is mounted

mkdir -p /mnt/cdrom

mount -t iso9660 /dev/sr0 /mnt/cdrom

cd /mnt/cdrom

./VBoxLinuxAdditions.run

sudo reboot

Vagrant

sudo yum install -y https://releases.hashicorp.com/vagrant/2.1.2/vagrant_2.1.2_x86_64.rpm

vagrant plugin install vagrant-vbguest

vagrant plugin install vagrant-hostmanager

Docker

sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

sudo yum install -y docker-ce

systemctl enable docker

systemctl start docker

VirtualBox

wget https://download.virtualbox.org/virtualbox/5.2.20/VirtualBox-5.2-5.2.20_125813_el7-1.x86_64.rpm

sudo yum install -y VirtualBox-5.2-5.2.20_125813_el7-1.x86_64.rpm

NVM / NodeJS

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash

Close and re-open terminal

nvm install 11

PHP

wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm

sudo yum install -y remi-release-7.rpm

sudo yum-config-manager --enable remi-php72

sudo yum install -y php72-php-fpm php php-bcmath php-gd php-mysqlnd php-mbstring php-zip php-xml

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

Mono

sudo su

rpm --import "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"

su -c 'curl https://download.mono-project.com/repo/centos7-stable.repo | tee /etc/yum.repos.d/mono-centos7-stable.repo'

yum install -y mono-complete

Apache

sudo su

yum install -y httpd mod_ssl

Redis

sudo su

yum install -y redis

systemctl enable redis

systemctl start redis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment