Using IceWM and a Raspberry Pi as my main PC, sharing my theme, config and some
That&#x27;s not the hard part of using a Pi as a desktop PC...<p>I&#x27;ve been using them for light to moderate desktop use for years now.  The important things in desktopping a Pi, as far as I&#x27;m concerned:<p>- Fix the storage.  The SD card is fine for a toy.  It will not withstand actual daily use, either in &quot;delivering sane performance&quot; or &quot;handling a lot of random writes without dying in a year.&quot;  Get a USB to SSD adapter and a cheap 32GB or 64GB SSD from eBay - doesn&#x27;t have to be fast, doesn&#x27;t have to be new.  It&#x27;s radically better than an SD card in any use case that resembles desktop use.  You can either boot straight from USB, or, to improve compatibility with weird USB to SSD adapters, boot from the SD card, mount root from the SSD, and use the SD card for swap or something (see below).<p>- Enable zswap if you&#x27;re not on a 4GB or 8GB Pi4.  It should be a module included in the Pi kernel now (I had to argue for a while to get it included).  This is <i>not</i> zram - this is <i>zswap.</i>  There&#x27;s a huge difference.  It&#x27;s a compressed swap system that can flush out old or poorly compressible pages to the actual swapfile - which, since you&#x27;re now fronting it with a compressed swap region in RAM, can be over on the SD card.  The bulk of the stuff written to it will never be used again, unless you&#x27;re just massively overcommitting RAM, at which point nothing really will help.  I think around the 5.x kernels, z3fold starts working, though I&#x27;ve not seen a real practical difference between z3fold (up to 3 compressed pages per page of RAM) and zbud (only two compressed pages), <i>as long as same filled pages are enabled</i> - that will crunch a page of 0s down into a &quot;Got it, all 0s, done!&quot; note and not bother wasting space compressing it.<p>- Set the governor to performance.  &#x27;sudo cpufreq-set -g performance&#x27;  The stock governor is really bad about ramping up, and leads to lag in typing, especially if you&#x27;re using the atrocities that are modern &quot;desktop&quot; apps (Electron).  Eventually, the system will spin up and do something useful, but you improve the performance and responsiveness rather substantially by just pinning the cores to their fastest speed and letting them stay there.  I&#x27;m sure there&#x27;s some measurable power difference doing this if you&#x27;re concerned about the absolute lowest power, but it&#x27;s not substantial, and &quot;race to idle&quot; solves a lot.  If you&#x27;re using a Pi as a desktop, try it - you&#x27;ll like the change.<p>- Use adblockers.  It&#x27;s amazing how much CPU time the internet spends on stuff that is advertising, tracking, and generally evil.  Most websites behave a lot better once you remove that garbage.<p>Otherwise... once you&#x27;ve done that, they&#x27;re actually quite capable little systems!  The Pi4 with 4GB or 8GB is the best option right now, and for most people I&#x27;m not sure the 8GB really gains you much - I have one, use it fairly heavily, and rarely see any RAM pressure past about 4GB.  But it does make up for some slow disk.<p>I&#x27;ve written about some of this more extensively over on my blog over the years, if anyone wants more details - link is in my profile.