| 82 | |
| 83 | '''Licenses''' |
| 84 | |
| 85 | '''Our MetaShape license is currently activated on pmpc1650 and the 'reshosting' directory is ''' |
| 86 | |
| 87 | We only have one license and it is important to keep track of. Please make sure that the license is revoked before nay hardware changes or OS upgrades are performed on the machine it is installed on.[[BR]] |
| 88 | |
| 89 | By default, a file with license and system information is create in the following directory of the activated machine: |
| 90 | |
| 91 | {{{ |
| 92 | /var/tmp/agisoft/photoscan-pro/Do-NOT-Touch-Anything-in-This-RLM-Directory/ |
| 93 | }}} |
| 94 | |
| 95 | Where 'agiosoft' is the 'rehosting directory' |
| 96 | |
| 97 | However, it seems this can be automatically deleted by the system. Therefore a rehosting directory needs to be created in a safe space, where the user of MetaShape also has appropriate permissions. |
| 98 | |
| 99 | This can be changed by modifying metashape.sh to point to a desired directory using AGISOFT_REHOST_PATH and later exporting it like the following example: |
| 100 | |
| 101 | {{{ |
| 102 | #!/bin/sh |
| 103 | appname=`basename "$0" | sed s,\.sh$,,` |
| 104 | |
| 105 | dirname=`dirname "$0"` |
| 106 | tmp="${dirname#?}" |
| 107 | |
| 108 | |
| 109 | if [ "${dirname%$tmp}" != "/" ]; then |
| 110 | dirname=$PWD/$dirname |
| 111 | fi |
| 112 | |
| 113 | AGISOFT_REHOST_PATH=[ENTER DIRECTORY HERE] |
| 114 | |
| 115 | TCL_LIBRARY=$dirname/python/lib/tcl8.5 |
| 116 | TK_LIBRARY=$dirname/python/lib/tk8.5 |
| 117 | export TCL_LIBRARY |
| 118 | export TK_LIBRARY |
| 119 | export AGISOFT_REHOST_PATH |
| 120 | |
| 121 | LD_LIBRARY_PATH=$dirname:$dirname/python/lib:$LD_LIBRARY_PATH |
| 122 | export LD_LIBRARY_PATH |
| 123 | |
| 124 | "$dirname/$appname" "$@" |
| 125 | |
| 126 | }}} |