Compare commits
22 Commits
d1bc6670fc
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| c786299e91 | |||
| d9b6d6b3c5 | |||
| 7a23304c9c | |||
| eeecf8df23 | |||
| 5f289995ba | |||
| 5542e2ab9a | |||
| 43cca1cb99 | |||
| e2de8ac908 | |||
| da2f64b165 | |||
| ddbd422e11 | |||
| 7e9f60c3ec | |||
| 84a19253c0 | |||
| d1e9c221a3 | |||
| 86c1d119e1 | |||
| d1474f7522 | |||
| ff60ec22e5 | |||
| c82ab68762 | |||
| 9774c9bccb | |||
| e0156f36d9 | |||
| 48238e0c69 | |||
| ccb3595db7 | |||
| 75e0782e01 |
2
aping.sh
2
aping.sh
@@ -87,7 +87,7 @@ withoutLoop(){
|
|||||||
elif [ $? = "1" ];then
|
elif [ $? = "1" ];then
|
||||||
|
|
||||||
if [ "${play_sound}" = "true" ];then
|
if [ "${play_sound}" = "true" ];then
|
||||||
${sound_player} ${player_opts} ${sound_file} "${sound_message}" &
|
${sound_player} "${player_opts}" "${sound_file}" "${sound_message}" &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
58
d2-setup.sh
58
d2-setup.sh
@@ -1,27 +1,65 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
# Colors
|
||||||
|
RED='\033[0;31m'
|
||||||
|
LRED="\033[1;31m"
|
||||||
|
BLUE="\033[0;34m"
|
||||||
|
LBLUE="\033[1;34m"
|
||||||
|
GREEN="\033[0;32m"
|
||||||
|
LGREEN="\033[1;32m"
|
||||||
|
YELLOW="\033[1;33m"
|
||||||
|
CYAN="\033[0;36m"
|
||||||
|
LCYAN="\033[1;36m"
|
||||||
|
PURPLE="\033[0;35m"
|
||||||
|
LPURPLE="\033[1;35m"
|
||||||
|
BWHITE="\e[1m"
|
||||||
|
NC='\033[0m' # No Color
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Wine Prefix Environment
|
# Wine Prefix Environment
|
||||||
PREFIX="/home/$USER/diablo"
|
PREFIX="/home/$USER/diablo"
|
||||||
ARCH="win32"
|
ARCH="win32"
|
||||||
|
|
||||||
|
|
||||||
|
notice(){
|
||||||
|
echo -e "${YELLOW}NOTICE: Currently you must move & rename the installer directories to the following: ${NC}\n"
|
||||||
|
echo -e "${LCYAN}Base Game: ${HOME}/D2${NC}"
|
||||||
|
echo -e "${LCYAN}Expansion: ${HOME}/LOD${NC}"
|
||||||
|
echo -e "${YELLOW}\nThen run this script with the following option:${NC}"
|
||||||
|
echo -e "${LCYAN}${0} -a${NC}"
|
||||||
|
echo -e "${YELLOW}\nThe script will then kick off the process of grabbing debs, setting the prefix and installing the game.${NC}"
|
||||||
|
echo -e "${YELLOW}User intervention is required to click through the installer setups${NC}"
|
||||||
|
}
|
||||||
|
|
||||||
installD2(){
|
installD2(){
|
||||||
|
notice
|
||||||
|
read -n 1 -p "~~~~~~ Press enter to continue ~~~~~~"
|
||||||
|
|
||||||
D2_INSTALLER_PATH="/home/$USER/D2"
|
D2_INSTALLER_PATH="/home/$USER/D2"
|
||||||
|
|
||||||
echo -e "\nInstalling Diablo II...\n"
|
echo -e "\n${LGREEN}Installing Diablo II...${NC}\n"
|
||||||
|
|
||||||
if [ ! -d "${D2_INSTALLER_PATH}" ];then
|
if [ ! -d "${D2_INSTALLER_PATH}" ];then
|
||||||
echo -e "${D2_INSTALLER_PATH} not found, edit script and set correct path\n"
|
echo -e "${D2_INSTALLER_PATH} not found, edit script and set correct path\n"
|
||||||
exit 0;
|
exit 0;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ${D2_INSTALLER_PATH}
|
cd "${D2_INSTALLER_PATH}" || exit 1
|
||||||
|
|
||||||
WINEPREFIX="${PREFIX}" WINEARCH="${ARCH}" wine Installer.exe
|
WINEPREFIX="${PREFIX}" WINEARCH="${ARCH}" wine Installer.exe
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
installLOD(){
|
installLOD(){
|
||||||
|
|
||||||
|
notice
|
||||||
|
read -n 1 -p "~~~~~~ Press enter to continue ~~~~~~"
|
||||||
|
|
||||||
LOD_INSTALLER_PATH="/home/$USER/LOD"
|
LOD_INSTALLER_PATH="/home/$USER/LOD"
|
||||||
|
|
||||||
echo -e "\nInstalling Diablo II: Lord of Destruction...\n"
|
echo -e "\nInstalling Diablo II: Lord of Destruction...\n"
|
||||||
@@ -31,7 +69,7 @@ installLOD(){
|
|||||||
exit 0;
|
exit 0;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ${LOD_INSTALLER_PATH}
|
cd "${LOD_INSTALLER_PATH}" || exit 1
|
||||||
|
|
||||||
WINEPREFIX="${PREFIX}" WINEARCH="${ARCH}" wine Installer.exe
|
WINEPREFIX="${PREFIX}" WINEARCH="${ARCH}" wine Installer.exe
|
||||||
}
|
}
|
||||||
@@ -60,20 +98,20 @@ getTricks(){
|
|||||||
|
|
||||||
getGlide(){
|
getGlide(){
|
||||||
if [ ! -f /tmp/gl32ogl14e.zip ];then
|
if [ ! -f /tmp/gl32ogl14e.zip ];then
|
||||||
cd /tmp
|
cd /tmp || exit 1
|
||||||
wget http://www.svenswrapper.de/gl32ogl14e.zip
|
wget http://www.svenswrapper.de/gl32ogl14e.zip
|
||||||
|
|
||||||
unzip gl32ogl14e.zip
|
unzip gl32ogl14e.zip
|
||||||
|
|
||||||
echo -e "\nCopying Files to Diablo game directory...\n"
|
echo -e "\nCopying Files to Diablo game directory...\n"
|
||||||
|
|
||||||
cp -v {glide-init.exe,glide3x.dll} ${PREFIX}/drive_c/"Program Files"/"Diablo II"/
|
cp -v {glide-init.exe,glide3x.dll} "${PREFIX}/drive_c/Program Files/Diablo II/"
|
||||||
|
|
||||||
echo -e "\nCleaning up temp files...\n"
|
echo -e "\nCleaning up temp files...\n"
|
||||||
|
|
||||||
rm {glide-readme.txt,glide-liesmich.txt,glide-init.exe,glide3x.dll,gl32ogl14e.zip}
|
rm {glide-readme.txt,glide-liesmich.txt,glide-init.exe,glide3x.dll,gl32ogl14e.zip}
|
||||||
|
|
||||||
cd ${PREFIX}/drive_c/"Program Files"/"Diablo II"/
|
cd "${PREFIX}/drive_c/"Program Files"/"Diablo II"/" || exit 1
|
||||||
|
|
||||||
WINEPREFIX="${PREFIX}" WINEARCH="${ARCH}" wine glide-init.exe
|
WINEPREFIX="${PREFIX}" WINEARCH="${ARCH}" wine glide-init.exe
|
||||||
|
|
||||||
@@ -82,11 +120,11 @@ getGlide(){
|
|||||||
}
|
}
|
||||||
runGame(){
|
runGame(){
|
||||||
|
|
||||||
cd ${PREFIX}/drive_c/"Program Files"/"Diablo II"/
|
cd "${PREFIX}/drive_c/Program Files/Diablo II/" || exit 1
|
||||||
|
|
||||||
|
|
||||||
echo -n -e "\nRun game now?(Y/n): "
|
echo -n -e "\n${LGREEN}Run game now?(Y/n): ${NC}"
|
||||||
read choice
|
read -r choice
|
||||||
|
|
||||||
if [ "${choice}" = "n" ];then
|
if [ "${choice}" = "n" ];then
|
||||||
exit 0;
|
exit 0;
|
||||||
@@ -100,7 +138,7 @@ runGame(){
|
|||||||
run_glide(){
|
run_glide(){
|
||||||
|
|
||||||
|
|
||||||
cd ${PREFIX}/drive_c/"Program Files"/"Diablo II"/
|
cd "${PREFIX}/drive_c/Program Files/Diablo II/" || exit 1
|
||||||
|
|
||||||
|
|
||||||
WINEPREFIX="${PREFIX}" WINEARCH="${ARCH}" wine "glide-init.exe"
|
WINEPREFIX="${PREFIX}" WINEARCH="${ARCH}" wine "glide-init.exe"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
|
|
||||||
from time import sleep
|
from time import sleep
|
||||||
timer = 0.000001
|
timer = 0.000001
|
||||||
|
|||||||
16
mkuser.sh
16
mkuser.sh
@@ -6,14 +6,14 @@ Create_user(){
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
echo -n "Username: "
|
echo -n "Username: "
|
||||||
read uname
|
read -r uname
|
||||||
|
|
||||||
echo "Additional Groups: "
|
echo "Additional Groups: "
|
||||||
echo
|
echo
|
||||||
echo "[1] - Arch Linux Defaults"
|
echo "[1] - Arch Linux Defaults"
|
||||||
echo "[2] - Void Linux Defaults"
|
echo "[2] - Void Linux Defaults"
|
||||||
echo "[3] - Custom"
|
echo "[3] - Custom"
|
||||||
read dgroups
|
read -r dgroups
|
||||||
|
|
||||||
if [ "${dgroups}" = "1" ];then
|
if [ "${dgroups}" = "1" ];then
|
||||||
addgroups="power, wheel, optical network, video, audio, storage"
|
addgroups="power, wheel, optical network, video, audio, storage"
|
||||||
@@ -21,16 +21,16 @@ Create_user(){
|
|||||||
addgroups="disk,wheel,storage,audio,video,optical,lp,network,dbus,xbuilder"
|
addgroups="disk,wheel,storage,audio,video,optical,lp,network,dbus,xbuilder"
|
||||||
elif [ "${dgroups}" = "3" ];then
|
elif [ "${dgroups}" = "3" ];then
|
||||||
echo -n "Enter desired groups (comma separated): "
|
echo -n "Enter desired groups (comma separated): "
|
||||||
read custgroups
|
read -r custgroups
|
||||||
addgroups="${custgroups}"
|
addgroups="${custgroups}"
|
||||||
fi
|
fi
|
||||||
echo "${addgroups}"
|
echo "${addgroups}"
|
||||||
read -n 1 -p "wait"
|
read -r -n 1 -p "wait"
|
||||||
useradd -m -g users -G "${addgroups}" -s /bin/bash ${uname}
|
useradd -m -g users -G "${addgroups}" -s /bin/bash "${uname}"
|
||||||
passwd "${uname}"
|
passwd "${uname}"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [ -d /home/${uname} ];then
|
if [ -d /home/"${uname}" ];then
|
||||||
echo "User ${uname} created"
|
echo "User ${uname} created"
|
||||||
else
|
else
|
||||||
echo "User creation failed"
|
echo "User creation failed"
|
||||||
@@ -40,7 +40,7 @@ Create_user(){
|
|||||||
Remove_user(){
|
Remove_user(){
|
||||||
echo
|
echo
|
||||||
echo -n "Username to delete: "
|
echo -n "Username to delete: "
|
||||||
read duser
|
read -r duser
|
||||||
|
|
||||||
userdel ${duser}
|
userdel ${duser}
|
||||||
if [ -d /home/${duser} ];then
|
if [ -d /home/${duser} ];then
|
||||||
@@ -59,7 +59,7 @@ main(){
|
|||||||
echo "[2] - Remove User"
|
echo "[2] - Remove User"
|
||||||
echo
|
echo
|
||||||
echo -n "Choose: "
|
echo -n "Choose: "
|
||||||
read choice
|
read -r choice
|
||||||
|
|
||||||
|
|
||||||
if [ "${choice}" = "1" ];then
|
if [ "${choice}" = "1" ];then
|
||||||
|
|||||||
@@ -2,5 +2,9 @@
|
|||||||
|
|
||||||
|
|
||||||
if [ -f /usr/bin/mpv ];then
|
if [ -f /usr/bin/mpv ];then
|
||||||
mpv http://listen.noagendastream.com/noagenda
|
mpv "http://listen.noagendastream.com/noagenda"
|
||||||
|
elif [ -f "/usr/bin/vlc" ];then
|
||||||
|
vlc "http://listen.noagendastream.com/noagenda"
|
||||||
|
else [ -f "/usr/bin/xdg-open" ];then
|
||||||
|
xdg-open "http://listen.noagendastream.com/noagenda"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
audio_quality = {high, medium, low}
|
audio_quality = {high, medium, low}
|
||||||
#autostart_station = stationid
|
#autostart_station = stationid
|
||||||
|
|
||||||
password = guitar
|
password = %4*dxXKQf9AmF5
|
||||||
user = silvernode@gmail.com
|
user = silvernode@gmail.com
|
||||||
|
|||||||
@@ -1,20 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
pkgname="rtlwifi"
|
pkgname="rtl88x2bu-git"
|
||||||
pkgurl="https://github.com/cilynx/rtl88x2bu.git"
|
pkgurl="https://github.com/RinCat/RTL88x2BU-Linux-Driver.git"
|
||||||
installcmd="dnf install"
|
tmpdir="/usr/src"
|
||||||
installcmdextra="dnf group install"
|
|
||||||
pkgdeps="wget unzip dnsmasq hostapd bc dkms kernel-headers rsync"
|
|
||||||
pkgdepsextra='"Development Tools"'
|
|
||||||
tmpdir="/tmp"
|
|
||||||
|
|
||||||
_fetch_deps(){
|
_fetch_deps(){
|
||||||
if [ -f /usr/bin/apt ];then
|
if [ -f /usr/bin/apt ];then
|
||||||
apt install git dnsmasq hostapd bc build-essential dkms
|
sudo apt install git dnsmasq hostapd bc build-essential dkms wget unzip rsync
|
||||||
|
|
||||||
elif [ -f /usr/bin/dnf ];then
|
elif [ -f /usr/bin/dnf ];then
|
||||||
dnf install unzip dnsmasq hostapd bc dkms kernel-headers rsync
|
sudo dnf group install "Development Tools"
|
||||||
|
sudo dnf install unzip dnsmasq hostapd bc dkms kernel-headers rsync wget
|
||||||
else
|
else
|
||||||
echo "No supported package manager"
|
echo "No supported package manager"
|
||||||
fi
|
fi
|
||||||
@@ -22,25 +19,21 @@ _fetch_deps(){
|
|||||||
|
|
||||||
|
|
||||||
_download(){
|
_download(){
|
||||||
if [ ! -d ${tmpdir}/${pkgname} ];then
|
if [ ! -d "${tmpdir}"/"${pkgname}" ];then
|
||||||
git clone ${pkgurl} ${tmpdir}/${pkgname}
|
sudo git clone "${pkgurl}" "${tmpdir}"/"${pkgname}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_apply_patch(){
|
_apply_patch(){
|
||||||
wget https://github.com/cilynx/rtl88x2bu/pull/58.patch
|
wget "https://github.com/cilynx/rtl88x2bu/pull/58.patch"
|
||||||
git apply 58.patch
|
git apply 58.patch
|
||||||
}
|
}
|
||||||
|
|
||||||
_install(){
|
_install(){
|
||||||
cd ${tmpdir}/${pkgname}
|
sed -i 's/PACKAGE_VERSION="@PKGVER@"/PACKAGE_VERSION="git"/g' /usr/src/rtl88x2bu-git/dkms.conf
|
||||||
_apply_patch
|
sudo dkms add -m rtl88x2bu -v git
|
||||||
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
|
sudo dkms autoinstall
|
||||||
rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
|
sudo modprobe 88x2bu
|
||||||
dkms add -m rtl88x2bu -v ${VER}
|
|
||||||
dkms build -m rtl88x2bu -v ${VER}
|
|
||||||
dkms install -m rtl88x2bu -v ${VER}
|
|
||||||
modprobe 88x2bu
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_fetch_deps
|
_fetch_deps
|
||||||
|
|||||||
14
steamloop.sh
Executable file
14
steamloop.sh
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Running Steam in Wine causes Steam on Linux to lose connection
|
||||||
|
# This makes it hard to use Steam link if Steam has to be closed to reset
|
||||||
|
# This script just reopens Steam on the host so that Steam link can reconnect.
|
||||||
|
|
||||||
|
while true;do
|
||||||
|
|
||||||
|
if [ -z "$(pidof steam)" ];then
|
||||||
|
sleep 10s
|
||||||
|
/usr/bin/steam
|
||||||
|
fi
|
||||||
|
|
||||||
|
done
|
||||||
91
svc.sh
91
svc.sh
@@ -17,20 +17,25 @@
|
|||||||
## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
##############################################################################################
|
##############################################################################################
|
||||||
|
|
||||||
RED='\033[0;31m'
|
|
||||||
LRED="\033[1;31m"
|
LRED="\033[1;31m"
|
||||||
BLUE="\033[0;34m"
|
|
||||||
LBLUE="\033[1;34m"
|
|
||||||
GREEN="\033[0;32m"
|
|
||||||
LGREEN="\033[1;32m"
|
LGREEN="\033[1;32m"
|
||||||
YELLOW="\033[1;33m"
|
|
||||||
CYAN="\033[0;36m"
|
|
||||||
LCYAN="\033[1;36m"
|
LCYAN="\033[1;36m"
|
||||||
PURPLE="\033[0;35m"
|
|
||||||
LPURPLE="\033[1;35m"
|
|
||||||
BWHITE="\e[1m"
|
|
||||||
NC='\033[0m' # No Color
|
NC='\033[0m' # No Color
|
||||||
|
|
||||||
|
|
||||||
|
if [[ -f "/usr/bin/sv " ]];then
|
||||||
|
serviceManager="runit"
|
||||||
|
echo -e "${LGREEN}Detected Runit${NC}\n"
|
||||||
|
elif [[ -f "/usr/bin/systemctl" ]];then
|
||||||
|
serviceManager="systemd"
|
||||||
|
echo -e "${LGREEN}Detected SystemD${NC}\n"
|
||||||
|
else
|
||||||
|
echo -e "${LRED}no supported service manager found${NC}\n"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
help(){
|
help(){
|
||||||
printf """
|
printf """
|
||||||
svc - Service Commander - frontend for the sv command
|
svc - Service Commander - frontend for the sv command
|
||||||
@@ -53,7 +58,8 @@ up Show status of running services
|
|||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|
||||||
case $1 in
|
runit(){
|
||||||
|
case $1 in
|
||||||
|
|
||||||
enable | --enable-service )
|
enable | --enable-service )
|
||||||
ln -v -s /etc/sv/"${2}" /var/service/
|
ln -v -s /etc/sv/"${2}" /var/service/
|
||||||
@@ -98,4 +104,67 @@ case $1 in
|
|||||||
--help | -h | help )
|
--help | -h | help )
|
||||||
help
|
help
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
systemd(){
|
||||||
|
|
||||||
|
case "${1}" in
|
||||||
|
enable | --enable-service)
|
||||||
|
systemctl enable "${2}"
|
||||||
|
;;
|
||||||
|
|
||||||
|
disable | --disable-service)
|
||||||
|
systemctl disable "${2}"
|
||||||
|
;;
|
||||||
|
|
||||||
|
enabled | --enabled-services)
|
||||||
|
systemctl list-unit-files --state=enabled
|
||||||
|
;;
|
||||||
|
|
||||||
|
list | ls | --list)
|
||||||
|
echo
|
||||||
|
echo -e "${LGREEN}Available Services (/etc/systemd/system):${NC}\n"
|
||||||
|
ls /etc/systemd/system/
|
||||||
|
echo
|
||||||
|
echo -e "${LCYAN}Enabled Services:${NC}\n"
|
||||||
|
systemctl list-unit-files --state=enabled
|
||||||
|
echo
|
||||||
|
;;
|
||||||
|
up)
|
||||||
|
if [[ ! -z "${2}" ]];then
|
||||||
|
systemctl status "${2}"
|
||||||
|
else
|
||||||
|
systemctl --type=service --state=running
|
||||||
|
fi
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
start)
|
||||||
|
systemctl start "${2}"
|
||||||
|
;;
|
||||||
|
|
||||||
|
restart)
|
||||||
|
systemctl restart "${2}"
|
||||||
|
;;
|
||||||
|
|
||||||
|
stop)
|
||||||
|
systemctl stop "${2}"
|
||||||
|
;;
|
||||||
|
|
||||||
|
--help | -help | help)
|
||||||
|
help
|
||||||
|
;;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ "${serviceManager}" = "runit" ]];then
|
||||||
|
runit "${1}" "${2}"
|
||||||
|
elif [[ "${serviceManager}" = "systemd" ]];then
|
||||||
|
systemd "${1}" "${2}"
|
||||||
|
fi
|
||||||
2
trb.sh
2
trb.sh
@@ -20,7 +20,7 @@ zenity --question --text "Do you want to trim?"
|
|||||||
if [[ $? == 1 ]];then
|
if [[ $? == 1 ]];then
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
notify-send "Trimming..."
|
notify-send -a "FS-Trim" "Trimming..."
|
||||||
echo "Trimming..."
|
echo "Trimming..."
|
||||||
results=$(${su_prompt} /sbin/fstrim -va)
|
results=$(${su_prompt} /sbin/fstrim -va)
|
||||||
notify-send "${results}"
|
notify-send "${results}"
|
||||||
|
|||||||
Reference in New Issue
Block a user