Asset Server on Ubuntu

Installing Unity Asset Server 1.0.0 on Ubuntu 9.04 Server Edition
This patch should make the UAS 1.0.0 source package install on Ubuntu. The patch is tested with unity_asset_server-1.0.0 and Ubuntu 9.04 Server Edition.

The patch was based on this forum discussion but contains additional fixes.

Build
apt-get build-dep postgresql # install postgresql build dependencies tar xzf unity_asset_server-1.0.0.tgz cd unity_asset_server-1.0.0 patch -p1 <../unity_asset_server-1.0.0-ubuntu.patch ./install.sh
 * Copy the patch into the file.
 * Download unity_asset_server-1.0.0 source package.
 * Execute these commands:

Ryan Scott patch
The following changes got AS working on Ubuntu for me. Your mileage may vary of course.

The following patch will do the trick (here's a zip of the patch).

--- a/install.sh +++ b/install.sh @@ -118,12 +118,12 @@ fi if [ -x /sbin/rc-update ] ; then # Gentoo /sbin/rc-update add unity_asset_server default -elif [ -x /sbin/update-rc.d ] ; then # Debian? -	/sbin/update-rc.d unity_asset_server defaults 80 +elif [ -x /usr/sbin/update-rc.d ] ; then # Debian? +	/usr/sbin/update-rc.d unity_asset_server defaults 80 else # Assume redhat-ish /sbin/chkconfig --add unity_asset_server /sbin/chkconfig unity_asset_server on fi -$prefix/bin/reset_admin_password +#$prefix/bin/reset_admin_password index a1039ef..363357b 100755 --- a/unity_build/unity_asset_server.sysvinit +++ b/unity_build/unity_asset_server.sysvinit @@ -7,13 +7,13 @@ -. /etc/init.d/functions +#. /etc/init.d/functions -. /etc/sysconfig/network +#. /etc/sysconfig/network -[ X\${NETWORKING} = Xno ] && exit 0 +#[ X\${NETWORKING} = Xno ] && exit 0 ## @@ -75,7 +75,7 @@ start { if [ $RETVAL -eq 0 ]; then echo_success echo -		touch /var/lock/subsys/unity_asset_server +		touch /var/lock/unity_asset_server else echo_failure echo @@ -89,7 +89,7 @@ stop { RETVAL=$? if [ $RETVAL = 0 ]; then echo_success -		rm -f /var/lock/subsys/unity_asset_server +		rm -f /var/lock/unity_asset_server else echo_failure fi @@ -122,7 +122,7 @@ case "$1" in 	restart ;;  *) -	echo "Usage: jabberd {start|stop|status|restart}" +	echo "Usage: unity_asset_server {start|stop|status|restart}" 	exit 1 esac
 * 1) config: /opt/unity_asset_server/data/postgresql.conf
 * 1) Source function library.
 * 1) Source networking configuration.
 * 1) Check that networking is up.
 * 1) UnityAssetServer startup script