如何在 Debian 10 上安装 CTparental 家长控制软件
在此页
- 先决条件
- 开始
- 安装 CTparental
- 设置主机文件
- 访问 CTparental
- 结论
CTparental 是一种免费的开源家长控制工具,用于控制计算机使用或互联网浏览。它带有一个简单易用的网络界面,由 Lighttpd 网络服务器提供支持。 CTparental 工具的想法来自其他工具,例如 iptables、dnsmasq 和 inguardian privoxy。
特征
- 使用黑名单或白名单过滤内容
- 支持 Firefox、Midori 和 Chromium
- 按类别过滤网站
- 允许设置用户的最长浏览时间
- 控制计算机会话的活跃时间
- 强制安全搜索 duckduckgo 和 google
在本文中,我们将向您展示如何在 Debian 10 上安装 CTparental。
先决条件
- 运行 Debian 10 桌面的系统。
- 在服务器上配置了根密码。
入门
首先,通过运行以下命令将系统包更新到更新版本:
apt-get update -y
更新所有包后,您可以继续下一步。
安装CTparental
默认情况下,CTparental 不包含在 Debian 10 默认存储库中。所以你需要从 GitLab 网站下载它。
您可以使用以下命令下载它:
wget -c https://gitlab.com/marsat/CTparental/uploads/d5567eb1a43ffde679193bce87be5f69/ctparental_debian10_lighttpd_4.44.18-1.0_all.deb
下载完成后,使用以下命令安装下载的文件:
dpkg -i ctparental_debian10_lighttpd_4.44.18-1.0_all.deb
如果出现任何依赖项错误,请运行以下命令来安装所有必需的依赖项:
apt-get install -f
在安装过程中,系统会要求您设置管理员用户,如下所示:

提供您的用户名并按 Enter。系统将要求您为管理员用户设置密码,如下所示:

提供您的密码并按 ENTER 键以完成安装。
安装所有依赖项后,您可以使用以下命令验证 CTparental 安装:
apt-cache show ctparental
您应该得到以下输出:
Package: ctparental
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 2568
Maintainer: marsat <>
Architecture: all
Version: 4.44.18-1.0
Depends: debconf (>= 0.5) | debconf-2.0, debconf, dnsmasq, lighttpd, sudo, wget, php-cgi, php-xml, libnotify-bin, notification-daemon, nftables, rsyslog, e2guardian, privoxy, openssl, libnss3-tools, console-data, dnsutils, whiptail, ifupdown2 | ifupdown, rsync, openssh-server
Conflicts: dansguardian
Conffiles:
/etc/CTparental/CTparental.conf c423d608fbc18de0512efb68c4fdcaf6
/etc/CTparental/dist.conf 61085f21f8656cc10a30da6759d8154c
Description: Controle parental.
Filtrage web basé sur dnsmasq, e2guardian, privoxy, lighttpd , systemd timer et nftables
une gestion des horaires de connection est aussi intégrée et
une interface web (http://admin.ct.local) permettant de paramétrer tous ça.
Le couple login mot de passe doit être saisi à l'install, mais peut être
modifié par la suite grâce à la commande CTparental.sh -uhtml.
Description-md5: 26847a28b1b9824d5d1994ca6224ffe0
Homepage: https://gitlab.com/marsat/CTparental
安装主机文件
CTparental 现已安装并侦听 127.0.0.11 和 127.0.0.10 上的端口 80 和 443。 CTparental 在 Lighttpd Web 服务器上运行,并使用域 admin.ct.local 和 privet.ct.local 创建配置文件。因此,您需要编辑 /etc/hosts 文件并将两个域名与监听 IP 绑定。
nano /etc/hosts
添加以下行:
127.0.0.11 admin.ct.local
127.0.0.10 privet.ct.local
完成后保存并关闭文件。
访问 CTparental
现在,打开您的网络浏览器并使用 URL https://admin.ct.local 访问 CTparental 网络界面。您应该会看到 CTparental 登录页面:

提供您的管理员用户名和密码,然后单击“登录”按钮。您应该在以下页面上看到 CTparental 仪表板:

结论
恭喜!您已经在 Debian 10 桌面上成功安装了 CTparental。您现在可以使用 CTparental 来控制计算机使用和互联网冲浪。