this post was submitted on 24 Sep 2024
84 points (93.8% liked)

Linux

48323 readers
651 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hi all,

I'm getting a pc for my daughter. I'll install Fedora KDE Spin. I'm looking for a parental control solution that also integrates with her Android phone. I'm currently using Google's Family Link which while not great it offers enough. I'd be happy to move to any other solution that can count both device's usage screen time as one so she doesn't use up her phone and then move to the PC.

Any cool recommendations?

top 50 comments
sorted by: hot top controversial new old
[–] SnotFlickerman@lemmy.blahaj.zone 47 points 2 months ago* (last edited 2 months ago) (4 children)

Personal opinion, I don't understand why more parents haven't moved to use Pi-Holes for content blocking. Since you can tailor your own blocklists, it's not impossible to do, and I'm pretty sure some enterprising folks have already made a Pi-Hole block list for porn and various adult websites.

Further, if your child figures out how to bypass the block, they're learning valuable skills, if nothing else.


To be fair, it seems like you're more concerned with overall screen time, and I don't have a better solution for that than you already have.

[–] DaGeek247@fedia.io 18 points 2 months ago (2 children)

Pihole can be broken with a free vpn, or even just forced DNS on device.

[–] MajorHavoc@programming.dev 28 points 2 months ago (1 children)

True!

I take comfort that if my kid can figure out setting up their own VPN or DNS, then I'm sure they'll earn enough later to support their porn habit.

[–] etchinghillside@reddthat.com 5 points 1 month ago

I don’t know… Have you seen the rates for Findom lately!?

[–] borari@lemmy.dbzer0.com 3 points 2 months ago* (last edited 2 months ago) (2 children)

Run pihole with a MikroTik router at your houses demarc.

Set up firewall rules in the tik to redirect any packet with dst tcp/udp 53 outbound on wan to the pihole. If you’re worried about dns when pihole is down, create disabled rules to allow the dns traffic as well, then set up a scheduler script using if blocks to toggle the sets of rules depending on status. This will force any client on your network, even one with hardcoded dns IPs, to use the pihole.

If the client is configured for DoH you’ll just have to build out an ip block list in the MikroTik and block all known DoH IPs.

Create firewall rules to drop all vpn traffic you can, combining port based rules and similar IP lists as for DoH, but subbing in VPN provider IPs. If you want to route your home traffic over a vpn, set up a vpn client in the router itself and basically site-to-site your home to the vpn provider you use.

This would block the vast majority of kids trying to bypass parents blocks, but it’s asking quite a lot from the parents who don’t have experience configuring this stuff already.

[–] DaGeek247@fedia.io 4 points 1 month ago

I knew the forced dns thing because I have a pihole, and blocking port 53 traffic not heading to my two PIs has not happened yet, despite my best efforts. Shit aint simple for me, much less regular people.

[–] uid0gid0@lemmy.world 3 points 1 month ago

Then they just do what we did when our parents wouldn't let us watch TV. Go over to a friend's house and do it there.

[–] nao@sh.itjust.works 11 points 1 month ago

Maybe limiting internet usage is enough, spending extra time on a linux pc with no internet might just be an opportunity to learn something.

[–] melroy@kbin.melroy.org 4 points 2 months ago (1 children)

Hi again. Great idea indeed! Just use pi-hole and block all NSFW content, sites and ads.

[–] borari@lemmy.dbzer0.com 8 points 2 months ago

I can’t quite get a read on if you’re being sarcastic or not, but if you are you should know that there are curated porn blocklists for pihole. This obviously won’t stop anyone from accessing porn via nsfw channels on sites that are not exclusively nsfw, like lemmy, Reddit, tumblr, or whatever.

[–] Diplomjodler3@lemmy.world 4 points 2 months ago

My router can limit access time but I'm not sure if it's on a device by device basis. Might be worth checking.

[–] RmDebArc_5@sh.itjust.works 16 points 2 months ago (1 children)

Parental controls are one of the under developed parts of Linux, the only major one I know of is timekpr

[–] possiblylinux127@lemmy.zip 1 points 1 month ago (1 children)

That does make sense as Linux generally is freedom focused

[–] RmDebArc_5@sh.itjust.works 2 points 1 month ago

I think the main reason is that most people who use Linux installed it on their own and at that point no parental control is stopping you.

[–] snowadv@lemm.ee 13 points 1 month ago* (last edited 1 month ago) (3 children)

// sry for offtop but

Is everyone is fine with parental control nowadays? It was for paranoid parents only in my childhood and I didn't know anyone with parental control really.

The worst thing to me and my friends was hidden power supply cable if you did something really wrong.

[–] Telorand@reddthat.com 12 points 1 month ago (1 children)

It's not really random internet strangers' place to judge someone's parenting choices. We don't know their overall parenting style, the personality of the child, what lessons they may be trying to teach, etc. The only thing we know for certain is that they want to use parental controls, perhaps to ensure they stay safe as they learn how to use the internet responsibly while also having a level of autonomy.

That's not helicopter parenting, that's just prudent.

[–] SnotFlickerman@lemmy.blahaj.zone 4 points 1 month ago* (last edited 1 month ago) (1 children)

Exactly. I don't personally have kids so I also feel especially out of line telling someone else how to raise theirs. Parenting isn't easy, and there's tough questions like "How do I get my child to learn good habits around screen time so they don't end up addicted to devices built for addiction?" Honestly, I personally don't know a better way other than loosely (not strictly) limiting screen time enough so that they naturally learn good habits over time, and that unfortunately means you need to monitor screen time. As an adult I noticed a lot of my good habits were things my parents instilled in me in my youth that I hadn't really thought about, like drinking a lot of water, for one. They didn't prevent me from drinking soda at all, but they limited my intake at home and made sure when I was home I was drinking lots of water and not just juice or soda, they didn't try to control me outside of the house when I was making my own decisions... and now I drink water a lot because it just feels normal. It's a habit they got me into, and because it became a habit I'm left with a good habit in my adulthood. I don't see how it would be any different in getting a kid to respect screen time as an adult.

God... I wish my parents had done more to monitor my screen time because I'm bad at this shit.

[–] snowadv@lemm.ee 2 points 1 month ago

Yeah I guess you're right and that depends on the child and their parents themselves.

My parents weren't limiting my time in any way and that helped me to become software engineer actually so to me it turned out to be a good thing. If I did have my screen time limited I would totally spend it on computer.games and not CS. I'm sure about it because I spent a lot of time playing too haha

[–] brunofin@lemm.ee 7 points 1 month ago (3 children)

My daughter has ADHD and if we don't limit her screen time she can literally spend the whole day sitting and watching Minecraft videos, and then later she gets very grumpy, so yeah while I absolutely hate having to do it, it's more for her own health than content exposure (not blocking websites and app installation other than by age recommendation).

[–] BearOfaTime@lemm.ee 1 points 1 month ago

I wonder if maybe some kind of notification system for her, and you, would be useful (in addition to blocking).

Then maybe you can interrupt her, perhaps talk about it, or setup some tools for her to use to help manage stuff and learn along the way.

Guess what I'm going for is the learning/growth angle, rather than just automatic constraints (which hy themselves don't teach or help us learn to manage this stuff ourselves).

Seems like there's a need for all this for all kids, not just neuro-atypical.

[–] snowadv@lemm.ee 1 points 1 month ago

Oh, sorry, that sounds totally understandable - I wish my best to both you and her!

And don't see anything wrong with that either way - was just interested how common it is

[–] CameronDev@programming.dev 1 points 1 month ago

If your goal is to interrupt her usage to avoid excessive usage, would a pomodoro timer help?

https://gnomepomodoro.org/

I dunno if that can be setup to force lock the screen or something, but maybe its helpful? Depends if its easy to override?

[–] possiblylinux127@lemmy.zip 3 points 1 month ago* (last edited 1 month ago)

You should absolutely monitor and restrict content for for children

I agree that parents can get overzealoused but that doesn't mean it needs to be the wild west with no monitoring

[–] melroy@kbin.melroy.org 9 points 2 months ago (2 children)

Try ActivityWatch! Releases page here. There is even an AppImage.

Then also install: aw-watcher-web to track duration on sites (eg. firefox).

[–] BearOfaTime@lemm.ee 5 points 2 months ago (2 children)

What's Activity Watch do?

I looked at Github, by like so many projects there, the descriptions vary from minimal to non-existant.

[–] melroy@kbin.melroy.org 8 points 2 months ago (1 children)

ActivityWatch tracks time under Linux across all your applications and windows. So you know where you spent your most time on. It can categorize them as well for you. And there are plugin for eg. for Firefox to also track time on sites, etc. So you get a much better understanding about how you spent your time (maybe too much youtube? Or are you too much recompiling the kernel all day?).

[–] BearOfaTime@lemm.ee 3 points 2 months ago

Oh, cool. Thanks for the recommendation!

[–] SnotFlickerman@lemmy.blahaj.zone 2 points 2 months ago (2 children)

The goal of ActivityWatch is simple: Enable the collection of as much valuable lifedata as possible without compromising user privacy.

We've worked towards this goal by creating an application for safe storage of the data on the user's local machine and as well as a set of watchers which record data such as:

Currently active application and the title of its window Currently active browser tab and its title and URL Keyboard and mouse activity, to detect if you are AFK ("away from keyboard") or not

It is up to you as user to collect as much as you want, or as little as you want (and we hope some of you will help write watchers so we can collect more).

Well, they linked to the releases page instead of the main page for the project, for one.

[–] melroy@kbin.melroy.org 2 points 2 months ago (1 children)

I also linked to the readme as well.. If you click on "ActivityWatch".

[–] SnotFlickerman@lemmy.blahaj.zone 3 points 2 months ago* (last edited 2 months ago) (1 children)

I need to change my default colors then, because it was way too easy to miss that first link. That's on me.

[–] melroy@kbin.melroy.org 1 points 2 months ago (1 children)

My bad.. I should make it all text with hyperlinks instead. --> fixed

[–] SnotFlickerman@lemmy.blahaj.zone 1 points 2 months ago* (last edited 2 months ago) (1 children)

I appreciate it, but genuinely, the best thing about Lemmy is being in control of how you view your own feed, and so (especially considering I'm fucking red-green colorblind lol) it really is my responsibility to make it readable for myself. Thanks for being a good fellow, regardless.

[–] melroy@kbin.melroy.org 2 points 1 month ago

Mbin also does have a lot of theme options, layout settings and different colored themes.

[–] BearOfaTime@lemm.ee 1 points 2 months ago

Hmm, I couldn't find that anywhere. Thanks again.

[–] brunofin@lemm.ee 2 points 1 month ago

This is very cool

[–] BearOfaTime@lemm.ee 4 points 2 months ago (1 children)

For phone, a couple things.

Look for Mobile Device Management. I've been meaning to do this for family for years.

Flyve is an open source MDM. I've only tested it so far. You may want to look around for others.

To help with file management on Android, I setup sync jobs between the phone and a desktop (or a user's laptop) for certain folders, things like DCIM, Download, Movies, Pictures, etc (and certain app data folders such as Camscanner) using Syncthing-Fork on the phone, and Syncthing or SyncTrayzor on a pc. Doing this enables file management from the pc, as changes can sync back to the phone (and since I want my photos on my pc anyway...). Syncthing can work across most any network, including the internet and your phone data plan (so don't let it sync big stuff using data). It can be locked with a password too, to prevent little hands from mucking things up.

You could, in theory, just let it sync the entire sdcard, but lots of stuff changes all the time, such as app data in the Android folder. No reason to sync that stuff. Plus doing that doesn't permit finer control of sync for things like DCIM, which I permit to sync over any network and any power state.

Syncthing also works between two or more phones, or PCs (windows or Linux), and has lots of flexibility for sync. I use it extensively to share stuff with friends so we don't have to think about sharing, especially for larger files. I sync files between phones with no PC, some sync jobs use a pc as intermediary so both phones don't need to be connected all the time, etc.

Another sync tool, Resilio, is really good. But on the phone it's a major memory and battery hog, so I use it only for it's selective Sync feature, and keep it turned off otherwise.

These are just my ideas, everyone's use-case is different. Your problem is one I've been lazily working on for years, so I look forward to the other ideas that come up here.

[–] osaerisxero@kbin.melroy.org 3 points 2 months ago (1 children)

Flyve's site says that it's ceased development, which I found to be slightly amusing since this is the first I've heard of it. I have a lot of experience in the MDM space, and to be perfectly frank, for Android your best option is staying first party and sticking with Family Link. The MDM APIs in android land are a hot mess, and have been since their inception, and 3rd party solutions have only ever been adequate at best.

[–] BearOfaTime@lemm.ee 5 points 2 months ago

The MDM APIs in android land are a hot mess

Ain't that the truth.

I avoid Google stuff, actually going Google free on the phone I'm setting up now, so Family Link is out for me. And I try to avoid all-eggs-in-a-basket anyway.

Yea, it sucks. I've looked at a LOT of MDM for Android.

[–] brunofin@lemm.ee 4 points 1 month ago

Seems like this topic got lots of attention over night, I really appreciate it!

It looks like there's really no solution for what I'm looking for, even if I'd move to windows I don't think I'd get what I want. Apparently only Apple has that but I'm not sure, never owned an apple device.

Seems like this would be a cool project to work on, cross platform cross device parental control with Linux as a first class citizen.

[–] PotatoesFall@discuss.tchncs.de 3 points 2 months ago

if you want a paid version similar to pihole with a bit more control and insights I recommend a smart DNS service like Control D.

[–] Findmysec@infosec.pub 3 points 1 month ago* (last edited 1 month ago) (1 children)

Create a new user and give explicit permissions via doas + SELinux (corporate style lockdown). And deal with network policies with a DNS filter on your LAN (or maybe run an unbound service on her device with a different user without a login so she can't change the config). Easy

For Android, use a FOSS MDM

[–] tapdattl@lemmy.world 2 points 1 month ago (1 children)

Any recommendations on a FOSS MDM?

[–] Findmysec@infosec.pub 2 points 1 month ago

I found this but it's from a while back: https://h-mdm.com/advanced-web-panel-installation/

Not too many out there TBH. If I had a daughter she'd be getting a Pixel with Grapehene and a DNS server on it (different user) if she really didn't have any self control

[–] possiblylinux127@lemmy.zip 2 points 1 month ago* (last edited 1 month ago)

What are you looking to do? I personally would look into more generic management tools. You definitely want to setup blocks for any questionable content and you should be monitoring everything. I would create them an account and then lock it down so that there ability to break things is limited. You can either use Gnome or Xfce4. They both support restrictions. To my knowledge KDE does not focus on restrictions at all.

To start I would setup a Firewall on your family network and then lock down what sites are available. You can block things like adult content and any other things like social media. You say you don't want her sitting and watching YouTube all day so you could just only allow YouTube at certain times a day. You could then tie her phone into a VPN that goes back to the home network. On the phone you can also use https://timelimit.io/

[–] Quereller@lemmy.one 2 points 1 month ago (1 children)

For Android there is TimeLimit.io which is open spurce and in the F-Droid store.

[–] progandy@feddit.org 2 points 1 month ago

For Linux maybe timekpr-next and some custom scripts to sync the time with the time limit server?

[–] data1701d@startrek.website 2 points 2 months ago (1 children)

I haven't researched this (I don't have kids), but out of curiosity, what type of mobile device is your daughter using? Also, I think PiHole is a solid recommendation like others recommend.

Otherwise, from a quick Google, I don't know of anything that can integrate both Linux PC and mobile phone screen time. Honestly, this sounds like a fun project I could implement someday if I ever had the will. However, for right now, in terms of screen time all I can think of is reading system logs (perhaps via SSH) to manually analyze your daughter's screen time.

[–] brunofin@lemm.ee 1 points 1 month ago

She's using a Samsung android phone with Family Link, it's meh but does it's job. I'm looking into limiting screen time more than content restrictions, and having the total screen time across all devices in a centralised service is very much what I'm looking for.

[–] eugenia@lemmy.ml 2 points 1 month ago

There are various tools (2-3 of them) but they're all different ones and don't work with eachother. Usually, a parent needs an easy to use panel to set screentimes, blocked sites, and which apps are allowed or not (and possibly a checkbox to allow the games subcategory every weekend). But all these tools, while exist, are separate and difficult to either install or make work properly.

I recently did a bug report at Linux Mint to create such an admin panel. While this was a feature request, I presented it as a bug, arguing that because of Mint's unique position as a "home" or "first" distro to new users, its absence is more like a bug. To my surprise, the creator of Mint, while not replying anything additionally, he assigned it a bug status, as if he agreed with the argument. So we might see something like it on Mint, but not for a couple of years yet... By that time you might not need it anymore, but I believe it'll come eventually to Linux too.

[–] gnuhaut@lemmy.ml 1 points 1 month ago

There's some free dns servers which block certain stuff (pretty sure adguard has them, other products are available) which can be set on the router and/or the device itself. This is not very flexible but it's easy to set up.