ClamAV on MacOS via pkgsrc

Screen Shot 2017-09-16 at 2.55.40 PM

I desired to be able to do an anti-virus scan on my MacBook.  After trying and paying for several large proprietary alternatives and being dissatisfied I decided to try and use ClamAV like I do on Gnu/Linux.

At the time of this writing there is a proprietary GUI using ClamAV in the backend but that didn’t seem interesting.

I then tried to build ClamAV from source but stopped after a few hours of errors. Nevertheless it was a nice learning experience dealing with GCC and LLVM.

Finally the best solution in my case was to use pkgsrc.  It’s a package manager familiar to us GNU/Linux users.  From their website:

pkgsrc is a framework for building over 17,000 open source software packages. It is the native package manager on SmartOS, NetBSD, and Minix, and is portable across 23 different operating systems. Use one package manager across all of your systems!

Joyent provide binary packages for SmartOS/illumos, Mac OS X, and Linux.

The documentation on Joyent’s website was clear and easy to follow.  Once pkgsrc was installed, I could move on to the ClamAV documentation which was also very good.

Now when I want to do a quick scan of a suspect directory it’s just update and run.

sudo /opt/pkg/bin/freshclam

clamscan -r -l scan.txt /Path/to/your/directory

After using this solution for several months I have no complaints.  Another benefit is access to all of the binaries from Joyent.

Worth checking out if you’re in need of getting ClamAV running on MacOS.

I’m seeking an exciting part-time project!

 

I’m seeking something fresh and fun.

My background is in high level technical support for complex applications, websites, and databases.  I’m very good at setting up custom, secure, reliable, and fast servers on GNU/Linux.  Server side scripting is also enjoyable.  PHP and shell are my favorites.

If you need somebody who can troubleshoot and resolve issues on the entire software stack let me know.

Here is a brief list of previous projects and employers.

Thanks!

Convert an XML feed to a new Mastodon status.

Screen Shot 2017-08-25 at 10.59.08 AM

I’ve been greatly enjoying a social media alternative called Mastodon.

For fun I’ve started on a PHP script to convert XML, RSS, and ATOM to a new Mastodon status.  While there are multiple libraries that can do this such as simplepie, it seemed like a good exercise to write one from scratch.

I currently have a test instance running on Ubuntu via the AWS free tier.  It’s a single PHP script run via cron daily.  No database or web server required.  Now when I log into Mastodon to see what the cool kids are doing I can also catch up on my favorite news feeds all in one place.  Similar to how some people use twitter.

When time permits I’ll add more functionality and possibly additional feeds.  Commits and comments welcome.

Source code:  https://github.com/the-sillystring/rss2mastodon

WhereAmI? Situational Awareness with HostReconX.

HostReconX_beta

After stumbling upon the useful HostRecon, I hope to start a conversation on a possible non-Windows variant called HostReconX, targeted at macOS and Ubuntu.

It is a shell script that gives the user common environmental information.

I have merely begun an outline of the code and have only tested on my personal laptop.  As time permits I’ll test in various virtual environments.

It’s more of a fun experiment than anything else.

Please feel free to contribute!

A Great User Group: Boston Linux & Unix

blu-logo-400

This is an excellent example of a to notch computer user group.  Check out The Boston Linux & Unix User Group.  They have several email lists and meet once a month in or around MIT.  The members are diverse and you would be surprised at the talent lurking.

I have enjoyed their “discuss” list for many years.  It’s friendly to GNU/Linux, BSD, and Unix noobs as well as useful for the seasoned professional.

They also have an interesting history.  Here’s a quote from their about us page:

Boston Linux & Unix began as The Boston Computer Society‘s Linux & Unix User Group; we’ve been meeting since 1994.

Whether you’re in Hawaii and want some nice folks to email with or in Boston and want to have a beer and chat in person, BLU is a great tech group for everybody.

I can not recommend it more.

Programming as Art

knuthatopencontentalliance

To summarize: We have seen that computer programming is an art, because it applies accumulated knowledge to the world, because it requires skill and ingenuity, and especially because it produces objects of beauty. A programmer who subconsciously views himself as an artist will enjoy what he does and will do it better. Therefore we can be glad that people who lecture at computer conferences speak of the state of the Art.

Seems like a good quote for a new blog.