Community mailing list archives

community@mail.odoo.com

Re: Odoo on Mac

by
Nidheesh
- 11/04/2015 07:35:17
Yes, it can be done through macports (mac package administrator like yum for centos or aptitute for debian) and do some tweaking for the system to get up and running!

On this video https://www.youtube.com/watch?v=etqsOGAKY1g is a way to do it, it's in Spanish but is graphically explicit on steps to do, i will attach you a modified version of the script file that it downloads with comments on English an Spanish aswell, just remember, this steps are based on Mac OS X Mavericks with Server App installed (the Mac OS Server version is almost the same like Desktop version but with this app already on the core), Macports for Mavericks and the user used for setting up things must be named ladmin, just create a new user on that server and as login name put that name.

Let me list the steps as seen on the video for you:

  1. Create a new user on the system and name it ladmin
    1. Full name:  whatever you want to use
    2. Login name (account name): ladmin 
  2.  On settings app, go to net and change the ip context from DHCP (automatic mode) to manual mode
    1. Here you need to click on DHCP and select manual
    2. Over IP Address change 0.0.0.0 to one valid IP used on the local network that not conflict with one already registered on the network
      1. Also, please verify that, if already modified, just write down current state so the other users don't lose access to this machine
    3. Let the default net mask as is (it should say 255.255.255.0)
    4. Verify that the router IP address is the actual router IP from the access point, router or whatever they are using for accessing the Internet
    5. Then click on advanced and add a DNS
      1. Click on DNS
      2. Click +
      3. Put here the IP address of the access point, router or whatever they are using for accessing the Internet
      4. Click Accept
    6. Click Apply
  3. Now, click on Show All from the very top of the Settings window
  4. Click on Share
    1. On Server name put a name for your server, in the video they call it server
    2. Activate Remote Session (if its inactive)
    3. Activate Remote Administration (if its inactive)
      1. Select Watch from new window, it should activate everything on that!
      2. Click accept
  5. Close Settings app

That is for the user and network stuff, now for the apps

  1. If its Mac Os X Server skip this steps until XCode setup
    1. Go to the app store
    2. Click on search and put server
    3. Click on Price option and buy the app (its about 20€ from mac store)
    4. Do necessary steps for purchase (like entering Apple ID and password)
    5. Download the app
  2. Click on search Again and enter xcode
    1. Same steps as for Server App since step 3
  3. They should appear by default on Applications folder in finder
    1. If not, then search for them on Downloads folder, if its a .dmg file, just double click it, this will open a new window and drag the Icon with the name of the app that is open to the Applications link that appears on the window the dmg just created
    2. If its a .pkg file, open the file and follow on screen steps so the package can be installed on the system
    3. First app to install is xcode (if is a Server OS, the app should already be installed)
  4. Open Xcode app
    1. Agree with license
    2. Give permissions to the app (just enter the ladmin password), take in count that this step will last a little while
    3. If everything its correct, it will close automatically
  5. Open Server app
    1. Agree license
    2. Give permissions to the app as before and wait a little this time
    3. Close the Server tutorial (or not, that depends on you if you wanna learn the basics, but its not necessary)
    4. We will let things (basics things) as is, because we need to go further for Odoo setup and the basics are out of our scope by now
    5. Click on Advanced
    6. Now, we will assign an internal DNS to the server so it can look inside of it
      1. Click on DNS
      2. Click on Server name Edit button
        1. Click next
        2. Select Domain Name and click next
        3. Edit Server Name and put the name for the domain from which you want the other users to access the ERP instance
        4. Click on Finish
        5. Click on Configure DNS
        6. And now the Server App on should have changed the Server name to whatever you selected on previous steps
That is for Xcode and Server prerequisites, now for MacPorts

  1. Open a web browser (safari or Firefox for example) and go tohttp://www.macports.org or simply search for macports on google, it should lead you to the right place
  2. Select on getting started installation link and click on OS X 10.9 Mavericks link
  3. It should download a .pkg file, browse on finder for it on Downloads folder
  4. Double click on it and follow on screen instructions, almost like next, next, accept, and so on
  5. Wait until its installed and close the app
Now for the Odoo system

The video says that we need some scripts and configurations files for the system to be updated automatically for us, as stated before, I'm attaching you modified versions of those files so you can check comments on .sh file to see what will do each command if you want, so, you don't need to go over the web site to get those files, they are almost the same but for English comments on the main script file!

For the installation process and commands
  1. From this message, download attached file and double click on it, it will open a finder window with 3 files on it, select those files and drag and drop them into the desktop as seen on video
  2. If the user is ladmin as recommended before, open a terminal window (if don't know how to do this on Mac OS X, just press the magnifying glass icon on the upper right corner of the task bar and type terminal then enter) and type the next command:
    1.  sudo chmod u+x /Users/ladmin/Desktop/instalar-OpenERP.v4.sh   and hit enter (it says v4 but its the script version not Odoo version, it should install Odoo v7 but you can modify the script for v8 aswell but it may need some more tweaking and stuff, tell Prasad to study the script and will notice that, its almost the same as for linux installations, remember, Mac OS X its a modified version of FreeBSD)
    2. Enter ladmin password (it should not put any character on screen when entering passwords) and hit enter again
    3. sudo /Users/ladmin/Desktop/instalar-OpenERP.v4.sh and hit enter aswell
  3. Wait and wait until its done!!!

This will update macports, install wget, python 2.7, PostgreSQL, Bazaar and of course Odoo from LaunchPad, but you can install it from GitHub installing git and doing as usually on linux environments (again, Prasad should know what to do xD) and requirements for almost all the things to work, but we need another one command if it doesn't install all the dependencies, its SIX module, just enter this command after previous script ended:

sudo port install py27-six

If all its correctly installed, it should copy the other two files (that we put on desktop) to the correct location and now, lets start Odoo with this command:

sudo lauchctl load /Library/LaunchDaemons/com.openerp-server.plist    and hit enter
enter the ladmin password

if no errors are displayed, we can now go to a web browser and test odoo as we normally do:

first from localhost

http://localhost:8069

then from local IP address from any computer on the same network segment

http://192.168.1.2:8069    (of course, put the correct IP address here!!)

If everything its correct, cheers!!! If not, well, proceed to the log files as if we where on linux, look at /var/log/odoo or /var/log/openerp it depends on how the system register the log.

Not no mention that, if you want access to this server from the outside of the local network, you can, but you need a fixed IP address or a dynamic IP address and of course, a dynamic updater service like noip or dyndns, client installed and to open port 8069 from the router, access point, etc to the server IP address, but that you already know it :P

On the other hand, if you want to the local clients to access this server by domain name instead of IP address, you need to edit hosts file on /etc (sudo nano /etc/hosts) as in linux and put there the Server name you registered on Server app and the IP address aswell, maybe, if your server is well configured and administrated, it shall do it automatically, but only if the entire network depends of DHCP services from this server.

Now, as you know, there's no official native client for Odoo since v7, it all done via web interface and nothing more, i have tested previous native for client 6 on Odoo v7 with many problems and it's quite slower and unsupported by the community. 

I wish you success on this quest my friend!! Please, let me know if this was of help!!

On Thu, Oct 29, 2015 at 8:57 PM, Nuria Arranz Velazquez <nuria@opusvl.com> wrote:
Hi all,

We had an inquiry from a company that wants to install Odoo on a Mac 
server.

Does anyone know if this is possible and also if there is a native mac 
client?

Many thanks in advance,
Nuria

-- 
N. Arranz-Velazquez
OpusVL Odoo Specialist Team (OOST)
Product Owner

OpusVL
Drury House
Drury Lane
Rugby
CV21 3DE

T: 01788 298 450
W: www.opusvl.com

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Regards,

Nidheesh Raj | Confianz | 
Thejaswini Building | TechnoPark |  Trivandrum. | Kerala | India 
Suite B Second Floor | 423 Beaty Dr | Belmont | North Carolina | USA
D: +91 471 3048030 | (Cell ) + 91 7736 659 627
www.confianzit.com 

We helped DMR! increase their revenue by 30% by implementing a customized Odoo-Magento integration which complemented their existing workflow. Read the
case study here.


Watch  how we helped Stress Free Home Care to stream line their business; Watch YouTube video here

Inline image 11nidheesh.confianz Inline image 9 nidheesh@confianzit.biz