Files
photoprism-freebsd-port/README.md

66 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2021-05-22 21:38:59 +10:00
# The photoprism port for FreeBSD
2021-01-02 22:36:53 -05:00
The port will compile and install
[photoprism](https://github.com/photoprism/photoprism) from source on FreeBSD.
## Dependencies
2022-08-09 13:16:35 -04:00
This port depends on science/libtensorflow1
* [freshports](https://www.freshports.org/science/libtensorflow1/)
* [Git repo](https://github.com/psa/libtensorflow1-freebsd-port)
2022-08-09 13:16:35 -04:00
You can install it by freebsd ports or build a private copy using poudriere.
2021-01-02 22:36:53 -05:00
## If you need pre-built binaries you can use this repo
2024-01-15 17:29:41 +08:00
AVX2 is required for your CPU.
2023-11-06 00:56:06 -06:00
https://github.com/Gaojianli/photoprism-freebsd-port/releases
2021-01-02 22:36:53 -05:00
## Install using ports
### Download and Install
2021-01-02 22:36:53 -05:00
```
git clone https://github.com/huo-ju/photoprism-freebsd-port
cd photoprism-freebsd-port
make && make install
```
2024-07-24 00:44:24 -04:00
### Upgrade from an old version
```
cd photoprism-freebsd-port
git pull
make reinstall clean
```
### Poudriere
2021-05-22 21:38:59 +10:00
If you are using poudriere to build the port, you will need to set the
following in `poudriere.conf`:
* `ALLOW_NETWORKING_PACKAGES="photoprism"` as the `dep-js` target downloads
node packages.
2021-05-22 21:38:59 +10:00
* `TMPFS_LIMIT` or `MFSSIZE` should be at least `6` as the build is very large.
* `MAX_MEMORY=16` or more is required for node
2021-01-02 22:36:53 -05:00
## Add entries to rc.conf
2021-01-02 22:36:53 -05:00
```
photoprism_enable="YES"
photoprism_assetspath="/var/db/photoprism/assets"
photoprism_storagepath="/var/db/photoprism/storage"
2021-01-02 22:36:53 -05:00
```
## Set an initial admin password (fresh install)
2021-01-17 03:54:50 -05:00
```
photoprism --assets-path=/var/db/photoprism/assets --storage-path=/var/db/photoprism/storage --originals-path=/var/db/photoprism/storage/originals --import-path=/var/db/photoprism/storage/import passwd
2021-01-17 03:54:50 -05:00
```
## Run the service
2021-01-02 22:36:53 -05:00
```
service photoprism start
```
## Go to http://your_server_IP_address:2342/ in your browser