Andr3as / Codiad-CodeGit

Git integration for Codiad
MIT License
26 stars 15 forks source link

FreeBSD installation #10

Closed jasin closed 10 years ago

jasin commented 10 years ago

I run a FreeBSD box. Needless to say I ran into a few issues getting this to work because some of the executable files were hard coded locations.

Things I had to do to make this work.

add this line to config.pgp in CodeGit, fixes 'git command not found' error. putenv("PATH=" .$_ENV["PATH"]. ':/usr/local/bin');

change the shell in shell.sh to /bin/sh. The standard location for bash in FreeBSD is /usr/local/bin/bash change the location for expect from /usr/bin/expect to /usr/local/bin/expect

The other major hurdle in FreeBSD is the apache user 'www' has no home directory or no login shell. This needed to be changed to /bin/sh login shell (so 'www' user can execute shell.sh ) and a home directory of your choice so you can generate a rsa key to use with github if you want to clone/push/pull. Of course permissions need to be appropriate for 'www' user.

Some of these fixes could easily be fixed in the code. While the other information would be useful in an installation guide for FreeBSD or any other OS that doesn't follow debian guidelines. Hope this helps someone. Sorry if this was not the correct place to post this.

Andr3as commented 10 years ago

Thank you very much for your response. Please create a page in the wiki.

jasin commented 10 years ago

Done!