OliveTin
OliveTin exposes a webpage with buttons that execute shell command (eg. docker, scripts) on the server and allow others for easy access. It should be used internally only.
Installation
Download the correct file from this site. https://github.com/OliveTin/OliveTin/releases OliveTin_linux_amd64.deb
Go to the directory and install the package.
sudo dpkg -i OliveTin…deb
sudo systemctl enable --now OliveTin
Configuration
The configuration file is located at /etc/OliveTin/config.yaml
Example Configuration
listenAddressSingleHTTPFrontend: 0.0.0.0:1378 # set the port of OliveTin to 1378
# Choose from INFO (default), WARN and DEBUG
logLevel: "INFO"
# Actions (buttons) to show up on the WebUI:
actions:
# This will run a simple script that you create.
- title: Update Music
shell: /home/karis/scripts/script
icon: '🎵'
More possible configurations (many are not possible on Docker)
Execute a shell command with textbox input.
- title: Restart a Docker CT
icon: '<img src = "icons/restart.png" width="48px" />'
shell: docker restart {{ container }}
arguments:
- name: container
type: ascii
- use {{ }} and give a variable
- under arguments type, assign a type for it, ascii only allows letters and numbers
Execute a shell command with choices
Icons Customization
The icons need to be placed in a folder in /var/www/[icon-folder]/icon.png. To use the icons, offline image or web address, it should be in HTML format. The size of 48px is the default size of OliveTin icons. Other CSS options such as style="background-color: white;"
also works.
icon: '<img src = "icons/minecraft.png" size="48px" />'
Icon with emoji, to use emoji, need to use the html code. https://symbl.cc/en/emoji/
For example, ☺
😊.
icon: "☺"