[SOLVED] Python under NanoBSD
-
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 -
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.tbzOr try to install any package that needs python?
-
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.
-
Can you try any other package? Seems like you have problems on your cf card.
-
Looks like I'm not the only one with this specific issue:
http://forum.pfsense.org/index.php/topic,40868.0.htmlAs 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
-
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
-
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.