Getting Started with FreeBSD

I’m a huge FreeBSD fan. My very first home router ran FreeBSD back in the late 90’s and since then I have installed it on every single server I worked with. I do realize that this is some kind of niche since almost everybody else is running Linux these days. This is why I thought to make FreeBSD a little bit more approachable to the curious people.

Why? Because FreeBSD offers a lot of cool features like ZFS, Jails, reliability, stable API and a great network stack which makes it a really superb server operating system. In fact I just realized I never had to clean install any of the many FreeBSD machines I have operated. They just kept running flawlessly unless some hardware died of course.

To get you started I have recorded a little screencast to show how easy and painless it is to install FreeBSD 10.0 with a ZFS root filesystem on a remote machine even if the hosting provider does not provide FreeBSD rescue images.

In the next videos I’ll show you how to install software, set up a web server and other common, server related tasks.

For that I have created a FreeBSD Guides channel on vimeo.

Additional Links:
* http://www.freebsd.org
* http://www.freebsd.org/releases/10.0R/hardware.html
* http://en.wikipedia.org/wiki/FreeBSD

FreeBSD: Authentication Error when fetching ports from github

For people who have the same problem:

I have tried to install a port that fetches its source from github and it failed to fetch it.

When I tried the fetch command manually for the given URL I saw the following error:

fetch https://github.com/nicolargo/glances/archive/v1.7.3.tar.gz
Certificate verification failed for /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance EV CA-1
34380826280:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_clnt.c:1168:
fetch: https://github.com/nicolargo/glances/archive/v1.7.3.tar.gz: Authentication error

I assume its related to githubs latest improvement to their HTTPS/SSL infrastructure.

To solve this I installed the very latest version of OpenSSL on my FreeBSD 10 machine and afterwards the installation just went fine.

Resampling / Converting Audio Files

Here is a little tip. I have just finished mixing concert recording. The mixing was done in Reaper at 24bit/48kHz and now I needed to convert / downsample it to 16bit/44.1kHz. If you leave that up to black box encoders you can actually hear a change in tonality or loudness even with untrained ears. At least I noticed sometimes that inside the DAW it sounds different than what I had rendered out to 16bit/44.1kHz.

Reaper, like any other DAW, has this feature built in, however it presented me many different options on how to actually do it. I also watched an interview with Bob Katz (Loudness War fighter and author of this this awesome book on mastering
) who talked about how he used to do it.

So apparently there are multiple options and as a beginner in mixing / audio processing it was totally unclear which option would be the best. I started googling and stumbled upon this comparison website (http://src.infinitewave.ca) for SRC engines and it turned out none of the options in Reaper was on par with the pricy industry standard iZotope. In fact many of the popular DAWs don’t perform as good as that particular piece of software. (Hint: Click the help button for explanations of the graphs)

After researching some more I found out about SoX, which is an open source audio converter which is superb at sample rate conversion. It was awailable in homebrew and within a few seconds I was able to convert my 24bit/48kHz files with the following command line:

sox 24bit_48khz_infile.wav -b 16 \
16bit_44.1khz_outfile.wav rate -v -s 44100

This should correspond to the SoX VHQ Linear setting on http://src.infinitewave.ca.

Of course you can ask whether you’d actually able to hear any difference … well I’d have to do a double blind test and would probably fail but I don’t see any reason not to use the superior and free tool when I have the choice.

Also I’ve just donated a few bucks to the Sox project and I hope you’ll do the same for open source software which makes your job easier!

How to build an electric guitar

After spending a lot of time learning to play the guitar I felt the urge to start building my own guitars. I saw a movie called »It might get loud« where Jack White is nailing a pickup to a plank of wood, hammers nails to hold the strings and jams along. It didn’t seem too dificult.

Then I spend allmost all my spare time to watch videos on youtube where people showed step by step how to make a guitar from three pieces of wood, in every possible detail. I was hooked.

Now for my very first guitar I didn’t want to spend a lot of money on wood and tools. I wanted to build the simplest possible electric guitar I could make. I had some pieces of wood lying around which were used to make a bookshelf. I bought a cheap neck on ebay and then I bought some pieces of MDF.

One saturday I walked by my favorite little custom guitar shop around the corner to ask whether they had a really cheap telecaster bridge and they did. I also bought an audio jack, two potentiometers, a capacitor and a bridge pickup which they make themselves. I paid 90€ for all the parts and I was ready to go.

Back at home I put all the parts I had on the floor to see how everything could fit. I measured the scale length to know where the bridge has to go and then I started cutting the piece of wood to the desired length

In the next picture you can see how I made the cut. I attached another piece of MDF with a screw clamp as a rail / guide for the jig saw. This way you can make perfectly straight cuts and is highly recommended if you don’t have any better saw.

Then I already attached the neck to the body of the guitar so I could make precise measurements for the bridge. Its important to have center line on your guitar body which you can relate to all the time. Once the neck is in its final position, determine the exact center line and put the bridge as precisely as possible on it. On the next picture you can see how I drew the positions of the bridge and the pickup on the wood so I could always see if something does not fit before putting everything together.

Since I didn’t have a router and the wood for the body wasn’t thick enough anyway, I decided to use an extra layer of MDF, made of two pieces to hold the bridge. In the middle of the two pieces I left a gap for the pickup. I used wood glue and screw clamps for attaching the MDF and that worked extremely well.

After that was done I drilled some holes for the strings and the bridge and attached the bridge to the body for a first test with strings.

I didn’t have an electronics compartment yet and I also kind of forgot about it that night so I screwed the potentiometers and the audio jack into a piece of cardboard and soldered everything together. The schematic for 1 pickup, 1 tone and 1 volume control you can find on the seymour duncan website. They have tons of awesome wiring diagrams for all kinds of configurations (always watch out for the different humbucker cable colors though)

Here you can see a video of the very first soundcheck:

Now the last missing was the electronics compartment and like I said before I kind of forgot about that. At least I really didn’t think about how I would do it with the tools I had at hand. I could’ve done something similar to the bride but all the things I came up didn’t satisfy me. Luckily I talked to a friend of mine that day and he said he had a CNC mill/router which we could use to make the compartment right behind the bridge. I accepted the offer and the next day I drove to his workshop. I had to disassemble the bridge again for that but that didn’t matter.

After I had the 8x8cm compartment I drilled a small hole for the pickup cable. I screwed the potentiometers (tone controls) on a thin piece of MDF and used that as the cover/control panel for the electronics compartment. Finally I sanded off some of the sharp edges of the wood and attached some Dunlop Straplocks.

This is how it looks like in its final state:


My friend and band colleague David came over to my place for dinner and a glass of red wine and played on it while I recorded him. First he is playing through an Orange Micro Terror and my self-made cabinet and later through the Fender Hot Rod Deluxe III and various pedals.

The whole project was a lot of fun and I learned some valuable lessons for the next guitars I’m going to build. I can highly recommend it. All in all I paid like 200€ for all the parts and these were the cheap ones. Consider this if you see a Stratocaster from Asia for 100€ or less! The most important tool by the way is a Vernier caliper

Parts I bought

I also bought a really insightful book about how to build guitars. Its not that expensive and provides tons of good tips for certain steps of building a guitar and setting it up properly.

I hope this is an inspiration to you to build your own electric guitar. It took me about two days to finish it and it was fun all the way. Stay tuned for more!

Related

Also check out my blog post on how to build a guitar speaker cabinet

UPDATE

Somebody on the internet already made his own electric guitar from these instructions and even improved it! Check it out!

Why (not) pay for music?

Introduction

For over a decade now the music industry is struggling. I don’t think that there is a single reason for that, but the rise of the internet certainly had the biggest impact on that negative trend in recent times.

In the 21st century it is easier than ever to copy vast amounts of data around the globe while preserving its quality.

Compared to the physical world, where it would take ages to copy hundreds of Tapes or CDs, copying the same amount of information digitally just takes a few minutes. Or as Cory Doctorow put it in this talk: »Copying data will only get easier«.

And because music is “freely” available, 24/7 around the world through the internet, a lot of people don’t even consider paying for music anymore.

The music industry is quick at putting the blame on filesharing. Others would say that its the fault of the music industry who failed, even after many years, to understand the internet and its users. They would constantly try to make it harder to copy music by using DRM and other defensive technologies rather than accepting the digital reality and trying to make it as easy as possible to listen, share and pay for music everywhere at any time.

They are still trying to apply the same business model of physical copies to a world where you can create a new virtual instance of your product instantly.

If anything, they should be happy about the digital age, rather than trying to fight it.

But of course its not that easy. Lets take a look at how the music industry actually works.

Music Industry, what is it good for?

The way it used to work was this: Employees of the record labels would constantly look for new promising artists – promising to produce and sell hit records. Then they would do basically the same thing that investors do for start-up companies, invest money without knowing whether they will get it back.

They would invest money so the artist can focus on the music, pay the rent, can buy decent gear, rent a proper rehearsal room, get into a good recording studio for the first single or album, organize a tour, organize radio airplay time, get them into festivals maybe even shoot a music video. In essence they would invest to improve and promote the artists so that eventually he/she/them will become so popular that people will buy enough CDs to make up for the initial investment plus additional profits.

You can guess that this kind of investment can easily grow to tens or hundreds thousands of dollars if you think about the salaries of the people doing the actual work inside the record label, plus the gear, plus production costs in a studio, making the physical records and distributing them etc etc.

Just like with other investments there is a huge risk involved. As a rough estimate lets say 9 out of 10 artists never get successful enough to recoup the investment and only 1 out of 10 is successful enough to pay for the losses of the nine others, plus its own investment costs and some extra profit.

Obviously the record labels would love to have more hits and they try everything they can to make it happen by deciding which single is going to be released first or arguing with the artist about whether the music is conforming enough with the taste of the »mainstream«.

Many customers have a more naive view on this whole operation. When they go into a store and buy a CD there is this romantic idea that most of the money will end up with the artist and that you could make a decent living just by selling a couple of thousand CDs. In reality however most of the money goes to all the middle men and women who are between the customer in the record store and the artist. The record label will keep most of the revenue until the initial investment is balanced. From a CD that sells for 10$ the artist might only get a few cents, if any.

In a good record deal for a new band the label will get about 85% of all the revenue. The artist will have to pay back all the expenses and production costs from the remaining 15% before the artist will get any money in their pockets.

With all this in mind you can imagine that even if you are quite successful after signing a record label deal, its likely that you end up with just a regular job afterwards. Bands like the Beatles, Stones, Led Zeppelin, Pink Floyd, Queen or artists like Bob Dylan, David Bowie, Billy Holliday, Janis Joplin or Madonna – these are actually super rare and extreme exceptions.

So signing a deal with record label does not mean that you’ve made it. You have to work really hard and you also need a good amount of luck to survive.

In the end you get to work with professionals, you are getting paid for making music, you will burn lots of money and you’re giving up some control over the creative process and also about copy and distribution rights of your own work.

Although that might sound a bit negative it can be quite fun and it is exactly what made all those big bands and artists so famous. It is just worth knowing that theses artists also pay for so many more commercially unsuccessful artists which may have made this one record which you hold so dear and which became the soundtrack of your life.

Another essential piece of the grand picture is the way music was primarily distributed. Television and radio were the two main channels for promoting new music.

A band from a small town would have a really hard time to reach more people with their music. If you’re unknown its hard to get into venues because people just would not pay to see you.

Instead you would try to get a record deal because they have a huge promotion network with all the radio and tv stations, sometimes on a global scale. If you send a demo tape to a label and they decide to sign you, what you really get is a massive multiplication of exposure beyond what you could ever achieve yourself in a reasonable amount of time.

For a long time radio and tv were the primary source for people to discover new music. If a regional radio station plays your song, thousands of people will listen to it. This kind of immediate exposure is almost priceless and I think that this is really the biggest benefit of signing a deal with a record label.

Now back to the present

These days the reality is different. Record labels still sign artists and invest a lot of money to promote them but if people like something, they just download it for free from the internet. End of the story … at least in the one of the music industry. Still this is happening. Its not a myth. People download music (among other things) for free if they can. Not all, but a significant amount.

Some won’t even download it illegally, instead they will just listen to music through streaming services like Spotify which are free to a certain extend and which yield so little profit to the labels or the artists that it is almost like downloading it for free. Maybe this will improve over time but right now its just a drop of water on a hot stone.

There are also a lot of people buying music online. In fact digital is the only growing division at any record label but compared to the good old CD times it is still on a much lower level and does not yield enough money to compensate for the declining CD sales.

Even though most labels tried to cut back the production costs they still take a huge risk when they sign a new artist to ever get the money back. As a result the label deals now try to squeeze as much money out of the artist as possible by taking revenue shared of all the artists commercial activity.

Just as a reference you can expect that a new band today has production costs around 60.000 Euro for their first album on an “indie” label. With the current market it is almost impossible to get that money back if the album is not a huge success.

As an artist you are basically on your own, now more then ever.

Everybody in the industry, the labels, the promoters, the radio and tv stations, even though they get paid to help you, are to afraid to take any risks. They will still take your money though.

The only solution the labels came up with on their own is to criminalize the listener and potential customers by restricting the access to the music and to sue people for ridiculous amounts of money.

What is the solution then?

Independence. Take as much control over your work as possible and do as much as you can on your own.

Why? Because nobody in the world cares more about your music than you do!

The biggest cost for the label is the production and the promotion of your music – these days however you can do most of it on your own.

Step 0

Make music. Depending on how many people like it you can get really far on your own if you follow those advices instead of waiting for the record label magic to happen.

Step 1

Educate yourself. Buy books about recording and mixing music. By now there are so many great books available from professional producers which will give you enough knowledge to create good recordings on your own. When you are rehearsing you are also practicing your recording and production skills. Don’t wait for anybody to come and do the job for you. Do it yourself.

Look on youtube for tutorials, how to’s, tips and tricks from experienced people. It is all out there.

Yes you will need some money for equipment and yes you will need to invest a lot of time but if you’d sign a record label deal now it would take months if not years until your record is out and you’d waste a lot of time thinking »Oh I have a record deal and people are paid to take care of my stuff« when in fact these people rarely do anything in your interest. Over time you may spend 3.000 or 5.000€ or $ for various recording gear but it is not wasted. You get to keep the gear and the experience you gained along the way.

Step 2

Don’t wait for a record deal to sell your music. A lot of artists are afraid to put out their music on their website or on bandcamp because if the get a chance for a record deal the labels won’t like that. Do the opposite! Embrace the internet, put your music out if you feel like it. If you made something great and you want to share it with the world now then do it.

Don’t even care to get on streaming platforms in the beginning. They are all more or less under the control of the labels and you would be the luckiest person in the world if you can buy a box of beer from the revenues after a year or two.

Why? Lets say you pay 10$ for Spotify and you only listen to one artist for a whole month then Rihanna, Lady Gaga and Beyonce and all the other super stars will get 99.999999% of your 10$. Its because all the money, be it advertisement or subscriptions is thrown in a huge bucket and divided by play count. Its a system where you need to be big already to profit. Otherwise it will take you a looooong loooong time to get even one single dollar out of this model.

Step 3

Communicate with your fans. Have a blog, a website or a facebook page where people can follow what you are doing. Let them comment on your work and reply to feedback that you get. Make videos about yourself. Give people on the internet a way to get to know you and to relate to you. This is crucial if you want earn their support. Be good, be yourself and be honest.

Step 4

Provide multiple ways to support you financially. Put your music on bandcamp or similar platforms for a reasonable price and always allow to pay more. Don’t ask for it and don’t beg for it. Just enable people who love what you do and who want to support you to do so. Also offer a way to give you money that is not necessarily related to a release. If you have your own blog or website make use of services like paypal, flattr and centup but don’t push it on people – just provide channels for people who want to support you.

Step 5

Promote yourself. Don’t rely on other people to do that. For example you could use facebook ads to show people who like similar bands information about your music. You can try it out for really small money and you will point more people to your work. Show it to friends and fans and make it easy for them to share it via all kinds of social networks to their friends. Ask people kindly to listen to your stuff and share it, retweet it, like it or even promote it if they like it. Sending an email, writing a facebook or blog post is free.

Try to play on small festivals, play on open stages, play for friends, play on the street – get as much exposure on your own. In the beginning you can’t play clubs until you pay everybody off including the audience. So start small. If people like what they hear the will tell other people about it.

Step 6

Think for yourself and don’t just follow blindly these advices. Think about what you can do what the labels can’t do or are afraid to do.

Step 7

Talk about all this with people around you and help others get start by sharing your experience.

All those steps won’t help you of course if you don’t music which at least some people like other than that you’ll be much better off this way. Also realize that this is not a recipe for instant success. It will still take a long time to call yourself successful but you gain much from it.

If 3 people buy a song for 1$ each you will have made 3$ more than a signed artist after selling 1000 downloads on iTunes

Why pay for music?

Lastly, why should anyone pay for music? To support the artist in the most direct way possible. Give money to the artists you like so they can buy equipment and other essential things they need to make music. Give them money so they can make more music for you and are able to stay independant from the music industry.

Recommended Literature

Request for Feedback

It took me a while to write all of this down and I probably forgot to mention some things and made mistakes along the way. Please let me know if you have any feedback, suggestions for improvement, additional literature or spelling corrections.