by dv35z · 4mo ago · 0 comments
I used to work at an office where we pair-programmed with clients all day (Pivotal Labs), and most of our computers had some sort of "automatically restart / restore from a known-good image". I liked this, as it resulted in less cruft over time, and some intentionality about what getting a computer into a productive state means. It also got me thinking of using automatic routines to accomplish goals, and not being so attached to my open tabs, etc. Let it gooo....
To be more specific about this - for those wanting to get into blogging/publishing, this could mean auto-opening the website project folder using VSCodium upon user login, so its ready to go for the morning coffee. More half the time I just close it - but as a "default", it makes it easy for me to do the thing I want to do.
sudo crontab -e -u root
#-----------------------------
# RESTART COMPUTER DAILY
#-----------------------------
00 04 * * * /usr/sbin/shutdown -r +5 "Rebooting in 5 minutes. Run 'shutdown -c' to cancel" 0 0 * * * sleep $((RANDOM % 86400)) && /usr/sbin/shutdown -r +5 "Rebooting in 5 minutes. Run 'shutdown -c' to cancel" 12 22 * * * kill 21342RIP Pivotal Tracker, and thank you for your involvement! It was a nice piece of software.
We looked at Linear and other options but ultimately ended up going with Shortcut. We wrote our own small migration script and moved over the old Pivotal IDs to keep as much historical context as we could. Shortcut's been a good tool overall, though I preferred Pivotal's Goldilocks level of compactness as far as the UI was concerned, as well as the general design.
Pivotal's API was tidy and integrated nicely into our development process. We have some git aliases such as `git start <branch>` where the branch name will end with a story ID by convention. The alias would do the work of creating the branch, setting the remote to the dev's fork of our repo, marking the story as started, and assigning the dev as the owner. It saved a lot of manual steps, so thank you for your involvement in the project which allowed such a nice workflow!
Some potentials:
- Lanes: https://lanes.pm/
- Brooklyn Tracker: https://www.brooklyntracker.com/
- Tracker Boot: https://trackerboot.com/
- Story Time: https://storytime.team/
I would love to see an open-source one exist, potentially using open formats like Markdown / SQLite which could run locally or on a network share, and could potentially "live" inside of the repository.
I'm currently in LATAM, and often teach students - so having a no-cost tool which supports agile development would be so valuable (rather than having yet another tool to create a login for)
PSA: Chrome's session restore function should not be trusted as a way of accurately maintaining state between restarts. I've not noticed the same with Firefox and Brave, though I don't currently use them as much (I'm slowly moving over to using mostly Brave or Firefox, I've not yet decided which…) so maybe they are no more reliable in this area.
Why would you do that? Is your OS not running stable? Do you not have tight control over the software that is running? Why are you unable to keep it in a productive state?
Greetings from a Computer that only restarts for updates every few days, next to an airgapped machine that has been running for years.
I am trying to get into a habit of writing/publishing, so I've got my own web-page that pops up at login, along with the code/text editor that allows me to start writing. Every individual will have their own set of "things I click on / open while sipping coffee, getting the computer into a productive state".
In the team / consulting environment (where we would pair-program, often with different people day-to-day), the computer would start with task tracker / backlog (at the time, Pivotal Tracker, now it would be something like Linear), team knowledge base for the project area. Under the hood, it would load up common shortcuts, terminal aliases, etc.
----
I often work with multiple clients, so something I've always wanted to do is have something close to "one Linux user per client", so that there isn't "contamination" between them. I haven't figured a great way to do this, but think of it a system-wide version of Chrome's switchable profiles.
(Or I think making your ~/Downloads a symlink to /tmp/Downloads would do the same).
That way you don't clutter the Downloads, and catalogue anything important. The unimportant is recycled on each restart.
IMHO "pretty much" understates the risk.
Malware can easily install itself as a system service, timer unit, XDG autostart or your shell profile among other places. I'll be the first to admit I never check all these places regularly.
The only thing that should be putting minds at ease is regular OS installs from fresh images.
Resist the temptation to do an "in place" upgrade and go with a clean ISO each time your distro comes out with a new major version.
It's a pain but thanks to configuration management or even shell scripts it's manageable for me now.
Admittedly six months is probably too long as well but at least it stops something lurking on a server or my desktop for years.
It is possible even plausible that you can disinfect many sorts of malware from inside a compromised machine but it is inherently less trustworthy and installing from scratch barely takes any more time.
It’s borderline impossible to persist malware across reboots on iOS these days.
This does not account for supply chain attacks nor trojan attacks which seek consensual installation. A reboot will not eradicate these threat vectors.
What we have seen is state funded hacking groups can often exploit bugs which break out of sandboxes and embed themselves in the system. But the malicious code only exists in memory, it can’t persist between reboots because the next boot would fail the checksum and signature checks.
Which is why security focused OSs will periodically reboot themselves to flush out possible malware and why jailbreaks and hacks for phones and game consoles usually have to be reinitiated after every boot.
MacOS has a few measures including SIP and boot chain security to implement this, though it’s currently hard to set up a properly secure Linux desktop.
And organizations rely on their employees not falling for phishing email. How well has that worked?
> What we have seen is state funded hacking groups can often exploit bugs which break out of sandboxes and embed themselves in the system. But the malicious code only exists in memory, it can’t persist between reboots because the next boot would fail the checksum and signature checks.
"Malicious code existing only in memory" is patently false by not addressing supply chain attacks previously mentioned. To wit, the npm left-pad attack[0]. See also the thousands of PHP CVEs.