Sunday, September 6, 2020

Macvlan bridge STILL doesn't work for Wifi

Got my new Raspberry Pi 4 and I installed the 64-bit Raspberry Pi OS and was playing with Docker.

I was having problems getting macvlan working. I struggled. I reinstalled. Nothing seemed to work. On a whim I looked to see if this might just be a problem with me experimenting with bare bones installs so googled a couple things and found the Blog from Barry Kauler titled Macvlan bridge does not work for wifi. Sure enough. If you try and share the connection with wlan0 instead of eth0 it just doesn't work.

So I plugged it in and forced it to use eth0 and sure enough now everything works as expected. 

Thanks Barry!

Saturday, September 5, 2020

Update Firmware on Prusa MK2 through MK3S from OctoPrint/OctoPi

The tools and instructions that Prusa gives you to update your firmware are really good unless your printer is attached to a remote Linux box then it's a little problematic. So here you go. This is pretty barebones because it is written for me.

Required Reading:

Your printer is probably on /dev/ttyACM0 but if it isn't it should really matter. The system should work anyway because it is preselected.

The official tooling is really just a wrapper around AVRDUDE so doing it on your own shouldn't make you nervous.

The control unit on the MK2, MK2S, MK2.5, MK2.5S, MK3 and MK3S are all based on the ATmega2560.

Instructions: 

SSH into your OctoPrint box and install AVRDUDE. Probably sudo apt install avrdude but depending on your OS it might be different. You'll want to know the exact path of your install so which avrdude will give you that info. 

Using the Plugin Manager in OctoPrint install Firmware Updater. It is an officially supported plugin so it is easy to find it.

After OctoPrint forces a restart open up the Firmware Updater plugin and click the wrench inside the plugin box to configure the plugin. Enter the data below and hit Save.

  • Flash Method: avrdude
  • AVR MCU: ATmega2650
  • Path to avrdude: /usr/bin/avrdude (that's probably what it is, but step 1 would confirm)
  • AVR Programming Type: wiring

Go download the firmware for your printer here. The download is pretty big because it contains multilingual instructions that you are going to ignore. https://www.prusa3d.com/drivers/

Extract the prusa3d_fw_ABC_123.hex file some where you can find it and using the Firmware Updater plugin hit that Browse button to locate your hex file and the Flash From File button to finalize things.

Friday, August 14, 2020

My Mac Terminal Setup (Homebrew, iTerm2, Fish, )

I did this twice in 2 weeks, so I've got a feel for what I like now and the least sucky way to do it. If I did it more often I'd probably write a script for it, but since I don't plan to do this for another 2 years here's a quick blog. Including sources so that if things change you can find them yourself and you don't have to trust this blog.

First install brew because having a *nix computer without up to date versions of things sucks. (source)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Now install iTerm2 because even if you don't end up using it's features you might some day so you may as well use it instead of the default terminal. (source)

brew cask install iterm2 

iTerm2 should be in your Applications folder, open it up as your new terminal. 

Now install fish because it's the shell script that makes the most sense to me. It comes configured out of the box closer to what I want so I use it. (source)

brew install fish

Now add fish to your list of allowable shells and make fish your default shell.

echo "/usr/local/bin/fish" | sudo tee -a /etc/shells

chsh -s /usr/local/bin/fish

I don't know if I have enough of an opinion to care, but Oh My Fish and Fisher are both ways to get more out of fish. I installed Oh My Fish because it seemed to be the thing more people are using. Fisher is probably the correct tool for what I need, but whatever. (source)

curl -L https://get.oh-my.fish | fish

Now install bobthefish because it is a good theme that supports stuff like git out of the box. (source)

omf install bobthefish

That theme might throw some odd characters at us because it looks cool, so you need a font that will keep up. The font called Hack looks he most like I expect a font to look, so I use the version supplied via Nerd Fonts. (source)

brew tap homebrew/cask-fonts

brew cask install font-hack-nerd-font

Now you have to go into your iTerm preferences and select the new font.

As long as you are in the preferences menu you should find a color scheme that you like. I really couldn't find something I liked a lot but Smoooooth was the one I disliked the least so I went with it.