PDA

View Full Version : help installing gcaldaemon using terminal!!




yojitani
Apr 16, 2007, 10:45 PM
This looks like a pretty useful tool to me if only I could translate the installation instructions into a language I understand! Please help!

Here are the instructions:

Install GCALDaemon into the '/usr/local/sbin' directory

1) GCALDaemon supporting a Java Virtual Machine (VM) such as found in Sun's JDK or JRE, version 1.5 or higher. This can be obtained for free from java.sun.com. You can verify your existing Java version with the following console command:

java -version

java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

2) Download the latest Linux-compatible ZIP file from SourceForge.net into your '/downloads' directory (or into your accustomed download directory).

3) Unzip this archive under the '/usr/local/sbin' directory. If the '/usr/local/sbin' directory does not exists, create it manually with 'mkdir'. Then change the group ownership and set the rights.

cd /usr/local/sbin
sudo unzip /downloads/gcaldaemon-linux-1.x.zip

sudo chgrp -R admin /usr/local/sbin/GCALDaemon
sudo chmod -R g+w /usr/local/sbin/GCALDaemon
sudo chmod 755 /usr/local/sbin/GCALDaemon/bin/*.sh

4) Test your configuration with the 'standalone-start.sh' script.

cd /usr/local/sbin/GCALDaemon/bin
./standalone-start.sh

5) If you see something similar to the messages above, your installation has succeeded.

INFO | GCALDaemon V1.0 beta 8 starting...
INFO | Local time zone is Pacific Standard Time.
INFO | HTTP server starting on port 9090...
INFO | RSS/ATOM feed converter enabled.
INFO | HTTP server started successfully.
INFO | File listener disabled.
INFO | LDAP server disabled.
INFO | Gmail notifier disabled.
INFO | Sendmail service disabled.

From step 3, I'm lost. If I try the sudo command in terminal it tells me it can't find the file, even though I have changed 'downloads' to 'desktop' (I downloaded the file there) and changed the name of the file to match the one I downloaded. I have no idea about what the cd/usr/ etc etc means. How do I 'unzip under this directory'? If I don't have it, how do make it?? Help!!

Thanks!



robbieduncan
Apr 17, 2007, 02:46 AM
cd = change directory. On a standard Mac the directory (or folder in Mac terms) /usr/local/bin does not exist. It appears you are trying to install Linux software. Unless this has been recompiled for Mac OSX this will not work.

If you want to continue trying this you will need to create /usr/local/bin

You can do this via sudo mkdir -p /usr/local/bin

Note that sudo will only work if you try this as an Administrator.

Also you say you downloaded the file to your desktop. This is not /desktop or anything like it. You need to specify the correct full Unix path. This is case sensitive and would normally be something like /Users/<your user short name/Desktop (obviously put your user short name in the correct place).

synth3tik
Apr 17, 2007, 02:54 AM
*Looks at stack of UNIX books*


ahhhhhhh UNIX:mad:

There is a lot of helpful resources on the web dealing with UNIX commands and a lot of these sites deal with UNIX on a Mac.There are also a lot of books dealing with running UNIX on a Mac. This is my fav book here at work

http://ec2.images-amazon.com/images/P/0131863339.01._SCLZZZZZZZ_V24594685_AA240_.jpg

Poeben
Apr 17, 2007, 04:08 AM
Also you say you downloaded the file to your desktop. This is not /desktop or anything like it. You need to specify the correct full Unix path. This is case sensitive and would normally be something like /Users/<your user short name/Desktop (obviously put your user short name in the correct place).

Although you are correct, there is a simpler way:

~/Desktop

For example, typing:

cd ~

will change directory to your home folder (i.e. Users/you/ )

robbieduncan
Apr 17, 2007, 04:20 AM
Although you are correct, there is a simpler way:

~/Desktop

For example, typing:

cd ~

will change directory to your home folder (i.e. Users/you/ )

I'm well aware of that: I write Unix based server software for a living :D I was trying to keep things as simple and straight forward for the OP as possible. In my experience the whole ~ can be a bit :eek: for people the first time they try and use a Unix shell :)

janey
Apr 17, 2007, 06:20 AM
is java 1.6 even out of beta yet? (&*^@#$ing apple)

edit: err..nevermind. thought it required >=1.6.

yojitani
Apr 17, 2007, 09:06 AM
Thanks all for your help so far. You are talking to a complete unix dummy, I appreciate the simplicity you've explained things thus far. Here's where I'm stuck though:
sudo unzip /downloads/gcaldaemon-linux-1.x.zip

do I need to change this command? I think robbie is telling me to change this to Users/myshortusername/Desktop/gcaldaemon-linux-1.x.zip

But this doesn't work.

Thanks!

robbieduncan
Apr 17, 2007, 09:15 AM
Saying "it doesn't work" is absolutely no help to anyone. To work out what you are doing wrong we need the exact output of the command. And I ask again: is this Linux software? Because if it is [b]it won't work[/url]. If you have an OSX version then it should. Also have you created the directory via the cd command I suggested above?

yojitani
Apr 17, 2007, 09:28 AM
Saying "it doesn't work" is absolutely no help to anyone. To work out what you are doing wrong we need the exact output of the command. And I ask again: is this Linux software? Because if it is [b]it won't work[/url]. If you have an OSX version then it should. Also have you created the directory via the cd command I suggested above?

ok. good question. I am following directions from here: http://gcaldaemon.sourceforge.net/usage12.html

here it says to download the latest linux compatible module.:confused: so i have no idea. i found this through macosxhints so I'm guessing that it works?

So, first I do: mkdir -p /usr/local/bin
this seems to work fine.

Then I do:

sudo unzip /Users/<myusername>/Desktop/gcaldaemon-linux-1.0-beta8.zip

now, this runs! OK. progress.
However, when I go to the next command:
sudo chgrp -R admin /usr/local/sbin/GCALDaemon

I get this message: No such file or directory

So I guess this means that I did not unzip in the right place? if so, how do I unzip 'under' usr/local/bin which I guess I created in the first step?

Sorry if this is confusing or just plain stupid on my part... this is most I can tell you though.

YT

robbieduncan
Apr 17, 2007, 10:28 AM
You need to use cd to change d directory as stated in the step before unzip.

You can use the pwd command to confirm your current directory and ls to check the files have been unzipped correctly.

yojitani
Apr 17, 2007, 12:48 PM
You need to use cd to change d directory as stated in the step before unzip.

You can use the pwd command to confirm your current directory and ls to check the files have been unzipped correctly.


I'm sorry, this may be perfectly clear to you, but I don't understand what I'm supposed to do.

If I try:
cd /usr/local/sbin

I get this message:
-bash: cd: /usr/local/sbin: No such file or directory

I really appreciate the help. I know it must be very frustrating.

YT

robbieduncan
Apr 17, 2007, 01:25 PM
The error is telling you what's wrong: that directory does not exist. So you have not created it via a mkdir (make directory command).

Can you please copy and paste the exact output of this (each on one line with return after it)

sudo mkdir /usr/bin/local
ls -ld /usr/bin/local

yojitani
Apr 17, 2007, 01:54 PM
The error is telling you what's wrong: that directory does not exist. So you have not created it via a mkdir (make directory command).

Can you please copy and paste the exact output of this (each on one line with return after it)

sudo mkdir /usr/bin/local
ls -ld /usr/bin/local

mkdir: /usr/bin/local: File exists
mkdir: ls: File exists
mkdir: -ld: File exists
mkdir: /usr/bin/local: File exists

robbieduncan
Apr 17, 2007, 02:03 PM
Sorry: my previous instructions were open to misinterpretation. I meant each line on a seperate line in the Terminal and then type return. Lets try again:

Type: sudo mkdir -p /usr/bin/local <return>
Copy & paste any output (might be none)
Type: ls -ld /usr/bin/local <return>
Copy & paste output
Type: cd /usr/bin/local <return>
Copy & paste any output (might be none)
Type: pwd
Copy & paste output

If the output to pwd is "/usr/bin/local" execute the unzip command and copy & paste the output

Sorry if this sounds like I'm speaking (or typing) down to you, but everything has to be exact in the Terminal...


EEEEK! Stop! All of those /usr/bin/local bits about should, of course, be /usr/local/sbin

yojitani
Apr 17, 2007, 02:11 PM
Sorry: my previous instructions were open to misinterpretation. I meant each line on a seperate line in the Terminal and then type return. Lets try again:

Type: sudo mkdir -p /usr/bin/local <return>
Password:
(after I enter my password, it goes back to the terminal promt)
Type: ls -ld /usr/bin/local <return>
drwxr-xr-x 2 root wheel 68 Apr 17 13:41 /usr/bin/local
Type: cd /usr/bin/local <return>
nothing (returns to prompt)
Type: pwd
/usr/bin/local

If the output to pwd is "/usr/bin/local" execute the unzip command and copy & paste the output


Sorry if this sounds like I'm speaking (or typing) down to you, but everything has to be exact in the Terminal...

no, it doesn't seem like you're talking down at all. sorry about the long output. If it's unnecessary, I can clip it (it doesn't seem to be necessary).

Thanks robbie!

YT

robbieduncan
Apr 17, 2007, 02:14 PM
OK, that seems to have worked, but as noted in my edit above I ballsed it up. Please do it again with the correct path. You should be able to delete to copy you have just extracted to the wrong location if you want...

yojitani
Apr 17, 2007, 02:31 PM
Sorry: my previous instructions were open to misinterpretation. I meant each line on a seperate line in the Terminal and then type return. Lets try again:

Type: sudo mkdir -p/usr/local/sbin <return>
none (back to promt)
Type: ls -ld /usr/local/sbin <return>
drwxr-xr-x 2 root wheel 68 Apr 17 14:19 /usr/local/sbin
Type: cd /usr/local/sbin<return>
none (back to prompt)
Type: pwd
/usr/local/sbin

If the output to pwd is "/usr/bin/local" execute the unzip command and copy & paste the output:
-bash: /usr/local/sbin: is a directory

Sorry if this sounds like I'm speaking (or typing) down to you, but everything has to be exact in the Terminal...


EEEEK! Stop! All of those /usr/bin/local bits about should, of course, be /usr/local/sbin

damn. this far seems to work. I but then with the next step, I get: chgrp: /usr/local/sbin/GCALDaemon: No such file or directory:confused:

Robbie, next time in london, I'll buy you a couple of beers!

robbieduncan
Apr 17, 2007, 02:44 PM
OK. So you've created the correct directory (sorry!) used cd to change into and unzipped there. Now we are trying to change the group ownership of that file (chgrp). But the system is saying the file does not exist.

We can check in the file via

ls -l <filename> so in this case ls -l /usr/local/sbin/GCALDaemon

We could also list the contents of the whole directory as a sanity check

ls -l /usr/local/sbin

What do those return?

yojitani
Apr 17, 2007, 02:49 PM
OK. So you've created the correct directory (sorry!) used cd to change into and unzipped there. Now we are trying to change the group ownership of that file (chgrp). But the system is saying the file does not exist.

What do those return?

We can check in the file via

ls -l <filename> so in this case ls -l /usr/local/sbin/GCALDaemon

response:
ls: /usr/local/sbin/GCALDaemon: No such file or directory

We could also list the contents of the whole directory as a sanity check

ls -l /usr/local/sbin

no response. back to prompt

Should I start again with creating the directory?

robbieduncan
Apr 17, 2007, 03:12 PM
Should I start again with creating the directory?

Yes. This is my fault: I had the wrong directory names above. Sorry!

sudo mkdir -p /usr/local/sbin
cd /usr/local/sbin
unzip
chgrp
chmod
chmod

yojitani
Apr 17, 2007, 03:51 PM
Yes. This is my fault: I had the wrong directory names above. Sorry!

sudo mkdir -p /usr/local/sbin
cd /usr/local/sbin
unzip
chgrp
chmod
chmod

Thanks, Robbie. This works. I'm going to have to pack in the rest of the installation for today... man, how grateful am I for GUI!?

YT

robbieduncan
Apr 17, 2007, 04:02 PM
Thanks, Robbie. This works. I'm going to have to pack in the rest of the installation for today... man, how grateful am I for GUI!?

YT

There's more :eek:

Seriously though: there is a lot of power in the command line once you learn a few basics :)

LaMancha
Apr 19, 2007, 07:25 AM
Great to see a detailed instruction on GCALDaemon. I have installed GCALDaemon successfully. As I can see the correct response after start the 'standalone-start.sh' script.

But I have difficulty for Open the 'gcal-daemon.cfg' configuration file.

cd /usr/local/sbin/GCALDaemon/conf
open -a subethaedit gcal-daemon.cfg
error shown below:-


pcd624132:/RL/local/sbin/GCALDaemon/conf RL$ open -a subethaedit gcal-daemon.cfg2007-04-19 20:12:01.190 open[369] Couldn't open file: /RL/local/sbin/GCALDaemon/conf/gcal-daemon.cfg
pcd624132:/RL/local/sbin/GCALDaemon/conf RL$

can anyone give me a help.

Thanks a lot.

robbieduncan
Apr 19, 2007, 06:05 PM
Well the obvious question is: do you have subethaedit installed? The -a switch is forcing that as the editor, if it's not installed that won't work. You should be able to TextMate (it it's installed) or TextEdit instead...

LaMancha
Apr 20, 2007, 10:32 AM
Well the obvious question is: do you have subethaedit installed? The -a switch is forcing that as the editor, if it's not installed that won't work. You should be able to TextMate (it it's installed) or TextEdit instead...

Thank to Robbie. So the Linux idiot get the GCALDaemon work.

sjwalsh84
Apr 20, 2007, 06:15 PM
stephens-macbook:/usr/local/bin stephen$ chgrp -R groupname /usr/local/bin/GCALDaemon

chgrp: groupname: Invalid argument

robbieduncan
Apr 20, 2007, 06:24 PM
groupname is a placeholder. It should be replaced with the actual correct group name. I don't know what group it should be: that's the job of the documentation...

sjwalsh84
Apr 25, 2007, 08:37 AM
So that should be in the doc somewhere? Or do I need to contact them to figure that out?

robbieduncan
Apr 25, 2007, 09:05 AM
If you look at this documentation (http://gcaldaemon.sourceforge.net/usage12.html) it's clear that the group name should be admin. This was the first Google result for "GCALDaemon install OSX"

sjwalsh84
Apr 25, 2007, 11:20 AM
I hope it runs everytime, but I got installed. I was going off the doc in the zip instead of the doc on the website.

Thank you very much for your help. Now to get it configured...