openbsd

Erlang? Erlang!

erlang openbsd

Let’s dive into some new language programming. Functional of course… Erlang!

In Openbsd, did some tweaks into the installation process…

~> doas pkg_add erlang rebar
~> ln -s /usr/local/bin/erl<version> ~/bin/erl # my personal bin directory
~> ln -s /usr/local/bin/rebar<version> ~/bin/rebar

It was not so obvious for me but it seems that rebar is to erlang like leiningen is to clojure. And as such, you can initialize your project quite easily

rebar new umbrella prj-name

Also your first time?

A bit more on rebar

You can see all templates and understand them better with

rebar new help

Now what?

Well, now with the template one can really program in Emacs. I am currently using erlang mode from this instruction. However, my load path was a bit different.

(setq load-path (cons  "/usr/local/lib/erlang<version>/lib/tools-<tools version>/emacs"
		     load-path))
(setq erlang-root-dir "/usr/local/erlang<version>")
(setq exec-path (cons "/usr/local/erlang<version>/bin" exec-path))
(require 'erlang-start)

Once that is fired up, in the *app*.erl file, C-c C-k to compile (quite ciderish… very comfy).

Doubts?

If in doubt with rebar

rebar help <command that clouds your mind>

If in doubt with erlang:

/comments ~lucasemmoreira/opinions@lists.sr.ht?Subject=Re: Erlang? Erlang!

Zoom vs OpenBSD

openbsd tools

I do not mind saying it again, OpenBSD is pretty cool, however it does has its quirks. Recently, I had a fairly important meeting in Zoom in which I would make an presentation and I did not make it because I could not enter the room. All it appeared to me was and enternal “Joining” and the endless MS circle spinning.

So, let’s fix it shall we?

Apparently, in order to make Zoom work, one must have wasm enabled in your system. By the way, this is what I would call a bloated piece of software… it only is a videoconference software… geez…

Anyway, I digress. So, OpenBSD disables wasm by default for security reasons. So, what one can do is: enables wasm, go to your conference and at the end disables it.

And I give you sadzoom! You will notice that I use chromium to enter the conference. I do that because with chromium because outside of the box it allows screen share. Why sadzoom? Because you are probably sad to use zoom as I am…

One last thing, remember to use let’s-meet to enable cam and mic =]

/comments ~lucasemmoreira/opinions@lists.sr.ht?Subject=Re: Zoom vs OpenBSD

Uploading in firefox vs OpenBSD

openbsd firefox

I had some issues adapting to some security features in OpenBSD, for example, to have videoconferences (let’s meet). Another interesting problem I had was that I could not upload files from firefox.

To fix that, all I had to do was enter on this “page”: about:config and change this setting to the specified path that I wanted dom.input.fallbackUploadDir.

There you go, now you can upload files from this directory on your firefox.

/comments ~lucasemmoreira/opinions@lists.sr.ht?Subject=Re: Uploading in firefox vs OpenBSD

Meetings in openbsd

openbsd tools

Ok… I have been using a little bit more OpenBSD, and I was having some issues to use it during calls. After some research and experimentation, I have thought a way to make it happen! So it was born lets-meet!

It is simply a toggle to enable/disable microphone and camera. Enjoy!

/comments ~lucasemmoreira/opinions@lists.sr.ht?Subject=Re: Meetings in openbsd

Searching for packages in openbsd

openbsd

Finally! I am using openbsd! It is quite interesting but somethings are different. I will need to post somethings to help me remember =]

Starting by package search:

pkg_info -aPqQ package | sort

where package is what you are looking for. Thanks for the tip Umgeher!

/comments ~lucasemmoreira/opinions@lists.sr.ht?Subject=Re: Searching for packages in openbsd