Roland's homepage

My random knot in the Web

Articles about freebsd

  1. Building gphoto2-ffi on FreeBSD

    Download

    Clone the repository from https://github.com/jbaiter/gphoto2-cffi.

    > cd ~/github
    > git clone https://github.com/jbaiter/gphoto2-cffi
    

    Build

    I had to specify where to find the include files.

    > env C_INCLUDE_PATH=/usr/local/include python3 setup.py build
    

    Install and clean-up

    # python3 setup.py install
    # python3 setup.py clean …
  2. Python bindings for libmagic

    This documents how I installed Python bindings for libmagic.

    There are actually different bindings for libmagic. One set is part of the original distribution. It can be found in /usr/src/contrib/file/python/. But in my opinion it is somewhat cumbersome to use and not very Pythonic.

    The implementation from ahupp/python-magic in Github feels more natural.

  3. Updating FreeBSD from source

    Sometimes I need to update my FreeBSD operating system. I prefer to do that from the source code, so that my customizations in (/etc/src.conf) remain.

    At the writing of this article, I’m tracking the 10-STABLE branch. To start this, I removed the contents of /usr/src …

  4. Switching IPython to Python 3

    More and more, IPython has become my tool of choice as the ultimate calculator and to try out concepts and code for use in my programs.

    While I generally use the terminal-based interactive shell, notebooks offer more capabilities for integrating text, formulas and graphics.

    With Python 2.7 effectively mostly …

  5. Automated local backups

    These days it is commonplace to have hardware or software RAID1, even in common PCs. In previous machines I’ve used ataraid to implement RAID1.

    The advantage is that every write is recorded on two disks at once, minimizing the chance of data loss. The flip side of the coin …


Page 1 / 3 Page 2 →