Skip to content

Commit

Permalink
webtop
Browse files Browse the repository at this point in the history
  • Loading branch information
vttc08 committed Jul 12, 2024
1 parent bf101ba commit 4322e9f
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 1 deletion.
111 changes: 111 additions & 0 deletions !documentation/Docker Apps/webtop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# Webtop (openbox-ubuntu)

```yaml
version: "2.1"
services:
webtop:
image: lscr.io/linuxserver/webtop:amd64-ubuntu-openbox
container_name: webtop-openbox
security_opt:
- seccomp:unconfined #optional
environment:
- PUID=1000
- PGID=1001
- TZ=America/Vancouver
- SUBFOLDER=/ # For reverse proxy
- TITLE=WebtopMate # The title as it shown in browser
volumes:
- ~/docker/webtop/config:/config # default home folder
- /mnt/data:/mnt/data
- /var/run/docker.sock:/var/run/docker.sock # Run docker inside docker
ports:
- 3050:3000
shm_size: "1gb" #optional
restart: unless-stopped
```
The default installation with config folder copied is not usable. Packages to be installed
```python
apt update
apt install wget terminator rsync ntp spacefm compton tint2 nitrogen nano lxappearance mousepad unrar unzip xarchiver mono-complete libhunspell-dev p7zip libmpv-dev tesseract-ocr vlc ffmpeg fonts-wqy-zenhei language-pack-zh-hans mediainfo mediainfo-gui
```

Packages that has to be installed manually
`lxappearance, spacefm, tint2, nitrogen`

Desktop (tint2, nitrogen)
- nitrogen cannot keep `scaled` option after restarting and needs to change it manually
- nitrogen wallpaper are found in `/config/Pictures/wallpaper.jpg`

### Customization
**lxappearance**
- theme: `Quixotic-blue`; location `.themes`
- icon: `Desert-Dark-icons`; location `.icons`
**tint2**
- tint2 with copied config, located in `.config/tint2`

### Firefox Browser
**policies.json**
```json
// force install ublock, disable annoyances, add bookmarks
{
"policies": {
"ExtensionSettings": {
"[email protected]": {
"installation_mode": "force_installed",
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"
}
},
"NoDefaultBookmarks": true,
"DisableTelemetry": true,
"Bookmarks": [
{
"Title": "zmk",
"URL": "https://zmk.pw",
"Placement": "toolbar"
},
{
"Title": "SubHD",
"URL": "https://subhd.tv",
"Placement": "toolbar"
} // Add more bookmarks like this
],
"FirefoxHome": {
"Search": true,
"TopSites": true,
"SponsoredTopSites": false,
"Pocket": false,
"SponsoredPocket": false,
"Locked": false
}
}
}

```
- it is not possible to backup bookmarks on the pinned menu via policies (only way is to restore from home folder)
- it's not possible to remove `import bookmarks` and `getting started` bookmarks with `policies.json` as documented [here](https://mozilla.github.io/policy-templates/#nodefaultbookmarks), it has to be removed manually
**Manual Configs**
- ublock add Chinese filter
- pin bookmarks
- remove default bookmarks and getting started from toolbar
### Files

SpaceFM
- upon installing, with config copied over, everything works fine
- configuration is stored in `~/.config/spacefm`

Movie-Renamer Script
- works after copying

### Subtitles
#### Subtitle Edit
Install [dependencies](https://www.nikse.dk/subtitleedit/help#linux)
Download subtitle-edit
```bash
curl -s https://api.github.com/repos/SubtitleEdit/subtitleedit/releases/latest | grep -E "browser_download_url.*SE[0-9]*\.zip" | cut -d : -f 2,3 | tr -d \" | wget -qi - -O SE.zip
unzip SE.zip -d /config/subtitle-edit
```
Subtitle-Edit Dark theme has to be changed manually
- `Options` -> `Settings` -> `Appearance` -> `Use Dark Theme`
- `Options` -> `Settings` -> `Syntax Coloring` -> `Error color` and change to `27111D`
- `Options` -> `Settings` -> `Appearance` -> `UI Font` -> `General` and change to `WenQuanYi Zen Hei`
2 changes: 1 addition & 1 deletion !documentation/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Home
### Recent Updates

- [Webtop (openbox-ubuntu)](webtop.md)
- [Mkdocs](mkdocs.md)
- [01 Docker Infrastructure](01 docker-infra.md)
- [OliveTin](olivetin.md)
Expand All @@ -10,4 +11,3 @@
- [Filebrowser](filebrowser.md)
- [Debian-Based Server Setup](debian-based-server-setup.md)
- [Tunneling Basic Services (Jellyfin, Web) with Caddy and Tailscale](tunneling-basic-services-jellyfin-web-with-caddy-and-tailscale.md)
- [Useful Plugins](useful-plugins.md)

0 comments on commit 4322e9f

Please sign in to comment.