[FreeBSD-Announce] Updates regarding FreeBSD.org svn mirrors

This FreeBSD announcement is regarding mirror changes on svn.freebsd.org. As noted, the update serves to improve security and will not interrupt any activities.

Original: https://www.mail-archive.com/freebsd-announce@freebsd.org/msg00662.html

freebsd_logo_text

There have been some updates to the project-operated svn mirrors.  The current 
status is here:
  https://www.freebsd.org/doc/handbook/svn.html
The changes should improve robustness and security and are not intended to be 
disruptive.

Of note:
* "svn.freebsd.org" is now geo-dns routed to a mirror, with failover.
* "svn.freebsd.org" is now the recommended location for general use.
* https://svn.freebsd.org now has a real certificate and use of https is 
encouraged.
* The old mirror names are deprecated and no longer documented but are 
expected to continue to be usable for the foreseeable future.

For future checkouts, you should use svn.freebsd.org rather than the 
deprecated mirror names.

Before using the https method, you should ensure that you have the 
'security/ca_root_nss' package installed, for example:
# pkg install ca_root_nss

[Read more…]

Replacing MySQL with MariaDB in FreeBSD

In this tutorial, user iceflatline shows us how to replace MySQL with MariaDB in FreeBSD.

Original: https://www.iceflatline.com/2015/07/replacing-mysql-with-mariadb-in-freebsd/

MariaDB

In my post on how to install and configure Apache, MySQL, PHP and phpMyAdmin on FreeBSD (FAMP) for basic local web development activities, one of the components is the MySQL database server. But what if you prefer to use MariaDB?

MariaDB is an open source alternative to MySQL, and available under the terms of the GPL v2 license. It is developed by the MariaDB community with oversight by the MariaDB Foundation. For all practical purposes MariaDB is a drop-in replacement for the same MySQL version. All commands, interfaces, libraries and APIs that exist in MySQL also exist in MariaDB. For example, MySQL 5.1 and MariaDB 5.1 are compatible, as are MySQL 5.5 and MariaDB 5.5. MariaDB 10.0 is the drop-in replacement for MySQL 5.6, and can also replace MySQL 5.5.

This post will use the aforementioned post on how to install and configure Apache, MySQL, PHP and phpMyAdmin on FreeBSD as an example implementation and demonstrate how to install and configure MariaDB as a replacement for MySQL. I strongly encourage you to test these steps first before using them on your development or production environment. At the very least you should backup your database(s).

The versions of software discussed in this post are as follows:

  • FreeBSD 10.1-RELEASE (running as a guest OS under VMWare ESXi hypervisor 6.0.0
  • apache24 2.4.12
  • mysql56-server 5.6.24
  • mariadb55-server 5.5.43
  • mariadb100-server 10.0.17
  • mod_php56 5.6.11
  • php56 5.6.10
  • php56-extensions 1.0 [Read more…]

FreeBSD now has NUMA? Why’d it take so long?

Adrian Chadd, known for his extensive WiFI work, writes about his findings of NUMA (non-uniform memory access) in FreeBSD.

Original: http://adrianchadd.blogspot.com/2015/07/freebsd-now-has-numa-whyd-it-take-so.html

https://svnweb.freebsd.org/base?view=revision&revision=285387

I just committed “NUMA” to FreeBSD. Well, no, I didn’t. I did almost no actual NUMA-y work in FreeBSD. I just exposed the existing NUMA stuff in FreeBSD out and re-enabled it.

FreeBSD-9 introduced basic NUMA awareness in the physical allocator (sys/vm/vm_phys.c.) It implemented first-touch page allocation, and then fell back to searching through the domains, round-robin style. It wasn’t perfect, for some workloads it was apparently okay. But it had some shortcomings – it wasn’t configurable, UMA and other subsystems didn’t know about NUMA domains, and the scheduler really didn’t know about NUMA domains. So I’m sure there are plenty of workloads which it didn’t work for.

That was all ripped out before FreeBSD-10. FreeBSD-10 NUMA just implements round-robin physical page allocation. It still tracks the per-domain physical memory regions, but it doesn’t do any kind of NUMA aware allocation. From what I can gather, it was removed until something ‘better’ would land.

However, nothing (yet) has landed. So I decided I’d take a look into it. I found that for a lot of simple workloads (ie, where you’re doing lots of anonymous memory allocation – eg, you’re doing math crunching) the FreeBSD-9 model works fine. It’s also a perfectly good starting point for experimenting.

So all my NUMA work in -HEAD does is provide an API to exactly the above. It doesn’t teach the kernel APIs about domain aware allocations – there’s currently no way to ask for memory from a specific domain when calling UMA, or contigmalloc, etc. The scheduler doesn’t know about NUMA, so threads/processes will migrate off-socket very quickly unless you explicitly limit things. Devices don’t yet do NUMA local work – the ACPI code is in there to enumerate which NUMA domain they’re in, but it’s not used anywhere just yet.

Then what is it good for?

[Read more…]

Ethereum on Different Operating Systems (self.ethereum)

FreeBSD user /u/aedigix shows us how to get Ethereum set up on FreeBSD. Ethereum is a virtualized platform for decentralized applications.

Original: https://www.reddit.com/r/ethereum/comments/3e8eqx/ethereum_on_different_operating_systems/ctcidxe

ETHEREUM_NAV-BAR-LOGO

For go-ethereum If you install go 1.4 you can just do the following:

git clone git@github.com:ethereum/go-ethereum.git
cd go-ethereum && git checkout tags/<latest stable> && make geth 

For cpp-ethereum/solidity compiler This is a little bit more involved but I am able to build on FreeBSD 10 and 11 using the following steps:

Dependencies which should be available in Fedora’s yum repo, FreeBSD/Gentoo ports, etc….

llvm35 gcc48 cmake boost-all-1.55.0 ncurses automake libtool unzip gmp leveldb yasm miniupnpc readline curl cryptopp libmicrohttpd libjson++ argtable opencl ode npm doxygen gmake cmake

On FreeBSD I have to build jsoncpp and libjson-rpc-cpp manually with the following steps:

jsoncpp

git clone git@github.com:open-source-parsers/jsoncpp.git
cd jsoncpp && git checkout tags/1.6.2
mkdir build && cd build
cmake -DCMAKE_CXX_FLAGS="-fPIC" ..
gmake
gmake install

libjson-rpc-cpp

cd libjson-rpc-cpp
git checkout tags/v0.5.0
mkdir build && cd build
cmake -DCMAKE_CXX_FLAGS="-fPIC" ..
gmake
gmake install

Then build cpp-ethereum:

git clone git@github.com:ethereum/cpp-ethereum.git
cd cpp-ethereum && git checkout develop
mkdir build && cd build
cmake -DFATDB=1 -DUSENPM=1 -DETHASHCL=1 -DEVMJIT=1 -DLLVM_DIR=/usr/local/lib/llvm-3.5/share/llvm/cmake ..
gmake -j8

FreeBSD 10.2-BETA2 Now Available

The developers of FreeBSD have made available version 10.2-BETA2. See below for the documented changes.

Download link:

  ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/10.2/

Original: https://lists.freebsd.org/pipermail/freebsd-stable/2015-July/082771.html

freebsd-logo-large

The second BETA build of the 10.2-RELEASE release cycle is now
available.

Installation images are available for:

o amd64 GENERIC
o i386 GENERIC
o ia64 GENERIC
o powerpc GENERIC
o powerpc64 GENERIC64
o sparc64 GENERIC

The image checksums follow at the end of this email.

FreeBSD/arm SD card images are available for:

o BEAGLEBONE
o CUBOX-HUMMINGBOARD
o GUMSTIX
o RPI-B
o PANDABOARD
o WANDBOARD

Note:  For convenience for those without console access to supported arm
devices, a default 'freebsd' user exists for ssh(1) login.  The password
is 'freebsd', which it is strongly recommended to change after gaining
access to the system.  Additionally, the 'root' user password is 'root',
which is also recommended to change.

[Read more…]

How To Find Out FreeBSD Version and Patch Level Number

This short tutorial by user Vivek Gite (nixCraft) shows us how to figure out your FreeBSD version and patch level number.

Original: http://www.cyberciti.biz/faq/how-to-find-out-freebsd-version-and-patch-level-number/

How do I find out my FreeBSD server version and patch level of the installed system using command line option?

Tutorial details
Difficulty Easy (rss)
Root privileges No
Requirements None
Estimated completion time 1m

You can use any one of the following command to display the FreeBSD operating system version and patch level:a) freebsd-version command – Show the version and patch level of the installed system

b) uname command – Show information about the system

Say hello to freebsd-version command

The freebsd-version command appeared in FreeBSD version 10.0. To see the version and patch level of the installed kernel:
freebsd-verion -k
To see the version and patch level of the installed userland:
freebsd-verion -u
Sample outputs:

Fig.01: freebsd-version and other commands in action
(Fig.01: freebsd-version and other commands in action)

You can see a system being repaired using a live CD:
mount -rt ufs /dev/ada0p2 /mnt
env ROOT=/mnt /mnt/bin/freebsd-version -ku

You can also use the following command to find out if FreeBSD kernel is running in 32bit or 64bit mode:
# getconf LONG_BIT

Sample outputs:
64

Old good uname command

Type the following command (it works on all versions of FreeBSD):
umame -a
uname -mrs

Outputs:
FreeBSD 10.1-RELEASE-p10 amd64

Using bhyve on FreeBSD

This tutorial by tetragir.com will show you how to setup and use bhyve on FreeBSD. bhyve is a BSD hypervisor and virtual machine manager which relies on features such as Extended Page Tables and VirtIO network/storage drivers.

Original: https://tetragir.com/freebsd/bhyve/using-bhyve-on-freebsd.html

freebsd_bhyveI wanted to write an article about bhyve for a long time now, and fortunately I recently had the time to do just that. Bhyve has the potential to became a very sophisticated, and advanced hypervisor.

1. Introduction

I’m not sure since when, but bhyve now supports libvirt. That’s great news, given that libvirt is a universal tool which helps in managing VMs. There are quite a few hypervisors compatible with libvirt, for example KVM, Xen, Linux containers (LXC) and a bunch of others. On the other hand, there are only a few graphical fronteds compatible with it, for example Virtual Machine Manager (virt-manager), which is a general purpose VM management tool. This can be installed to a computer and the hypervisors can be managed from there. Virt-manager is generally good for a few hypervisors, with 10-20 VMs, but managing a cloud infrastructure is quite a challenge with it. There a few tools compatible with libvirt, which are targeted at clouds or greater deployment.

In this article, I will cover the Virtual Machine Manager (virt-manager). This tool allows for the basic management of VMs, such as installing, starting, deleting etc. The goal of this document is to introduce the installation and configuration of bhyve to a FreeBSD host, libvirt, and the virt-manager to a remote computer, then to explain how you can connect from the virt-manager to the remote host. This setup allows the management of VMs remotely. This article is customized for CentOS guest installation as a guest, however other Linux guests could be installed and used in a similar way.

As its current state, libvirt is not fully compatible with bhyve and therefore interacting with VMs with libvirt is not possbile. However, this article provides instructions for installing and managing VMs with bhyve itself.

2. Additional informations for this article

[Read more…]

BSDCan 2015 Trip Report

bsdcan2015FreeBSD developers Christian Brueffer and Warren Block summarize their experiences at BSDCan 2015, which was held at the University of Ottawa in Ontario.  The two were sponsored by the FreeBSD Foundation to attend developer summits and presentations, gathered by developers around the world. Head on over to the links to view the full reports.

Christian Brueffer:

All in all, the conference and the devsummit were a great success for me.  I learned a lot, and it’s always astonishing how seeing the cool stuff other people have been working on motivates me to work on FreeBSD better myself.  Thank you to the FreeBSD Foundation for making this trip possible!

Original: http://freebsdfoundation.blogspot.com/2015/07/bsdcan-2015-trip-report-christian.html

Warren Block:

BSDCan is not what most people expect.  It is not a boring computer conference.  Sure, there are presentations and talks and the standard conference stuff.  But this is a place where BSD nerds are the norm, not the exception; where the other people there speak your language, share and understand your problems, and know that you understand theirs.  It is a feeling of family, a chance to share and solve problems, and gather inspiration for the rest of the year.

Original: http://freebsdfoundation.blogspot.com/2015/07/bsdcan-2015-trip-report-warren-block.html