Updated README.md

This commit is contained in:
Steven Seifried 2021-12-29 20:14:34 +01:00
parent 34a24e2d35
commit 4dc162ad4f
No known key found for this signature in database
GPG key ID: 174371A9356D63E5

112
README.md
View file

@ -7,6 +7,8 @@ Scripts for Proxmox VE and Proxmox BS.
- Proxmox VE = [Proxmox Virtual Environment](https://proxmox.com/en/proxmox-ve)
- Proxmox BS = [Proxmox Backup Server](https://proxmox.com/en/proxmox-backup-server)
**Note:** The LXC Contrainer are currently untested. But they should work. I'll test them soon.
<details>
<summary markdown="span">Proxmox VE 7 Post Install</summary>
@ -90,3 +92,113 @@ After the script completes, If you're dissatisfied with the default settings, cl
____________________________________________________________________________________________
</details>
<details>
<summary markdown="span">PostgreSQL (**without** pgadmin4) LXC</summary>
<p align="center"><img src="https://www.postgresql.org/media/img/about/press/elephant.png" alt="PostgreSQL"/></p>
<h1 align="center" id="heading"> Proxmox PostgreSQL (**without** pgadmin4) LXC Container </h1>
To create a new Proxmox PostgreSQL (**without** pgadmin4) LXC Container, run the following in the Proxmox web shell.
```
bash -c "$(wget -qLO - https://raw.githubusercontent.com/StevenSeifried/proxmox-scripts/main/postgresql_container.sh)"
```
<h3 align="center" id="heading">⚡ Default Settings: 1GB RAM - 4GB Storage - 1vCPU ⚡</h3>
To enable PostgreSQL to listen to remote connections, you need to edit the configuration file. To do this, open the console in your PostgreSQL LXC:
```
nano /etc/postgresql/14/main/postgresql.conf
```
Chnage `listen_addresses='localhost'` to `listen_addresses='*'`
Save and exit the editor with "Ctrl+O", "Enter" and "Ctrl+X".
Restart PostgreSQL with
```
sudo systemctl restart postgresql
```
Change password of `postgres` user:
```
sudo -u postgres psql
\password postgres
\q
```
Create a new user (e.g. for Nextcloud):
```
sudo -u postgres createuser -P -d nextcloud
```
Create a new databse (e.g. for Nextcloud):
```
sudo -u postgres createdb -O nextcloud nextcloud_db
```
This create the database `nextcloud_db` and set the ownership to the user `nextcloud`
____________________________________________________________________________________________
</details>
<details>
<summary markdown="span">PostgreSQL (**with** pgadmin4) LXC</summary>
<p align="center"><img src="https://www.postgresql.org/media/img/about/press/elephant.png" alt="PostgreSQL"/></p>
<h1 align="center" id="heading"> Proxmox PostgreSQL (**with** pgadmin4) LXC Container </h1>
To create a new Proxmox PostgreSQL (**with** pgadmin4) LXC Container, run the following in the Proxmox web shell.
```
bash -c "$(wget -qLO - https://raw.githubusercontent.com/StevenSeifried/proxmox-scripts/main/postgresql_pgadmin4_container.sh)"
```
<h3 align="center" id="heading">⚡ Default Settings: 2GB RAM - 8GB Storage - 2vCPU ⚡</h3>
To enable PostgreSQL to listen to remote connections, you need to edit the configuration file. To do this, open the console in your PostgreSQL LXC:
```
nano /etc/postgresql/14/main/postgresql.conf
```
Chnage `listen_addresses='localhost'` to `listen_addresses='*'`
Save and exit the editor with "Ctrl+O", "Enter" and "Ctrl+X".
Restart PostgreSQL with
```
sudo systemctl restart postgresql
```
Change password of `postgres` user:
```
sudo -u postgres psql
\password postgres
\q
```
Create a new user (e.g. for Nextcloud):
```
sudo -u postgres createuser -P -d nextcloud
```
Create a new databse (e.g. for Nextcloud):
```
sudo -u postgres createdb -O nextcloud nextcloud_db
```
This create the database `nextcloud_db` and set the ownership to the user `nextcloud`.
To setup pgadmin4, open the console in your PostgreSQL LXC and run the following command:
```
/usr/pgadmin4/bin/setup-web.sh
```
Follow the instructions
____________________________________________________________________________________________
</details>