Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have downloaded DavMail and its currently living and running from my /home/user/Downloads/DavMail

in this folder is

davmail.jar
davmail.log
davmail.sh    
Lib/

I run the davmail.sh file which looks like this

BASE=`dirname $0`
for i in $BASE/lib/*; do export CLASSPATH=$CLASSPATH:$i; done
java -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1

I need to put davmail in a better location than downloads but am unsure where to put it, Im guessing if I seperate some of the files/folders such as lib ill have to modify the davmail.sh file.

wheres the best location to keep this or should it remain in my home folder, I was going to put this in

/usr/local/bin 
/usr/local/lib

But the jar count as a binary? the .sh certainly wouldnt.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

For large packages like that you can put it in /opt/DavMail. Then put the startup script either in /opt/bin or /usr/local/bin.

You have have to adjust it to run the rest from /opt/DavMail.

share|improve this answer
    
thanks ill give it a go now –  Shutupsquare Jul 22 '11 at 8:29
    
worked a treat thanks –  Shutupsquare Jul 22 '11 at 8:43
add comment

First of all, whenever possible, use the package manager of your linux distribution. Otherwise you'll loose track of installed programs sooner or later and have garbaged system.

Different distros have different default paths where they install software (via their package managers). If you are sure you cannot obtain the software in your system's native way, then at least stay away from the paths where your distro installs standard software.

Usually, /opt/ or /usr/local/* can be safe - but you'd better check whether you have programs in there. Another option can be ~/bin/ or, as a last resort, an arbitrary special directory like /myprogs/.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.