Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33

Thread: MacOs X "10.4.3/java1.5/zimbra" install step-by-step

  1. #1
    Join Date
    Nov 2005
    Location
    proxima centaury
    Posts
    33
    Rep Power
    9

    Arrow MacOs X "10.4.3/java1.5/zimbra" install step-by-step

    Well after searching in this forum and some other places… & install desinstall quite some time… I finally get it to work ! pffff…
    This runs on a Client OsX Tiger.
    I'll soon try to do it again on ServerOsX Tiger (test one)
    And then I'll try to set it up to bind to my Kerberos/ldap server (my final goal)

    Now getting emails in Maill.app :

    Now, I'm gonna describe what I did to make it work.
    It may not work for you as it worked for me…
    so beware…

    Here, I assume you're logged in as your 'macosXaccount' and you have admin rights :
    0) DNS DNS DNS…
    I strongly suggest that you get your DNS up and running before doing anything else.
    I won't cover this DNS part here… try afp548.com or apple.com if you need to do it.
    I do have a DNS server with my MacOsX Server.

    1) After some try you do need TIGER. v 10.4.3 with all updates. (I don't talk about iTunes, etc…)
    only System/security if so, and of course JAVA

    1a) When it wasn't working I installed XCode - don't know if it helped?
    at least it did for Installing Propertylist editor…

    1b) So You'll need All Java updates and to install Java 1.5
    1c) Get Firefox (well it seems it works in Safari but I made my first try with Firefox, so as you want)

    when you're done

    2) launch /Applications/Utilities/Netinfo Manager.app'
    Authenticate
    Enable Root user and if it's the first time then you'll be prompt to set a password do so and quit.

    3) Go to system preferences/account and make a new User
    name:zimbra
    shortname:zimbra
    Password:thepasswordyouwant

    As you're here enable fast user switching (very very handy… :-) for what's coming next…)

    4) launch DiskUtility and verify Permissions

    5) getting Java 1.5 to work:

    Launch Terminal and run :

    java -version

    it should still tell you build 1.4.xxxx something but not 1.5


    5.1) while still logged in as 'you'
    Launch /applications/Utilities/Java/J2SE 5.0/Java Preferences
    set your preferences to java 1.5
    attention you have to stuff to do
    I) Java Applet Runtime Settings
    choose J2SE 1.5
    II) Java Applet Runtime Parameters
    Drop J2SE 5.0 at the top

    5.2) fast user switch to log into your ROOT account
    and repeat 5.1)

    5.3) you'll do it for zimbra later…

    5.4)Launch Terminal and run
    java -version
    it should still tell you build 1.4.xxxx something & not 1.5… it's OK will take care of this now :

    5.5)
    I read this from (actually I've read the google cache)

    in short:
    as you're already in your root account you don't need to type su

    5.5.1) launch a new terminal window and type:
    cd /System/Librairy/Frameworks/JavaVM.framework/Version

    let's make sure again that 1.5 is here type:

    ls

    if you don't see 1.5.0 well you should reinstall JAVA J2SE 1.5

    5.5.2) type:
    rm CurrentJDK
    hit enter and type:
    ln -s 1.5.0 CurrentJDK
    hit enter and verify by typing:
    java -version

    it should still tell you build 1.5.0 something :)
    you're done with JAVA.

    5.5.3) launch DiskUtility and verify Permissions (again;)

    6) Now let's install zimbra
    still Logged in as root…

    launch the zcs.mpkg
    and install
    install should be ok and prompt you to run a command as ROOT in the terminal.
    Copy the line /opt/zimbra/libexec/zmsetup.pl
    Quit installer, go back in terminal, and type:
    /opt/zimbra/libexec/zmsetup.pl
    (N.B.: if you didn't print nor copy the command, you can copy it again by doing:
    ctrl-click zcs.mpkg / show packages contents,
    and navigate to /Ressources/English.lproj/Conclusion.txt
    you'll find the command here and be able to copy it.

    follow the instructions :
    you then should be prompt to set the admin password
    (I didn't wrote this so If my memory is good it should be, in front of the 2 stars ** {number 5 ??})
    set the admin password
    hit enter
    it should prompt you to hit 'a' to Save & install.

    7) you're almost done
    PS: if you go to /Users/ the zimbra home directory should be an alias pointing to /opt/zimbra/
    if not well you missed something (when installing zimbra)

    So we have:
    Java 1.5 running
    zimbra user created
    zimbra installed
    admin (zimbra admin) with a password (admin@yourdomain.com)


    8) launch DiskUtility and verify Permissions (again;)


    9) be sure zimbra user is owner and can rxw on /opt/ ; /opt/zimbra/*
    do a command-I to check it.

    10) Now you can fast User switch and log in as zimbra User (not an admin User by the way)
    10.1) Verify your home path is /opt/zimbra/
    10.2) Launch Terminal:
    and type:
    zmcontrol startup
    hit enter and when done type:
    zmcontrol status

    YOU SHOULD HAVE EVERYTHING RUNNING. !!!!
    at least I did.

    11) If you're succesfull,

    11.1) launch NetworkUtility.app
    and do a portscan on 127.0.0.1 or localhost or zimbra.yourdomain.com as you like
    you should see at least:
    80
    389
    7071
    and some others…

    get Firefox launched (or safari but begin with firefox…)

    type:
    https://zimbra.yourdomain.com:7071
    you'll be prompt because of the certificate is not trusted… just set it up so you'll accept it (always trust for example)

    You're at the logging page so log in:
    admin@zimbra.yourdomain.com
    yourpassword

    here we go :
    go in general settings and right now just uncheck ssl on POP & IMAP (we'll do a step by step and later recheck ssl settings) and check clear text passwords.
    I KNOW CLEARTEXT PASSWORDS SUCKS BUT THIS IS FOR TESTING PURPOSE !!!!
    WHEN EVRYTHING WILL WORK FINE THEN I'LL GO AND CHECK SSL AND UNCHECK CLEARTEXT PASSWORDS !!!!!

    12) go in some other OsX Client, launch mail and add a new account.
    12.1) fill in user, email, etc…
    I tryied with admin user
    so, New Imap account:
    emailaddres: admin@zimbra.yourdomain.com
    full name: admin@zimbra.yourdomain.com
    Incoming: 192.168.x.x (actually I've put the IP to bypass any DNS glitch, I'll set the name later)
    User name: admin@zimbra.yourdomain.com
    Password: yourpassword
    smtp : 192.168.x.x ( the same here : I've put the IP to bypass any DNS glitch, I'll set the name later)

    Collect your mail…

    TODOs:
    I will later test POP account in Mail.app
    then enable ssl stuff…
    this is not done yet.
    I also will try to make a startupitem…
    this is not done either.
    need to test calendars, etc…, and windows outlook too…
    lot of stuff…

    I'll post here when (if) done.

    Hope this will help OsX Guys…

    s3nz3x

    PS:excuse my bad english… french guy here.
    Last edited by s3nz3x; 11-23-2005 at 06:40 PM. Reason: excuse my bad english…

  2. #2
    Join Date
    Nov 2005
    Location
    proxima centaury
    Posts
    33
    Rep Power
    9

    Default MacOs X "10.4.3/java1.5/zimbra" install step-by-step: Update

    Well I just f…ked up the config…
    and it's been an hour I on it.
    Finally got it back :
    I opened the file /opt/zimbra/bin/setpermission.sh as root
    replaced the line:
    ROOTGROUP=root
    with:
    ROOTGROUP=wheel

    then placed a # from PLAT to fi (the first one)

    saved as bis and runned it.

    Now bak in business:

    Update TODOs:
    _I will later test POP account in Mail.app => DONE->works
    _then enable ssl stuff…=>Done->Works
    _Configure an account with Exchange->Works :)
    need to try on W$ machine.
    _I also will try to make a StartupItems…
    this is not done either.=> working on it:
    Well I did one StartupItems in Librairy/StartupItems/zimbralaunch/ but It doens't launch as wanted: (at least it launches)
    aka I've got message like do not run as root…
    So I need to make this run as zimbra User.
    some stuff like:
    /opt/zimbra/bin/zmcontrol start -u zimbra password zimbra_password
    (security isn't that good here - and still doesn't launch well)
    or:
    /opt/zimbra/bin/zmcontrol start -u zimbra -p
    but the ending -p
    would ask for the zimbra password and I don't want this.
    I also don't want to have a zimbra user (or any) with a blank password !

    **do I need to say I do know nothing about coding, and very, very, very little about Unixes(OsX/Darwin) command…
    So If someone knows how to finish the "script"… that would be nice…

    _Still need to test calendars, etc…,
    lot of stuff…

    I'll post here when (if) done.

    Hope this will help OsX Guys…

    s3nz3x
    Last edited by s3nz3x; 11-23-2005 at 11:18 PM.

  3. #3
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default password request

    Instead of setpermissions.sh, use zmfixperms.sh

    The password request means that your /etc/sudoers file is wrong - does it have zimbra entries?

  4. #4
    Join Date
    Nov 2005
    Location
    proxima centaury
    Posts
    33
    Rep Power
    9

    Default

    Quote Originally Posted by marcmac
    Instead of setpermissions.sh, use zmfixperms.sh
    didn't see this one… I'll use it in case something goes wrong.
    I just CarbonCopyCloned my working Install.
    The password request means that your /etc/sudoers file is wrong - does it have zimbra entries?
    hummm, don't know how to check that, but, zimbra isn't 'Admin' so I Think I don't have to go & see /etc/sudoers as, if I'm right, this only for 'Admin priviliged Users ?.

    To be sure that I understand somthing here, do you talk of sudoers for the 'StartupItems I wish to do ??
    I'm gonna try to put the zimbra User with admin privileges and see if the script launches fine this time… thwx

    Right now, My setup is just fine, And on a W2k-SP4 PC I runned OutlookExpress and got the mail.
    need to test with : Outlook (non Express) & exchange(mac X edition)

    Just wasn't able to suscribe nor submit calendars (from-to mac in iCal.app), I've search in the forums and found some info but still, didn't do the trick.
    I guess Https is the issue here…
    by the way, in /iCal.app/Contents/ressources/ there is a file called:
    urlPrefixes.plist.
    the file contains 22 prefixes like file, http, https, ftp, ftps, itms, etc…
    so in a way iCal should know https…? still seeking on calendars.
    I NEED to make this running fine.

    Marcmac thx, you're very reactive and usefull…

    s3nz3x

  5. #5
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default sudoers

    sudoers isn't about admin permissions - it allows a user to perform certain actions as the root user.

    Don't worry about making the zimbra user an admin account - just grab the sudoers file from your original install and put it on the new server.

    I don't know what a Carbon Copy Clone is - but wouldn't a standard install have been simpler?

  6. #6
    Join Date
    Nov 2005
    Location
    proxima centaury
    Posts
    33
    Rep Power
    9

    Default

    Quote Originally Posted by marcmac
    sudoers isn't about admin permissions - it allows a user to perform certain actions as the root user.

    Don't worry about making the zimbra user an admin account - just grab the sudoers file from your original install and put it on the new server.

    I don't know what a Carbon Copy Clone is - but wouldn't a standard install have been simpler?
    CarbonCopyCloner is a MacOsX Application that 'Clones' your disc on another one (disc, partition as you like) or as an Image disc (.dmg).
    That way, when you have an Os Install that fits you, you just clone it.
    In case everything goes wrong… shit happens… you just start your mac in Target mode (aka your computer 'becomes' a 'simple' firewire disc) and clone it back. This is the Must have applications for OsX Users.
    you'll find it here :
    www.bombich.com -> very very powerfull developper (works at Apple too).

    About zimbra:
    I'll put zimbra as an admin to see.
    About StartupItems:
    I've also found some script code and will try it later.

  7. #7
    Join Date
    Nov 2005
    Location
    proxima centaury
    Posts
    33
    Rep Power
    9

    Smile Working StartupItems (OsX) to autolaunch zimbra at boot:


  8. #8
    Join Date
    Nov 2005
    Posts
    3
    Rep Power
    9

    Default OS X things....

    I'm just installing it now, but a few things here...

    You shouldn't mess with Java that way. The way to make Tomcat run with Java 1.5 under OS X is to add "export JAVA_JVM_VERSION=1.5" to the start of the catalina.sh script.

    The way you've done it will break other things that require 1.4. See this for the correct way:
    Code:
    nigelkersten@jitter: ~ $ java -version
    java version "1.4.2_09"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-232)
    Java HotSpot(TM) Client VM (build 1.4.2-54, mixed mode)
    nigelkersten@jitter: ~ $ export JAVA_JVM_VERSION=1.5
    nigelkersten@jitter: ~ $ java -version
    java version "1.5.0_05"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-83)
    Java HotSpot(TM) Client VM (build 1.5.0_05-48, mixed mode, sharing)
    nigelkersten@jitter: ~ $
    Actually, it looks like you can just add that line to the .bashrc file in /opt/zimbra, after JAVA_HOME.

    as far as JAVA_HOME goes, I notice that zimbra sets it to /usr with the setup script... it should probably be /Library/Java/Home under OS X, but I'll see whether that works. It will for the java executable as /usr/bin contains a link to the Commands in /Library/Java/Home, but other things may not work so well.

    You don't need to faff around with the /Users directory in that way. Do something like this instead.

    Code:
    # nireport . /users uid name | sort -n
    This will print out all the uids in use. Look for a free one, in my case I chose 102. Then you can do:
    Code:
    #sudo echo "zimbra:*:102:102::0:0:zimbra:/opt/zimbra:/bin/bash" | niload passwd /
    #sudo echo "zimbra:*:102:" | niload group /
    #sudo passwd zimbra
    This will create the user and group entries for 'zimbra', and the last line lets you set the password for zimbra.

    If you want to use NetInfo manager, then just change the home property for the zimbra user.

    I'm not sure why you're verifying disk permissions? What will that do?

    The Java Preferences application is for setting client preferences for applets that run in the browser, not for setting the java version that apps like Tomcat will use.

  9. #9
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default java on the mac, etc

    Couple of things - we set the java home correctly now, will show up in the next release. Also, the user creation bug is fixed.

    We don't use catalina.sh to start tomcat - so modifying it won't help any.

  10. #10
    Join Date
    Nov 2005
    Posts
    3
    Rep Power
    9

    Default

    cool. thanks. Should you be setting JAVA_JVM_VERSION as well if 1.5 is required?

Similar Threads

  1. INSTALLATION PROBLEM ON Centos 4.3 x_86-64Bit.
    By jawad@cogilent.com in forum Installation
    Replies: 11
    Last Post: 07-09-2007, 08:09 AM
  2. Replies: 16
    Last Post: 11-29-2006, 09:36 AM
  3. Replies: 4
    Last Post: 01-18-2006, 10:58 AM
  4. OS X Server 10.4.3 install issues
    By jono in forum Installation
    Replies: 10
    Last Post: 11-22-2005, 08:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •