A lot of changes
This commit is contained in:
parent
0dc2bb9d15
commit
e48af5b574
2 changed files with 113 additions and 3 deletions
11
README.md
11
README.md
|
@ -1,12 +1,12 @@
|
|||
GlassTop
|
||||
==========
|
||||
========
|
||||
|
||||
Modified for my needs from https://github.com/kasmtech/workspaces-images/commit/7600e4580c0affd177767c26b97b72acfffc28a4
|
||||
|
||||
|
||||
|
||||
Key differences
|
||||
------------------
|
||||
---------------
|
||||
- Stripped many packages
|
||||
- Might have added packages
|
||||
- Probably customized desktop default settings
|
||||
|
@ -16,4 +16,9 @@ How to use
|
|||
----------
|
||||
Create new workspace manually and set following (example):
|
||||
- Docker image: `git.jakest.us/jt/glasstop:dev`
|
||||
- Docker registry: `git.jakest.us`
|
||||
- Docker registry: `git.jakest.us`
|
||||
|
||||
Building
|
||||
--------
|
||||
Build: `sudo docker build -t git.jakest.us/jt/glasstop:dev .`
|
||||
Push: `docker login git.jakest.us && docker push git.jakest.us/jt/glasstop:dev`
|
||||
|
|
105
install-stuff.sh
105
install-stuff.sh
|
@ -30,6 +30,61 @@ apt-get install -y \
|
|||
fonts-glasstty \
|
||||
fonts-firacode
|
||||
|
||||
# Customize Firefox
|
||||
mkdir -p /etc/firefox/policies
|
||||
cat > /etc/firefox/policies/policies.json <<EOF
|
||||
{
|
||||
"policies": {
|
||||
"DisableTelemetry":true,
|
||||
"NoDefaultBookmarks": true,
|
||||
"OverrideFirstRunPage": "",
|
||||
"OverridePostUpdatePage": "",
|
||||
"RequestedLocales": "fi,en-US",
|
||||
"SearchSuggestEnabled": true,
|
||||
"ExtensionUpdate": true,
|
||||
"ExtensionSettings": {
|
||||
"{26ffe8a2-401b-4bf0-a79c-501c361de5af}": {
|
||||
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/firefox-alpenglow/latest.xpi",
|
||||
"installation_mode": "force_installed"
|
||||
},
|
||||
"@testpilot-containers": {
|
||||
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/multi-account-containers/latest.xpi",
|
||||
"installation_mode": "force_installed"
|
||||
},
|
||||
"uBlock0@raymondhill.net": {
|
||||
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi",
|
||||
"installation_mode": "force_installed"
|
||||
},
|
||||
"{446900e4-71c2-419f-a6a7-df9c091e268b}": {
|
||||
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi",
|
||||
"installation_mode": "force_installed"
|
||||
}
|
||||
},
|
||||
"SearchEngines": {
|
||||
"Default": "Brave",
|
||||
"PreventInstalls": true,
|
||||
"Add": [
|
||||
{
|
||||
"Name": "Brave",
|
||||
"URLTemplate": "https://search.brave.com/search?q={searchTerms}",
|
||||
"Method": "GET",
|
||||
"IconURL": "https://brave.com/static-assets/images/brave-favicon.png",
|
||||
"Description": "Has privacy, yeahh",
|
||||
"SuggestURLTemplate": "https://search.brave.com/api/suggest?q={searchTerms}"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
|
||||
|
||||
# Fix VSCodium
|
||||
sed -i 's#/usr/share/codium/codium#/usr/share/codium/codium --no-sandbox##' /usr/share/applications/codium.desktop
|
||||
|
||||
|
||||
|
||||
# Desktop entries
|
||||
cp \
|
||||
/usr/share/applications/codium.desktop \
|
||||
|
@ -37,10 +92,60 @@ cp \
|
|||
/usr/share/applications/libreoffice-startcenter.desktop \
|
||||
/usr/share/applications/gimp.desktop \
|
||||
/usr/share/applications/firefox-esr.desktop \
|
||||
/usr/share/applications/xfce4-terminal.desktop \
|
||||
$HOME/Desktop
|
||||
chmod +x $HOME/Desktop/*.desktop
|
||||
chown 1000:1000 $HOME/Desktop/*.desktop
|
||||
|
||||
|
||||
|
||||
# Clean up
|
||||
apt-get autoremove -y
|
||||
apt-get autoclean -y
|
||||
|
||||
# File cleanups
|
||||
rm -Rf \
|
||||
/home/kasm-default-profile/.cache \
|
||||
/home/kasm-user/.cache \
|
||||
/tmp \
|
||||
/var/lib/apt/lists/* \
|
||||
/var/tmp/*
|
||||
mkdir -m 1777 /tmp
|
||||
|
||||
# Services we don't want to start disable in xfce init
|
||||
rm -f \
|
||||
/etc/xdg/autostart/blueman.desktop \
|
||||
/etc/xdg/autostart/geoclue-demo-agent.desktop \
|
||||
/etc/xdg/autostart/gnome-keyring-pkcs11.desktop \
|
||||
/etc/xdg/autostart/gnome-keyring-secrets.desktop \
|
||||
/etc/xdg/autostart/gnome-keyring-ssh.desktop \
|
||||
/etc/xdg/autostart/gnome-shell-overrides-migration.desktop \
|
||||
/etc/xdg/autostart/light-locker.desktop \
|
||||
/etc/xdg/autostart/org.gnome.Evolution-alarm-notify.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.A11ySettings.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.Color.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.Datetime.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.Housekeeping.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.Keyboard.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.MediaKeys.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.Power.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.PrintNotifications.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.Rfkill.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.ScreensaverProxy.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.Sharing.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.Smartcard.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.Sound.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.UsbProtection.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.Wacom.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.Wwan.desktop \
|
||||
/etc/xdg/autostart/org.gnome.SettingsDaemon.XSettings.desktop \
|
||||
/etc/xdg/autostart/pulseaudio.desktop \
|
||||
/etc/xdg/autostart/xfce4-power-manager.desktop \
|
||||
/etc/xdg/autostart/xfce4-screensaver.desktop \
|
||||
/etc/xdg/autostart/xfce-polkit.desktop \
|
||||
/etc/xdg/autostart/xscreensaver.desktop
|
||||
|
||||
# Bins we don't want in the final image
|
||||
if which gnome-keyring-daemon; then
|
||||
rm -f $(which gnome-keyring-daemon)
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue