Skip to content

gen-germany/th-guest-computer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TH Guest computer

This repository contains all files needed to set up/customize the guest computer at Schloss Tempelhof.

The guest user will be freshly created on every boot and deleted on every shut down to prevent leaving personal information. The user account gets customized.

Usage

Preparation

  1. Install a current Ubuntu LTS Desktop edition (at time of writing: Ubuntu 22.04)
  2. Follow graphical installer to set hostname, timezone, etc according to your needs
  3. Create an administrative user administrator during installation Note: if you want to choose a different user name, you have to rename the file var/lib/AccountsService/users/administrator accordingly.
  4. Install additional software on the computer: sudo apt-get install gimp gimp-help-de brasero vcdimager gstreamer1.0-plugins-bad nautilus-image-converter vlc libdvdcss2

Provisioning

Note: As only a single computer is used, the process was not automted by. e.g. Ansible, but doing so should be trivial.

  1. Clone the repository
  2. Change the password of the guest user in file /usr/local/sbin/add-guest-user.sh Note: If you additionally want to change the username, do so in following files:
  3. /usr/local/sbin/add-guest-user.sh
  4. /usr/local/sbin/delete-guest-user.sh
  5. /usr/local/sbin/daily-shutdown.sh
  6. /etc/polkit-1/localauthority/20-org.d/de.schloss_tempelhof.disable_hibernate.pkla
  7. /etc/polkit-1/localauthority/20-org.d/de.schloss_tempelhof.disable_suspend.pkla
  8. /etc/polkit-1/localauthority/20-org.d/de.schloss_tempelhof.disable_lock_sessions.pkla
  9. Copy the files over to their final destionation on the guest computer
    Note: If the file already exists (e.g. /etc/crontab) add its content to the existing file.
    Note: Double check that file permissions fit.

Features

Automatic updates

Reason: Run (not only security) updates automatically in background to bother guest user as little as possible
Source: [https://wiki.ubuntuusers.de/Aktualisierungen/Konfiguration/] File: /etc/apt/apt.conf.d/50unattended-upgrades

Remove administrator user from user list at logon screen

Reason: Don't wake sleeping dogs
Source: [https://askubuntu.com/questions/92349/how-do-i-hide-a-particular-user-from-the-login-screen]
File: /var/lib/AccountsService/users/administrator

Prevent suspend, hibernate, log-off for guest user

Reason: After every usage a restart is intended, to ensure deletion of all personal data
Source:

Files:

Forced restart every nigth (with warning dialogue beforehand)

Reason: After every usage a restart is intended, to ensure deletion of all personal data
Source: [https://askubuntu.com/questions/567955/automatic-shutdown-at-specified-times] [https://serverfault.com/questions/229021/how-to-use-crontab-to-display-something-to-users-on-display-0-0-or-run-a-gui-pr] [https://wiki.ubuntuusers.de/Zenity/] Files:

Create guest user during boot and delete it during shut down

Reason: Every guest shall start with an empty user profile, no personal data shall be left over
Source:

Files:

Customize guest user

Reason: Provide Tempelhof branding, help and limit rights of user
Source:

Customize Firefox

Reason: Provide Tempelhof branding and limit rights of user
Source:

License

Feel free to contribute and use the files under following license:

TH guest user
Copyright (C) 2020  Simon Harhues

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

About

config files for guest computer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages