4 ms·
Derek Siver's shell script for tech independence
- surprisetalk 3y ago* sets up your server * secure SSH and firewall * private encrypted storage * web server * file server * secure TLS certificate * maintenance scripts to keep it secure * calendar server * contacts server * email server with IMAP * free email sending via Mailjet * SPF + DKIM DNS to secure email
- deleted 3y ago[deleted]
- meowkit 3y agoCool background - Derek created CDBaby back in the day. Cool dude. Check out his interview on the Tim Ferris podcast for context on why you might want the tech independence this script enables
- sivers 3y agoStarts at 24 minutes here: https://www.youtube.com/watch?v=0BaDQCjqUHU https://www.youtube.com/watch?v=0BaDQCjqUHU
- pmarreck 3y agoTo format a YouTube URL that is indexed to a particular time, just add the minutes/seconds after it like so: https://www.youtube.com/watch?v=0BaDQCjqUHU#t=24m https://www.youtube.com/watch?v=0BaDQCjqUHU#t=24m (or NNs for seconds, or MMmNNs etc.)
- crtasm 3y agoI note that format doesn't work with Invidious, it only handles the older(?) format using & instead of # : https://www.youtube.com/watch?v=0BaDQCjqUHU&t=24m https://www.youtube.com/watch?v=0BaDQCjqUHU&t=24m
- pmarreck 3y agoAh. I get around those issues by paying for YouTube, because as a Gen X’er I believe in paying for good services. :P (And its recommendations are excellent, now that Google knows me so well. LOL)
- crtasm 3y agoNow I check, Youtube still generates timestamped URLs with it in the query string. I wonder where the # alternative comes from.
- pmarreck 3y agoI hand-made the URL. I could have used a querystring as well, but the pound symbol usually indexes down to a particular part of a page, so it makes sense that they would also make it index to a particular part of a video
- stretchwithme 3y agoI've read for of his books, which he sold in a package deal for cheap last year. And he's working on a new one: https://sive.rs/u https://sive.rs/u
- deleted 3y ago[deleted]
- encoderer 3y agoThis bash script is the real Proof of Work.
- anderspitman 3y agoRelated discussion from yesterday: https://news.ycombinator.com/item?id=37546255 https://news.ycombinator.com/item?id=37546255
- dang 3y agoThanks! Macroexpanded: Tech Independence - https://news.ycombinator.com/item?id=37546255 https://news.ycombinator.com/item?id=37546255 - Sept 2023 (66 comments)
- aaronax 3y agoIDK, I think an important part of the process is the act of doing. You more deeply understand what is going on.
- partdavid 3y agoThis actually has a similar purpose to an idea I had for basically creating a "your own backoffice" distribution of software (a little more turnkey, but with the same idea of tying it to a particular low-cost cloud provider). I love the concept and love seeing this kind of thing. I believe in the mission. I think being opinionated about first steps is an important part of it. What bogged me down were "day 2" concerns around troubleshooting and maintainability. I had a somewhat more ambitious plan that would involve monitoring and rollouts and so forth as well, so it's not really something you do in a shell script and forget about. And I was focusing on the use case of a small group of people rather than a single, disconnected person, because that's so much of what (I think) we use our devices for. And I wanted to focus on using tools in a standard way so that you could actually learn how your system worked by looking at its standard configurations, written in a standard way (not "pkg_add" and "opaque ad-hoc config template") and being aware of how to change them over time as you learned more. I still think this is great but I'm not sure it's the kind of thing you can just run and then be okay. Hell, I'm a "tech professional" for whatever that's worth and it's hard enough for me to keep homeassistant updated and free from rot. A single server that's not backed up--and even if it were, without features for restoring--or updated (even recommending never updating it--I love OpenBSD and its stability is great but there are reasons to update) just isn't something to tell someone to start relying on for their digital life.
- sivers 3y agoIt's ksh not bash. It's only for OpenBSD 7.3 on Vultr.com It should only be run in the context of the steps at https://sive.rs/ti https://sive.rs/ti I was trying to help non-technical people experience the empowering joy of having their own server, so instead of the usual "you could do this or that, here or there", this is a single-track "just do this".
- dang 3y agoOk, I've bashed that part out of the title above. Thanks!
- deleted 3y ago[deleted]
- digdugdirk 3y agoRandom question regarding OpenBSD: I'm curious why you suggested OpenBSD vs Linux? I read through your linked "OpenBSD : why and how" [1] article - as well as the secondary linked article from that page [2] - and couldn't help but notice how many of the reasons listed were reasons why not to use OpenBSD. More than that, the limitations (while I do understand the value of doing simple things well) of the system seem highly constraining. Do you use OpenBSD for all your devices, all the time? Or is it more of a thing where OpenBSD serves your needs perfectly for some smaller subset of what a "computer" is, and for everything else you have a separate device to fill those needs? (An ipad/macbook for media consumption, a home server for handling media related tasks, etc.) Love the general sentiment behind the article, btw. The OpenBSD thing just really stood out to me as I read through it. [1] - https://sive.rs/openbsd https://sive.rs/openbsd [2] - https://dataswamp.org/~solene/2022-06-22-openbsd-selling-arguments.html https://dataswamp.org/~solene/2022-06-22-openbsd-selling-arg...
- sivers 3y agoI use OpenBSD for basically everything: laptop, desktop, server. It's been my server OS since 1999. I play with other OSs and come back to the solid simplicity of OpenBSD. I chose OpenBSD for https://sive.rs/ti https://sive.rs/ti because of its simplicity and security, and that it has the mailserver and webserver built-in.
- adolph 3y ago7 if [[ $(id -u) -ne 0 || $(uname) != "OpenBSD" ]]; then 8 echo "must be run as root on OpenBSD" 9 exit 1 10 fi
- pmarreck 3y agoSomeone should redo this, but with Guix or NixOS
- ryangibb 3y agoIt's very rough, and I haven't found much time to work on it recently, but I've started something with https://github.com/RyanGibb/eilean-nix https://github.com/RyanGibb/eilean-nix
- pmarreck 3y agoThis is great (although I haven't tried it yet). And it would in theory be more deterministic and less brittle than Derek Sivers' instructions.
- mdmglr 3y agoI don’t understand the tech independence claim? The script is replacing a unified service like Google or Apple iCloud with a lot of other services. Vultr and mailgun for example. There is something to be said about the larger centralized services. I’d be hesitant to put any sensitive files on my own server. The larger firms have security departments ready to respond to CVE’s and 0days.
- quesera 3y ago> There is something to be said about the larger centralized services. I’d be hesitant to put any sensitive files on my own server. The larger firms have security departments ready to respond to CVE’s and 0days. Some people change their own oil, mow their own lawns, fix their own dripping faucets, etc. Running a secure server on the internet requires different, but not more knowledge and effort, and is less expensive, than changing your own oil. There's no need to be in thrall to the "larger firms". They have different problems, which you might not be able to solve for them -- but you can often solve your own.
- sivers 3y agoGreat metaphor. Thank you.
- mdmglr 3y agoI think this is disingenuous. Example: configuring a linux firewall properly is not on the same competency level of changing your oil. This script doesn’t harden sshd to the level I’d call safe. Disabling root login is minimum. I’d have port change, timeouts, fail2ban, otp via Pam all configured. Only allow specific IP ranges and users to ssh. I’d use ansible to properly configure instead of this script. In the case of httpd. Id run it in docker or chroot. Again fail2ban, otp, I’d probably put it on a different port have it proxied via Cloudflare and have httpd only allow Cloudflare ips. All this that are difficult to learn. Source: I run my families infrastructure. Which spans multiple servers, routers, switches across 7 houses in 3 countries. I also change my own oil.
- 3y ago
- tormeh 3y agoImmediately disables IPv6. Amazing.
- pmarreck 3y agoI may be out of the loop, but what's wrong with IPv6?
- bombcar 3y agoI presume he does it to reduce possible issues and mid configurations. If you have IPv4 addresses IPv6 isn’t necessary, and it can result in strange “almost works sometimes” cases. Worth learning, of course, but it’s a whole different thing.
- bdcravens 3y agoFascinating that the instructions buck the trend of curl'ing and piping to bash, but rather ftp's and then executes separately. > Type ftp https://sive.rs/ti.sh https://sive.rs/ti.sh > Type sh ti.sh