Proxmox-Enhanced-Configuration-Utility (PECU) - Optimize Your Proxmox Setup!

Danilop95

New Member
Jun 22, 2023
5
0
1
Hello everyone,

I'm excited to introduce a new tool I've developed: Proxmox-Enhanced-Configuration-Utility (PECU). This Bash script is designed to simplify the configuration and management of Proxmox VE environments. It offers an interactive menu for essential tasks, including:

Key Features:

  • Dependency Management: Easily install and manage package repositories.
  • GPU Passthrough Configuration: Automatically set up GPU passthrough to dedicate graphics cards to virtual machines, optimizing performance for high-demand tasks.
  • System Configuration Checks: Verify and optimize Proxmox package repositories and hardware settings.
The script is compatible with Proxmox VE 6.x, 7.x, and 8.x.

For detailed instructions and to download the script, visit the GitHub repository:

➡️ Proxmox-Enhanced-Configuration-Utility on GitHub

I hope you find this tool useful, and I'm looking forward to your feedback and suggestions!

Thank you!
 
I looked through your code and you may want to look at using more functions for your programming. A lot of repetition in your code. Especially referencing the colors all the time. Write a function blue that colorized the arguments or even an here block.

Why do you rely on sudo? It has a reason why there is no sudo integrated in the PVE, root has only access to everything and via sudo you will not (e.g. bash completion for example).

Hardcoding your editor? Please use the debian alternative command editor for that.

Hardcoding general repositories? Optimizing means using non-subscription repo? No way ...
 
  • Like
Reactions: Johannes S
Thank you for your valuable feedback, LnxBil. I appreciate your detailed review and suggestions for improving the script. Here’s what I’m considering based on your points:

Using More Functions: You’re right about the repetition, especially with the color references. I plan to refactor the script to use functions for setting colors, which will make the code cleaner and more maintainable.

Avoiding Sudo: I understand your concern regarding the use of sudo in a Proxmox VE environment. I initially included sudo to ensure the script could run commands with elevated privileges where necessary. However, I realize now that this isn’t optimal for Proxmox VE, where direct root access is more appropriate. I’ll look into revising this aspect to align better with Proxmox’s conventions.

Hardcoding the Editor: You’re absolutely correct. I’ll update the script to use the Debian alternatives system to determine the default editor instead of hardcoding Nano. This change will make the script more flexible and user-friendly.

Repository Configuration: I see your point about the hardcoded repositories. I’ll revise this section to provide more options for users, especially regarding the choice of non-subscription repositories, and ensure that the default configurations are suitable for various environments without overriding user preferences unnecessarily.

Thanks again for the suggestions!
 
Hello,
Very, very new to Proxmox and runn8ing vms. This is a rookie question, but where do I type the command line in to clone the file? I tried to copy and paste into the command prompt in one of the vms and it comes up as git is not an internal or external command. Thank you for the help.
 
Hello,
Very, very new to Proxmox and runn8ing vms. This is a rookie question, but where do I type the command line in to clone the file? I tried to copy and paste into the command prompt in one of the vms and it comes up as git is not an internal or external command. Thank you for the help.
You can run it directly using:
```
bash <(curl -s https://raw.githubusercontent.com/D...guration-Utility/main/proxmox-configurator.sh)
```

but In case you wish to clone the repository you need to have git installed.
If you don't need git, just run `curl -s -O https://raw.githubusercontent.com/D...guration-Utility/main/proxmox-configurator.sh`
 

You can doesn't mean you should, especially if you are a novice. You basically downloading stuff from the Internet and running it with unrestricted access. This is something most people (rightfully!) woudn't do on their normal PC, so why would you do this on your homeserver which might hose important data (like photos of fond memories, your tax files etc)? In the end it means that you trust whoever has write access to the github repo with (in worst case) a way to execute something on your system, which might give him access to your system.
This is just another case of using a kind of helper script but not for learning system administration and shell programming (for which they would be great resources->Try to understand how they work and change them to your needs) but to avoid learning it.
Sorry to be blunt: If you don't want to do system administration (which is absolutely understandable!) and thus want to run some script which spare you the nasty details ProxmoxVE is propably not the right tool for your needs. If you want to just have some apps for your home automation/homeserver (e.G. media streaming, saving vacation pictures or important files) you propably better of with a commercial or opensource NAS operating system with docker support. Much less hassle in administration and much less risk to break something.
but In case you wish to clone the repository you need to have git installed.
If you don't need git, just run `curl -s -O https://raw.githubusercontent.com/D...guration-Utility/main/proxmox-configurator.sh`
This is a better idea, but also kind of risky if you don't know what the script is actually doing.
 
  • Like
Reactions: LnxBil and UdoB

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!