How to create a dev mini computer (based on Raspberry Pi)
As some of you know, I have a rather disabling disease. And when I can't walk down the stairs to my PC to code, I'm frustrated that I can't do what I want despite the pain.
However, I still found a reliable, silent and cheap idea : Make a mini computer based on an overclocked Raspberry Pi 4. I even used a 3D printed case to put a big fan inside. So I write this post to explain how I did it.
![Dev Mini Macghine By Bambukah](https://images.hive.blog/DQmeQPuwNMjs6oKVQNt8LantyEPQpkwUdiVJQiDt5zHirKF/IMG_20210617_093130.jpg)
## My needs
First of all, I needed a PC that consumes little power but that is able to run Youtube or Spotify for music, my web server tools (NginX, MariaDB, NodeJS, ...), my code editor (gEdit). Of course, it had to be easy to use and above all, all this stuff had to be fluid!
I also wanted to test the Raspberry Pi overclock. Basically, this principle allows this mini PC to run at a speed it is not supposed to reach. To do this, you have to cool it down. Others have done it before me and 3D printed cases are available for this kind of configuration.
Here is the list of the material you will need to build this machine:
* A Raspberry Pi 4 8Go with power supply, SD card, mouse & keyboard
* Heatsinks, you can find them for 5€ on Amazon
* A 3D printer to print the case
* A 120mm fan (I recommend the Arctic F12 which is the best quality/price ratio)
* 2 dupont male-female wires
## Build it !
I'm starting with 3D printing because it takes a lot of time and the rest can be done at the same time. I decided to use this [model](https://www.thingiverse.com/thing:3780466), created by Jesper Klang, which allows to put 120mm fan and send all the air directly on the Raspberry.
For the curious, I printed this with a Creality Ender 3 Pro with a 20% filling with ecoPLA. The bed is heated to 70°C and my nozzle is at 200°C
I also put a little grid over the fan to avoid getting hurt. You can find all kinds on [Thingiverse](https://www.thingiverse.com/)
![I can assemble it now !](https://images.hive.blog/DQmY3qgURXarQ7WqCAUqaHQWNFCU486TUTaBDxyvmaYQCi3/IMG_20210617_021909.jpg)
### SD Card
While the printing is in progress, let's move on to the operating system, I tuse [Manjaro Linux](https://manjaro.org/download/#raspberry-pi-4). I choose the XFCE Edition because it is the fastest available. It is a reliable and easy to learn distribution for beginners but it contains the necessary tools for power users too. However, you should know that any distribution will do (with some slight differences)
![What a beautiful Computer](https://images.hive.blog/DQmRX9gRM2ajwS2MAh27ytegJPhLVeeDjqizVSJEMaGkZ64/IMG_20210617_070850.jpg)
Before mounting the case, don't forget to put your heatsinks. I preferred to use copper ones, but you should know that even small aluminium ones will do, thanks to the 120mm fan.
And speaking of the fan, I decided to supply it with 5V directly on the Raspberry (the ground on pin 6 and the +5V of the fan on pin 1 of the Raspberry GPIO). It is big enough to have an important air flow and it is very quiet since it runs at low speed.
All that is left to do is to put the Raspberry inside the case, to clip it on. The fan is fixed with standard screws (supplied with the Arctic F12) and the grill is placed on top.
All that's left is to slide the SD card into the Raspberry and the construction is FINISHED :)
![First usage of this mini machine](https://images.hive.blog/DQmSz3oTDsaC6a33GM6VEqinWRbVknAv3zMXbsDhP5w53HG/IMG_20210617_094037.jpg)
## Software improvements
Increasing the operating frequency of a Raspberry is clearly not difficult since it is a matter of modifying a file. However, before doing so, I advise you to power your machine with a good quality 5V / 3A transformer.
You have to edit the file ``/boot/config.txt`` . Concerning the overclock here are the lines to modify :
I also decided to activate the hardware graphics rendering even if it is still in experimental status. It does not cause any problems for me and allows a better fluidity:
Just reboot and you'll have a compact, quiet computer that's fast enough to do most developer tasks.
Depending on the distribution, you can always improve performance. For example, check if your distribution allows you to remove compositing options or disable shadows under windows. It's not as pretty, but it's faster.
You should also use light tools. In my example, since I'm doing web development, I chose NginX as my web server because it's much less greedy than Apache2.
Prefer to remove the wallpaper too, it avoids having to take on graphic memory. Also think of changing the password, for security reasons.
If you have feedbacks or questions, don't hesitate to post them in comments ;)
Posted with [STEMGeeks](https://stemgeeks.net)
Interesting read. What was the total cost of it and what performance does it have? I know it can handle basic web surfing and video, but what about some more advanced tasks like software development or graphic design?
Congratulations @bambukah! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :
<table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@bambukah/upvoted.png?202109061540"></td><td>You received more than 2500 upvotes.<br>Your next target is to reach 2750 upvotes.</td></tr>
<sub>_You can view your badges on [your board](https://hivebuzz.me/@bambukah) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>
**Check out the last post from @hivebuzz:**
<table><tr><td><a href="/hivebuzz/@hivebuzz/pud-202109-3"><img src="https://images.hive.blog/64x128/https://i.imgur.com/SXu3vE1.png"></a></td><td><a href="/hivebuzz/@hivebuzz/pud-202109-3">Hive Power Up Month - Quick feedback</a></td></tr><tr><td><a href="/hivebuzz/@hivebuzz/pud-202109-feedback"><img src="https://images.hive.blog/64x128/https://i.imgur.com/zHjYI1k.jpg"></a></td><td><a href="/hivebuzz/@hivebuzz/pud-202109-feedback">Feedback from the September 1st Hive Power Up Day</a></td></tr></table>
<div class='pull-right'><center><sup>Connect</sup></center><p><a href="https://discord.gg/Q9bQAKpWGS"><img src="https://files.peakd.com/file/peakd-hive/pizzabot/AKF96fKjnX3wjXERHcKAFHaoHnfTVhXqPjXVz8E1Th9nPiJqmFtaycosVpPBZ7z.png"></a></p></div><div class='pull-right'><center><sup>Trade</sup></center><p><a href='https://hive-engine.com/?p=market&t=PIZZA'><img src="https://files.peakd.com/file/peakd-hive/pizzabot/23sxbi2M4UjELDzQjxPdzubdgfMjHTCtA1xueyxmnhJUrB8136VyK3pqynyWYiZYF9HrC.png"></a></p></div><center><br> <p>@bambukah! This post has been manually curated by the <strong><em>$PIZZA</em></strong> Token team!</p><p>Learn more about <strong><em>$PIZZA Token</em></strong> at <a href="https://hive.pizza">hive.pizza</a>. Enjoy a slice of $PIZZA on us!</p> </center><div></div>
#### You're a modern day Einstein! @bambukah
I wondered where you've been.
Sorry to hear your health issue is causing you setbacks. I had no idea. Great seeing you post!
Hope you have an enjoyable rest of the weekend!