234 points · by thunderbong · 5y ago · 129 comments
— Me, 2½ years ago: https://news.ycombinator.com/item?id=18019343
NO.
You need security patches. The current "regular updates" bullshit where the Play Store wants to update and app I updated an hour ago is insane.
So… YES. Regular updates to all of its software is how you stay on top of security updates.
WordPress can do it. Others also could, if they wanted to.
But if you don’t update at all, you will be subject to an exploit, and you and your devices will then possibly be unwitting members of (possibly multiple) botnets.
You might need it if the screen cracks and you want to save data off it.
Sometimes there are ways around it by dirty booting a recovery image, but it's not as simple as it sounds, and you'd need an unlocked bootloader to do so: https://petermolnar.net/article/save-files-from-a-dead-scree...
Nearly every phone today is sold with a USB C port.
"But this phone is older than..."
My Moto Z Play was released in 2016. That phone is now 5 years old. It came with Nougat... and I can mirror the screen with a USB C hub with Built in HDMI. Plug in a mouse and you're done.
No need to leave adb enabled, which is a security hole that can be exploited by unsafe USB ports and bad actors. (Also, police.)
Even did a video: https://www.youtube.com/watch?v=Qkh4oagFfb8
Got out my old Moto Z Play which was retired. Restarted the phone so I couldn't use fingerprint to unlock.
Plugged in a mouse, clicked pin. Unlocked.
Moto Z Play runs Nougat, stock but rooted. You don't need root to be able to do this nor do you need ADB to be enabled.
Also confirmed to be working on Razer Phone (stock, 9/Pie) and Essential Phone (stock, 10). Also works with Keyboard instead of mouse. Just type in the pin and hit enter.
Pattern unlock will have to be done with the mouse for obvious reasons.
So if your digitizer is completely busted, you can still use a mouse and keyboard. If your display is completely busted, you likely will be able to get video alt mode with USB C out.
I tried it on a few other devices that I had in my pile. Chances are, if it's Micro USB, you won't get video on boot, even with a proper MHL adapter.
* Sony Xperia J (Jelly Bean): Nothing, Micro USB
* Sony Xperia Play (Gingerbread): Nothing, Micro USB
* Marshall London (Lollipop): Mouse and Keyboard Works, Micro USB
* Asus Zenphone 3 Zoom (Nougat): Mouse and keyboard works, USB C
IIRC, Displaylink and OTG support was officially added in Lollipop, so that kind of jives with my experience here. As always, YMMV.
No, adb is still needed.
You would still be able to use a mouse or keyboard to input a pin or passphrase if the screen was still semi readable.
With a USB C port, there's a near absolute certainty that you can simply plug in a USB hub with HDMI built in to hook your phone up to a mouse and monitor to get around the cracked screen issue.
Cracked screen AND USB-C port failure. No charging or data transfer possible.
Apparently at one time google opted me in for Google Photos, so I have a backup of those, but recent contacts were totally lost.
Still have the board lying around and am tempted to continue tinkering with it... Or would be if I had any clue where to get insight on how to do advanced debugging on why a mobile phone wouldn't even register as connected over USB-C. Assuming some sort of handshake failure.
Or preferably use Syncthing or any backup plan.
Data you have in one place is data you don't want.
There's obviously benefits to doing so, but it has some big costs?
All arguments have multiple sides to them.
No root, no fuss.
That's the system in currently using, at least. I'd be happy to read about other open source solutions if anyone has a better solution. My backup system is geared towards a service that exposes nothing more than SFTP or WebDav as a backup location because of a cheap cloud storage subscription I've managed to get.
- It can only do one set of backup settings and consequently only one backup destination without additional tooling, which is not Right™.
- It cannot add different prefixes to the names of index and data files, making it impossible to set up S3 lifecycle rules for dumping the latter to Glacier. (Duplicity requires the former to be hot for some reason, I don’t know why.)
Both of those are things you can do with the underlying Duplicity tool and a scheduler, but the UI does not expose them. Thus I sadly had to discard Déjà Dup’s shiny GNOME UI, and I know of no other backup tool with a shiny GNOME UI (and am too lazy to write one so far).
Have any parts of this become false?
Please, run your backup servers on machines designed to do so, capable of receiving regular software updates, etc...
If anyone had some tips on how I could get into these machines it would be much appreciated.
Because right now i'm just using consumer hardware (an Athlon 200GE for its low 35W TDP, some cheapo RAM and a number of Seagate BarraCuda HDDs) in combination with Debian, which also runs on my other cloud servers. It's all mounted on my other devices either through SFTP or a Nextcloud instance that's also running on them for easier file replication. I don't even have RAID or ZFS/XFS/Btrfs file systems, just ext4 because any sort of clustering would introduce unneeded complexity to the setup - instead, a cron job with rsync backs the data from the "primary" HDDs to "secondary" ones every day in an incremental manner (well there's also BackupPC that does network rsync backups across servers).
What purpose would running a NAS oriented OS distro even serve, for simple uses cases like that? It feels like the current "ad hoc" setup is really affordable and easy to operate.
I think a SoC would also be nicely suited for this, as long as there is sufficient I/O capability. In regards to phones, however, i feel like drivers for obscure devices could probably become problematic quickly.
- ECC RAM, to avoid corruption on write
- Software RAID, to avoid data loss due to drive failure
- Some kind of checksumming and error-correcting filesystem, e.g. ZFS, to prevent data loss due to bad sectors
- Enough CPU to transcode media in real-time
- Vanilla distro with SSH, SMB filesharing, Plex, and networked printing
- A spare PSU in the closet
I explicitly avoid:
- Hardware RAID (unnecessary, expensive, harder to fix)
- Any OEM prebuilt NAS products (more expensive, less capable, less user control)
- Any specialty NAS-oriented distros or OSes (more feature bloat, bigger attack surfaces)
I use plain old Debian for my home NAS. I'd switch to OpenBSD in a heartbeat if it supported a checksumming and error-correcting filesystem.
- power management
- semi-closed source applications
On power management, I don't use the NAS box continuously, and there can be long gaps between accesses. Having the box "sleep" for 95% of the day, and wake up the disks only for one or two bursts of activity is interesting to me.
I tried doing that with DIY solutions, including Raspberry Pi+SATA disk type of arrangements. Overall it didn't work great and was a PITA.
On the semi-proprietary apps, I am thinking about Synology's apps. I could totally live without them, but it's a nice addition to the package, they're easy to install, seem to be well maintained and work decently well.
just one nitpick with your setup:
if your primary hdd corrupts, rsync will not notice/care and corrupt your backup as well. zfs is all the rage because it aims to have two sources for the data aswell as a checksum, so it can tell which data-source is flawed AND fix it.
Not (really) true, there is not much hard data backing this up as I see it, and for what there is, the retention would be 1+ year. The thread is not about offline backups, but an always powered backup server anyway. And SSD does make sense for a lot of reasons: HDD speeds are likely slower than local CAT cable, the higher IOPS helps on parallel workload cases, not to mention the way lower power draw and zero noise (no moving parts for the rest of the setup), compared to a chirping HDD.
Once you have usb debugging, I can recommend Vysor, super easy to use to control your phone from the pc.
I'd also recommend turning on Talkback (assistive technology) and VoiceAccess as that can help you use the device even if you cant see anything on your screen. That helped me a lot with my phone that has a broken screen where nothing but the touchscreen works.
Re-enabling USB debugging was the following process:
1. use USB-OTG to go into the bluetooth menu to connect a bluetooth device to.
2. enable usb debugging using mouse
3. connect to PC and use the bluetooth keyboard to allow USB debugging
4. use scrcpy to control the device
Obviously this only works reasonably well if you can see at least some portion of the screen.
Of course, my Buffalo NAS can’t compete with that and got fewer updates than my old phone…
It is no longer connected to an internet facing network.
Using it for my router, firewall and NAS hardware - and can totally recommend it.
Vendor kernels are a continual security apocalypse that never ends.
That said, with some magic linux command sauce, external drives can be used(part 2 of link), then software RAID, offloading data to them to prolong flash writes lifetime, then more stuffs like AnLinux can instead be used to add functionality to it.
Interesting read indeed.
someone can find 10+ yrs NAS really cheap nowadays.. I ve got a ..bucket of Netgear's (most of them ReadyNAS Duo v2) for £5 each!!!
don't you have problems with SSL certificates and accessing the interface via browser?
In general, both a router and a NAS do lack the backup battery, unless an UPS is also used...
It's pretty neat! Check it out if you have a need for it.
Would this software also work in that environment?
https://github.com/Magisk-Modules-Repo/acc
I had my phone plugged in for almost 3 years, and the battery still lasts for 3 days on its own. Highly recommended.
As a side note, can someone tell me if something like this can be made for postmarketOS? I installed it couple months back and this is really bugging me. Apart from constant vibrations.
I know you're joking, but I've seen this logic at play elsewhere.
READ the documentation though, because opening devices up for the internet can be nasty, especially when it's your first time doing so.