Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Tutorial como agregar un repo en pfSense-2.2

    Scheduled Pinned Locked Moved Español
    1 Posts 1 Posters 3.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      LEPM
      last edited by

      Tengo una mother mini-itx con un atom D525
      con pfSense-2.2 amd64
      y no es posible ver la temp con ninguna opcion en:
      System–>Avanced-->Miscellaneous-->Thermal Sensors

      para poder ver la temp en el dashboard necesito el paquete "mbmon", que no se encuentra en el repo FreeBSD:
      http://pkg.freebsd.org/freebsd:10:x86:64/latest/All/

      pero si se ecuentra aqui: http://pkg.freebsd.org/freebsd:10:x86:64/release/0/

      Asi que tuve configurar un nuevo repo para poder instalarlo.

      Toda la info para agregar un nuevo repo esta en el siguiente archivo:/etc/pkg/FreeBSD.conf
      ... ;)
      Aqui va el tutorial.

      pkg update
      

      si devuelve:

      The package management tool is not yet installed on your system.
      Do you want to fetch and install it now? [y/N]:
      

      responder con y
      devuelve algo asi:

      Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest, please wait...
      Installing pkg-1.4.7...
      Extracting pkg-1.4.7: 100%
      Message for pkg-1.4.7:
      If you are upgrading from the old package format, first run:  # pkg2ng
      Updating FreeBSD repository catalogue...
      Fetching meta.txz: 100%    944 B   0.9kB/s    00:01    
      Fetching packagesite.txz: 100%    5 MiB 408.8kB/s    00:13    
      Processing entries: 100%
      FreeBSD repository update completed. 23917 packages processed
      

      Ahora crear el archivo de configuracion del nuevo repo:

      touch /etc/pkg/my_custom_repo.conf
      

      editarlo y debe quedar asi:

      my_custom_repo: {
        url: "pkg+http://pkg.freebsd.org/freebsd:10:x86:64/release/0/",
        mirror_type: "srv",
        signature_type: "fingerprints",
        fingerprints: "/usr/share/keys/pkg",
        enabled: yes
      

      Crear el directorio donde se va guardar el archivo que activa o desactiva el repo.

      mkdir -p /usr/local/etc/pkg/repos
      

      Crear el archivo de configuracion.

      touch /usr/local/etc/pkg/repos/my_custom_repo.conf
      

      Deshabilitar el repo actual (FreeBSD)

      echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
      

      Actualizar el repo

      pkg update
      

      instalar el paquete deseado.

      pkg install mbmon
      

      Despues de instalado el paquete
      deshabilitar el nuevo repo y volver a activar el repo FreeBSD.

      echo "FreeBSD: { enabled: yes }" > /usr/local/etc/pkg/repos/FreeBSD.conf && echo "my_custom_repo: { enabled: no }" > /usr/local/etc/pkg/repos/my_custom_repo.conf
      

      Actualizar nuevamente.

      pkg update
      

      como ver la temp en el dashboard usando mbmon es tema para otro tutorial ;)

      dashboard-cpu-temp.png
      dashboard-cpu-temp.png_thumb

      Your new system is probably coming with some hyper trash like Windows 8

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.