FreeBSD Support

AliReza AmirSamimi edited this page Jun 12, 2017 · 6 revisions

Installing Persepolis on FreeBSD

Install dependencies

To install Persepolis on FreeBSD you need to install following packages first:

  • aria2

    • To install the port: cd /usr/ports/www/aria2/ && make install clean or
    • To add the package: pkg install aria2
  • libnotify

    • To install the port: cd /usr/ports/devel/libnotify/ && make install clean or
    • To add the package: pkg install libnotify
  • qt5-svg

    • To install the port: cd /usr/ports/graphics/qt5-svg/ && make install clean or
    • To add the package: pkg install qt5-svg
  • pulseaudio(optional dependency for playing sound notifications)

    • To install the port: cd /usr/ports/audio/pulseaudio/ && make install clean or
    • To add the package: pkg install pulseaudio
  • Before installing python3, py3-qt5 and py3-requests packages, you must first change your system default python to python3 instead of python2. For doing this you must add following line to your system /etc/make.conf file:
    DEFAULT_VERSIONS+= python=3.6 python3=3.6
    Here we change default python and python3 version to Python 3.6, you can choose whichever python 3 version available and you want. (See /usr/ports/Mk/bsd.default-versions.mk).

  • After that, first install python3 from Port

  • python3

    • To install the port: cd /usr/ports/lang/python3/ && make install clean
  • py3-qt5

    • To install the port: cd /usr/ports/devel/py-qt5/ && make install clean
  • py3-requests

    • To install the port: cd /usr/ports/www/py3-requests/ && make install clean
  • py3-setproctitle

    • To install the port: cd /usr/ports/devel/py3-setproctitle/ && make install clean

Install Persepolis

You can either download latest Persepolis release or clone persepolis with git for installing Persepolis. To clone persepolis repo you need to install git as follow:

  • To install the port: cd /usr/ports/devel/git/ && make install clean
  • To add the package: pkg install git

After that go to persepolis directory and run following command as root (replace python3.6 with python3 that installed in your system):
sudo python3.6 setup.py install

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.