Skip to content

Instantly share code, notes, and snippets.

View nnps255's full-sized avatar
🎯
Focusing

Nabil Al Idrus nnps255

🎯
Focusing
View GitHub Profile

A. Infrastruktur

IP OS Info CPU RAM PURPOSE
34.87.143.81 Ubuntu 18.04.6 LTS 4 CORE 8GB Postgres Instance
34.124.179.57 Ubuntu 18.04.6 LTS 2 CORE 4GB Odoo Instance
34.124.251.112 Debian bullseye 2 CORE 4GB Nginx Instance
34.126.139.122 Debian bullseye 2 CORE 4GB PgBouncer Instance

Step 1 - Add the Odoo repository

wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
echo "deb http://nightly.odoo.com/10.0/nightly/deb/ ./" >> /etc/apt/sources.list
apt-get update

Step 2 - Configure a Linux user for Odoo

[options]
addons_path = /Users/daniel/odoo10/odooc/odoo/addons,/Users/daniel/odoo10/addons10
admin_passwd = admin
csv_internal_sep = ,
data_dir = /Users/odoo/Odoo
db_host = localhost
db_maxconn = 64
db_password = openerp
@nnps255
nnps255 / explain.md
Created December 4, 2020 10:36 — forked from aw/explain.md
[SOLVED] Proxmox VE and cloud-init snippets etc

Proxmox VE 6.x release includes a feature to add custom cloud-init configs. Unfortunately there is poor documentation, so I had to figure this out by adding pieces of information together.

The custom cloud-init files (user-data, meta-data, network-config)

The cloud-init files need to be stored in a snippet. This is not very well documented:

  1. Go to Storage View -> Storage -> Add -> Directory
  2. Give it an ID such as snippets, and specify any path on your host such as /snippets
  3. Under Content choose Snippets and de-select Disk image (optional)
  4. Upload (scp/rsync/whatever) your user-data, meta-data, network-config files to your proxmox server in /snippets/snippets/ (the directory should be there if you followed steps 1-3)
@nnps255
nnps255 / private_fork.md
Created November 23, 2020 07:43 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@nnps255
nnps255 / create-cloud-template.sh
Last active January 23, 2021 15:52 — forked from chriswayg/create-cloud-template.sh
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1