Created by OpenACS community, last modified by Gustaf Neumann 04 Sep 2014, at 07:33 PM
OpenACS and .LRN are available via FreeBSD ports. See en:openacs-system-install-freebsd-ports.
The following notes are useful if you decide to follow the OpenACS manual installation process using FreeBSD. These notes include points where a manual FreeBSD install differes from the slow, manual en:openacs-system-install.
The following information is pulled from: https://openacs.org/forums/message-view?message_id=312823 and https://openacs.org/forums/message-view?message_id=136910 and https://openacs.org/forums/message-view?message_id=312823
The OpenACS Reference Platform uses shell scripts written for bash, which is the standard Linux shell. If you are using a different shell, you will need to substitute your shell's conventions for setting environment variables when appropriate, and install bash to work with the scripts. Substitute fetch when the instructions suggest you use wget to download software.
Note that on most linux distributions, GNU Make is simply named make and there is no gmake, whereas on BSD distributions, make and gmake are different --use gmake.
Change the period separating user.group in chown commands to use a colon ":" instead. For example,
chown -R $OPENACS_SERVICE_NAME.$OPENACS_SERVICE_NAME $OPENACS_SERVICE_NAME
becomes:
chown -R $OPENACS_SERVICE_NAME:$OPENACS_SERVICE_NAME $OPENACS_SERVICE_NAME
Should you decide to install OpenACS from source using general en:openacs-system-install instructions, refer to these notes for changes:
Installing tdom
FreeBSD can use the standard tdom from ports when installing manually, without going the extra step of installing tdom within the aolserver src tree.
Creating postgres user
To set defaults for new users or special service users you may create, edit the file /etc/share/skel/dot.profile instead of /etc/profile
To create the user, we need to add more parameters to match what is expected from creating a user in linux.
[root src]# mkdir -p /usr/local/pgsql
[root src]# pw groupadd -n web
[root src]# pw useradd -n postgres -g web -d /usr/local/pgsql -s /bin/bash
[root src]# chown -R postgres:web /usr/local/pgsql /usr/local/src/postgresql-7.4.7
[root src]# chmod -R 750 /usr/local/pgsql
[root src]#
mkdir -p /usr/local/pgsql
pw groupadd -n web
pw useradd -n postgres -g web -d /usr/local/pgsql -s /bin/bash
chown -R postgres:web /usr/local/pgsql /usr/local/src/postgresql-7.4.7
chmod -R 750 /usr/local/pgsql
Set PostgreSQL to start on boot
[root ~]# cp /tmp/openacs-5.2.0d1/packages/acs-core-docs/www/files/postgresql.txt /usr/local/etc/rc.d/postgresql.sh
[root ~]# chown root:wheel /usr/local/etc/rc.d/postgresql.sh
[root ~]# chmod 755 /usr/local/etc/rc.d/postgresql.sh
[root ~]#
cp /tmp/openacs-5.2.0d1/packages/acs-core-docs/www/files/postgresql.txt /usr/local/etc/rc.d/postgresql.sh
chown root:wheel /usr/local/etc/rc.d/postgresql.sh
chmod 755 /usr/local/etc/rc.d/postgresql.sh
Test the script
[root ~]# /usr/local/etc/rc.d/postgresql.sh stop
Stopping PostgreSQL: ok
[root ~]#
If PostgreSQL successfully stopped, then turn it back on because we'll use it later.
[root root]# /usr/local/etc/rc.d/postgresql.sh start
Starting PostgreSQL: ok
[root root]#
/usr/local/etc/rc.d/postgresql.sh start
PostgreSQL performance tuning
See man syctl, man 5 sysctl and man 5 loader.conf.
Installing Libthreads 2.6.5
cd /usr/local/src/aolserver/
fetch http://mesh.dl.sourceforge.net/sourceforge/tcl/thread2.6.5.tar.gz
tar xzpf thread2.6.5.tar.gz
cd thread2.6.5/unix
less ../README
../configure --help
../configure --enable-threads --prefix=/usr/local/aolserver --exec-prefix=/usr/local/aolserver --with-aolserver=/usr/local/aolserver --with-tcl=/usr/local/lib/tcl8.4-threads
gmake
gmake install
Creating users
We need to add more parameters to have user environments match the linux ones expected by the en:openacs-reference-platform.
Create users this way:
[root root]# mkdir -p /home/$OPENACS_SERVICE_NAME
[root root]# pw useradd -n $OPENACS_SERVICE_NAME -g web -d /home/$OPENACS_SERVICE_NAME -s /bin/bash
[root root]#
mkdir -p /home/$OPENACS_SERVICE_NAME
pw useradd -n $OPENACS_SERVICE_NAME -g web -d /home/$OPENACS_SERVICE_NAME -s /bin/bash
Created by Gustaf Neumann, last modified by Unregistered Visitor 03 Nov 2013, at 05:17 PM
@event@
Abstract: @_text@
@detail_link@
Created by Gustaf Neumann, last modified by Unregistered Visitor 03 Nov 2013, at 05:17 PM
@event@
Abstract: @_text@
@detail_link@
Created by , last modified by Unregistered Visitor 03 Nov 2013, at 05:17 PM
@image_url@ @_text@
@detail_link@
Created by Gustaf Neumann, last modified by Gustaf Neumann 16 Sep 2013, at 09:33 PM
Package Specification Summary for Package: dotlrn-messages
| Summary: |
|
| Description: |
|
| Maturity: |
New Submission or Maturity Unknown |
| This package depends on: |
dotlrn messages-portlet |
| Packages that depend on dotlrn-messages: |
None |
| Package parameters: |
None
|
Bug Tracker Summary for Package: dotlrn-messages
There is no package with the name "dotlrn-messages" known to bug-tracker.
Code Metrics Summary for Package: dotlrn-messages
| # Tcl Procs |
0 |
| # Tcl Lines |
0 |
| # Tcl Blank Lines |
1 |
| # Tcl Comment Lines |
0 |
| # Automated Tests |
0 |
| # Stored Procedures |
PG: 0 ORA: 0 |
| # SQL Lines |
PG: 0 (blank 1 comments 0)
ORA: 0 (blank 1 comments 0) |
| # ADP pages |
0 |
| # ADP lines |
0 |
| # Include pages (dotlrn-messages/lib/) |
0 |
| # Documentation pages |
0
|
| # Documentation lines |
0 |
| Browse Source |
Not installed |
| Github Repository: |
https://github.com/openacs/dotlrn-messages/tree/oacs-5-10
|
Created by Gustaf Neumann, last modified by Gustaf Neumann 16 Sep 2013, at 09:28 PM
Package Specification Summary for Package: theme-zen
| Summary: |
Zen Theme for DotLRN |
| Description: |
|
| Documentation: |
Package Documentation |
| Maturity: |
Mature |
| This package depends on: |
dotlrn |
| Packages that depend on theme-zen: |
None |
| Package parameters: |
- AdditionalNavbarTabs
- list of URL Names pairs which will make it into additional navbar tabs (default /dotlrn/ #dotlrn.Home# #dotlrn.Home_Accesskey# /dotlrn/courses #dotlrn.Courses# #dotlrn.Courses_Accesskey# /dotlrn/communities #dotlrn.Communities# #dotlrn.Communities_Accesskey# /dotlrn/control-panel #dotlrn.control_panel# #dotlrn.control_panel_accesskey#, type string, scope instance)
- CssUrl
- default css_url (default /resources/theme-zen/css/color/blue.css, type string, scope instance)
- GenericCommunityTab
- Use a generic name for the community tab (default 0, type string, scope instance)
- communityCssUrl
- default community css_url (default /resources/theme-zen/css/color/purple.css, type string, scope instance)
- courseCssUrl
- default class css_url (default /resources/theme-zen/css/color/green.css, type string, scope instance)
- dotLRNToZenMap
- list of old layout/new layout names used to update and existing .LRN site (default #new-portal.simple_1column_layout_name# #theme-zen.Zen_1_column# #new-portal.simple_2column_layout_name# #theme-zen.Zen_2_column# #new-portal.simple_3column_layout_name# #theme-zen.Zen_3_column#, type string, scope instance)
- logoImageAttributes
- List of name value pairs for HTML attributes for the image tag of the logo (default src /resources/theme-zen/images/global/dotLRN-logo.gif alt .LRN width 82 height 45, type string, scope instance)
|
Bug Tracker Summary for Package: theme-zen
There is no package with the name "theme-zen" known to bug-tracker.
Code Metrics Summary for Package: theme-zen
| # Tcl Procs |
5 |
| # Tcl Lines |
543 |
| # Tcl Blank Lines |
77 |
| # Tcl Comment Lines |
71 |
| # Automated Tests |
0 |
| # Stored Procedures |
PG: 0 ORA: 0 |
| # SQL Lines |
PG: 0 (blank 1 comments 0)
ORA: 0 (blank 1 comments 0) |
| # ADP pages |
3 |
| # ADP lines |
40 |
| # Include pages (theme-zen/lib/) |
5 |
| # Documentation pages |
12
(Package Documentation)
|
| # Documentation lines |
501 |
| Browse Source |
Not installed |
| Github Repository: |
https://github.com/openacs/theme-zen/tree/oacs-5-10
|
Created by Gustaf Neumann, last modified by Gustaf Neumann 16 Sep 2013, at 09:18 PM
Package Specification Summary for Package: dotlrn-mmplayer
| Summary: |
|
| Description: |
|
| Maturity: |
New Submission or Maturity Unknown |
| This package depends on: |
dotlrn mmplayer-portlet |
| Packages that depend on dotlrn-mmplayer: |
None |
| Package parameters: |
None
|
Bug Tracker Summary for Package: dotlrn-mmplayer
There is no package with the name "dotlrn-mmplayer" known to bug-tracker.
Code Metrics Summary for Package: dotlrn-mmplayer
| # Tcl Procs |
0 |
| # Tcl Lines |
0 |
| # Tcl Blank Lines |
1 |
| # Tcl Comment Lines |
0 |
| # Automated Tests |
0 |
| # Stored Procedures |
PG: 0 ORA: 0 |
| # SQL Lines |
PG: 0 (blank 1 comments 0)
ORA: 0 (blank 1 comments 0) |
| # ADP pages |
0 |
| # ADP lines |
0 |
| # Include pages (dotlrn-mmplayer/lib/) |
0 |
| # Documentation pages |
0
|
| # Documentation lines |
0 |
| Browse Source |
Not installed |
| Github Repository: |
https://github.com/openacs/dotlrn-mmplayer/tree/oacs-5-10
|
Created by Gustaf Neumann, last modified by Gustaf Neumann 16 Sep 2013, at 09:06 PM
Package Specification Summary for Package: dbm
| Summary: |
This package is a port of PhpPgAdmin and PgAdmin for OpenACS |
| Description: |
Copyright (C) 2006 Michael Riecker, Nima Mazloumi
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
A copy of the GNU General Public License
can be found under http://www.gnu.org/licenses/gpl.txt; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
| Maturity: |
New Submission or Maturity Unknown |
| This package depends on: |
None |
| Packages that depend on dbm: |
None |
| Package parameters: |
- EncodingTypes
- All valid PostgreSQL encoding types (default ALT EUC_CN EUC_JP EUC_KR EUC_TW ISO_8859_5 ISO_8859_6 ISO_8859_7 ISO_8859_8 JOHAB KOI8 LATIN1 LATIN2 LATIN3 LATIN4 LATIN5 LATIN6 LATIN7 LATIN8 LATIN9 LATIN10 SQL_ASCII TCVN UNICODE WIN WIN874 WIN1256, type string, scope instance)
- FunctionArguments
- List of Function Arguments and their replacements (default {integer int4} {"character varying" varchar} {bigint int8} {bigserial serial8} {"bit varying" varbit} {boolean bool} {character char} {"double precision" float8} {smallint int2} {"time with time zone" timetz} {"timestamp with time zone" timestamptz}, type string, scope instance)
- GraphCmd
- The default command to use for graph display of relations. Enter the full path of the command here. GraphViz provides several commands like dot,fdp,... (default /usr/local/bin/dot, type string, scope instance)
- GraphVizP
- Is graphviz installed? On a fresh installation the value is first empty. The system checks for the existance of the command defined under GraphCmd. If it succeeds the value is set to 1 (true) else to 0 (false). (default , type string, scope instance)
- HighlightingCommands
- List of space separated commands that should be highlighted. (default ACTION ALIAS ALL ALTER AS AUTHORIZATION BEGIN CACHE CASCADE COMMENT CREATE DECLARE DELETE DROP END EXIT FOR FOREIGN FUNCTION GRANT IF INCREMENT INTO IS JOIN KEY LANGUAGE LEFT LOOP MAXVALUE MINVALUE NEW NO NOT NULL OIDS OLD ON OPTION OR OWNER PERFORM PRIMARY REFERENCES REPLACE RETURN RETURNS RIGHT SCHEMA SEQUENCE SELECT SET START TABLE TO TRIGGER UNIQUE UPDATE VALUES VIEW VOLATILE WHEN WHERE WHILE WITH, type string, scope instance)
- PageSize
- Define the pagesize for Pagination (default 20, type number, scope instance)
- ProgrammingLanguages
- ProgrammingLanguages (default sql c internal, type string, scope instance)
- Properties1
- Properties1 (default VOLATILE IMMUTABLE STABLE, type string, scope instance)
- Properties2
- Properties2 (default CALLED ON NULL INPUT,RETURNS NULL ON NULL INPUT, type string, scope instance)
- Properties3
- Properties3 (default SECURITY INVOKER,SECURITY DEFINER, type string, scope instance)
- Returns1
- Returns1 (default SETOF, type string, scope instance)
- Returns3
- Returns3 (default [ ], type string, scope instance)
- RuleEvent
- RuleEvent (default SELECT INSERT UPDATE DELETE, type string, scope instance)
- deferrable
- Opts for foreign keys (default NOT DEFERRABLE;DEFERRABLE, type string, scope instance)
- event
- Parameter for triggers (default INSERT,UPDATE,DELETE,INSERT OR UPDATE,INSERT OR DELETE,DELETE OR UPDATE,INSERT OR DELETE OR UPDATE, type string, scope instance)
- initially
- Opts for foreign keys (default INITIALLY IMMEDIATE;INITIALLY DEFERRED, type string, scope instance)
- match
- Opts for foreign keys (default MATCH SIMPLE;MATCH FULL, type string, scope instance)
- methods
- All valid methods for indexes (default BTREE RTREE GIST HASH, type string, scope instance)
- update_delete
- Opts for foreign keys (default NO ACTION;RESTRICT;CASCADE;SET NULL;SET DEFAULT, type string, scope instance)
- when
- Parameter for triggers (default BEFORE AFTER, type string, scope instance)
|
Bug Tracker Summary for Package: dbm
There is no package with the name "dbm" known to bug-tracker.
Code Metrics Summary for Package: dbm
| # Tcl Procs |
0 |
| # Tcl Lines |
0 |
| # Tcl Blank Lines |
1 |
| # Tcl Comment Lines |
0 |
| # Automated Tests |
0 |
| # Stored Procedures |
PG: 0 ORA: 0 |
| # SQL Lines |
PG: 0 (blank 1 comments 0)
ORA: 0 (blank 1 comments 0) |
| # ADP pages |
0 |
| # ADP lines |
0 |
| # Include pages (dbm/lib/) |
0 |
| # Documentation pages |
0
|
| # Documentation lines |
0 |
| Browse Source |
Not installed |
| Github Repository: |
https://github.com/openacs/dbm/tree/oacs-5-10
|
Created by Gustaf Neumann, last modified by Gustaf Neumann 16 Sep 2013, at 09:00 PM
Package Specification Summary for Package: latest-portlet
| Summary: |
Provides a portlet to the contents in the latest package. |
| Description: |
This is a portlet to the latest package contents. |
| Maturity: |
New Submission or Maturity Unknown |
| This package depends on: |
latest |
| Packages that depend on latest-portlet: |
dotlrn-latest |
| Package parameters: |
- latest_portlet_region
- - (default 1, type number, scope instance)
|
Bug Tracker Summary for Package: latest-portlet
There is no package with the name "latest-portlet" known to bug-tracker.
Code Metrics Summary for Package: latest-portlet
| # Tcl Procs |
0 |
| # Tcl Lines |
0 |
| # Tcl Blank Lines |
1 |
| # Tcl Comment Lines |
0 |
| # Automated Tests |
0 |
| # Stored Procedures |
PG: 0 ORA: 0 |
| # SQL Lines |
PG: 0 (blank 1 comments 0)
ORA: 0 (blank 1 comments 0) |
| # ADP pages |
0 |
| # ADP lines |
0 |
| # Include pages (latest-portlet/lib/) |
0 |
| # Documentation pages |
0
|
| # Documentation lines |
0 |
| Browse Source |
Not installed |
| Github Repository: |
https://github.com/openacs/latest-portlet/tree/oacs-5-10
|