11 ms·
Using IceWM and a Raspberry Pi as my main PC, sharing my theme, config and some
- Syonyk 5y agoThat's not the hard part of using a Pi as a desktop PC... I've been using them for light to moderate desktop use for years now. The important things in desktopping a Pi, as far as I'm concerned: - Fix the storage. The SD card is fine for a toy. It will not withstand actual daily use, either in "delivering sane performance" or "handling a lot of random writes without dying in a year." Get a USB to SSD adapter and a cheap 32GB or 64GB SSD from eBay - doesn't have to be fast, doesn't have to be new. It'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). - Enable zswap if you'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 not zram - this is zswap. There's a huge difference. It's a compressed swap system that can flush out old or poorly compressible pages to the actual swapfile - which, since you'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're just massively overcommitting RAM, at which point nothing really will help. I think around the 5.x kernels, z3fold starts working, though I've not seen a real practical difference between z3fold (up to 3 compressed pages per page of RAM) and zbud (only two compressed pages), as long as same filled pages are enabled - that will crunch a page of 0s down into a "Got it, all 0s, done!" note and not bother wasting space compressing it. - Set the governor to performance. 'sudo cpufreq-set -g performance' The stock governor is really bad about ramping up, and leads to lag in typing, especially if you're using the atrocities that are modern "desktop" 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'm sure there's some measurable power difference doing this if you're concerned about the absolute lowest power, but it's not substantial, and "race to idle" solves a lot. If you're using a Pi as a desktop, try it - you'll like the change. - Use adblockers. It'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. Otherwise... once you've done that, they're actually quite capable little systems! The Pi4 with 4GB or 8GB is the best option right now, and for most people I'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. I'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.
- geerlingguy 5y agoWith the Compute Module 4 and certain boards, you can use (and even boot from) NVMe SSDs natively. Makes a world of difference for so many things!
- jandeboevrie 5y agoJeffs case review of the argon one m2 case was the reason I bought it. The pi boots directly from an SSD, much faster and no more broken SD cards.
- Syonyk 5y agoI should sit down and benchmark those one of these days. The jump from USB2 to USB3, either with or without UAS (it's nice, but doesn't lead to a huge jump in benchmarks) gets you a ton of disk performance, and my gut feeling is that while you could certainly measure the performance delta from USB3 to NVMe, it wouldn't lead to a practical increase in speed for typical desktop use. Going from glacial SD cards even to USB2 SSDs is a huge jump, but USB3 to NVMe seems like it would be going from "Fast enough that it's no longer a bottleneck" to "Even faster." Though for reasons I don't understand fully, all the ARM boards I've tested have very poor USB3 performance compared to Intel. Same SSD, same USB adapter, and the Intel systems absolutely crush the ARM systems (Pi4 and Jetson Nano) in small sector IO performance. The main problem with NVMe is that the various carriers that support it aren't cheap, and often (at least in the past 6-8 months) aren't really available. You can get a USB3 adapter and used SSD for $30, reliably, any time you want.
- prox 5y agoGreat tips! I have been using the internal SSD for a while now. I do regular backups or just clone a new SSD. In the article : Firefox uses 900Mb! How did we get to the point that a browser needs 900Mb???
- LeoPanthera 5y agoI've been using lxqt on my Pi 400. It's the closest thing to a "light" KDE that I can find, and I like it a lot. The only problem is that the version on the Raspbian repository is quite out of date. You can get a slightly less old version by enabling backports. I wish there was a good rolling distribution for the Raspberry Pi. openSUSE Tumbleweed is probably the best but it's been glitchy for me and I haven't figured out how to netboot it.
- bitwize 5y agoVoid Linux, dude! I've been running it on my Pi 2 since forever.
- nyanpasu64 5y agoWhat issues have you had with Arch Linux ARM? I tried it for a little while and things seemed to run fairly smoothly (though many AUR PKGBUILDs didn't indicate support for ARM).
- marcodiego 5y agoI used a Pi 2 as a desktop from 2017 to the end of 2019. Apart from using window maker, I didn't made many changes to use it as a desktop. Also, since it is an under powered machine by today standards, using it as a desktop gave me the feeling of a 90's workstation. I even compiled the latest available GTk 1.x version and xmms for a better retro feel. It is possible to use the modern web if you keep the number of tabs low and switch heavier sites like gmail to the html mode. An ad blocker is needed and Youtube is watchable if you use the h264ify extension so it uses the hardware decoder and avoids modern video compression codecs. I could even run libreoffice with Portuguese orthographic and grammatical checkers. It is slow, you can't run other tasks simultaneously but it works. Want to watch movies? If it is 1080p or smaller encoded with h264 it is totally doable. Even streaming in 720p is doable. You won't be able to easily watch netflix though. So, yes a 2GB Pi 2 is good enough for light browsing, light text editing, listening to mp3, watching movies and compiling software from early 2000's. Things you can't comfortably do with it: - Meetings: encoding and decoding with any codec that is not supported by the hardware is just too slow to be usable. - Video editing: same as above. Also not enough RAM. - Compiling large code bases: libreoffice and mozilla will probably fail on anything with less than 8Gb RAM. I could compile OpenCV on it, but it took hours. - Keep many tabs open: you can if the sites are wikipedia-like. Anything more complex and the system starts swapping. Magic Sysrq-f is your friend in such situations. - Modern IDE's: no way. Try gnu-nano or emacs/vi. Want to develop GUI apps? Use Lazarus-ide. Anjuta+Glade probably work stably with recent Gtk+3.x versions. - Games: at the time I used it, the driver didn't support desktop OpenGL. Emulators for old consoles ran great, emulation station ran great, it is possible to run Quake but that is it.
- msk-lywenn 5y agoI’ve been trying to use a pi4 as a desktop, with xfce, and was a bit disappointed. It’s usable but less than an old iPad. So I was surprised you got by with a pi2! I’ll have to give that h264ify a go. For games, I was super pleasantly surprised to rediscover old open source games that I had completely forgot and actually love: frozen bubbles, neverball and monsterz :)
- marcodiego 5y ago
- deleted 5y ago[deleted]
- prvc 5y ago>KDE is my desktop environment of choice. KDE5 is rock-solid, configurable in any way possible and works great. It treats you like a responsible adult instead of a child like GNOME does these days, and after XFCE switched to GTK3, the RAM usage is on-par, more often than not a bare KDE install (Debian or Arch) uses around 300MB ram. This is with Baloo (search indexer) and Akonadi (PIM database backend) disabled. The GNOME Foundation's supposed rationale for removing basic functionality from its desktop is to help inexperienced users, and international users. However, those are precisely the same users who are more likely to have a shortage of computing resources. GTK's bloat is really indefensible.
- andrekandre 5y agoits kind of ironic if you think about it, youd think removing features and simplification should allow for more optimization not less...
- nyanpasu64 5y agoExcept GNOME rewrote GNOME Shell in JavaScript. I don't think GTK3 requires GJS, so I'm not sure why it uses more RAM than GTK2, maybe due to CSS? I know it's still Cairo-based, not GPU-accelerated or DOM-like.
- zxzax 5y agoI can't say for sure what the deal is with GTK3, but GTK4 apps are GPU accelerated and should be faster. Though it may come at a cost of using more GPU memory, depending on the app.
- zdragnar 5y ago> and international users I might be mistaken here, but it seems to me that the international users who want a simple experience are already well served by smartphones (android or otherwise). The international users who are going to install linux on a laptop are the tinkerers and fiddlers and the self motivated learners who aren't going to be motivated by a dumbed down, inaccessible interface.
- andrekandre 5y agoC++ development (in CLion) is quite doable, although I prefer plain old vim on this machine due to CLion being quite laggy. how about kdevelop?
- ahartmetz 5y agoOr Kate with language server plugin ;)
- heavyset_go 5y agoI've been using this setup for about a year now and love it. I haven't felt the need to open VS Code or a real IDE in a long time.
- BasicObject 5y agoI've never needed more than IceWM. Great window manager. Easy to configure too. Glad development has picked up on it.
- euske 5y agoWhat kind of apps that a typical Linux programmer would need to run these days? For me, they are - terminal (shell, editor) - web browser (email client, file viewer, etc.) - clock With these, I only need a bare minimum window manager (fvwm2 in my case). In my view, KDE/GNOME are made not to scare away beginners and there isn't much productivity gain in using these environments. Once you're used to using Unix/Linux, you can graduate them and start using a more lean setup (while you don't have to, of course). One thing I can see might be handy is the System Settings / Control Panels apps. Other than that (and inertia), what are the reasons that people stick to these environments?
- pjmlp 5y agoYou just replicated my DG/UX experience with IBM X Windows terminals in 1995. Maybe we don't have to be frozen in time and rather use modern tooling?
- bigpeopleareold 5y agoI use KDE now, but not much of it really. I do mostly the same things - terminal/browser/some utilities/text editor. I used lighter WMs in the past and they were interesting, but I didn't have time to sufficiently get past the experimental stage with them. Since I really don't do much, it's easier to just get something with easy and stable defaults with only a few changes I need for a setup.
- jude- 5y agoI have the same question. The longer I've used Linux as my main OS, the less I've needed a desktop environment. My setup for the last half-decade has been basically the same as yours, and I've found it to be more productive than KDE/GNOME (or Windows or MacOS) ever were.
- cortesoft 5y agoDon't you also need to run whatever you are programming? So a compiler/interpreter, REPL, maybe a database, docker, k8s, etc? I assume most devs still want to be able to compile and test locally?
- gorgoiler 5y agoRaspberry Pi is a great form factor with popular, documented hardware support for doing weird IO while consuming very little power. Browsing the web in 2021, on the other hand, requires Watts. > Using noscript to disable javascript in Firefox has also helped tremendously It’s this kind of thing that made me switch to a Lenovo M93p for my desktop. It’s a great form factor with perfect Linux hardware support. You can also feel good about recycling someone else’s unwanted hardware. I really wanted the pi to work out but it just couldn’t handle the JS heavy stuff I use in the day job (webmail, task-tracking, information management / CRM.)
- squarefoot 5y agoWhat is the status of video acceleration on the desktop, wrt surfing the web or playing videos from the browser or a player? I used the various Raspberries as main media player with Kodi for years with great results, but the desktop experience using Raspbian+XFCE has always been awful, I mean the slugginess due to lack of video acceleration when playing videos, which otherwise is present and works great in Kodi; normal desktop usage was fine. It should be related to the video acceleration being among the closed blobs that not all distros include, but I thought it had been already reverse engineered before. My last attempt at it was about 6 months ago though.
- rcarmo 5y agoI mostly just used OpenBox for a long time, but my 8GB Pi 4 is running Ubuntu MATE and it works great as a desktop driving a 29” ultrawide (1080p tall). I’m actually running it from a Class 10 SD Card (external SSDs require unwieldy cases for the place it needs to slot in), and speed is fine for Firefox and VS Code use.
- synergy20 5y agoopenbox indeed is light-weight and more popular than icewm these days. I wonder what's the GUI stack behind each, some code on top of X11 windows? Neither supports wayland though
- pygar 5y agoYears ago, as a kid, when the only computers I had access to were cobbled together hand-me-downs and machines people would throw away I used to do this kind of thing. Like the author, I settled on IceWM after trying Fluxbox/JWM/FVWM/"Window Maker" and all the various forks with minor variations. It was fun to tinker, but it's questionable if I learnt anything useful other then how to get hobby DEs working on ancient hardware. I guess tangentially I gained an intermediate knowledge of Linux command line tools and some networking concepts. PuppyLinux [0] ended up being my choice for easy defaults after DSL [1] stagnated. I'm glad to see it's still going and has developed its own ecosystem. Even after I could buy reasonable computers, for a while I took some pride in squeezing performance out of budget computers but ultimately, now that I need to be productive to get paid, it's nice to have computers that "just work" with modern software. [0] https://puppylinux.com/ https://puppylinux.com/ [1] https://en.wikipedia.org/wiki/Damn_Small_Linux https://en.wikipedia.org/wiki/Damn_Small_Linux
- j4yav 5y agoI had the exact same experience, but a fairly clear flow into my career. My own tinkering led to a job at a local computer store fixing computers when I was about 15, and then a job as a build engineer at 18. This was in the 90s so there weren’t a ton of college students with computer experience to compete with, and I think there was more openness to non-traditional candidates. My last job was product director for a major CI/CD platform, so there’s a pretty clear breadcrumb trail all the way back to tinkering with Linux on old hardware to now. The Linux command line and scripting was part of it, but the real deeper lesson was that computers are understandable and if you are persistent you can fix or improve nearly anything, or assemble something new and useful by building on what’s available to you.
- an_opabinia 5y ago> it's nice to have computers that "just work" with modern software Yeah I never understood people who work with computers all day economizing on their computers. Even from scalpers you’ll pay ~$6500 for top of the line parts and peripherals, which is about the cost of a high school student’s violin.
- 5y ago
- Havoc 5y agoLove the whole rasp eco-system. Major victory for for FOSS/nix minded people. I don't think people selling it as a daily driver are doing it a favour though. It isn't meant as such and selling it as such is a disservice to the wider *nix universe. (and yes I understand that rasp as daily driver in rural africa is literally the projects original goal. that's different though from silicon valley crew attempting to daily drive a rasp though)
- analog31 5y agoAsk HN: What do you install this on top of? Do you just start with the vanilla Raspbian installer, the bare bones installer without GUI, or something else?
- LeoPanthera 5y agoIf you're not going to use the default RpiOS GUI (which honestly is actually very good), you can start with RpiOS Lite and then just add whatever desktop you want.
- homerhomer 5y agoI have a Raspberry Pi 400 and it does a pretty good job as a desktop. I also have a HP x360 laptop from 2017 with Windows 10 and it's HORRIBLY SLOW and constantly kicks on the fan. I'm convinced that cahoots with the hardware manufacturers.
- sprash 5y agoThe general perception of IceWM as a minimalist Windows 95 clone hides the fact that it is indeed a very powerful fully fledged tool for window management. Just icewm-winoptions file and the icesh program enable so much opportunities for automation, it makes the average tiling window manager look tame and primitive.
- sudhirkhanger 5y agoI feel like as soon as you start using Firefox and Chrome on these highly customised low-powered machines the power/ram saving customisation goes down the drain.
- marcodiego 5y agoFirefox doesn't run well on a raspi. Chromium with an ad blocker and h264ify is good enough to even watch youtube.
- swiley 5y agoI did this in college with FVWM but I also had a (less powerful) netbook. Computers are way cheaper if you know Linux.
- war1025 5y agoWe've been using a Raspberry Pi400 (the computer in a keyboard model) as a media center pc for a little over 6 months now. It plays amazon and netflix videos fine, handles the netflix browsing UI pretty well, but has been rather painful for selecting shows on Amazon for a few months now. Not sure what they changed because it worked great when we first got it. I'm not sure whether it was the best choice or not, but we figured we'd fall back to a regular pc if we needed to, and so far we haven't been bothered enough to do that.
- jah 5y agoI ran into two problems when trying to switch to a Raspberry Pi 4 8GB as a desktop replacement in mid-2020: - A noticeably laggy screen update when running urxvt. Any action which caused large amounts of text to scroll on the screen (e.g. a file listing or paging through a man page) would cause a bit of a visual stutter. I was running with with XFT fonts enabled, so maybe that was a contributing factor. Web page scrolling also seemed to lag a bit too if I recall correctly. - Lack of gamma support for blue light filters such as redshift or f.lux I'm crossing my fingers there are improvements to these areas in the future.
- zz865 5y agoI built a rpi for games and it was OK but never got any use. One thing I ended up using it for was taking to the office and plugging it into my work monitor. With a BT keyboard and phone hotspot for internet.
- brody_hamer 5y ago> Using noscript to disable javascript in Firefox has also helped tremendously. Id love to see a browser extension that disables JavaScript after its consumed a set number of cycles. A page wants to asynchronously load a sidebar, great. A page wants to continuously resize and repaint an affixed element? Nope. You’re cut off.
- artificialLimbs 5y agoConsidering setting up another account to upvote this again... Why does my machine, when the lid is closed with 1 browser tab open, need to spin the fans at full blast? It's a no from me.
- noisy_boy 5y agoWhat I would like to see is a tree based handling setup. Everything my bank opens (direct child or descendent): let it through even if it is a usually blacklisted domain because, yiu know, banking is kinda important for me. Same domain via a website I couldn't care less about, blacklist away as per rules.
- artificialLimbs 5y agoThat would be nice if it worked with tab containers.
- noisy_boy 5y agoIndeed - if having such a facility requires me to setup a container per top-level domain (e.g. one container for www.xyzbank.com and everything that it opens), then even that is worth it. Right now, with the combination of ublock origin and other privacy plugins, I don't even try to do financial transactions like banking/flight booking etc for the fear of being left with a semi-processed transaction. That is one of the main reasons of me installing Chrome (I know that Chromium might also be a good alternative for such scenarios). I guess what I'm looking for is a "allow everything" container setup without having to enable/disable plugins or fiddle with white/blacklists.
- 5y ago
- cpach 5y agoWhen I went to senior high back in the early 00s I shared a flat with three friends. None of them had their own computer. I had a spare IBM PC with an old Pentium processor which I lent to one of my room mates. I installed Debian, IceWM and Abiword for her. She had no previous experience with Linux, but with this setup she was able to write her school essays and save them to floppy in order to print them out at school. (We didn’t even have a router in the flat.) It worked really well and was much more stable than Win 98/XP :)
- lifeisstillgood 5y agoMy dumb, barely related question - how far away is VR/AR from having the necessary pixel resolution to be able to have a fake emacs/vim floating in space three feet from my eyes? At that point there is a change in the ergonomics and location of coding / most desktop work.
- adius 5y agoSimulaVR is the leading project in that direction I think: https://simulavr.com https://simulavr.com With a Oculus Quest 2 - which has the highest resolution of the affordable VR headsets - it's still a little too grainy for prolonged coding sessions. But I think they'll get there in 1-2 generations.
- clipradiowallet 5y agoI'm in the same boat - eagerly awaiting when I can have a VR terminal experience. I chimed in just so you didn't think you were a lone crazy holding out for that.
- lifeisstillgood 5y agoWe lone crazies need to stick together. Support meetings each Thursday - we have cookies :-)
- dysoco 5y agoThere is something appealing about using a low-resource PC with a limited selection of software installed in order to be free from distractions that could otherwise stop me from being productive and write some code or learn something. I know the problem is mine from not having discipline and not my modern desktop's fault for being able to run games, but still, I almost want a separate PC for this.
- bullen 5y agoI use TWM instead, it works very well, but requires some adaptation time to the window focus and copy'n paste mechanics.