75 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			75 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| assigned: ''
 | |
| created: 2024-06-14T18:43:00.705Z
 | |
| progress: 0
 | |
| tags:
 | |
|   - affirm
 | |
|   - NoIP
 | |
|   - Hosts
 | |
| type: note
 | |
| updated: 2024-12-03T02:44:04.000Z
 | |
| ---
 | |
| 
 | |
| # Odoo
 | |
| 
 | |
| - [affirm.ddns.net](https://affirm.ddns.net)
 | |
| - [on_premise](https://www.odoo.com/documentation/17.0/administration/on_premise/source.html#)
 | |
| - [how-to-run-odoo-on-wsl-windows-subsystem-for-linux](https://gasparyyc.mystrikingly.com/blog/how-to-run-odoo-on-wsl-windows-subsystem-for-linux?)
 | |
| 
 | |
| ## Notes
 | |
| 
 | |
| ```bash Thu Jun 13 2024 20:30:18 GMT-0700 (Mountain Standard Time)
 | |
| sudo -i
 | |
| for y in $(locale | cut -d '=' -f 2| sort |uniq );do locale-gen $y; done
 | |
| apt-get update && apt-get upgrade -y
 | |
| apt install python3-pip -y
 | |
| apt-get install postgresql -y
 | |
| cd /etc/init.d
 | |
| ./postgresql start
 | |
| su - postgres
 | |
| psql template1 -c 'SHOW SERVER_ENCODING'
 | |
| psql postgres -c "update pg_database set datallowconn = TRUE where datname = 'template0';"
 | |
| psql template0 -c "update pg_database set datistemplate = FALSE where datname = 'template1';"
 | |
| psql template0 -c "drop database template1;"
 | |
| psql template0 -c "create database template1 with template = template0 encoding = 'UTF8';"
 | |
| psql template0 -c "update pg_database set datistemplate = TRUE where datname = 'template1';"
 | |
| psql template1 -c "update pg_database set datallowconn = FALSE where datname = 'template0';"
 | |
| psql template1 -c 'SHOW SERVER_ENCODING'
 | |
| createuser -s odoo
 | |
| psql -c "alter user odoo with password 'odoo';"
 | |
| exit
 | |
| wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
 | |
| echo "deb http://nightly.odoo.com/11.0/nightly/deb/ ./" >> /etc/apt/sources.list.d/odoo.list
 | |
| ```
 | |
| 
 | |
| ```bash Thu Jun 13 2024 21:37:15 GMT-0700 (Mountain Standard Time)
 | |
| sudo -i
 | |
| cd /home/mike/phares-odoo
 | |
| git clone http://127.0.0.1:3000/mikepharesjr/odoo-17-0.git
 | |
| cd odoo-17-0
 | |
| chmod +x setup/debinstall.sh
 | |
| ./setup/debinstall.sh
 | |
| apt install nodejs
 | |
| apt install npm
 | |
| npm install -g rtlcss
 | |
| apt-get update && apt-get install odoo -y
 | |
| ./odoo start
 | |
| ```
 | |
| 
 | |
| ```bash Tue Jul 02 2024 18:15:33 GMT-0700 (Mountain Standard Time)
 | |
| turnkey-init
 | |
| ```
 | |
| 
 | |
| ```bash Thu Jul 25 2024 11:26:06 GMT-0700 (Mountain Standard Time)
 | |
| podman pull docker.io/odoo:15.0
 | |
| systemctl daemon-reload
 | |
| systemctl start odoo-server
 | |
| systemctl status odoo-server
 | |
| journalctl -fu odoo-server.service
 | |
| podman logs odoo-server
 | |
| systemctl stop odoo-server
 | |
| systemctl disable odoo-server
 | |
| podman exec -ti odoo-server /bin/sh
 | |
| podman exec -ti odoo-server /bin/bash
 | |
| ```
 |