base desktop + preseed v03
This commit is contained in:
parent
5663982dac
commit
2ee43d2269
6 changed files with 5 additions and 6 deletions
|
|
@ -1,64 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
#printf "[daemon]\nAutomaticLoginEnable=true\nAutomaticLogin=kiosk\n\n[security]\n\n[xdmcp]\n\n[chooser]\n\n[debug]\n" > /etc/gdm3/daemon.conf
|
||||
|
||||
mkdir -p /usr/lib/firefox-esr/distribution
|
||||
tee /usr/lib/firefox-esr/distribution/policies.json > /dev/null <<'EOF'
|
||||
{
|
||||
"policies": {
|
||||
"DisableDeveloperTools": true,
|
||||
"BlockAboutAddons": true,
|
||||
"BlockAboutConfig": true,
|
||||
"BlockAboutProf#!/usr/bin/env basshiles": true,
|
||||
"BlockAboutSupport": true,
|
||||
"DisableFirefoxAccounts": true,
|
||||
"DisablePrivateBrowsing": true,
|
||||
"DisableProfileImport": true,
|
||||
"DisableProfileRefresh": true,
|
||||
"DisableSafeMode": true,
|
||||
"DisablePocket": true,
|
||||
"DisableFirefoxScreenshots": true,
|
||||
"DisableSetDesktopBackground": true,
|
||||
"Homepage": {
|
||||
"URL": "https://mahn.ke",
|
||||
"Locked": true
|
||||
},
|
||||
"NewTabPage": {
|
||||
"Enabled": false
|
||||
},
|
||||
"DownloadDirectory": {
|
||||
"Path": "C:\\KioskDownloads",
|
||||
"Locked": true
|
||||
},
|
||||
"PromptForDownloadLocation": false,
|
||||
"StartDownloadsInTempDirectory": false,
|
||||
"DisableAppUpdate": true,
|
||||
"Permissions": {
|
||||
"Camera": "deny",
|
||||
"Microphone": "deny",
|
||||
"Location": "deny",
|
||||
"Notifications": "deny"
|
||||
},
|
||||
"ShowHomeButton": false,
|
||||
"DisplayMenuBar": false,
|
||||
"DisplayBookmarksToolbar": false,
|
||||
"policies": {
|
||||
"UserMessaging": {
|
||||
"ExtensionRecommendations": false,
|
||||
"FeatureRecommendations": false,
|
||||
"UrlbarInterventions": false,
|
||||
"SkipOnboarding": false,
|
||||
"MoreFromMozilla": false,
|
||||
"FirefoxLabs": false,
|
||||
"Locked": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
EOF
|
||||
chown -R kiosk:kiosk /home/kiosk/.config
|
||||
|
||||
tee /home/kiosk/.bash_profile > /dev/null <<'EOF'
|
||||
if [ -z "$WAYLAND_DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
|
||||
exec cage firefox --kiosk mahn.ke/kiosk
|
||||
fi
|
||||
EOF
|
||||
Loading…
Add table
Add a link
Reference in a new issue