How to install Odoo8.0 under Debian8.3.0
Assuming you have installed the Debian system, use the root account to execute the following command
# apt-get Update && apt-get Upgrade # Install system updates
# apt-get Install sudo # make sure ' sudo ' is installed
Use the following command to create an Odoo user, assuming Odoo's username is Odoo:
# useradd-m-G sudo-s/bin/bash Odoo # Create an ' odoo ' user with sudo powers
# passwd Odoo # Ask and set a password for the new user
Note:
Parameters in the command:-M to create the user's home directory,-G to add this user to the Sudoers list, you can use sudo to execute the root command. -s/bin/bash Bash is set to default.
To add a user to the Sudoers list:
Method One
The first method is to add you to the Linux user group named sudo. This particular Linux user group is preconfigured to use sudo. So once you're inside this group, you can run the sudo command.
The following command will add you to the sudo group in Linux to make sure that you can run the command as the root user.
# AddUser < username > sudo
Now to confirm that your membership has been updated, use the groups command to see the list of groups you currently belong to. This list must contain the sudo group.
$ groups
Alice ADM cdrom sudo dip plugdev fuse lpadmin netdev sambashare davfs2 libvirtd Docker promiscuous
Changes to the membership (and sudo access) will take effect after you log out and re-login.
Method Two
The second way to get you to use sudo is to add yourself directly to the/etc/sudoers configuration file.
To modify the/etc/sudoers file, you can use a special sudo editor command called Visudo. Simply invoke the following command as root.
# Visudo
This command can open and edit the/etc/sudoers file, add the following line of text to the end of the file, and press ctrl+x. When the prompt appears, save the changes to exit.
<username> all= (All) all
This change will take effect immediately and you'll be able to use sudo right away.
Confirm Current User:
$ whoami
Odoo
$ echo $HOME
/home/odoo
Use the following script to install Odoo on the Debian system source code
$ sudo apt-get update && sudo apt-get upgrade # Install system updates
$ sudo apt-get install git # install Git
$ mkdir ~/odoo-dev # Create A directory to work in
$ cd ~/odoo-dev # Go to our work directory
$ git clone https://github.com/odoo/odoo.git-b 8.0 # Get Odoo source code
$./odoo/odoo.py Setup_deps # installs Odoo system dependencies
$./odoo/odoo.py Setup_pg # installs PostgreSQL & DB Superuser for UNIX user
Note: The ~ symbol is the shortcut symbol for your home directory (for example:/home/odoo), the Git-b 8.0 option is required to download Odoo's 8.0 version of the branch.
Final execution:
$ ~/odoo-dev/odoo/odoo.py
Launch Odoo Instance
Press CTRL + C to finish.
--------------------------------------------------------------------------------------------
Reference: Odoo developement Essentials Manual
Http://www.linuxidc.com/Linux/2015-03/114760.htm
Installing Odoo8.0 steps under Debian8.3.0