FreeBSD 10, anybody using it yet?

17 posts / 0 new
Last post
#1 Sun, 01/19/2014 - 12:59
Joe
Joe's picture

FreeBSD 10, anybody using it yet?

Hey all,

I see that FreeBSD 10 has been released, and I was about to start poking at install.sh to get it working on that platform; I don't expect major changes since 9 (which I think works currently), but if anybody with more FreeBSD knowledge than I (i.e. somebody that uses it daily) could make themselves available for answering questions along the way, there's some cleanups I'd like to do...I just don't know how to do things on FreeBSD.

So, any FreeBSD users out there want to help me make install.sh spin nicely on 10.0?

Sun, 01/19/2014 - 13:01
Joe
Joe's picture

One thing I noticed...pkg seems to have multi-repository support! Which may resolve one of my biggest problems with supporting FreeBSD in a nice way. It might even mean we start offering proper packages for FreeBSD (we currently install from .wbm.gz packages).

--

Check out the forum guidelines!

Mon, 04/07/2014 - 06:15 (Reply to #2)
rpereyra

Hello

First attempt to install virtualmin in FreeBSD 10, seems fails because pkg_add is missing:

roberto

------------------
root@nas1:~ # ./install.sh

Welcome to the Virtualmin GPL installer, version 1.1.0

WARNING:

The installation is quite stable and functional when run on a freshly
installed supported Operating System.

If you have existing websites, email users, or if you manually installed
Virtualmin via a Webmin 'wbm' module, you are likely to run into problems.
Please read the Virtualmin Administrators Guide before proceeding if
your system is not a freshly installed and supported OS.

This script is not intended to update your system! It should only be
used to perform your initial Virtualmin installation. If you have previously
run the Virtualmin installer, you can perform upgrades and updates from within
Virtualmin itself, or using your system's package manager. Once Virtualmin is
installed, you never need to run this script again.

The systems currently supported by install.sh are:
CentOS and RHEL 5-6 on i386 and x86_64
Scientific Linux 6 on i386 and x86_64
Debian 6.0 and 7.0 on i386 and amd64
Ubuntu 8.04 LTS and 10.04 LTS, and 12.04 LTS on i386 and amd64
Amazon Linux 2012.03 on i386 and x86_64
FreeBSD 7.0 and 8 on i386 and amd64

If your OS is not listed above, this script will fail. More details
about the systems supported by the script can be found here:

http://www.virtualmin.com/os-support.html

Continue? (y/n) y
grep: /etc/mtab: No such file or directory
Checking for HTTP client...found /usr/bin/fetch
Checking for perl...found /usr/bin/perl
spinner 100% of 579 B 44 kBps 00m00s
Loading log4sh logging library...
log4sh 100% of 20 kB 120 kBps 00m00s
INFO - Started installation log in /root/virtualmin-install.log
INFO - Checking for fully qualified hostname...
INFO - Hostname OK: fully qualified as nas1.contenidosonline.com.ar
INFO - Installing serial number and license key into /etc/virtualmin-license
INFO - Loading OS selection library...
oschooser.pl 100% of 4461 B 11 MBps 00m00s
INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded.
INFO - Loading OS list...
os_list.txt 100% of 3735 B 9073 kBps 00m00s
INFO - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded.
INFO - Operating system name: FreeBSD
INFO - Operating system version: 10.0
INFO - Detected IP 192.165.67.65
127.0.0.1 for ...
sed: 1: "s%mDetected IP 192.16 ...": unescaped newline inside substitute pattern
grep: 127.0.0.1: No such file or directory
INFO - Adding new entry for hostname nas1.contenidosonline.com.ar on 192.165.67.65
127.0.0.1 to /etc/hosts.
sed: 1: "s%mAdding new entry f ...": unescaped newline inside substitute pattern
INFO - Configuring package manager for FreeBSD 10.0...
INFO - Installing Apache from ports...
cd: /usr/ports/www/apache22: No such file or directory
make: don't know how to make install. Stop

make: stopped in /tmp/.virtualmin-848
INFO - Installing mod_fcgid using ports...
cd: /usr/ports/www/mod_fcgid: No such file or directory
make: don't know how to make install. Stop

make: stopped in /tmp/.virtualmin-848
INFO - Installing Subversion using ports...
cd: /usr/ports/devel/subversion: No such file or directory
make: don't know how to make install. Stop

make: stopped in /tmp/.virtualmin-848
INFO - Installing cyrus-sasl2-saslauthd from ports...
cd: /usr/ports/security/cyrus-sasl2-saslauthd: No such file or directory
make: don't know how to make install. Stop

make: stopped in /tmp/.virtualmin-848
INFO - Installing postfix from ports...
cd: /usr/ports/mail/postfix23: No such file or directory
make: don't know how to make install. Stop

make: stopped in /tmp/.virtualmin-848
INFO - Installing dependencies using command:
INFO - for i in p5-Mail-SpamAssassin procmail p5-Class-DBI-Pg p5-Class-DBI-mysql openssl p5-Net-SSLeay python mailman ruby mysql50-server mysql50-client mysql50-scripts postgresql81-server postgresql81-client logrotate awstats webalizer php5 php5-mysql php5-mbstring php5-xmlrpc php5-mcrypt php5-gd php5-dom php5-pgsql php5-session clamav dovecot proftpd unzip p5-IO-Tty mod_perl2; do pkg_add -r $i; done
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
./install.sh: pkg_add: not found
WARN - Something went wrong during installation: 0
WARN - FreeBSD pkd_add cannot reliably detect failures, or successes,
WARN - so we're going to proceed as if nothing bad happened.
WARN - This may lead to problems later in the process, and
WARN - some packages may not have installed successfully.
WARN - You may wish to check /root/virtualmin-install.log for details.
INFO - Copying default my.cnf and initializing database...
cp: /usr/local/share/mysql/my-medium.cnf: No such file or directory
./install.sh: /usr/local/etc/rc.d/mysql-server: not found
INFO -
cp: /usr/local/etc/mail/spamassassin/local.cf.sample: No such file or directory
INFO - Initializing the clamav database. This may take a long time...
./install.sh: freshclam: not found
cp: /usr/local/www/awstats/cgi-bin/awstats.model.conf: No such file or directory
chpass: user information updated
INFO - Installing procmail-wrapper.
fetch: http://software.virtualmin.com/gpl/freebsd/10.0/amd64/procmail-wrapper: Not Found

FATAL - Fatal Error Occurred: Failed to download http://software.virtualmin.com/gpl/freebsd/10.0/amd64/procmail-wrapper.
FATAL - Cannot continue installation.
FATAL - Attempting to remove virtualmin repository configuration, so the installation can be
FATAL - re-attempted after any problems have been resolved.
FATAL - Removing temporary directory and files.
FATAL - If you are unsure of what went wrong, you may wish to review the log
FATAL - in /root/virtualmin-install.log
root@nas1:~ #
----------------------

Mon, 05/19/2014 - 05:27 (Reply to #3)
bryn1u

Becouse FreeBSD -10 using pkg install, not pkg_add. It;s two difrences scripts ! you have to change your install script from pkg_add on pkg install.

Where did u get this install scrpit ?

Tue, 06/03/2014 - 23:34
ls4680

I am in the process of setting up a FreeBSD 10-Stable server now with webmin 1.690

cd /usr/port/sysutils/webmin

make install

The install worked without any problems but ">BIND DNS Server" did not show up under >Servers.

To config BIND I browsed to http://192.168.2.215:10000/config.cgi?bind8 The setting for "Full path to the named executable" was incorrect. (It has moved under FreeBSD 10) Setting to "/usr/local/sbin/named" fixed this problem.

I have NOT fully tested webmin 1.690 with FreeBSD 10-Stable, still working on setting up the server.

Wed, 06/04/2014 - 00:41 (Reply to #5)
bryn1u

I use too FreeBSD 10 Stable. Did u install a BIND Server ? FreeBSD from version 10 has an Unbound DNS Server by default, that's why probably virtualmin dosen't support it. I think u have to reinstall Bind instead Unbound Server DNS.

Wed, 06/04/2014 - 14:41
ls4680

I installed BIND96 (I had problems installing BIND99 and BIND10).

I need to be an authoritative server for the domains that I host so I must use BIND. Unbound is only a local caching resolver.

Once I set then new correct path (/usr/local/sbin/named) webmin seems to be working fine with BIND

Wed, 06/04/2014 - 15:39
bryn1u

I'm gonna install virtualmin but i have never used it. Can i u tell me how did u install virtualmin ? by ports or scripts or manual, i would be gratefull

thx,

Wed, 06/04/2014 - 16:46
ls4680

Joe, Just saw your post. I have been using FreeBSD on production servers since 1998. I am not an expert but I do know my way around. My current production server is FreeBSD 8.2 with webmin 1.620 and Virtualmin Virtual Servers (GPL) Version 3.84.

If you are still looking for assistance for FreeBSD please let me know.

I am currently setting up a new production server with FreeBSD 10. I also have testing servers available

Thu, 06/05/2014 - 00:26 (Reply to #9)
bryn1u

Hey, im not Joe :D

Maybe u want to use future patch which will be included in FreeBSD 11. Works on FreeBSD 10 - Stable. It's something like Grsecurity.

security.pax.aslr.status: 2 security.pax.aslr.debug: 0 security.pax.aslr.mmap_len: 21 security.pax.aslr.stack_len: 16 security.pax.aslr.exec_len: 21 security.pax.aslr.compat.status: 2 security.pax.aslr.compat.mmap_len: 8 security.pax.aslr.compat.stack_len: 6 security.pax.aslr.compat.exec_len: 6 security.pax.log.log: 0 security.pax.log.ulog: 0 security.pax.segvguard.status: 1 security.pax.segvguard.debug: 0 security.pax.segvguard.expiry_timeout: 120 security.pax.segvguard.suspend_timeout: 600 security.pax.segvguard.max_crashes: 5

Backing to theard do you allow to use shell account with virtualmin ? And does it support that ?

Thu, 06/05/2014 - 14:33
ls4680

I am not sure what you mean, multiple options listed below.

I checked my server running an old version of virtualmin Version 3.84.gpl and here is what I found

Virtualmin Virtual Servers (GPL) > Server Templates >Default Settings> Administrators webmin modules > SSH Login As I recall this adds a link for your users under >Others "SSH Login" This is a webpage with a java window that is a SSH shell. This currently does not work for me because of my java security settings for Firefox & Chrome on my Windows system but I recall testing it in the past. There are also other options: Others>"Command Shell" which also you to run one command from with webmin. Others>"Custom Commands" which will run shell scripts as the user. I let clients use this to auto-install apps like Drupal, Word-Press, etc. without the need for SSH

Also because vitualmin creates unix users with login shells (I set this to nologin for most users) anyone with an account can then login to the server directly with any SSH client, subject to security limitations of course (I block all but only a few known IP address)

I have FreeBSD 10-Stable running webmin 1.690, but having problems with virtualmin 4.08.gpl, it keeps displaying "Virtualmin's configuration has not been checked since it was last updated. Click the button below to verify it now." Clicking on "Re-check and Refresh Configuration" just displays "Checking Confuguration" and hangs. Another post regarding this coming soon, I will do more research on my end first.

Fri, 06/13/2014 - 23:41
ls4680

Finally got webmin+virualmin working on FreeBSD 10.0-Release

Here are my steps:

  1. Installed FreeBSD from 10.0-Release memstick

  2. First boot

portsnap fetch extract
cd /usr/ports/sysutil/webmin
make
make install
echo 'webmin_enable="YES"' >> /etc/rc.conf
sh /usr/local/lib/webmin/setup.sh
/usr/local/etc/rc.d/webmin start

Login to webmin https://192.168.2.88:10000

Webmin>Webmin Configuration> Webmin Modules> Installed virtual-server-4.08.gpl.wbm.gz

Comment: Virtualmin would NOT show [Add new virtual server] button

NEXT STEP VERY IMPORTANT

Webmin>Change Language and Theme> Webmin UI theme: Personal choice "Blue Framed Theme"

Webmin>Virtualmin Virtual Servers (GPL)> [Re-check and refresh configuration]

Displays: "Module Index" link and "Checking Configuration" and never shows anything else.

>

Mon, 08/04/2014 - 16:07
testdog

Has anyone tweaked the Pro Script to work with FreeBSD 10? I was just going to build some new servers to migrate my old FreeBSD server. I was hoping that I didn't need to build everything on manually.

Mon, 08/04/2014 - 16:07
testdog

Has anyone tweaked the Pro Script to work with FreeBSD 10? I was just going to build some new servers to migrate my old FreeBSD server. I was hoping that I didn't need to build everything on manually.

Mon, 10/13/2014 - 14:33
jkuo

Testing out FreeBSD 10 as well. I hit a fatal error when the script is fetching http://software.virtualmin.com/gpl/freebsd/10.0/amd64/procmail-wrapper. It's not found. Is there a good work around? Thanks!

Tue, 06/30/2015 - 07:36 (Reply to #15)
Tradlost

Easy to get this running under FreeBSD 10.

  1. Shut down Webmin server (/usr(local/etc/rc.d/webmin stop)
  2. Install port virtualmin (sysutils/virtualmin)
  3. Start Webmin (/usr(local/etc/rc.d/webmin start)
  4. Install module virtualmin in Webmin (Webmin > Configuration > Modules -> From local file)ยจ File is located in /usr/ports/distfiles
  5. Start Virtualmin and run the guide
Tue, 07/07/2015 - 20:11
tuaris

See: https://www.virtualmin.com/node/22928

I'm going to start working on 10 soon.

Topic locked