diff --git a/ct/jdownloader2.sh b/ct/jdownloader2.sh deleted file mode 100644 index 3056d0b03..000000000 --- a/ct/jdownloader2.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func) -# Copyright (c) 2021-2024 tteck -# Author: tteck (tteckster) -# License: MIT -# https://github.com/tteck/Proxmox/raw/main/LICENSE - -function header_info { -clear -cat <<"EOF" - ______ __ __ ___ - / / __ \____ _ ______ / /___ ____ _____/ /__ ____|__ \ - __ / / / / / __ \ | /| / / __ \/ / __ \/ __ `/ __ / _ \/ ___/_/ / -/ /_/ / /_/ / /_/ / |/ |/ / / / / / /_/ / /_/ / /_/ / __/ / / __/ -\____/_____/\____/|__/|__/_/ /_/_/\____/\__,_/\__,_/\___/_/ /____/ -EOF -} -header_info -echo -e "Loading..." -APP="JDownloader2" -var_disk="10" -var_cpu="2" -var_ram="2048" -var_os="debian" -var_version="12" -variables -color -catch_errors - -function default_settings() { - CT_TYPE="1" - PW="" - CT_ID=$NEXTID - HN=$NSAPP - DISK_SIZE="$var_disk" - CORE_COUNT="$var_cpu" - RAM_SIZE="$var_ram" - BRG="vmbr0" - NET="dhcp" - GATE="" - APT_CACHER="" - APT_CACHER_IP="" - DISABLEIP6="no" - MTU="" - SD="" - NS="" - MAC="" - VLAN="" - SSH="no" - VERB="no" - echo_default -} - -function update_script() { -header_info -if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi -msg_info "Updating $APP LXC" -apt-get update &>/dev/null -apt-get -y upgrade &>/dev/null -msg_ok "Updated $APP LXC" -exit -} - -start -build_container -description - -msg_ok "Completed Successfully!\n" -echo -e "${APP} should be reachable by going to the following URL. - ${BL}http://${IP}:6080/vnc.html${CL}" diff --git a/install/jdownloader2-install.sh b/install/jdownloader2-install.sh deleted file mode 100644 index 430da9424..000000000 --- a/install/jdownloader2-install.sh +++ /dev/null @@ -1,110 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2024 tteck -# Author: tteck (tteckster) -# License: MIT -# https://github.com/tteck/Proxmox/raw/main/LICENSE - -source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" -color -verb_ip6 -catch_errors -setting_up_container -network_check -update_os - -msg_info "Installing Dependencies" -$STD apt-get install -y curl -$STD apt-get install -y sudo -$STD apt-get install -y git -$STD apt-get install -y mc -$STD apt-get install -y wget -$STD apt-get install -y novnc -$STD apt-get install -y xvfb -$STD apt-get install -y tigervnc-scraping-server -$STD apt-get install -y openjdk-17-jdk -$STD apt-get install -y openbox -msg_ok "Installed Dependencies" - -msg_info "Installing JDownloader2" -mkdir -p /app/cfg -$STD git clone https://github.com/jlesage/docker-jdownloader-2 /root/djd2 -mv /root/djd2/rootfs/defaults/cfg/* /app/cfg/ -rm -rf /root/djd2 -cd /app -wget -q http://installer.jdownloader.org/JDownloader.jar -msg_ok "Installed JDownloader2" - -msg_info "Creating Service" -mkdir /output -cat </etc/systemd/system/xvfb.service -[Unit] -Description=Virtual Frame Buffer X server -After=network.target - -[Service] -ExecStart=/usr/bin/Xvfb :1 -screen 0 1280x800x24 - -[Install] -WantedBy=multi-user.target -EOF -cat </etc/systemd/system/vncserver.service -[Unit] -Description=Start x0vncserver. -After=xvfb.service - -[Service] -Type=forking -ExecStart=/usr/bin/x0vncserver -display :1 -SecurityTypes none -Environment="DISPLAY=:1" -Environment="HOME=/root" -Restart=on-failure -RestartSec=10s - -[Install] -WantedBy=multi-user.target -EOF -cat </etc/systemd/system/novnc.service -[Unit] -Description=NoVNC Web Access Console -After=x0vncserver.service network.target - -[Service] -Type=simple -WorkingDirectory=/usr/share/novnc -ExecStart=/usr/bin/websockify 6080 --web /usr/share/novnc --wrap-mode=ignore :5901 -Restart=always -RestartSec=5 - -[Install] -WantedBy=multi-user.target -EOF -cat </etc/systemd/system/jdownloader2.service -[Unit] -Description=JDownloader Service -After=novnc.service - -[Service] -Type=simple -WorkingDirectory=/app -ExecStart=/usr/bin/java -jar /app/JDownloader.jar -Restart=always -RestartSec=10 -Environment="DISPLAY=:1" - -[Install] -WantedBy=multi-user.target -EOF -systemctl enable -q --now xvfb.service -systemctl enable -q --now vncserver.service -systemctl enable -q --now novnc.service -systemctl enable -q --now jdownloader2.service -msg_ok "Created Service" - -motd_ssh -customize - -msg_info "Cleaning up" -$STD apt-get -y autoremove -$STD apt-get -y autoclean -msg_ok "Cleaned"