Guides VNC App ( alpha )

MrDoob

Administrator
Original poster
Project Manager
Donor
1,248
332
1.) cd /opt/mycontainers/

2.) nano vnc-xfce.yml

3.) paste the lines below


Bash:
#!/bin/bash
#
# Title:      PGBlitz (consol/ubuntu-xfce-vnc)
# Author(s):  MrDoob
# URL:        https://pgblitz.com - http://github.pgblitz.com
# GNU:        General Public License v3.0 
################################################################################
---
- hosts: localhost
  gather_facts: false
  tasks:
    # FACTS #######################################################################
    - name: 'Set Known Facts'
      set_fact:
        pgrole: 'vnc-xfce'
        intport: '6901'
        extport: '6910'
        image: 'consol/ubuntu-xfce-vnc'

    # CORE (MANDATORY) ############################################################
    - name: 'Including cron job'
      include_tasks: '/opt/communityapps/apps/_core.yml'

    # LABELS ######################################################################
    - name: 'Adding Traefik'
      set_fact:
        pg_labels:
          traefik.frontend.auth.forward.address: '{{gauth}}'
          traefik.enable: 'true'
          traefik.port: '{{intport}}'
          traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'

    - name: 'Setting PG Volumes'
      set_fact:
        pg_volumes:
          - '/opt/appdata/{{pgrole}}:/config'
          - '{{path.stdout}}:{{path.stdout}}'
          - '/mnt/unionfs:/unionfs:rw'
          - '/mnt:/mnt:rw'
          - '/etc/localtime:/etc/localtime:ro'

    - name: 'Setting PG ENV'
      set_fact:
        pg_env:
          PUID: '1000'
          PGID: '1000'
          TZ: '${TZ}'
          
    # MAIN DEPLOYMENT #############################################################
    - name: 'Deploying {{pgrole}}'
      docker_container:
        name: '{{pgrole}}'
        image: '{{image}}'
        pull: yes
        published_ports:
          - '{{ports.stdout}}{{extport}}:{{intport}}'
        volumes: '{{pg_volumes}}'
        env: '{{pg_env}}'
        restart_policy: unless-stopped
        networks:
          - name: plexguide
            aliases:
              - '{{pgrole}}'
        state: started
        labels: '{{pg_labels}}'
4.) pgblitz

5.) 5 - 2 - 1 - vnc-xfce - deploy

6.) https://vnc-xfce.yourdomain.anyelse


INFO :

Connect & Control
If the container is started like mentioned above, connect via one of these options:


i hope some one will love it ;)
 
Last edited:

mackattack57

Blitz 3rd Class
15
1
error when installing... thoughts?


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
vnc-xfce - Now Installing!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ERROR! Syntax Error while loading YAML.
expected <block end>, but found '<scalar>'

The error appears to have been in '/opt/communityapps/apps/vnc-xfce.yml': line 20, column 17, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

extport2: '6910''
image: 'consol/ubuntu-xfce-vnc'
^ here
 

MrDoob

Administrator
Original poster
Project Manager
Donor
1,248
332
Takes for catching
I edit this one

It was an double ''

Notepad++ sucks sometimes ;)
 
  • Like
Reactions: mackattack57

MrDoob

Administrator
Original poster
Project Manager
Donor
1,248
332
no worries. I thought it might just be that but I don't know enough to know for sure. Thanks for building the code
I hope it works now

If any fails please point me ;)

That's the reason of an alpha version ;)
 
Assists Greatly with Development Costs

Maslygan

Blitz 1st Class
Donor
56
12
I hope it works now

If any fails please point me ;)

That's the reason of an alpha version ;)
Internal Server Error
is all i get when i use the vnc-xfce.blablabla.TD
 

MrDoob

Administrator
Original poster
Project Manager
Donor
1,248
332

MrDoob

Administrator
Original poster
Project Manager
Donor
1,248
332
Chnage this line :

pgrole: 'vnc-xfce'
intport: '6901'
extport: '6910'


Remove the the intport2 and extport2
 

Maslygan

Blitz 1st Class
Donor
56
12
Chnage this line :

pgrole: 'vnc-xfce'
intport: '6901'
extport: '6910'


Remove the the intport2 and extport2
Fixed, works now :)
 
  • Like
Reactions: MrDoob

MrDoob

Administrator
Original poster
Project Manager
Donor
1,248
332
OAUTH works also *?*

Or just the PW *?*

can you test it , with an incognito browser tab *?*

Or just the PW *?*
 

Maslygan

Blitz 1st Class
Donor
56
12
OAUTH works also *?*

Or just the PW *?*

can you test it , with an incognito browser tab *?*

Or just the PW *?*
oauth works too
 
  • Like
Reactions: MrDoob

MrDoob

Administrator
Original poster
Project Manager
Donor
1,248
332
Top thanks ...then I pushed this yml this weekend to community.apps for all user


If you don't find an fail or issuse ;)

Let me know if any not works
 
  • Love
Reactions: Admin9705

MrDoob

Administrator
Original poster
Project Manager
Donor
1,248
332
So I edit the post 1 *.yml file to an NO-VNC edition.

That's only over HTML accessible now .

I build an seperate one for only use the VNC-VIEWER mode.
 

MrDoob

Administrator
Original poster
Project Manager
Donor
1,248
332
  • Like
Reactions: gadgethome

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads


Development Donations

 

Trending