Created
January 19, 2023 02:43
-
-
Save ComputerTech312/091dbe2e152c266a0f9a1e21515a78bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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