New Install Script for FreeBSD 9

15 posts / 0 new
Last post
#1 Tue, 07/31/2012 - 07:20
tuaris

New Install Script for FreeBSD 9

The GPL install.sh script fails miserably for FreeBSD 9.0-RELEASE.
So I made a few changes and fixed it: http://ftp.morante.net/pub/FreeBSD/extra/virtualmin/install.sh

Thu, 08/02/2012 - 04:10
tuaris

I've written a FreeBSD specific script: http://ftp.morante.net/pub/FreeBSD/extra/virtualmin/freebsd.sh that optionally uses pre-built packages. It still mostly under development and I don't have the bandwidth to offer packages to the whole world. Currently only the 9.0 32-bit packages exist.

Thu, 02/21/2013 - 16:20
rsecor

I have been working with Jamie to get the current install.sh script to work better with FreeBSD.

A lot of progress has been made and I am awaiting to hear back on some testing that is being done.

I do know that there are a few issues with post installation configuration.

Thu, 02/21/2013 - 16:24 (Reply to #3)
tuaris

I'll be glad to test it. Do I just download the gpl install script from the main website?

Sat, 02/23/2013 - 09:27
rsecor

I attached a copy here of my latest version.

***** Be aware that this should be ran on a clean system. *****

The current known issues are related to a script named "virtualmin-base-standalone.pl" which is downloaded and does not look for a lot of the mail server related programs in the correct places based on the install script here. I have asked Jamie about this and am awaiting a reply as to wether or not I should now take a copy of the "virtualmin-base-standalone.pl" script and start making proposed changes to it as well or not.

Wed, 08/21/2013 - 01:22 (Reply to #5)
tuaris

I finally have a chance to test (sorry). Not sure if what you have attached is still your latest version, but I am running it on a fresh install now:

  FreeBSD xxxxxxx.xxxx.xxxxx 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #0: Sat Jul 27 01:14:23 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

Otherwise, if you have an newer version, I'll be glad to give that a test.

Wed, 08/21/2013 - 15:40 (Reply to #6)
tuaris

It has apparently failed (see attached screenshot). It's been stuck like that for the last 14 hours

Fri, 08/23/2013 - 11:08 (Reply to #7)
jimdunn

Same here, I tried on FreeBSD 9.1, and it just kept "spitting dots" for 24 hours...

Does anyone have an update to the install.sh script for FreeBSD 9?

Fri, 08/23/2013 - 19:29 (Reply to #8)
tuaris

I come back to the system 2 days later and I see that it's done installing! I go through the first run wizard and it says that Clamd, Spamassasin, and MySQL are not installed. Then after going through the initial setup, I get this on system info page:

Failed to query Postfix config command to get the current value of parameter virtual_maps:

Postfx didn't get installed either. :-)

Fri, 08/23/2013 - 13:02
jimdunn

Oh my, I tried the public/stable GPL install.sh on a FreeBSD 8.4 install... got a mess:

pkg_add: package 'p5-Net-SSLeay-1.54' or its older version already installed pkg_add: package 'ruby-1.8.7.371,1' or its older version already installed pkg_add: package 'mysql-client-5.0.95' conflicts with mysql-client-5.5.30 pkg_add: please use pkg_delete first to remove conflicting package(s) or -f to force installation pkg_add: pkg_add of dependency 'mysql-client-5.0.95' failed! pkg_add: package 'mysql-client-5.0.95' conflicts with mysql-client-5.5.30 pkg_add: please use pkg_delete first to remove conflicting package(s) or -f to force installation pkg_add: package 'mysql-client-5.0.95' conflicts with mysql-client-5.5.30 pkg_add: please use pkg_delete first to remove conflicting package(s) or -f to force installation pkg_add: pkg_add of dependency 'mysql-client-5.0.95' failed! pkg_add: package 'p5-DBD-mysql50-4.021' conflicts with p5-DBD-mysql-4.021 pkg_add: please use pkg_delete first to remove conflicting package(s) or -f to force installation pkg_add: pkg_add of dependency 'p5-DBD-mysql50-4.021' failed! pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.4-release/Latest...' by URL pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.4-release/Latest...' by URL pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.4-release/Latest...' by URL WARN - Something went wrong during installation: 0 WARN - FreeBSD pkd_add cannot reliably detect failures, or successes,

Fri, 08/23/2013 - 15:49
tuaris

I just finished re-testing my FreeBSD specific script after making some tweaks: http://ftp.morante.net/pub/FreeBSD/extra/virtualmin/freebsd.sh on 9.1. The install has completed and I am able to run through the Virtualmin Post Installation setup wizard.

Two known problems:

MySQL setup throws an error when you select anything other than "Leave Default Settings".

flush_file_lines called on non-loaded file /var/db/mysql/my.cnf

Second problem is that clicking on the "Re-check and refresh configuration" button in Virtualmin does nothing.

Other than that the install script seems to work. If someone wants to give it a test, answer "no" when asked if you want to use packages so it builds from source. There are currently no packages for 9.1, I am building 32-bit packages now.

Fri, 08/23/2013 - 22:16
andreychek

Yeah, there unfortunately appear to be some issues in the install script for FreeBSD... I'll make sure Joe knows about that so that it can be fixed up. It used to install cleanly on 8.x, but it looks like that's no longer the case either! We're looking into it :-)

-Eric

Sat, 08/24/2013 - 19:49
jimdunn

(thanks for all the hard work!!! : )

Tue, 07/07/2015 - 20:13
tuaris

It's been some time, but I think FreeBSD's new package system will make this easier. I'm going to start working on providing a new install script using pkgng for 9.3 and 10.1.

Sun, 10/18/2015 - 01:11
tuaris

The development of the new script can be followed here: https://www.virtualmin.com/node/38223

Topic locked