DietPi + Raspberry Pi4 + TunerStudio with speedups!

A few updates back I had Raspbian running on the Pi4 and TunerStudio. It was quick. But not after these updates!

I went ahead and downloaded DietPi, installed it, installed openjdk, LXDE, disabled networking, NTP, timesyncd, anything unnecessary. LXDE boots up in under 6 seconds. TunerStudio takes up the rest of the time to load up. But rumor has it, a lightweight dash is being developed which will be a huge speedup in load time for individuals needing an inexpensive and lightweight dash solution for their Megasquirt/Gold Box EFI setup.

What you’ll see below are pictures (yea, sorry) of how to install DietPi. Everything is run as root to make it easy for non-Linux users. This setup is bare-bones. No audio, no movie support or anything like that. It is specifically designed to get you into LXDE and to run TunerStudio. Any questions, just ask.

If you want the easy way out, here is a link to the 1.4 GB .IMG file. I used a 64GB microSD, write it to that and let it rip! It is an image of DietPi Buster, preconfigured for a Raspberry Pi4, has the demo version of TunerStudio beta and autostarts. No network, no audio, no network time. These can all be re-enabled using dietpi-config from a terminal when logged in.

Follow along in the pictures below if you wish to install it yourself. The order in the gallery is from Left to right, by row. After the first gallery, there is more work to do. This is just the install of DietPi.

After you reboot, we will need to disable services. If I were you, I’d bring up Firefox on the Pi and download TunerStudio. You will download the Linux version.
Once downloaded, the file will be in your Downloads directory. Click on LXTerminal or whichever you choose and type the below. It will extract the contents of the TunerStudio file and then move it to the main directory.

cd Downloads
tar xf
mv TunerStudioMS ../.

In order to autostart TunerStudio do the following from the same terminal session as above. It will create a directory for you and then you will edit a file called ts.desktop.

mkdir /home/root/.config/autostart
nano /home/root/.config/autostart/ts.desktop

In nano, put this in the file you are editing, save and exit:

[Desktop Entry]

Now to speed up DietPi. From the same terminal as above. Make sure you edit dietpi.txt exactly as stated or your results will not be the same as mine.

systemctl stop fake-hwclock
systemctl disable fake-hwclock
systemctl stop systemd-timesyncd.service
systemctl disable systemd-timesyncd.service
systemctl daemon-reload
cd /DietPi
nano dietpi.txt

Update the following values in dietpi.txt


Once complete, save the changes and exit. Now disable networking using the same terminal session by running dietpi-config. Select #7 from the menu, Select Ethernet which should say “Enabled”, hit return. It will ask you if its OK to drop connections, select OK. It will ask to remove Wifi, select ok. Tab to <Back> and Exit. Restart.

Any questions, just ask. Hopefully I didnt miss anything.