Women in Technology

Hear us Roar



Article:
  ColdFusion MX on Mac OS X, Part 3
Subject:   trouble with Terminal(?)...continued
Date:   2002-10-01 06:32:04
From:   edgedesign
Response to: trouble with Terminal(?)...continued

This is outlined very clearly...thanks.


My problem seems to be that I cannot gain access to the root (line06). I've tried the cfmx user password, my main user password, any other password I have ever used....nothing. Is there a work-around if the password does not take?

Full Threads Oldest First

Showing messages 1 through 9 of 9.

  • trouble with Terminal(?)...continued
    2002-10-01 06:36:50  edgedesign [View]

    ...since I could not gain access to the root, I went forward with instructions and decompressed the files into 'user/cfmx/opt/'

    Can I move this foder to the root? Does it stay here? Do I need to gain access to the root via Terminal and do over?
    • root accessed...trouble launching script
      2002-10-01 10:21:18  edgedesign [View]

      After some research via AppleCare help in Sherlock, I found that root access had not been enabled nor assigned any password (it's disabled by default). I used the NetInfo Manager to enable root access/password and then expanded the 'cfmxinst.bin' file from the root as outlined.

      However, I'm still stuck getting the 'coldfusionosx' script to launch. I pasted the code into BBEdit then saved with Unix line feeds into the 'bin' directory. I keep getting a file not found error:

      [Macintosh:/] cfmx% chmod 755 /opt/coldfusionmx/bin/coldfusionosx
      chmod: /opt/coldfusionmx/bin/coldfusionosx: No such file or directory

      I've triple-checked the directory path, pasted code, file name, etc. Could it have to do with some other file setting? File Creator or Save State?
      • root accessed...trouble launching script
        2002-10-02 03:02:55  dicklacara [View]

        OK, let's try this.

        From a terminal window enter:

        cd /opt/coldfusionmx/bin

        Then enter ls -l

        If you have saved the coldfusionosx file properly, you should see something like:



        *
        *
        -rw-r--r-- 1 cfmx wheel 2284 Oct 2 02:52 coldfusionosx
        *
        *



        The permissions ( -rw-r--r-- ) is what we're about to change.

        Now enter chmod 755 coldfusionosx

        Then enter ls -l

        If you have successfully changed the permissions, you should see something like:



        *
        *
        -rwxr-xr-x 1 cfmx wheel 2284 Oct 2 02:52 coldfusionosx
        *
        *



        Now you should be able to continue with the procedure.

        Dick
        • root accessed...trouble launching script
          2002-10-02 05:21:56  edgedesign [View]

          I'm getting this after entering 'ls -1'

          [Macintosh:/opt/coldfusionmx/bin] cfmx% ls -1
          cfencode
          cfmx-init.sh
          cfstat.sh
          cfusion
          coldfusion

          The 'coldfusionosx' file is definately in the bin directory. I tried other save options from BBEdit (even TextEdit) to see if it made any difference - always UNIX line feeds, but as 'BBEdit, SimpleText, generic text file, MPW Shell, etc. I double-checked the script.
          • root accessed...trouble launching script
            2002-10-02 09:16:13  dicklacara [View]

            The coldfusionosx file is obviously not in the /opt/coldfusionmx/bin directory -- the ls -l shows the contents of that directory and coldfusionosx isn't among the contents you show.

            Double check that you are saving the BBEdit file to the /opt/coldfusionmx/bin directory -- that is on your Macintosh HD in the folder /opt/coldfusionmx/bin.

            Also, make sure the file name does not start with a period.

            Dick
            • root accessed...trouble launching script
              2002-10-02 11:01:18  edgedesign [View]

              Somewhere along the way CF was installed into the CFMX user directory which was causing my confusion. This is the one I could see in the Finder and the one where I was saving the 'coldfusionosx' file.

              I understand now that we're looking for CF in the root directory and this is where I should save the 'coldfusionosx' file. It seems that CF did install into the root, but is invisible in the Finder. I can see it 's there with Terminal, but I cannot save to the bin from my text editor. I deleted CF from the CFMX user directory and went back a few steps and expanded the file again using 'gnutar'. I still cannot view the directory from the Finder, but it is there. I noticed this in Terminal after the long list of expanded files:

              /usr/bin/gnutar: Error exit delayed from previous errors



              • root accessed...trouble launching script
                2002-10-02 13:14:08  dicklacara [View]

                Ahh, you must be using Jaguar.

                This was reported in a prior post & a resolution was also posted.'

                For some reason, Jaguar wants /opt to be invisible.

                Here's how to make it visible (from the previous post).

                Upgrading to Jaguar causes the /opt folder to be invisible to the Finder -- It is still intact, you just can't see it from the desktop.

                To make it visible again, do the following:

                Open a Terminal window.

                Assume the root ID by entering:

                su root

                Enter your (Mac OS X) Administrative password when asked

                Change to the root file level:

                cd /

                Edit the .hidden file with pico by entering (note the dot before the file name):

                pico .hidden

                with the arrows, navigate down and delete the line containing:

                opt

                save the updated file by entering:

                Control-o

                followed by:

                Return

                Exit pico by entering:

                Control-x

                Reassume the cfmx user ID by entering:

                su cfmx

                From the Apple menu select Force Quit... (or press Command+Option+Escape).

                Select the Finder and click Relaunch

                When the finder is relaunched, you should see the opt folder on Macintosh HD, just as it was before installing Jaguar.

                Dick
                • root accessed...trouble launching script
                  2002-10-03 04:15:22  edgedesign [View]

                  FINALLY!...Everything worked perfectly.

                  The visible CF files that I somehow installed into the CFMX directory really threw me off for a while.

                  Lessons learned:

                  1) 'root' control/password may need to be enabled by some people before expanding the 'cfmxinst.bin' file (installing CFMX into OS X). I found instructions via Sherlock >> Apple Care.

                  2) Jaguar users will need to make the 'opt' file visible in order to save the 'coldfusionosx' script file to the 'bin' directory.

                  3) Terminal does not display any characters (bullets, asterics, etc.) as you type in passwords.

                  Dick, thanks so much for sticking with me and all of your help.
                  • root accessed...trouble launching script
                    2002-10-03 04:30:55  dicklacara [View]

                    Welcome to the growing number of Mac CFMX developers.

                    We both learned a bit more that we originally planned!

                    Enjoy!

                    Dick