July 03, 2017

How I replaced my MacBook Pro by a Raspberry Pi during 1 week

Last week, I forgot my bag in a G7 Taxi in Paris. Inside was the MacBook Pro Iā€™m using every day. This day was probably not a good day.

The problem with losing your computer in a Taxi in Paris is that you canā€™t contact the driver like you would do with an Uber. If you donā€™t remember the Taxi numberplate, you have no chance to see the driver again. The only chance you have to get your bag back is to go to the ā€œLost and Foundā€ Police department of Paris, and hope the driver has been honest.

I miss you, MacBook Pro!

I miss you, Macbook Pro!

As the driver wonā€™t drop my bag immediately, I decided to wait one week before considering my bag as completely lost. What can I do during one week without any computers at home? Waitā€¦ thatā€™s not true, I have a computer at home! What about using my Raspberry Pi 3?

The Raspberry Pi is clearly a good idea: Itā€™s powerful, it runs Linux, itā€™s silent. Letā€™s go for one week on this!

My Raspberry Pi 3

The Raspberry Pi 3

Softwares I was using on my Mac

Iā€™m software engineer, and use this personal Mac for lots of stuff:

  • Coding on the opens-source project Gladys I founded. Gladys is a home assistant based on a Raspberry Pi (like a kind of Jarvis), written in Node.js so itā€™s basically some Node.js development. For this Iā€™m using VS Code + Node.js + MySQL.
  • Writing on Gladys blog. Iā€™m writing my articles in Markdown using Macdown on my Mac. Iā€™m editing images with Photoshop.
  • Answering messages on Gladys community (itā€™s basically a Discourse forum)
  • Video editing on Final Cut Pro (outch, this is going to be hard to replace)
  • Web browsing (News reading, YouTube, Twitter)
  • Terminal, mostly for dev tools & SSH (thatā€™s where I spend most of my day, and should be the easiest thing to replace)

Setting up the Raspberry Pi

For those who donā€™t know the Raspberry Pi, itā€™s a tiny Linux computer powered by a quad core ARM CPU and 1Gb of RAM. Itā€™s used in a lot of DIY project, because it only costs 35$ on average.

I have severals of them at home for my Home Automation project Gladys, so I took one to convert it into a full Desktop PC.

First step was to download Raspbian Jessie. I used my parents computer, and cloned the image on a 16Gb micro-SD card.

I plugged an old Wireless Mouse, a really old USB keyboard, a 22ā€ HDMI screen into the Raspberry Pi, and turned everything on.

Raspberry Pi Desktop Setup

The first good impression when turning the Pi on is the noise: The Raspberry Pi doesnā€™t have any fans, so itā€™s perfectly silent. My Mac was quite silent too, but not that silent.

Working on the Raspberry Pi

Web browsing

Raspbian Jessie has Chromium included. I decided to go with it, and the result is quite good. Browsing is nearly as fast as on a classical computer, and as itā€™s Chromium, Javascript is perfectly executed. The only problem is that each tab in Chromium is a separate process.. Each chromium process takes 150/200Mb of RAM, and since the Raspberry Pi has 1Gb of RAM, having 3/4 tabs opened is really the limit before having a laggy system. And donā€™t ever try to swap on the SD card, itā€™s really slow!

Ok, so lesson learned: Only keep 3 tabs opens. I just need to forget about ā€œright-clickā€ -> ā€œOpen in a new tabā€, and Iā€™ll be good.

Writing

As a power-user of Evernote, I decided to try the Evernote web app inside Chromium. And it works great! This article is currently written inside Evernote for web, and itā€™s almost as good as the mac app.

Using Evernote Web on a Raspberry Pi 3

I havenā€™t found any great Markdown writing app available on Linux and compiled for ARM, so Iā€™ll just copy paste the note content inside the default text-editor, add markups, and git push the article to my github page repository to publish it.

Development

To develop, Iā€™m using VS Code, and spend most of my remaining time in the terminal.

For the terminal, the Raspberry Pi is just perfect. Nothing change, Iā€™m at home.

For VS Code, whereas itā€™s possible to compile it on ARM, I was more skeptical. VS Code is an electron based app, so it starts a full instance of Chromium. It may be too heavy to run it next to Chromium.

I decided to use vim with the Javascript plugin.

The coding process itself is quite good. The only problem is that most tools you use on your dev machine are really slow on a Rasperry Pi. Webpack, uglifyJS, Babel: My good old Mac was really better at this.

Image editing

I forgot about Photoshop, and first tried Canva on the web. It was way too slow to really use it. And since Iā€™m taking my pictures with my camera/phone, and usually transfer them using the SD port of the Mac, the best solution I found was connecting my camera using Wi-Fi to my iPhone.

Then, using the Canon app, I downloaded the pictures I wanted, edited the picture inside Canva iOS app, and uploaded the images to Google Drive. Not the most efficient, but it works!

Then, to resize the image so itā€™s not too heavy in an article, I simply used an online resizer.

Resizing image Raspberry Pi 3 web

Note: Google Drive was really hard to use on the Raspberry Pi.

Video editing

Letā€™s just forgot this part :D I wonā€™t edit any videos this week. If I needed to, I would have used the iOS iMovie app. Since my Mac was already struggling with video editing, the Raspberry Pi would have died.

In closing

Iā€™ve been using the Raspberry Pi since the first model as a home automation server, but Iā€™ve never really used the desktop version in the past.

And I was impressed by the speed and usability of the Raspberry Pi 3 in desktop mode. Itā€™s definitely not a tool for compiling heavy software or rendering 4K videos, but for basic blogging, browsing and simple development, it just works.

For the price it costs, you definitely have a nice machine.

I really hope Iā€™ll get my mac back, (finger crossed) but this was a good opportunity to test the Raspberry Pi in Desktop mode!

PS: For all users on Gladys, sorry for not being that present last week, it was not an easy week. Without my Mac, it was hard to publish big changes on the project, especially on the video pack Iā€™m working on. But Iā€™ll be back soon!

If you loved this story, you can subscribe to my newsletter here.