Skip to content

Instantly share code, notes, and snippets.

View blikenoother's full-sized avatar

Chirag J Patel blikenoother

View GitHub Profile
#!/bin/bash
# system update upgrade
apt-get update && sudo apt-get -y upgrade
# install docker
wget -qO- https://get.docker.com/ | sh
# generate random password
ZPANLE_ADMIN_PASS=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 12 | head -n 1)
# create file /etc/init/zpanelcp.conf
description "ZPanelCP by Infoglans"
author "Infoglans"
start on filesystem and started docker
stop on runlevel [!2345]
respawn
script
/usr/bin/docker start -a zpanelcp
end script
@blikenoother
blikenoother / Installing 3rd Party Nginx module with apt-get
Last active May 21, 2023 10:30
Install 3rd party module and build NGINX debian (.deb) package. Following is guide for nginx_upstream_check_module
#Install dpkg-dev and package dependencies
sudo apt-get install dpkg-dev
sudo apt-get install software-properties-common
sudo apt-get install python-software-properties
sudo apt-get install init-system-helpers
#Add repository:
sudo add-apt-repository ppa:nginx/stable
#Edit /etc/apt/sources.list.d/nginx-stable-lucid.list, add dpkg-src (no need if ubuntu verson >= 12.04):