Monday, March 26, 2018

Install Python 3 in Ubuntu


if add-apt is not found,

sudo: add-apt-repository: command not found
sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update


sudo add-apt-repository ppa:jonathonf/python-3.6



I don't know my previous post above if its totally working on how to install python 3.6.
But here, I just tested it and obviously it works.

sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6

Wednesday, March 21, 2018

Inheriting a view without overriding the original view

the solution is to add

<field name="mode">primary</field> 
that's it! I don't know who created odoo but it's hard to get the right answer because of less documentation.


https://www.odoo.com/forum/help-1/question/inheriting-a-view-without-overriding-the-original-view-solved-85762

Monday, March 19, 2018

Installing nodejs


curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs




updated:
I just installed nodejs and npm in a newly created vm.
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04



update: 7/30/2018
Alternatively, for Node.js 10:
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - 
sudo apt-get install -y nodejs

Wednesday, March 14, 2018

Setup a vagrant with gui

I have experimented to launch a vagrant using existing VMbox like ubuntu but I was failed to do it. I found this tutorial below.

https://relativkreativ.at/articles/how-to-build-a-vagrant-base-box-from-a-virtualbox-vm

Although, this example is based on centos I'm hoping to manage it in Ubuntu. I got an error in its really frustrating.

So I stop and goes right away to vagrant cloud to find any existing predefined vagrant box.
this one looks promising and will give it a try.

https://app.vagrantup.com/igorbrites/boxes/ubuntu-trusty64-gui
vagrant init igorbrites/ubuntu-trusty64-gui --box-version 0

Linux command

To set new password for root in Ubuntu
> sudo passwd root


To locate a file
find / -name 'pg_hba.conf' 2>/dev/null


To add new user
> sudo adduser --home /home/demo --shell /bin/bash demo


free online comma separating tool

https://delim.co/#