commit 006c73ff9ca13417197478f996ca79d8bab2692d Author: Archgit Date: Thu Dec 19 00:10:20 2024 -0500 Initial Upload diff --git a/Bash Scripts/Loki_MS/Server_Services/userve-service-down.sh b/Bash Scripts/Loki_MS/Server_Services/userve-service-down.sh new file mode 100644 index 0000000..8c88c3e --- /dev/null +++ b/Bash Scripts/Loki_MS/Server_Services/userve-service-down.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +### Script Turns Server Services Off + + +# Jellyfin Server +##################### +systemctl stop jellyfin.service + +# Samba Server +##################### +#systemctl stop samba.service -- ad daemon +systemctl stop smbd.service + +# Webmin Server +#################### +systemctl stop webmin.service + +# Apache Server +##################### +systemctl stop apache2 + +# OpenVPN Server +####################### +systemctl stop openvpn diff --git a/Bash Scripts/Loki_MS/Server_Services/userve-service-up.sh b/Bash Scripts/Loki_MS/Server_Services/userve-service-up.sh new file mode 100644 index 0000000..2224e3f --- /dev/null +++ b/Bash Scripts/Loki_MS/Server_Services/userve-service-up.sh @@ -0,0 +1,26 @@ + GNU nano 8.2 userve-service-down.sh +#!/bin/bash + +### Script Turns Server Services On + + +# Jellyfin Server +##################### +systemctl start jellyfin.service + +# Samba Server +##################### +#systemctl start samba.service -- ad daemon +systemctl start smbd.service + +# Webmin Server +#################### +systemctl start webmin.service + +# Apache Server +##################### +systemctl start apache2 + +# OpenVPN Server +####################### +systemctl start openvpn diff --git a/cpp/Arch/Pacman_Package_Install/pman_install_boilerplate/plist.txt b/cpp/Arch/Pacman_Package_Install/pman_install_boilerplate/plist.txt new file mode 100644 index 0000000..e69de29 diff --git a/cpp/Arch/Pacman_Package_Install/pman_install_boilerplate/pman_install.cpp b/cpp/Arch/Pacman_Package_Install/pman_install_boilerplate/pman_install.cpp new file mode 100644 index 0000000..215314d --- /dev/null +++ b/cpp/Arch/Pacman_Package_Install/pman_install_boilerplate/pman_install.cpp @@ -0,0 +1,31 @@ +#include +#include +#include +#include + +using namespace std; + +ifstream file("plist.txt"); + +int main() { + + int linecount = 0; + string pname; + string cmand = "pacman -S --noconfirm "; + + while (getline(file, pname)){ + string full_cmand = cmand + pname; + + system(full_cmand.c_str()); + if (system(full_cmand.c_str()) != 0){ + string line; + getline(file, line); + pname = line; + } + + } + + + file.close(); + return 0; +} \ No newline at end of file diff --git a/cpp/Arch/Pacman_Package_Install/pman_install_boilerplate/readme.txt b/cpp/Arch/Pacman_Package_Install/pman_install_boilerplate/readme.txt new file mode 100644 index 0000000..a2a96e1 --- /dev/null +++ b/cpp/Arch/Pacman_Package_Install/pman_install_boilerplate/readme.txt @@ -0,0 +1,9 @@ +Pacman Multi-Tool Download + +Total Files: 2 +.cpp - simple pacman install script with error skipping built in. Intended for large tool sets (was used for blackarch as category install would return an error and disallow any tool from being installed) where you can copy/paste. +.txt - list names of packages you would like to install or copy/paste in the format of package1\npackage2\npackage3, no spaces, one element per line. + +Potential uses or iterations: +- Can use as template for package manager install/removal. +- Can also be modified/used into/for a default application/package install script (IT use mostly) \ No newline at end of file