Posts
Dual boot Windows 10 and FreeBSD with ZFS
I followed the guide located here
I am currently dual booting FreeBSD 13.RC5 (13-RELEASE should be out extremely soon as of this post) and Windows 10. I have had no issues.
But can you watch DRM enabled content like Netflix? You bet you can! Download and run https://github.com/mrclksr/linux-browser-installer. Works like a charm. It actually loads faster than native Firefox.
In addition, I have bhyve with an Ubuntu 20.04 guest. I am using the tool vm to manage virtual machines.
Posts
Get Pianobar Updates On Touchbar With MTMR
I found MTMR and am really liking it so far. However I also enjoy listening to music with Pianobar but saw there was no love to make the current song playing show in the touchbar. The following is what I did to make it work. Mac OSX 10.14.5 is what I am using, but this can also be made to work on any *nix distro as well.
My repo of files are located here
Posts
ZFS kmod Does Not Build On Fedora Kernel 4.20.4-200
After updating my Fedora box, I noticed that the ZFS kernel module was no longer loaded. The error (from /var/lib/dkms/zfs/0.7.12/build/make.log) was:
{% highlight bash %} /var/lib/dkms/zfs/0.7.12/build/include/zpios-ctl.h:186:11: error: implicit declaration of function ‘current_kernel_time’; did you mean ‘current_kernel_time64’? [-Werror=implicit-function-declaration]
ts_now = current_kernel_time();
^~~~~~~~~~~~~~~~~~~
current_kernel_time64
/var/lib/dkms/zfs/0.7.12/build/include/zpios-ctl.h:186:9: error: incompatible types when assigning to type ‘struct timespec’ from type ‘int’
ts_now = current_kernel_time();
{% endhighlight %}
The easiest fix is to:
Download zfs-linux_0.6.5.11-1ubuntu3.6.debian.tar.xz extract and get debian/patches/3204-Add-4.
Posts
Streaming Audio from Linux to OSX with Pulseaudio
This is not for everyone, and I know that there are better things I can do (like hook up a pair of speakers). Let me explain.
I have a Fedora box that I use as a home personal server. It runs various services. However because the more monitors the better, and I believe in having as many HUDS and graphs as humanly possible, it IS running X and has a monitor attached to it.
Posts
Setting up AWS API Gateway using Chalice, SQS and Celery
End Goal To have an api that sends SQS messages to a queue to be processed by workers.
Flow api request -> AWS API Gateaway -> SQS -> Celery
Why? Why manage an api for yourself when chalice and AWS can handle it quite easily for you. Yes the cloud is someone else’s computer, but I don’t want to be woken up because a server is down. I would rather be notified because a behemouth like Amazon is down.
Posts
Installing OpenBSD On Rackspace Public Cloud
For the longest time I wanted to see OpenBSD on Rackspace Public Cloud. With their boot.iso you are able to attempt to boot into a pxe environment and boot OpenBSD 5.7, but it lacks the necessary drivers for xen. I gave up for a while. but tried with the release of OpenBSD 6. I am happy to report, that you CAN and it WORKS! To do so, you boot into a linux distro, download bsd.
Posts
Querying Chef REST Api With pure Ruby
If you want to talk to the chef API without using some wrapper like Ridley, knife, etc.., this is how you do it:
Note: This is taken from here but modified to use httparty {% highlight ruby %} require ‘base64’ require ‘time’ require ‘digest/sha1’ require ‘openssl’ require ‘net/https’ require ‘json’ require ‘pry’ require ‘httparty’
class ChefAPI # Public: Gets/Sets the String path for the HTTP request. attr_accessor :path
# Public: Gets/Sets the String client_name containing the Chef client name.
Posts
Active Directory Password Export Service Silent Install
Password Export Service allows you to export users and passwords from one active directory domain to another. All the guides I found show how to install it graphically. It took a bit but eventually I was able to install the service AND import the key created with ADMT all automatically. I used chef but any automation tool will work. It did require some hacking.
You have to edit the password export service yourself via orca, instEd, etc… Something has to alter a datbase table, or else it will ALWAYS prompt and ask if you who you want to run the service as.
Posts
Mailonacircle: Mailinabox(ish) for Centos 7 With Selinux=Enabled
Recently I saw the latest mailinabox, and man is it fancy. I looked, and there was nothing like that for centos. I wanted a way to help the lazy people out there setup a centos 7 box with postfixadmin, dovecot, spamasassin, clamav-milter, postgrey-milter, mariadb, and dkim with ease. So in very short time in between down time, I wrote mailonacircle. It uses chef-solo, and the attributes are basic and do not make a lot of sense at first glance, but it is a start.
Posts
Centos 7 and systemd-nspawn
With systemd, comes systemd-nspawn. (I will not talk about love/hate of systemd, not in this post at least. Let’s just say if you start out saying you are writing an init system, why does your init system takeover acpi?). Anyway, part of the systemd monstrosity is something called nspawn. In short, its a “more powerful” chroot, but still should not be relied upon soley for security (think defense in depth people!