Initial Upload
This commit is contained in:
commit
006c73ff9c
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1,31 @@
|
|||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
|
||||
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;
|
||||
}
|
|
@ -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)
|
Loading…
Reference in New Issue