Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| services:firefox [2024/04/19 06:12] – willy | services:firefox [2024/11/11 11:49] (current) – willy | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| check [[https:// | check [[https:// | ||
| - | Why? to navigate from your server wherever you are. | + | Why? to navigate from your server wherever you are: |
| + | * Bypass local filters/ | ||
| + | * Browse websites like you do from home | ||
| + | * Levergae your home ad-block setup | ||
| + | * Keep your browsing history totally private and secure | ||
| - | As the user you want to navigate with, create the **docker-compose.yml** file: | + | You will be able to acces your own firefox instance via any other web browser. Inside, it uses a VNC server/ |
| + | |||
| + | ===== Installation ===== | ||
| + | |||
| + | This is one of those use cases where a container is the perfect choice. The stack needed to achieve all this is not trivial and would be potentially not a good idea to set it up server-wide on your home server. | ||
| + | |||
| + | Now, if you plan to use firefox with multiple users you will need to replicate this setup for every user as you will need to spin up a separate container for each one. I will assume that **user** is the user you want your firefox | ||
| + | |||
| + | As **user** | ||
| <file - docker-compose.yml> | <file - docker-compose.yml> | ||
| version: ' | version: ' | ||
| Line 17: | Line 29: | ||
| - " | - " | ||
| volumes: | volumes: | ||
| - | - "/user/appdata/ | + | - "/home/user/ |
| </ | </ | ||
| - | adapt your port (5800) and config | + | Adapt your port (5800) and the USER_ID and GROUP_ID for **user**. You also need to specify a **config** folder, wihch must be existing and writable by **user**. |
| - | Now, setup a tunnel from your local PC to the server: | + | Then the usual: |
| <code bash> | <code bash> | ||
| - | ssh external-server1 -L5800: | + | su - user |
| + | podman compose pull | ||
| </ | </ | ||
| - | |||
| - | and then fireup your browser to **http:// | ||
| - | (this tunnel step is not needed if you setup the reverse proxy as indicated below) | ||
| ==== Reverse Proxy ==== | ==== Reverse Proxy ==== | ||
| Line 46: | Line 56: | ||
| ==== Autostart ==== | ==== Autostart ==== | ||
| - | Autostarting at boot might be trickier, i suggest you take a look at [[gentoo:locald|Custom User Services]] and follow these additional hits. | + | To start it, and set it up on boot, as usual follow my indications |
| + | < | ||
| + | ln -s / | ||
| + | </ | ||
| + | |||
| + | and create the following config file: | ||
| + | <file - / | ||
| + | USER=user | ||
| + | DESCRIPTION=" | ||
| + | </ | ||
| + | |||
| + | Add the service to the default runlevel and start it now: | ||
| + | <code bash> | ||
| + | rc-update add user-containers.firefox default | ||
| + | rc-service user-containers.firefox start | ||
| + | </ | ||
| + | |||
| + | Of course, you will want to adapt for multiple users, maybe. | ||
| + | |||
| + | |||