mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-25 08:56:21 +00:00
Update scripts
This commit is contained in:
@@ -134,14 +134,21 @@ function start_vm_configuration() {
|
||||
|
||||
while true; do
|
||||
VM_STORAGE_IOMMU_PENDING_REBOOT=0
|
||||
OS_TYPE=$(dialog --backtitle "ProxMenux" \
|
||||
WIZARD_CONFLICT_POLICY=""
|
||||
WIZARD_CONFLICT_SCOPE=""
|
||||
export WIZARD_CONFLICT_POLICY WIZARD_CONFLICT_SCOPE
|
||||
OS_TYPE=$(dialog --colors --backtitle "ProxMenux" \
|
||||
--title "$(translate "Select System Type")" \
|
||||
--menu "\n$(translate "Choose the type of virtual system to install:")" 20 70 10 \
|
||||
1 "$(translate "Create") VM System NAS" \
|
||||
2 "$(translate "Create") VM System Windows" \
|
||||
3 "$(translate "Create") VM System Linux" \
|
||||
"" "" \
|
||||
"" "\Z4──────────────────────────────────────────────────\Zn" \
|
||||
"" "" \
|
||||
4 "$(translate "Create") VM System macOS (OSX-PROXMOX)" \
|
||||
5 "$(translate "Create") VM System Others (based Linux)" \
|
||||
"" "" \
|
||||
6 "$(translate "Return to Main Menu")" \
|
||||
3>&1 1>&2 2>&3)
|
||||
|
||||
|
||||
@@ -27,20 +27,24 @@ initialize_cache
|
||||
while true; do
|
||||
OPTION=$(dialog --colors --backtitle "ProxMenux" \
|
||||
--title "$(translate "GPUs and Coral-TPU Menu")" \
|
||||
--menu "\n$(translate "Select an option:")" 25 80 15 \
|
||||
--menu "\n$(translate "Select an option:")" 26 78 18 \
|
||||
"" "\Z4──────────────────────── HOST ─────────────────────────\Zn" \
|
||||
"1" "$(translate "Install NVIDIA Drivers on Host")" \
|
||||
"2" "$(translate "Update NVIDIA Drivers (Host + LXC)")" \
|
||||
"3" "$(translate "Install/Update Coral TPU on Host")" \
|
||||
"" "" \
|
||||
"" "\Z4──────────────────────── LXC ──────────────────────────\Zn" \
|
||||
"4" "$(translate "Add GPU to LXC (Intel | AMD | NVIDIA)") \Zb\Z4Switch Mode\Zn" \
|
||||
"5" "$(translate "Add Coral TPU to LXC")" \
|
||||
"" "" \
|
||||
"" "\Z4──────────────────────── VM ───────────────────────────\Zn" \
|
||||
"6" "$(translate "Add GPU to VM (Intel | AMD | NVIDIA)") \Zb\Z4Switch Mode\Zn" \
|
||||
"" "" \
|
||||
"" "\Z4──────────────────── SWICHT MODE ───────────────────────\Zn" \
|
||||
"7" "$(translate "Switch GPU Mode (VM <-> LXC)")" \
|
||||
"" "" \
|
||||
"" "" \
|
||||
"" "\Z4────────────────────── Utilities ───────────────────────\Zn" \
|
||||
"8" "$(translate "Manual CLI Guide (GPU/TPU)")" \
|
||||
"0" "$(translate "Return to Main Menu")" \
|
||||
2>&1 >/dev/tty
|
||||
) || { exec bash "$LOCAL_SCRIPTS/menus/main_menu.sh"; }
|
||||
@@ -67,6 +71,9 @@ while true; do
|
||||
7)
|
||||
bash "$LOCAL_SCRIPTS/gpu_tpu/switch_gpu_mode.sh"
|
||||
;;
|
||||
8)
|
||||
bash "$LOCAL_SCRIPTS/gpu_tpu/gpu-tpu-manual-guide.sh"
|
||||
;;
|
||||
0)
|
||||
exec bash "$LOCAL_SCRIPTS/menus/main_menu.sh"
|
||||
;;
|
||||
|
||||
@@ -94,12 +94,12 @@ show_menu() {
|
||||
dialog --clear \
|
||||
--backtitle "ProxMenux" \
|
||||
--title "$(translate "$menu_title")" \
|
||||
--menu "$(translate "Select an option:")" 20 70 11 \
|
||||
--menu "\n$(translate "Select an option:")" 20 70 11 \
|
||||
1 "$(translate "Settings post-install Proxmox")" \
|
||||
2 "$(translate "Hardware: GPUs and Coral-TPU")" \
|
||||
3 "$(translate "Create VM from template or script")" \
|
||||
4 "$(translate "Disk and Storage Manager")" \
|
||||
5 "$(translate "Mount and Share Manager")" \
|
||||
4 "$(translate "Disk Manager")" \
|
||||
5 "$(translate "Storage & Share Manager")" \
|
||||
6 "$(translate "Proxmox VE Helper Scripts")" \
|
||||
7 "$(translate "Network Management")" \
|
||||
8 "$(translate "Security")" \
|
||||
|
||||
@@ -398,7 +398,7 @@ while true; do
|
||||
SELECTED_IDX=$(dialog --backtitle "ProxMenux" \
|
||||
--title "Proxmox VE Helper-Scripts" \
|
||||
--menu "$(translate "Select a category or search for scripts:"):" \
|
||||
20 70 14 "${MENU_ITEMS[@]}" 3>&1 1>&2 2>&3) || {
|
||||
22 75 15 "${MENU_ITEMS[@]}" 3>&1 1>&2 2>&3) || {
|
||||
dialog --clear --title "ProxMenux" \
|
||||
--msgbox "\n\n$(translate "Visit the website to discover more scripts, stay updated with the latest updates, and support the project:")\n\nhttps://community-scripts.github.io/ProxmoxVE" 15 70
|
||||
exec bash "$LOCAL_SCRIPTS/menus/main_menu.sh"
|
||||
@@ -440,7 +440,7 @@ while true; do
|
||||
SCRIPT_INDEX=$(dialog --colors --backtitle "ProxMenux" \
|
||||
--title "$(translate "Scripts in") ${CATEGORY_NAMES[$SELECTED]}" \
|
||||
--menu "$(translate "Choose a script to execute:"):" \
|
||||
20 70 14 "${SCRIPTS[@]}" 3>&1 1>&2 2>&3) || break
|
||||
22 75 15 "${SCRIPTS[@]}" 3>&1 1>&2 2>&3) || break
|
||||
|
||||
SCRIPT_SELECTED="${INDEX_TO_SLUG[$SCRIPT_INDEX]}"
|
||||
run_script_by_slug "$SCRIPT_SELECTED"
|
||||
|
||||
@@ -26,13 +26,12 @@ initialize_cache
|
||||
security_menu() {
|
||||
while true; do
|
||||
local menu_text
|
||||
menu_text="\n$(translate 'Security tools for hardening and auditing your Proxmox VE system.')\n\n"
|
||||
menu_text+="$(translate 'Select an option:')"
|
||||
menu_text+="\n$(translate 'Select an option:')"
|
||||
|
||||
local OPTION
|
||||
OPTION=$(dialog --backtitle "ProxMenux" \
|
||||
--title "$(translate "$SCRIPT_TITLE")" \
|
||||
--menu "$menu_text" 18 70 4 \
|
||||
--menu "$menu_text" 20 70 10 \
|
||||
"1" "$(translate 'Fail2Ban - Intrusion Prevention')" \
|
||||
"2" "$(translate 'Lynis - Security Audit')" \
|
||||
3>&1 1>&2 2>&3) || OPTION="0"
|
||||
|
||||
@@ -26,21 +26,22 @@ initialize_cache
|
||||
|
||||
while true; do
|
||||
OPTION=$(dialog --colors --backtitle "ProxMenux" \
|
||||
--title "$(translate "Mount and Share Manager")" \
|
||||
--menu "\n$(translate "Select an option:")" 25 80 15 \
|
||||
--title "$(translate "Storage & Share Manager")" \
|
||||
--menu "\n$(translate "Select an option:")" 26 78 17 \
|
||||
"" "\Z4──────────────────────── HOST ─────────────────────────\Zn" \
|
||||
"1" "$(translate "Configure NFS shared on Host")" \
|
||||
"2" "$(translate "Configure Samba shared on Host")" \
|
||||
"3" "$(translate "Configure Local Shared on Host")" \
|
||||
"9" "$(translate "Add Local Disk as Proxmox Storage")" \
|
||||
"10" "$(translate "Add iSCSI Target as Proxmox Storage")" \
|
||||
"" "\Z4──────────────────────── LXC ─────────────────────────\Zn" \
|
||||
"4" "$(translate "Configure LXC Mount Points (Host ↔ Container)")" \
|
||||
"4" "$(translate "Add Local Disk as Proxmox Storage")" \
|
||||
"5" "$(translate "Add iSCSI Target as Proxmox Storage")" \
|
||||
"" "" \
|
||||
"5" "$(translate "Configure NFS Client in LXC (only privileged)")" \
|
||||
"6" "$(translate "Configure Samba Client in LXC (only privileged)")" \
|
||||
"7" "$(translate "Configure NFS Server in LXC (only privileged)")" \
|
||||
"8" "$(translate "configure Samba Server in LXC (only privileged)")" \
|
||||
"" "\Z4──────────────────────── LXC ─────────────────────────\Zn" \
|
||||
"6" "$(translate "Configure LXC Mount Points (Host ↔ Container)")" \
|
||||
"" "" \
|
||||
"7" "$(translate "Configure NFS Client in LXC (only privileged)")" \
|
||||
"8" "$(translate "Configure Samba Client in LXC (only privileged)")" \
|
||||
"9" "$(translate "Configure NFS Server in LXC (only privileged)")" \
|
||||
"10" "$(translate "configure Samba Server in LXC (only privileged)")" \
|
||||
"" "" \
|
||||
"h" "$(translate "Help & Info (commands)")" \
|
||||
"0" "$(translate "Return to Main Menu")" \
|
||||
@@ -62,25 +63,25 @@ while true; do
|
||||
3)
|
||||
bash "$LOCAL_SCRIPTS/share/local-shared-manager.sh"
|
||||
;;
|
||||
9)
|
||||
4)
|
||||
bash "$LOCAL_SCRIPTS/share/disk_host.sh"
|
||||
;;
|
||||
10)
|
||||
5)
|
||||
bash "$LOCAL_SCRIPTS/share/iscsi_host.sh"
|
||||
;;
|
||||
4)
|
||||
6)
|
||||
bash "$LOCAL_SCRIPTS/share/lxc-mount-manager_minimal.sh"
|
||||
;;
|
||||
5)
|
||||
7)
|
||||
bash "$LOCAL_SCRIPTS/share/nfs_client.sh"
|
||||
;;
|
||||
6)
|
||||
8)
|
||||
bash "$LOCAL_SCRIPTS/share/samba_client.sh"
|
||||
;;
|
||||
7)
|
||||
9)
|
||||
bash "$LOCAL_SCRIPTS/share/nfs_lxc_server.sh"
|
||||
;;
|
||||
8)
|
||||
10)
|
||||
bash "$LOCAL_SCRIPTS/share/samba_lxc_server.sh"
|
||||
;;
|
||||
h)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
# Copyright : (c) 2024 MacRimi
|
||||
# License : GPL-3.0
|
||||
# Version : 2.0
|
||||
# Last Updated: 06/04/2026
|
||||
# Last Updated: 07/04/2026
|
||||
# ==========================================================
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
@@ -30,15 +30,21 @@ initialize_cache
|
||||
|
||||
while true; do
|
||||
OPTION=$(dialog --colors --backtitle "ProxMenux" \
|
||||
--title "$(translate "Disk and Storage Manager Menu")" \
|
||||
--menu "\n$(translate "Select an option:")" 24 84 14 \
|
||||
--title "$(translate "Disk Manager")" \
|
||||
--menu "\n$(translate "Select an option:")" 24 78 16 \
|
||||
"" "\Z4──────────────────────── VM ───────────────────────────\Zn" \
|
||||
"1" "$(translate "Import Disk to VM")" \
|
||||
"2" "$(translate "Import Disk Image to VM")" \
|
||||
"3" "$(translate "Add Controller or NVMe PCIe to VM")" \
|
||||
"" "" \
|
||||
"" "\Z4──────────────────────── LXC ──────────────────────────\Zn" \
|
||||
"4" "$(translate "Import Disk to LXC")" \
|
||||
"" "" \
|
||||
"" "\Z4────────────────────── Utilities ───────────────────────\Zn" \
|
||||
"5" "$(translate "Format / Wipe Physical Disk (Safe)")" \
|
||||
"6" "$(translate "SMART Disk Health & Test")" \
|
||||
"7" "$(translate "Manual CLI Guide (Disk and Storage Manager)")" \
|
||||
"" "" \
|
||||
"0" "$(translate "Return to Main Menu")" \
|
||||
2>&1 >/dev/tty
|
||||
) || { exec bash "$LOCAL_SCRIPTS/menus/main_menu.sh"; }
|
||||
@@ -56,6 +62,15 @@ while true; do
|
||||
4)
|
||||
bash "$LOCAL_SCRIPTS/storage/disk-passthrough_ct.sh"
|
||||
;;
|
||||
5)
|
||||
bash "$LOCAL_SCRIPTS/storage/format-disk.sh"
|
||||
;;
|
||||
6)
|
||||
bash "$LOCAL_SCRIPTS/storage/smart-disk-test.sh"
|
||||
;;
|
||||
7)
|
||||
bash "$LOCAL_SCRIPTS/storage/disk-storage-manual-guide.sh"
|
||||
;;
|
||||
0)
|
||||
exec bash "$LOCAL_SCRIPTS/menus/main_menu.sh"
|
||||
;;
|
||||
|
||||
@@ -26,12 +26,14 @@ initialize_cache
|
||||
|
||||
while true; do
|
||||
OPTION=$(dialog --clear --backtitle "ProxMenux" --title "$(translate "Utilities Menu")" \
|
||||
--menu "$(translate "Select an option:")" 20 70 8 \
|
||||
--menu "\n$(translate "Select an option:")" 20 70 11 \
|
||||
"1" "$(translate "UUp Dump ISO creator Custom")" \
|
||||
"2" "$(translate "System Utilities Installer")" \
|
||||
"3" "$(translate "Proxmox System Update")" \
|
||||
"4" "$(translate "Upgrade PVE 8 to PVE 9")" \
|
||||
"5" "$(translate "Return to Main Menu")" \
|
||||
"5" "$(translate "Export VM to OVA or OVF")" \
|
||||
"6" "$(translate "Import VM from OVA or OVF")" \
|
||||
"7" "$(translate "Return to Main Menu")" \
|
||||
2>&1 >/dev/tty)
|
||||
|
||||
case $OPTION in
|
||||
@@ -76,8 +78,20 @@ initialize_cache
|
||||
return
|
||||
fi
|
||||
;;
|
||||
5) exec bash "$LOCAL_SCRIPTS/menus/main_menu.sh" ;;
|
||||
5)
|
||||
bash "$LOCAL_SCRIPTS/utilities/export_vm_ova_ovf.sh"
|
||||
if [ $? -ne 0 ]; then
|
||||
return
|
||||
fi
|
||||
;;
|
||||
6)
|
||||
bash "$LOCAL_SCRIPTS/utilities/import_vm_ova_ovf.sh"
|
||||
if [ $? -ne 0 ]; then
|
||||
return
|
||||
fi
|
||||
;;
|
||||
7) exec bash "$LOCAL_SCRIPTS/menus/main_menu.sh" ;;
|
||||
*) exec bash "$LOCAL_SCRIPTS/menus/main_menu.sh" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user