Blog Archive

I’ve been doing a fair amount of work lately setting up Samba4 domains and can tell you from experience that it can be a pain. I started out using 64 bit Debian 7 installer and compiling Samba4 from source. This method is frustrating to say the least, there is a lot to go wrong if you don’t have your methods down solid. After setting up a few domains this way, I began looking around for a better way. That better way is the Sernet Samba4 appliance, available at

The Sernet appliance is built on Debian and works fairly well. The issues I ran into with the Sernet appliance .iso however made it impractical. I found that the .iso installer has issues with some non-free drivers (NIC drivers on my dell server), and with XENserver 6 (display issues and trouble with XORG). After fighting with the issues for a while and not making much headway I looked for another way. In my searching I found angryelectrons automate script available at

I ran angryelectron’s script on a vanilla 32 bit Debian 7 install and it works without much fuss, both in xenserver and on bare metal. The only issues I’ve found is a real lack of documentation or forums regarding Sernet’s appliance as far as installing and configuring Samba4. Below are some useful things I found while setting things up that may be useful to others who want to try building their own Samba4 domain.

Running angryelectrons automate script will ask you a few basic questions about your domain. After running the script I checked DNS resolution for my domain server by running the following commands (swapping mydomain for what you named your domain in the setup):
#host -t SRV _ldap._tcp.mydomain.local.
result: _ldap._tcp.mydomain.local has SRV record 0 100 389 samba.mydomain.local.
#host -t A samba.mydomain.local.
result: samba.mydomain.local has address
Where I ran int trouble was with the Kerberos config. The automate script doesn’t seem to complete the Kerberos setup and when I ran:
#kinit administrator
I received an error that a KDC could not be found for the domain. Checking the Kerberos config:
#vi /etc/kerb5.conf
I found it was not fully configured with only the following in the file:

default_realm = MYDOMAIN.LOCAL
dns_lookup_kdc = true
dns_lookup_realm = false

To get the Kerberos setup completed I added the following lines to the bottom:

kdc = server.mydomain.local
default_domain = mydomain.local

.mydomain.local = MYDOMAIN.LOCAL
mydomain.local = MYDOMAIN.LOCAL

After adding those lines to my krb5.conf I got the expected output from:
#kinit administrator
result: Warning: Your password will expire in 41 days on Tue Mar 5 15:23:03 2013
From here its just a matter of editing your smb.conf to add shares and printing if you so desire. This is where I ran into another little hiccup that I couldn't find any documentation on, namely which smb.conf the Sernet appliance uses. I ran:
#locate smb.conf
and got 4 or 5 files in response. After some trial and error I found the Sernet appliance uses the smb.conf located at:
and to restart the Sernet appliance Samba:
#/etc/init.d/sernet-samba4 restart

After these minor things I was able to get my Samba4 domain up and running in under 20 minutes, not bad for a free Active Directory domain. Once everything is up you can you the standard microsoft RSAT to add users, logon scripts, share permissions and all the usual fun stuff.

Talk 1 (of 1)Create Your First “Native” Mobile App with JavaScript + PhoneGap

    – Intro to PhoneGap (create native-ish mobile apps using JavaScript/HTML/CSS)
    – Example app: Encrypted Anti-TODO List
        – Store encrypted list on untrusted server, create new list items and query from phone
    – Writing this simple app inspired a more general solution I’m working on: CrypTag
    Client side: JavaScript, PhoneGap, SJCL (Stanford JavaScript Crypto Library)
    Server side: Trivial Python web app (Flask)
Difficulty: Easy/Intermediate
    – Familiarity with JavaScript is recommended, as is a desire to create mobile apps!
Speaker: Steve Phillips
    Twitter: @elimisteve
Duration: ~30 minutes

Event Summary

Talk 1 (slides):
– Explained PhoneGap v. alternatives
– Showed people how simple it is to make basic PhoneGap apps by going through a basic example app
    – Basic example app I’d written: “Encrypted Anti-TODO List” [SOURCE CODE COMING SOON]
– Explained CrypTag, the spiritual successor to Encrypted Anti-TODO
    – “CrypTag: Encrypted, Taggable, Searchable Web Storage”
After the core of Talk 1:
– Showed people this Go code example to show off its concurrency support
    – Someone asked why I like Go, which I apparently mention in every conversation and talk regardless of what it’s supposed to be about
– Went through an exercise of taking ugly code I wrote and making it waaay better with the help of the community
    – Encouraged people to join so I can add them to the team, thereby making it easier for us to give each other feedback on code we write
– Talked a bit about what’s in store for WebTech Wednesday in 2014
    – Nodebots? Docker? Ansible? D3? pandas?
– Mentioned the TA3M chapter AJ is starting here in SB, which he then told us a bit about
– Pre- and post-talk discussions included D3, Docker, Bitcoin, and more
Thanks for coming, everyone!  See you in January for the next WebTech Wednesday.

Update 11/26/13: A big thanks to everyone who helped us unload the trucks. We managed to unload both trucks quickly and with little excitement.The santa barbara hackerspace will be receiving two shipping containers worth of donated equipment on monday 11/25/13 UPDATE: arrival date changed to 11/26/13, between noon and 8pm. We will need all the help we can get to unload the equipment and set it up. So if you have some free time and want free food and drinks come by the space monday and join in the fun. The equipment was donated by an energy research lab in Canada and there is a lot of it. The trucks have been dispatched and are on their way now!

Link to sign up:

Spaces for the class are filing up quick so sign up, don’t worry if you can’t make the first class, there will be more. The first class is tentatively set for mid December, this will be solidified as soon as the class fills up and money is collected. We have had a lot of very positive response to this class so we are planning another one for January. The class will be ~$800 +tax and there will also be a lunch offered. The prototype has been completed and tested, we just need 2 weeks to source all the parts after collecting the class fees. The classes will span a full weekend 6 – 8 hours a day, and at the end of the weekend you’ll have a fully assembled and working 3D printer with an 8 inch cube build area. See our earlier post for images and video of our printer . The printer is a RepRap Prusa i3 derivative with some custom mods we added to make things easier.

The kit includes:

  • A RAMPS controller (arduino mega and motor driver shield)
  • J-Head hot end capable of printing ABS and PLA
  • Heated build platform
  • 24 volt power supply
  • 1 kg of PLA (in your choice of color)
  • 3D printed Parts
  • Laser cut wooden frame
  • Bearings, linear rails, threaded rod, etc
  • Hardware (nuts and bolts)
  • Belts

and everything else you need to build a fully functioning 3d printer. The classes will be taught by our most experience 3D printer gurus, Nick Winters, Mike Kapuscik, and Mike “Swiss” Bales. Even an electronics and computer novice will be able to construct and operate the 3D printer by the end of the class, as well as troubleshoot and repair their machine.

All proceeds from the class will go towards improving the Santa Barbara Hackerspace (an IRS recognized 501(c)3 organization) equipment and facilities. All our source code and CAD files will be freely available online so you can also make or improve your own printer. So please sign up, get yourself your very own 3D printer and support your local hackerspace all at the same time!

Yet another SBHX board meeting to further hash out our name situation among other things. The meeting is schudled for Saturday Oct. 5th at 5pm at the Santa Barbara Hackerspace in goleta. Other topics include grant ideas, creating a mission statement, and whatever else comes up. The meeting is open to everyone so come by  and see the mighty wig. This Post will be updated with the meeting minutes after we have finished.

The Santa Barbara Hackerspace will be hosting a cyanotype class on Sunday December 10th. If you have never heard of cyanotype wikipedia has an excellent entry on it here. It is a very early form of photography that is very simple and requires minimal chemicals and preperation. The class will be 4 hours long with a brief description of the history of cyanotypes, the theory of operation, and making a couple of prints. You can bring alonf most any mostly flat object to make a print of or bring a photo file to make into a cyanotype.

The class will be led by Kayla Pence, a local photographer and graduate of the Brooks Institute school of photography in Santa Barbara. CHeck out her website and work at The class is open to all ages and the materials are safe to handle. The class size is limited to 15 people and if we have enough participants we will do 2 classes on the 10th. The classes will be held at the Santa Barbara Hackerspace in goleta. The fee for the class is $25 and includes paper, chemicals, printing, etc for 2 cyanotype prints.

A sign up sheet will be posted shortly. After submitting the signup sheet you will receive a confirmation email with payment details.

Sign up page is now live! TO sign up go to and purchase your seat in the class.

The Santa Barbara Hackerspace  will both be hosting sumo bot classes in November. The class will be three 2 hour sessions and will cover constructing the sumo bot, programming an arduino to control it, and a competition to pit your bots against each other. Classes will be held on Thursday evenings from 6pm to 8pm at the Hackerspace. The sumo bots are very simple with only a handul of parts and just a handful of code to get them moving.

The real challenge of the class will be the software. The bots for the class will all have the exact same hardware, so its up to you to find the best way to navigate the arena and push your opponent out without going outside the arena or being pushed out by your adversary. The bots use a pair of continuous rotation servos for locomotion and a 6 volt battery pack for power. The only sensors are a pair of hall effect sensors under the bots scoop to detedt a magnetic ring under the arena to keep your bots in the circle.

Class size will be limited and a sign up sheet will be posted shortly, so sign up soon and get your spot in the class. Once the form is posted we will have 10 slots available for students. After filling out the form if you’re in the first 10 you will receive an email link to paypal / google wallet. The class will cost $50 dollars and includes an arduino compatible development board, 2 continuous rotation servos, 2 hall effect sensors, 1 3d printed pla chassis, 2 3d printed pla wheels, and a battery pack with 4 AA batteries. Sign up here <will add link soon>

The classes will cover a bit of electronic theory, schematics, programming in arduino (a C++ like language), using 123d.circuits,io to test electronics assembly and programming before  getting to the hardware, and a sumo competition. After the class the Hackerspace will host regular sumo competitions so you can modify your sumo bot and learn more about robotics and programming.

If you are attending the class please bring a laptop wit you, we have only a couple of machines available for use so please bring your own if you can. It can be linux, windows, or mac, just so long as it can run the arduino IDE. We will also be offering the class for $15 for those who do not want to purchase the hardware kit with the class.

Photos of the prototype sumo bot, a bill of materials, and code will all be posted shortly.
Here are some photos of my working prototype of the Sumo-Bot, video will be posted saturday as well as code.






Yet Another Update:
Had our first sumo bot class at the library and I think it went fairly well. Learned a few things about doing class type presentations and found some wrinkles which we have since ironed out. Looking forward to our thursday class at the space, though the class is currently looking a little thin.

code below, heavily borrowed from

#include <Servo.h> 
#define LEFTBUTTON 12    // The left bumper
#define RIGHTBUTTON 13  // The right bumper
Servo servor;
Servo servol;

int rval = 0;        // val will be used to store the state of the input pin
int rold_val = 0;    // The previous value of val
int rstate= 0;      // Store the state of our circuit. 0 = off 1 = on
int lval = 0;        // val will be used to store the state of the input pin
int lold_val = 0;    // The previous value of val
int lstate= 0;      // Store the state of our circuit. 0 = off 1 = on
boolean debug=false;
int pos = 0;
int pos1 = 0;

void setup() {
    delay(1000); // Wait one second just in case I've screwed something up
    pinMode(LEFTBUTTON, INPUT);  // Pin 7 will be input
    pinMode(RIGHTBUTTON, INPUT);  // Pin 7 will be input
    if (debug == true) {   

void loop() {
  lval = digitalRead(LEFTBUTTON); // SRead input value and store it
  rval = digitalRead(RIGHTBUTTON); // SRead input value and store it
  // Check whether the left input Has transitioned
  if ((lval == HIGH) && (lold_val == LOW)) {
    lstate = 1 - lstate;
  // Check whether the right input Has transitioned
  if ((rval == HIGH) && (rold_val == LOW)) {
    rstate = 1 - rstate;
  lold_val = lval; // val is now old so let's store it
  rold_val = rval; // val is now old so let's store it
    if (lstate == 1) {
    if (debug == true) {
      Serial.println("Left bumper triggered");
      Serial.print("values are lval ");
      Serial.print(" rval ");
      Serial.print(" lstate ");
      Serial.print(" rstate ");
    //lstate = 0;
  if (rstate == 1) {
    if (debug == true) {
      Serial.println("Right bumper triggered");
      Serial.print("values are lval ");
      Serial.print(" rval ");
      Serial.print(" lstate ");
      Serial.print(" rstate ");
    //rstate = 0; // zero rstate
  int pos = (255);
    int pos1 = (0);
  // If nothing has changed both motors are on and we should be going straight. ish
      lstate = 0; // zero rstate
      rstate = 0; // zero rstate

void rightbumper() {
    // Turn left
    if (debug == true) {
      Serial.println("Turning left");
    int pos = (255);
    int pos1 = (127.50);

void leftbumper() {
    // Turn right
    if (debug == true) {
      Serial.println("Turning right");
    int pos = (50);
    int pos1 = (50);  

Class Sign Up Form:

Sumo-Bot Class Sign Up Sheet

Sign up sheet for the Santa Barbara Hackerspace Arduino powered Sumo-Bot class. The class has a $50 fee which includes a sumo-bot kit and 3 classes to assemble and program the sumo-bot. Suggested age range is 8 and up, and all children under 18 must be accompanied by a parent or guardian. The Sumo-Bots have a 3D printed chassis and wheels, an arduino uno microcontroller, 2 continuous rotation servos, and 2 hall effect sensors. The kits will require some minor assembly with a screwdriver, some tape, and a hot glue gun. The bots are extremely simple but have a lot of room for customization and upgrades. After the class the Hackerspace will be hosting regular Sumo-Bot competitions open to everyone.
* Required
    This is a required question
    This is a required question
    This is a required question
    This is a required question
    This is a required question
    Never submit passwords through Google Forms.

After seeing the 3d printed Gear Bearing, Dan had an idea. Why not make skateboard wheels this way?

So I did.

SB Hackerspace's first 3d printed skateboard wheel

SB Hackerspace’s first 3d printed skateboard wheel

All four wheels

All four wheels

Our dear leader with "upgraded" skateboard

Our dear leader with “upgraded” skateboard

They were printed to be taller than normal wheels, closer to 2.5 inches tall, and made out of ABS, printed at 0.3mm layer height with 2.2 width over layer height and 40% honeycomb infill. Each wheel took 3.5 hours to print, and I didn’t have trouble getting them rotating smoothly. They were greased with white lithium grease which makes them roll even more smoothly.

I have a video of us trying them…

They work, for a few minutes at least. They roll well but quickly the gear bearing gets more loose which doesn’t impact how they roll much during the maybe half our of riding they had. They weren’t printed with quite enough infill so the outermost layer of the wheel comes off like an old retread on the rear wheels, and they aren’t strong enough to take a kick flip.

Broken wheel after kickflip

Broken wheel after kickflip. Also one of the planets skipped a tooth.

Outer perimeter falling off

Outer perimeter falling off of rear wheel

So if you want to print them, use more than 3 perimeters, more than 40% infill, and tune your extrusion amount so that just the right amount of plastic is coming out. Maybe try polycarbonate instead of ABS so that your wheels are durable in polycarbonate ways?

The STL file and modified OpenSCAD file for this skateboard wheel design are on thingiverse.

As promised here are some further details about the upcoming Santa Barbara Hackerspace 3D printing class. First let me clarify that this is a rough outline and there are very likely to be some changes. The class will last for 4-6 weeks metting one a week for 4-6 hours at the Hackerspace in Goleta. We are shooting for a class size of 10-20 people and the class will cost $600-$800. The fees include a complete 3D printer kit (based on a reprap variant), assembly of the printer, calibration, and printing basics using open source software (sketchup, blender, and others), as well as some plastic to print with. The class will be taught by Mike K. and Nick W. who have both assembled their own printers and racked up a lot of time running their own printers’, the hackerspace’s, and the Santa Barbara Public Library’s. The goal of the class is to get 3D printers into as many hands as possible, as well as teaching the community the skills neccessary to operate their printers. All procedes will go towards purchasing a laser cutter for the Hackerspace to help round out our compliment of tools. We will be posting a sign-up sheet on this page as things are firmed up and we are ready to accept deposits. There will also be a number of updates to this post as things come together.

UPDATE 8/31/13:
I told you there would be some updates. Firstly here are some images of our test build and printer that will be printing the parts for the class.
2013-08-31 19.10.31

2013-08-28 18.27.36

2013-08-28 18.27.29

2013-08-28 18.27.22

2013-08-28 18.27.20

This is a MDF based Mendel 90 RepRap, one of the candidates for the class build. After assembling it we determined that it would likely be too difficult to assemble in a class environment. Next we’ll try a Mendel Prusa i3, which should be assembled in the coming weeks. I will be posting a class signup sheet by the time assembly is complete.

Our prototype for the class has been assembled and it prints! We are doing a little streamlining and finalizing our BOM but expect some more photos and updates soon. We are also nearly done with the class sign up page so watch for that, we will tweet / email the google group when we post it so keep an eye out.
2013-10-19 12.45.27
here’s our first official class printer being assembled!

Update 11/8/13:

Our sign up page for the 3D printing class is live at sign up and get yourself a printer! Here are some shots of the completed prototype all set up and ready to print. Watch it in action here:

IMG_2277 IMG_2278 IMG_2279 IMG_2276 IMG_2275 IMG_2273 IMG_2270 IMG_2271 IMG_2272 IMG_2269 IMG_2268 IMG_2267 IMG_2266

The Santa Barbara Hackerspace Board Meeting will be held Saturday June 22nd, starting at 6pm. It will be held at the Santa Barbara Hackerspace located at 158 Aero Camino Ste. D in Goleta. Topics will include rebranding, further expanision, budget, membership benefits, projects, events, classes, and such. The board meeting is open to both members and the public so feel free to stop in and join us.

The agenda is as follows (subject to change, these times are estimates):
6:00 – call to order and roll call
6:10 – Nominations and vote for new / replacement board members
6:20 – Discuss financial and membership statement and review
6:30 – Discuss rebranding, possible expansion, classes, changes to membership benefits, events, partnerships, etc
7:15 – Open forum for members to raise issues or concerns
7:30 – Close meeting

EDIT: below are the Santa Barbara Hackerspace board meetings notes, as recorded by the board secretary Garret.

Roll Call
Mike “Swiss” Bales (CEO)
Steve Phillips (CFO)
Garrett Holmstrom (secretary)
Rod Fritz
Mike Kapuscik
Dan Miller-Smith

Board membership changes
Christopher Teague resigned as secretary
AGREED: Garrett Holmstrom chosen as new secretary (+4)
Eric Terry, treasurer, stopped attending
Treasurer role encompasses outreach, collection or dues, and finance.
AGREED: Outreach and new member introductions are the responsibility
of everyone. No officer role is required to do this. (+5)
Swiss does Hackerspace transactions using the dedicated card
AGREED: Treasurer role not yet defined well enough; tabled until next
meeting (+5)

Space expansion
The building owner can gift space to the Hackerspace and get tax
benefits once non-profit registration is done, making rent
substantially lower. The Hackerspace can use some of that space for
heavy machinery and lease some of it to startups to help cover the
AGREED: Dan Miller-Smith will oversee this effort
AGREED: Dan is granted a seat on the board to help with that (+5)

Grant writing
Mary Bahnken (AJ’s mom) offered to help with grant proposal writing
Grant proposals require finished non-profit status and excellent bookkeeping.
IDEA: Have a CPA evaluate the books periodically
Communication about accounting must be very good, whether whoever
keeps the books is on the board or not.
ACTION: Steve and Dan to work on a writeup for financial roles and
such for next meeting

Around 40 members in the database, 22 or 23 paying
How many members do we need to support the space financially?
Rod: membership dues alone can be limiting when we can get support from

Rent: $1000/mo ($1650 total, Syndicate Pro pays $650)
Utilities: ~$110/mo ($225 total, Syndicate Pro pays half)
Insurance: ~$200/mo ($2300/yr)

Dues: ~$800/mo (Mike Bales has details)

Net loss: ~$510/mo (covered by Mike Bales)

Membership tiers
We should distinguish between different tiers of membership
Current levels: 0, 10, 35, 100
Free members have still filled out the paperwork
Insurance covers all on the grounds, not just members
Some regulars can’t afford dues, but may still donate things

The library partnership and simultaneous introduction of the name
“Santa Barbara Makerspace” have caused confusion.
“Santa Barbara Hackerspace” and “Santa Barbara Makerspace” are
relatively generic, and consequently more difficult to develop a brand
around. Consider Nullspace and Noisebridge.
Grant proposals should not contain “Hackerspace.”
Final review for non-profit paperwork usually takes two to three
months, followed by around six weeks before receiving the paperwork.
Proposal: Keep the corporation’s name and create a DBA for the ‘space
under its new name.
ACTION: Preston will research how viable it is to change the
corporation’s name.
AGREED: The library partnership did not create a separate
organization. It should not have a separate name. (+6)
AGREED: We will change the business name of Santa Barbara
Hackerspace, Inc. if it is practical to do so. (+6)
ACTION: Steve to create a google form to gather name ideas from everyone
ACTION: Steve will send a draft of an announcement around
IDEA: We should have a media release of some sort immediately after
the name changes.
AGREED: Name suggestions will close two weeks after Steve sends the
survey announcement to the google group. (+5)

New space
ACTION: Dan and Steve will gather info about finances.
ACTION: Swiss will create CAD drawings for electricity, room layouts, etc.
AGREED: Discussion on the space next door are postponed until next
week, when we have more info.

More on membership tiers
Discounts starting at $10
IDEA: Build up trust for things like 24/7 access by requiring tenure
or sponsorship from existing members
IDEA: Tiers should be rewarding, not punitive. Access should be
based on trust, not payment.
There may be legal/insurance rules that we need to follow for people under 18.
ACTION: Mike and Swiss to work on a proposal for membership tiers,
forms, introduction process, etc.

Question: How should we manage classes?
IDEA: session-by-session fees for general classes
Grants and payments for classes may not go well together.
IDEA: Use unit B if we need a separate space for distraction-less classes
We need to require training classes for hazardous equipment.
IDEA: Use key cards to regulate access to equipment.
We need teachers!

Open floor
Bob: doesn’t work.
ACTION: Swiss will work on
Rod: We could put on a Mini-Makerfaire for younger audiences.
Preston and Dr. John have looked into this before.
We may need to get endorsement before we can use that name.
We should also find a sponsor.
HELP: Prospective renters for the space next door needed

Next meeting
Discussion, decision about new space next door

Next board meeting: 29 Jun 2013

What is the Hackerspace?

We are a group of makers and developers in the Santa Barbara community who love building things. The Hackerspace has a Makerbot printer, piles of Arduinos, and much, much more. Learn More →
Become a Member

Membership Levels

5782 Thornwood Dr
Goleta CA 93117

Contact Us

Current Status

Current status of the Hackerspace: "awesome".
Twitter Feed

Find out what's happening, right now, with the people and organizations you care about.

Bad Authentication data.
Copyright 2012 Builder - Company. Design by OrangeIdea