This is a post of opportunity and not one of the regularly scheduled posts in my series on writing a debugger in C and Rust. In the course of working on the nix-rust crate I needed to get a Rust environment setup on FreeBSD and I thought I would document my experience here.
Rust on FreeBSD
Installing Rust itself on FreeBSD is easy. There is a binary package available so installation is as simple as:
# pkg install rust-1.1.0 Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: rust: 1.1.0 The process will require 172 MiB more space. 58 MiB to be downloaded. Proceed with this action? [y/N]: y Fetching rust-1.1.0.txz: 100% 58 MiB 3.0MB/s 00:20 Checking integrity... done (0 conflicting) [1/1] Installing rust-1.1.0... [1/1] Extracting rust-1.1.0: 100%
But, this rust doesn’t come with Cargo.
Cargo for FreeBSD
Mathieu Arnold from the Ports Management Team has announced that the 2015Q3 branch has rolled out. All following updates will be listed on there.
Hi, The 2015Q3 branch has been created. It means that the next update on the quarterly packages will be on the 2015Q3 branch A lot of things happened in the last three months: - pkg 1.5.4 - New USES: waf, gnustep, jpeg - Default version of Perl switched to 5.20 - Firefox 38.0.6 - Firefox-esr 31.7.0 - Chromium 43.0.2357.130 - Ruby 2.1.6 - Perl 5.22.0 Next quarterly package builds will start on tomorrow and should be available on your closest mirrors few days later.
In this BSD Now episode, hosts Kris Moore and Allan Jude interview Lee Sharp regarding the m0n0wall codebase, which has been renamed as SmallWall. They discuss the future of what it will bring to the BSD family. Press play below to tune in:
Docker containers have been very popular in recent years on Linux. Docker containers provide services which “wrap up a piece of software in a complete filesystem that contains everything it needs to run: code, runtime, system tools, system libraries – anything you can install on a server. This guarantees that it will always run the same, regardless of the environment it is running in.”
Put another way, if Linux containers are approximately equivalent to FreeBSD jails, then Docker is the Linux equivalent of FreeBSD’s Warden.
The Docker technology has become quite a buzz-word in Linux circles and quite useful for testing and deploying services and applications. We are happy to report that Docker has been ported to FreeBSD! Though not all of Docker’s features currently work, most of Docker’s functionality is in place. More information on the FreeBSD port of Docker and which features currently work can be found on the port’s GitHub page.
This short tutorial by the folks at osquery will show you how to get its port set up for FreeBSD.
osquery is an operating system instrumentation framework for OS X and Linux. The tools make low-level operating system analytics and monitoring both performant and intuitive.
osquery exposes an operating system as a high-performance relational database. This allows you to write SQL-based queries to explore operating system data. With osquery, SQL tables represent abstract concepts such as running processes, loaded kernel modules, open network connections, browser plugins, hardware events or file hashes.
The easiest way to install osquery on FreeBSD is via the ports tree. Check FreshPorts for the latest version information.
# from ports cd /usr/ports/sysutils/osquery && make install clean # from binary package pkg install osquery # using portmaster portmaster sysutils/osquery
The FreeBSD Foundation has recently been joined by Benedict Reuschling to the Board of Directors. Mr. Reuschling has been a committer since 2010, and has been involved in the BSD Certification Group. Also, if you have not noticed, the FreeBSD Foundation website’s banner pays tribute to their 15 years of service to the community. Congratulations!
During BSDCan, the FreeBSD Foundation welcomed Benedict Reuschling to the Board of Directors.
We sat down with Benedict to find out more about his background and what brought him to the Foundation. Please take a moment to see what he has to say and join us in welcoming him to the board!
Tell us a little about yourself, and how you got involved with FreeBSD?
I’ve been a FreeBSD user since 5.2.1-RELEASE and became a committer for the doc tree in 2010. I’m also a proctor for the BSD Certification Group.
During my undergraduate studies in computer science, I tried out many different Linux distributions. One day, I came across a FreeBSD Live-CD called FreeSBIE. I booted it and was intrigued by how quickly one could switch between terminals on the command line, whereas in all previous distros I saw, this had a noticeable delay. My thought was that if it is already faster on a Live-CD, how would it be when I actually install the system? So, I tried it on my desktop at home in a dual boot setup together with the Linux distro that I had been using. I learned more about FreeBSD by devouring the FreeBSD handbook, blog posts and lurking on mailing lists.
After a while, I realized that I had spent more time in the FreeBSD system than in my Linux partition. So, I decided one day to install FreeBSD as my only operating system and it has been with me ever since. Though I was a FreeBSD user now, I still was not interacting with the FreeBSD community.
User KENNETH ENZ has uploaded this video on how to get your FreeBSD 10.1 set up as a desktop OS. Check out their channel for more FreeBSD tutorials.
A few desktop configuration and software installation options are looked at as the FreeBSD system is set up as a work station with some software considerations useful for developers.
Previous videos in this series:
FreeBSD 10.1 as a desktop OS (part 1 of 3) https://www.youtube.com/watch?v=PB4Os…
FreeBSD 10.1 as a desktop OS (part 2 of 3) https://www.youtube.com/watch?v=A7Wue…
FreeBSD 10.1 as a desktop OS (part 3 of 3) https://www.youtube.com/watch?v=sj7O2…
In this BSD Now episode, hosts Kris Moore and Allan Jude interview Jun Ebihara regarding lesser-known CPU architectures found in NetBSD. They discuss the interesting things about these older machines. Press play below to tune in:
The pkg-ng package manager has proven to be an effective and easy to use command-line package manager. It’s quick, it has simple syntax and it handles package dependencies well, so what’s not to like? Well, some people have suggested it would be nice if FreeBSD’s primary package manager had an optional graphical interface, something that made handling third-party software a point-n-click experience.
Developer Alexandre Albuquerque Arnt has taken on the challenge and ported the Octopi graphical package manager (popular amongst some Linux distributions) and made it work with pkg-ng. The result is OctoPkg, a simple, fast graphical package manager that can be used to install, upgrade and remove packages. OctoPkg will also fetch news from the operating system’s website to help keep the user abreast of security notifications and new releases. Arnt has screen shots of OctoPkg in action on his website.
People who want to test drive the new package manager can grab the latest source code from Arnt’s GitHub repository.
Intel has released the beta version of their C++ compiler for FreeBSD. Thanks to Kittur Ganesh (Intel) for informing us about this software.
Intel® System Studio (ISS) 2016 for FreeBSD* Beta provides a comprehensive embedded tool suite solution for developing, optimizing, tuning and deploying 64-bit system and application C, C++ code running natively on FreeBSD* host systems. This product release includes the following components:
- Intel® C++ Compiler 16.0 Beta for FreeBSD* systems
- Intel® VTune™ Amplifier 2016 Beta for Systems for FreeBSD* Targets
Refer to the link below for more details on the product and features thereof: