Skip to content

Instantly share code, notes, and snippets.

@ComputerTech312
Created January 19, 2023 02:43
Show Gist options
  • Save ComputerTech312/091dbe2e152c266a0f9a1e21515a78bb to your computer and use it in GitHub Desktop.
Save ComputerTech312/091dbe2e152c266a0f9a1e21515a78bb to your computer and use it in GitHub Desktop.
#!/usr/bin/python3
import os
print('Downloading
os.system("wget https://znc.in/releases/znc-1.8.2.tar.gz")
os.system("tar -xzvf znc-1.8.2.tar.gz")
# Change directory
os.chdir("znc-1.8.2")
# Create build directory
os.system("mkdir build")
# Change to build directory
os.chdir("build")
# Run CMake
os.system('cmake .. -DCMAKE_INSTALL_PREFIX="$HOME/.local"')
# Compile and install
os.system("make")
os.system("make install")
# Setup config
os.system("cd")
os.system("/home/computertech/.local/bin/znc --makeconf")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment