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

    [SOLVED] Python under NanoBSD

    Scheduled Pinned Locked Moved pfSense Packages
    7 Posts 3 Posters 8.9k 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.
    • A
      alphazo
      last edited by

      I need to install Python in order to use my poor man's VPN solution over SSH. In the past I was able to do that on pfSense 1.2.3 by adding the right packages http://forum.pfsense.org/index.php/topic,32675.0.html

      I tried to do the same on 2.0.1 nanoBSD (Alix board) but got some errors. Installed completed though but it looks like half installed.

      
      /etc/rc.conf_mount_rw
      setenv PACKAGESITE "ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-8.1-release/Latest/"
      pkg_add -r python
      
      
      Fetching ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-8.1-release/Latest/python.tbz... Done.
      Fetching ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/i386/packages-8.1-release/All/python26-2.6.5.tbz...Done.
      ....
      lib/python2.6/test/test_scope.pyo: Seek failed
      lib/python2.6/test/test_scope.pyc: Seek failed
      lib/python2.6/test/test_scriptpackages.py: Seek failed
      ...
      /var: write failed, filesystem is full
      ....
      
      

      And here the space left on my filesystem:

      
      Filesystem           Size    Used   Avail Capacity  Mounted on
      /dev/ufs/pfsense1    913M    183M    657M    22%    /
      devfs                1.0K    1.0K      0B   100%    /dev
      /dev/md0              38M    276K     35M     1%    /tmp
      /dev/md1              58M    7.5M     46M    14%    /var
      /dev/ufs/cf           49M    555K     45M     1%    /cf
      devfs                1.0K    1.0K      0B   100%    /var/dhcpd/dev
      
      

      Any idea on how I can install python on pfSense 2.0.1?

      Thanks
      Alphazo

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        why don't you try files.pfsense.org repo?

        http://files.pfsense.org/packages/8/All/python26-2.6.6.tbz
        http://files.pfsense.org/packages/8/All/python27-2.7.2_3.tbz

        Or try to install any package that needs python?

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • A
          alphazo
          last edited by

          I tried pkg_add -r http://files.pfsense.org/packages/8/All/python26-2.6.6.tbz  but I get the same error. Looks like /var is getting full.

          1 Reply Last reply Reply Quote 0
          • marcellocM
            marcelloc
            last edited by

            Can you try any other package? Seems like you have problems on your cf card.

            Treinamentos de Elite: http://sys-squad.com

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • A
              alphazo
              last edited by

              Looks like I'm not the only one with this specific issue:
              http://forum.pfsense.org/index.php/topic,40868.0.html

              As recommended I tried to install another package and everything went well:

              /etc/rc.conf_mount_rw
              pkg_add -r http://files.pfsense.org/packages/8/All/unzip-6.0.tbz
              /etc/rc.conf_mount_ro
              
              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                On NanoBSD, /var/ is a ram disk, so easy to fill up.

                You have to tell pkg_add to put the temp files someplace else. See how we get around it for gitsync on nanobsd:

                https://github.com/bsdperimeter/pfsense/blob/master/etc/phpshellsessions/gitsync#L31

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • A
                  alphazo
                  last edited by

                  Thanks jimp for providing the answer.

                  Here is how I installed python under NanoBSD:

                  /etc/rc.conf_mount_rw
                  setenv PKG_TMPDIR /root/
                  pkg_add -r http://files.pfsense.org/packages/8/All/python26-2.6.6.tbz
                  /etc/rc.conf_mount_ro
                  
                  

                  Cool… Since Python is running on NanoBSD, I now have my sshuttle tool running on my remote laptop and creating a transparent TCP tunnel over SSH including DNS requests.

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