mirror of
https://github.com/ej52/proxmox-scripts.git
synced 2025-07-21 23:18:06 +02:00
59 lines
2.9 KiB
Markdown
59 lines
2.9 KiB
Markdown
# Proxmox scripts
|
|
|
|
Some useful proxmox scripts...
|
|
|
|
## Usage
|
|
|
|
To create a new LXC container on Proxmox and setup a app to run inside of it, run the following in a SSH connection or the Proxmox web shell.
|
|
|
|
***Tested with:*** _proxmox 7.1+, alpine 3.12+, debian 11+, Ubuntu 18+_
|
|
|
|
```bash
|
|
curl -sL https://raw.githubusercontent.com/ej52/proxmox/main/create.sh | bash -s
|
|
```
|
|
|
|
### Command line arguments
|
|
| argument | default | description |
|
|
|--------------------|----------------------|--------------------------------------------------------|
|
|
| --app | nginx-proxy-manager | application to install |
|
|
| --id | $nextid | container id |
|
|
| --os | alpine | OS distribution to install |
|
|
| --os-version | latest | OS version to install |
|
|
| --bridge | vmbr0 | bridge used for eth0 |
|
|
| --cores | 1 | number of cpu cores |
|
|
| --disksize | 4G | size of disk |
|
|
| --hostname | value of --app | hostname of the container |
|
|
| --memory | 512 | amount of memory |
|
|
| --storage | local-lvm | storage location for container disk |
|
|
| --templates | local | storage location for templates |
|
|
| --swap | 0 | amount of SWAP |
|
|
| --cleanup | false | Remove dev dependencies after install |
|
|
|
|
you can set these parameters by appending ` -- <parameter> <value>` like:
|
|
|
|
```bash
|
|
curl -sL https://raw.githubusercontent.com/ej52/proxmox/main/create.sh | bash -s -- --app nginx-proxy-manager --cleanup
|
|
```
|
|
|
|
### Console
|
|
|
|
There is no login required to access the console from the Proxmox web UI. If you are presented with a blank screen, press `CTRL + C` to generate a prompt.
|
|
|
|
## Alternative Usage
|
|
|
|
If you are not using proxmox or want to install a app on a existing install, you can run the setup script itself.
|
|
|
|
***Note:*** _Only Alpine, Debian and Ubuntu are currently supported_
|
|
|
|
```sh
|
|
sh -c "$(wget --no-cache -qO- https://raw.githubusercontent.com/ej52/proxmox/main/install.sh)" -s --app nginx-proxy-manager
|
|
sh -c "$(wget --no-cache -qO- http://10.0.1.21:1337/install.sh)" -s --app nginx-proxy-manager --clean
|
|
```
|
|
|
|
## Applications
|
|
|
|
[Nginx Proxy Manager](https://github.com/ej52/proxmox/tree/main/apps/nginx-proxy-manager)
|
|
|
|
## Thanks
|
|
|
|
- [whiskerz007](https://github.com/whiskerz007?tab=repositories) |