SlideShare a Scribd company logo
1 of 20
Download to read offline
Installing Odoo on WSL
Ubuntu X Windows
Aziz Adi Nugroho M.Kom
www.linkedin.com/in/azizadingrh/
Telegram @azizadingrh
Whatsapp 085156129054
1
• SMA N 11 Semarang
• S.Kom in Information System with GPA 3.57 of 4.0
Dian Nuswantoro University
• M.Kom in Computer Science with GPA 3.83 of 4.0
Dian Nuswantoro University
• Core Competency in Enterprise Architecture,
Software Engineering and Machine Learning
• Laboratory Assistant Computer Network
• Software Engineer and Lead Engineer – PT PCI
Business Solution (Port Cities)
• System Analyst, Project Manager and Development Manager – PT Brainmatics Cipta
Informatika (Brainmatics) dan PT IlmuKomputerCom Braindevs Sistema (Braindevs)
• Professional Trainer at Brainmatics
• Lecturer at Universitas Indraprasta PGRI (Unindra)
• Industrial IT Training and Certifications: Data Mining, System Analyst and Design with
UML, BPMN and Enterprise Architecture Development Practice
• IT Consultant: TNP2K, Kemensos, BPS, KPK, INSW, Kemenkeu, FIF, PLN, PJB, Pertamina EP,
Lazada, Paragon, Elizabeth Bags, HIJUP, Ethnicraft, TLI, Ayam Brand etc
Aziz Adi Nugroho
2
3
• Rekomendasi Operating System (OS) yang
digunakan untuk menjalankan Odoo adalah
Ubuntu.
• Kebanyakan developer Odoo menjalankan dual OS
pada komputer yang digunakan. Karena mereka
tetap membutuhkan Windows sebagai OS utama.
• Hal itu memakan cukup banyak resource yang ada.
Selain itu, bekerja multitasking antar OS sulit
dilakukan dengan metode dual OS.
• Salah satu fitur yang dapat dimanfaatkan untuk
mengatasi hal tersebut adalah Windows Subsystem
for Linux (WSL).
Mengapa Butuh WSL?
4
• Windows Subsystem for Linux (WSL) merupakan
fitur di Windows 10 yang memungkinkan program
Linux untuk berjalan secara native di Windows.
• WSL dirancang oleh Microsoft dalam kemitraannya
dengan Canonical, pencipta Ubuntu. Mereka
menciptakan sebuah lapisan kompatibilitas kernel
berbasis Ubuntu.
• Lapisan kompatibilitas ini memungkinkan program
Linux untuk menjalankan dalam versi Windows 10
dari Bash shell.
• Pada Mei 2019, WSL 2 diluncurkan dengan
penyempurnaan fitur seperti Hyper-V.
Apa itu WSL?
5
Tahap Instalasi
6
1. Update Windows 10
2. Install WSL 2
3. Install Ubuntu on WSL 2
4. Install Odoo on Ubuntu
• Cari Windows Update setting, + S
• Lalu lakukan update
1. Update Windows 10
7
• Cari Turn Windows features on or off, + S
• Checklist Windows Subsystem for Linux
• Lalu pilih Restart
2. Install WSL 2
8
• Cari Powershell, + S
• Jalankan Powershell menggunakan Run as
administrator
• Ketik perintah berikut untuk mengaktifkan Virtual
Machine fitur platform
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
• Lalu tekan Enter
• Restart Komputer
2. Install WSL 2
9
• Cari Powershell, + S
• Jalankan Powershell menggunakan Run as
administrator
• Ketik perintah berikut untuk membuat default
arsitektur Windows Subsystem for Linux 2 untuk
distro baru yang Anda install
wsl --set-default-version 2
• Lalu tekan Enter
• Restart Komputer
2. Install WSL 2
10
• Buka Microsoft Store
• Cari Ubuntu
• Lalu download
3. Install Ubuntu on WSL 2
11
Note:
Jika menggunakan “Ubuntu”,
versi OS Ubuntu akan otomatis
update terbaru
Disini saya menggunakan
“Ubuntu 18.04 LTS”
3. Install Ubuntu on WSL 2
12
Note:
Jika menggunakan “Ubuntu”,
versi OS Ubuntu akan otomatis
update terbaru
Disini saya menggunakan
“Ubuntu 18.04 LTS”
1. Odoo Source Code
https://github.com/odoo/odoo
4. Install Odoo on Ubuntu
13
2. Configure Odoo User and Group
• sudo adduser --system --home=/opt/odoo13 --group odoo13 `
• cd /opt/odoo13
• git init
• git clone --single-branch --branch 13.0
https://github.com/odoo/odoo.git
4. Update Apt Source List
sudo apt-get update
6. Install Requirements
• sudo apt install python3-pip
• sudo pip3 install –r /opt/odoo13/odoo/requirement.txt
4. Install Odoo on Ubuntu
14
7. Install Python Dependencies for Odoo
sudo apt install git python3-pip build-essential wget python3-dev python3-venv
python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools
node-less
8. Install Dependencies Using pip3
• sudo apt install libpq-dev python3-dev
• sudo apt install build-essential
• sudo apt install postgresql-server-dev-all
• sudo pip3 install Babel decorator docutils ebaysdk feedparser gevent greenlet
html2text Jinja2 lxml Mako MarkupSafe mock num2words ofxparse passlib
Pillow psutil psycogreen psycopg2 pydot pyparsing PyPDF2 pyserial python-
dateutil python-openid pytz pyusb PyYAML qrcode reportlab requests six suds-
jurko vatnumber vobject Werkzeug XlsxWriter xlwt xlrd
9. Odoo Web Dependencies
• sudo apt-get install -y npm
• sudo ln -s /usr/bin/nodejs /usr/bin/node
• sudo npm install -g less less-plugin-clean-css
• sudo apt-get install node-less
• sudo python3 -m pip install libsass
4. Install Odoo on Ubuntu
15
9. Install PostgreSQL
• sudo apt-get update
• sudo apt-get install postgresql
10. Create Database User for Odoo
• sudo su postgres
• createuser --createdb --username postgres --no-
createrole --no-superuser --pwprompt odoo13
• exit
4. Install Odoo on Ubuntu
16
11. Install Gdata
• cd /opt/odoo13
• sudo wget
https://pypi.python.org/packages/a8/70/bd554151443fe9e89d9a934a7891aaffc63b9cb5c7d608
972919a002c03c/gdata-2.0.18.tar.gz
• sudo tar zxvf gdata-2.0.18.tar.gz
• sudo chown -R odoo13: gdata-2.0.18
• sudo -s
• cd gdata-2.0.18/
• python3 setup.py install
12. Install wkhtmltopdf
• sudo wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb
• sudo dpkg -i wkhtmltox_0.12.1.3-1~bionic_amd64.deb
• sudo apt-get install -f
• sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
• sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin
13. Jika error, wkhtmltopdf failed (error code: -8). Message: b" odoo 13
• sudo apt install ttf-mscorefonts-installer
• sudo fc-cache -f -v
4. Install Odoo on Ubuntu
17
• sudo su odoo13 -s /bin/bash
• /opt/odoo13/odoo/odoo-bin --http-port=8069
Menjalankan Service Odoo
18
19
• Apabila ada error postgresql seperti dibawah:
• Jalankan service postgres dengan script berikut:
sudo service postgresql start
20

More Related Content

What's hot

Técnicas de Invasão - INFOESTE 2015
Técnicas de Invasão - INFOESTE 2015Técnicas de Invasão - INFOESTE 2015
Técnicas de Invasão - INFOESTE 2015C H
 
jmp206 - Lotus Domino Web Services Jumpstart
jmp206 - Lotus Domino Web Services Jumpstartjmp206 - Lotus Domino Web Services Jumpstart
jmp206 - Lotus Domino Web Services JumpstartBill Buchan
 
Desvendando a linguagem JavaScript
Desvendando a linguagem JavaScriptDesvendando a linguagem JavaScript
Desvendando a linguagem JavaScriptRodrigo Branas
 
Introdução a testes unitários com jUnit
Introdução a testes unitários com jUnitIntrodução a testes unitários com jUnit
Introdução a testes unitários com jUnitLeonardo Soares
 
CloudFront와 S3를 이용한 컨텐츠 배포 전략 - 박현우 CTO, SMARTSTUDY
CloudFront와 S3를 이용한 컨텐츠 배포 전략 - 박현우 CTO, SMARTSTUDYCloudFront와 S3를 이용한 컨텐츠 배포 전략 - 박현우 CTO, SMARTSTUDY
CloudFront와 S3를 이용한 컨텐츠 배포 전략 - 박현우 CTO, SMARTSTUDYAmazon Web Services Korea
 
Coletando dados do Twitter via Application Programming Interface (API)
Coletando dados do Twitter via Application Programming Interface (API)Coletando dados do Twitter via Application Programming Interface (API)
Coletando dados do Twitter via Application Programming Interface (API)Fernando de Assis Rodrigues
 
Iniciando em Python
Iniciando em PythonIniciando em Python
Iniciando em PythonRober Guerra
 
Lecture 2 cst 205-281 oop
Lecture 2   cst 205-281 oopLecture 2   cst 205-281 oop
Lecture 2 cst 205-281 oopktuonlinenotes
 
헤테로지니어스 컴퓨팅 : CPU 에서 GPU 로 옮겨가기
헤테로지니어스 컴퓨팅 :  CPU 에서 GPU 로 옮겨가기헤테로지니어스 컴퓨팅 :  CPU 에서 GPU 로 옮겨가기
헤테로지니어스 컴퓨팅 : CPU 에서 GPU 로 옮겨가기zupet
 
이승재, 실시간 HTTP 양방향 통신, NDC2012
이승재, 실시간 HTTP 양방향 통신, NDC2012이승재, 실시간 HTTP 양방향 통신, NDC2012
이승재, 실시간 HTTP 양방향 통신, NDC2012devCAT Studio, NEXON
 
Orientação a Objetos em Python
Orientação a Objetos em PythonOrientação a Objetos em Python
Orientação a Objetos em PythonLuciano Ramalho
 
Akka.NET 으로 만드는 온라인 게임 서버 (NDC2016)
Akka.NET 으로 만드는 온라인 게임 서버 (NDC2016)Akka.NET 으로 만드는 온라인 게임 서버 (NDC2016)
Akka.NET 으로 만드는 온라인 게임 서버 (NDC2016)Esun Kim
 
Javascript Orientado a Objeto
Javascript Orientado a ObjetoJavascript Orientado a Objeto
Javascript Orientado a ObjetoFábio Elísio
 

What's hot (20)

Técnicas de Invasão - INFOESTE 2015
Técnicas de Invasão - INFOESTE 2015Técnicas de Invasão - INFOESTE 2015
Técnicas de Invasão - INFOESTE 2015
 
jmp206 - Lotus Domino Web Services Jumpstart
jmp206 - Lotus Domino Web Services Jumpstartjmp206 - Lotus Domino Web Services Jumpstart
jmp206 - Lotus Domino Web Services Jumpstart
 
Desvendando a linguagem JavaScript
Desvendando a linguagem JavaScriptDesvendando a linguagem JavaScript
Desvendando a linguagem JavaScript
 
Funções em C
Funções em CFunções em C
Funções em C
 
Introdução a testes unitários com jUnit
Introdução a testes unitários com jUnitIntrodução a testes unitários com jUnit
Introdução a testes unitários com jUnit
 
CloudFront와 S3를 이용한 컨텐츠 배포 전략 - 박현우 CTO, SMARTSTUDY
CloudFront와 S3를 이용한 컨텐츠 배포 전략 - 박현우 CTO, SMARTSTUDYCloudFront와 S3를 이용한 컨텐츠 배포 전략 - 박현우 CTO, SMARTSTUDY
CloudFront와 S3를 이용한 컨텐츠 배포 전략 - 박현우 CTO, SMARTSTUDY
 
Coletando dados do Twitter via Application Programming Interface (API)
Coletando dados do Twitter via Application Programming Interface (API)Coletando dados do Twitter via Application Programming Interface (API)
Coletando dados do Twitter via Application Programming Interface (API)
 
Node.js e Express
Node.js e ExpressNode.js e Express
Node.js e Express
 
Introdução APIs RESTful
Introdução APIs RESTfulIntrodução APIs RESTful
Introdução APIs RESTful
 
Iniciando em Python
Iniciando em PythonIniciando em Python
Iniciando em Python
 
Lecture 2 cst 205-281 oop
Lecture 2   cst 205-281 oopLecture 2   cst 205-281 oop
Lecture 2 cst 205-281 oop
 
헤테로지니어스 컴퓨팅 : CPU 에서 GPU 로 옮겨가기
헤테로지니어스 컴퓨팅 :  CPU 에서 GPU 로 옮겨가기헤테로지니어스 컴퓨팅 :  CPU 에서 GPU 로 옮겨가기
헤테로지니어스 컴퓨팅 : CPU 에서 GPU 로 옮겨가기
 
이승재, 실시간 HTTP 양방향 통신, NDC2012
이승재, 실시간 HTTP 양방향 통신, NDC2012이승재, 실시간 HTTP 양방향 통신, NDC2012
이승재, 실시간 HTTP 양방향 통신, NDC2012
 
Browsers
BrowsersBrowsers
Browsers
 
Orientação a Objetos em Python
Orientação a Objetos em PythonOrientação a Objetos em Python
Orientação a Objetos em Python
 
Programação Orientado a Objetos
Programação Orientado a ObjetosProgramação Orientado a Objetos
Programação Orientado a Objetos
 
Akka.NET 으로 만드는 온라인 게임 서버 (NDC2016)
Akka.NET 으로 만드는 온라인 게임 서버 (NDC2016)Akka.NET 으로 만드는 온라인 게임 서버 (NDC2016)
Akka.NET 으로 만드는 온라인 게임 서버 (NDC2016)
 
Javascript Orientado a Objeto
Javascript Orientado a ObjetoJavascript Orientado a Objeto
Javascript Orientado a Objeto
 
Atividade prática slides
Atividade prática slidesAtividade prática slides
Atividade prática slides
 
Visualg
VisualgVisualg
Visualg
 

Similar to Instalasi Odoo ERP pada Ubuntu WSL di Windows

Sentralisasi Hotspot Mikrotik Berbasis EoIP over PPTP
Sentralisasi Hotspot Mikrotik Berbasis EoIP over PPTPSentralisasi Hotspot Mikrotik Berbasis EoIP over PPTP
Sentralisasi Hotspot Mikrotik Berbasis EoIP over PPTPI Putu Hariyadi
 
Membangun Cloud Computing Berbasis F/OSS
Membangun Cloud Computing Berbasis F/OSSMembangun Cloud Computing Berbasis F/OSS
Membangun Cloud Computing Berbasis F/OSSPT. Trinity Auto
 
(Mikrotik)MTCNA presentation Material-IDN
(Mikrotik)MTCNA presentation Material-IDN(Mikrotik)MTCNA presentation Material-IDN
(Mikrotik)MTCNA presentation Material-IDNAndry Ansah
 
Python Network Programming For Network Engineers
Python Network Programming For Network EngineersPython Network Programming For Network Engineers
Python Network Programming For Network EngineersI Putu Hariyadi
 
Mikrotik Most Wanted
Mikrotik Most WantedMikrotik Most Wanted
Mikrotik Most Wantedcandraaditama
 
Internet Programming v2.0 Comp
Internet Programming v2.0 CompInternet Programming v2.0 Comp
Internet Programming v2.0 CompNurdin Al-Azies
 
Makalah pemrograman generasi keempat postgresql
Makalah pemrograman generasi keempat postgresqlMakalah pemrograman generasi keempat postgresql
Makalah pemrograman generasi keempat postgresqlfaisalrafix
 
MikroTik RouterOS Security Automation With Ansible
MikroTik RouterOS Security Automation With AnsibleMikroTik RouterOS Security Automation With Ansible
MikroTik RouterOS Security Automation With AnsibleI Putu Hariyadi
 
Implementasi Sistem Monitoring Jaringan Komputer Dengan Menggunakan Cacti
Implementasi Sistem Monitoring Jaringan Komputer Dengan Menggunakan Cacti�Implementasi Sistem Monitoring Jaringan Komputer Dengan Menggunakan Cacti�
Implementasi Sistem Monitoring Jaringan Komputer Dengan Menggunakan CactiAyodya S R
 
Buku hijau-clear os-5.2-revisi-2012
Buku hijau-clear os-5.2-revisi-2012Buku hijau-clear os-5.2-revisi-2012
Buku hijau-clear os-5.2-revisi-2012Willson Willson
 
436457871-KD-3-7-Menerapkan-Instalasi-Software-Aplikasi.pptx
436457871-KD-3-7-Menerapkan-Instalasi-Software-Aplikasi.pptx436457871-KD-3-7-Menerapkan-Instalasi-Software-Aplikasi.pptx
436457871-KD-3-7-Menerapkan-Instalasi-Software-Aplikasi.pptxFadillaKhadli
 
Kk8 melakukan instalasi software
Kk8 melakukan instalasi softwareKk8 melakukan instalasi software
Kk8 melakukan instalasi softwareWahyu S
 
Instalasi python 3 dan ide atau anaconda distribution pada windows 10
Instalasi python 3 dan ide atau anaconda distribution pada windows 10Instalasi python 3 dan ide atau anaconda distribution pada windows 10
Instalasi python 3 dan ide atau anaconda distribution pada windows 10Raka Prasetyo
 
UKK TKJ - Paket 1
UKK TKJ - Paket 1UKK TKJ - Paket 1
UKK TKJ - Paket 1Walid Umar
 
Laporan praktikum modul 2
Laporan praktikum modul 2Laporan praktikum modul 2
Laporan praktikum modul 2Hardini_HD
 

Similar to Instalasi Odoo ERP pada Ubuntu WSL di Windows (20)

Sentralisasi Hotspot Mikrotik Berbasis EoIP over PPTP
Sentralisasi Hotspot Mikrotik Berbasis EoIP over PPTPSentralisasi Hotspot Mikrotik Berbasis EoIP over PPTP
Sentralisasi Hotspot Mikrotik Berbasis EoIP over PPTP
 
Membangun Cloud Computing Berbasis F/OSS
Membangun Cloud Computing Berbasis F/OSSMembangun Cloud Computing Berbasis F/OSS
Membangun Cloud Computing Berbasis F/OSS
 
(Mikrotik)MTCNA presentation Material-IDN
(Mikrotik)MTCNA presentation Material-IDN(Mikrotik)MTCNA presentation Material-IDN
(Mikrotik)MTCNA presentation Material-IDN
 
Virtual hacking Modul
Virtual hacking ModulVirtual hacking Modul
Virtual hacking Modul
 
Python Network Programming For Network Engineers
Python Network Programming For Network EngineersPython Network Programming For Network Engineers
Python Network Programming For Network Engineers
 
Mikrotik Most Wanted
Mikrotik Most WantedMikrotik Most Wanted
Mikrotik Most Wanted
 
Internet Programming v2.0 Comp
Internet Programming v2.0 CompInternet Programming v2.0 Comp
Internet Programming v2.0 Comp
 
Makalah pemrograman generasi keempat postgresql
Makalah pemrograman generasi keempat postgresqlMakalah pemrograman generasi keempat postgresql
Makalah pemrograman generasi keempat postgresql
 
MikroTik RouterOS Security Automation With Ansible
MikroTik RouterOS Security Automation With AnsibleMikroTik RouterOS Security Automation With Ansible
MikroTik RouterOS Security Automation With Ansible
 
LAB SHEET COA.pptx
LAB SHEET  COA.pptxLAB SHEET  COA.pptx
LAB SHEET COA.pptx
 
KK_8_TKJ
KK_8_TKJKK_8_TKJ
KK_8_TKJ
 
Implementasi Sistem Monitoring Jaringan Komputer Dengan Menggunakan Cacti
Implementasi Sistem Monitoring Jaringan Komputer Dengan Menggunakan Cacti�Implementasi Sistem Monitoring Jaringan Komputer Dengan Menggunakan Cacti�
Implementasi Sistem Monitoring Jaringan Komputer Dengan Menggunakan Cacti
 
Buku hijau-clear os-5.2-revisi-2012
Buku hijau-clear os-5.2-revisi-2012Buku hijau-clear os-5.2-revisi-2012
Buku hijau-clear os-5.2-revisi-2012
 
436457871-KD-3-7-Menerapkan-Instalasi-Software-Aplikasi.pptx
436457871-KD-3-7-Menerapkan-Instalasi-Software-Aplikasi.pptx436457871-KD-3-7-Menerapkan-Instalasi-Software-Aplikasi.pptx
436457871-KD-3-7-Menerapkan-Instalasi-Software-Aplikasi.pptx
 
Part1 introduction
Part1 introductionPart1 introduction
Part1 introduction
 
Kk8 melakukan instalasi software
Kk8 melakukan instalasi softwareKk8 melakukan instalasi software
Kk8 melakukan instalasi software
 
Instalasi python 3 dan ide atau anaconda distribution pada windows 10
Instalasi python 3 dan ide atau anaconda distribution pada windows 10Instalasi python 3 dan ide atau anaconda distribution pada windows 10
Instalasi python 3 dan ide atau anaconda distribution pada windows 10
 
Basic mikrotik router_os
Basic mikrotik router_osBasic mikrotik router_os
Basic mikrotik router_os
 
UKK TKJ - Paket 1
UKK TKJ - Paket 1UKK TKJ - Paket 1
UKK TKJ - Paket 1
 
Laporan praktikum modul 2
Laporan praktikum modul 2Laporan praktikum modul 2
Laporan praktikum modul 2
 

Instalasi Odoo ERP pada Ubuntu WSL di Windows

  • 1. Installing Odoo on WSL Ubuntu X Windows Aziz Adi Nugroho M.Kom www.linkedin.com/in/azizadingrh/ Telegram @azizadingrh Whatsapp 085156129054 1
  • 2. • SMA N 11 Semarang • S.Kom in Information System with GPA 3.57 of 4.0 Dian Nuswantoro University • M.Kom in Computer Science with GPA 3.83 of 4.0 Dian Nuswantoro University • Core Competency in Enterprise Architecture, Software Engineering and Machine Learning • Laboratory Assistant Computer Network • Software Engineer and Lead Engineer – PT PCI Business Solution (Port Cities) • System Analyst, Project Manager and Development Manager – PT Brainmatics Cipta Informatika (Brainmatics) dan PT IlmuKomputerCom Braindevs Sistema (Braindevs) • Professional Trainer at Brainmatics • Lecturer at Universitas Indraprasta PGRI (Unindra) • Industrial IT Training and Certifications: Data Mining, System Analyst and Design with UML, BPMN and Enterprise Architecture Development Practice • IT Consultant: TNP2K, Kemensos, BPS, KPK, INSW, Kemenkeu, FIF, PLN, PJB, Pertamina EP, Lazada, Paragon, Elizabeth Bags, HIJUP, Ethnicraft, TLI, Ayam Brand etc Aziz Adi Nugroho 2
  • 3. 3
  • 4. • Rekomendasi Operating System (OS) yang digunakan untuk menjalankan Odoo adalah Ubuntu. • Kebanyakan developer Odoo menjalankan dual OS pada komputer yang digunakan. Karena mereka tetap membutuhkan Windows sebagai OS utama. • Hal itu memakan cukup banyak resource yang ada. Selain itu, bekerja multitasking antar OS sulit dilakukan dengan metode dual OS. • Salah satu fitur yang dapat dimanfaatkan untuk mengatasi hal tersebut adalah Windows Subsystem for Linux (WSL). Mengapa Butuh WSL? 4
  • 5. • Windows Subsystem for Linux (WSL) merupakan fitur di Windows 10 yang memungkinkan program Linux untuk berjalan secara native di Windows. • WSL dirancang oleh Microsoft dalam kemitraannya dengan Canonical, pencipta Ubuntu. Mereka menciptakan sebuah lapisan kompatibilitas kernel berbasis Ubuntu. • Lapisan kompatibilitas ini memungkinkan program Linux untuk menjalankan dalam versi Windows 10 dari Bash shell. • Pada Mei 2019, WSL 2 diluncurkan dengan penyempurnaan fitur seperti Hyper-V. Apa itu WSL? 5
  • 6. Tahap Instalasi 6 1. Update Windows 10 2. Install WSL 2 3. Install Ubuntu on WSL 2 4. Install Odoo on Ubuntu
  • 7. • Cari Windows Update setting, + S • Lalu lakukan update 1. Update Windows 10 7
  • 8. • Cari Turn Windows features on or off, + S • Checklist Windows Subsystem for Linux • Lalu pilih Restart 2. Install WSL 2 8
  • 9. • Cari Powershell, + S • Jalankan Powershell menggunakan Run as administrator • Ketik perintah berikut untuk mengaktifkan Virtual Machine fitur platform Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform • Lalu tekan Enter • Restart Komputer 2. Install WSL 2 9
  • 10. • Cari Powershell, + S • Jalankan Powershell menggunakan Run as administrator • Ketik perintah berikut untuk membuat default arsitektur Windows Subsystem for Linux 2 untuk distro baru yang Anda install wsl --set-default-version 2 • Lalu tekan Enter • Restart Komputer 2. Install WSL 2 10
  • 11. • Buka Microsoft Store • Cari Ubuntu • Lalu download 3. Install Ubuntu on WSL 2 11 Note: Jika menggunakan “Ubuntu”, versi OS Ubuntu akan otomatis update terbaru Disini saya menggunakan “Ubuntu 18.04 LTS”
  • 12. 3. Install Ubuntu on WSL 2 12 Note: Jika menggunakan “Ubuntu”, versi OS Ubuntu akan otomatis update terbaru Disini saya menggunakan “Ubuntu 18.04 LTS”
  • 13. 1. Odoo Source Code https://github.com/odoo/odoo 4. Install Odoo on Ubuntu 13
  • 14. 2. Configure Odoo User and Group • sudo adduser --system --home=/opt/odoo13 --group odoo13 ` • cd /opt/odoo13 • git init • git clone --single-branch --branch 13.0 https://github.com/odoo/odoo.git 4. Update Apt Source List sudo apt-get update 6. Install Requirements • sudo apt install python3-pip • sudo pip3 install –r /opt/odoo13/odoo/requirement.txt 4. Install Odoo on Ubuntu 14
  • 15. 7. Install Python Dependencies for Odoo sudo apt install git python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less 8. Install Dependencies Using pip3 • sudo apt install libpq-dev python3-dev • sudo apt install build-essential • sudo apt install postgresql-server-dev-all • sudo pip3 install Babel decorator docutils ebaysdk feedparser gevent greenlet html2text Jinja2 lxml Mako MarkupSafe mock num2words ofxparse passlib Pillow psutil psycogreen psycopg2 pydot pyparsing PyPDF2 pyserial python- dateutil python-openid pytz pyusb PyYAML qrcode reportlab requests six suds- jurko vatnumber vobject Werkzeug XlsxWriter xlwt xlrd 9. Odoo Web Dependencies • sudo apt-get install -y npm • sudo ln -s /usr/bin/nodejs /usr/bin/node • sudo npm install -g less less-plugin-clean-css • sudo apt-get install node-less • sudo python3 -m pip install libsass 4. Install Odoo on Ubuntu 15
  • 16. 9. Install PostgreSQL • sudo apt-get update • sudo apt-get install postgresql 10. Create Database User for Odoo • sudo su postgres • createuser --createdb --username postgres --no- createrole --no-superuser --pwprompt odoo13 • exit 4. Install Odoo on Ubuntu 16
  • 17. 11. Install Gdata • cd /opt/odoo13 • sudo wget https://pypi.python.org/packages/a8/70/bd554151443fe9e89d9a934a7891aaffc63b9cb5c7d608 972919a002c03c/gdata-2.0.18.tar.gz • sudo tar zxvf gdata-2.0.18.tar.gz • sudo chown -R odoo13: gdata-2.0.18 • sudo -s • cd gdata-2.0.18/ • python3 setup.py install 12. Install wkhtmltopdf • sudo wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb • sudo dpkg -i wkhtmltox_0.12.1.3-1~bionic_amd64.deb • sudo apt-get install -f • sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin • sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin 13. Jika error, wkhtmltopdf failed (error code: -8). Message: b" odoo 13 • sudo apt install ttf-mscorefonts-installer • sudo fc-cache -f -v 4. Install Odoo on Ubuntu 17
  • 18. • sudo su odoo13 -s /bin/bash • /opt/odoo13/odoo/odoo-bin --http-port=8069 Menjalankan Service Odoo 18
  • 19. 19
  • 20. • Apabila ada error postgresql seperti dibawah: • Jalankan service postgres dengan script berikut: sudo service postgresql start 20