What's new
PGBlitz.com

Register Now! Find useful tips, Interact /w Community Members and join the part the Best Community on the Internet!

Guides VNC App ( alpha )

M

MrDoob

Guest
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 by a moderator:

mackattack57

Full Member
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
 
M

MrDoob

Guest
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 ;)
 

Maslygan

Respected Member
Donor
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
 

Maslygan

Respected Member
Donor
M

MrDoob

Guest
Chnage this line :

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


Remove the the intport2 and extport2
 

Maslygan

Respected Member
Donor
Chnage this line :

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


Remove the the intport2 and extport2
Fixed, works now :)
 
M

MrDoob

Guest
OAUTH works also *?*

Or just the PW *?*

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

Or just the PW *?*
 

Maslygan

Respected Member
Donor
OAUTH works also *?*

Or just the PW *?*

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

Or just the PW *?*
oauth works too
 
M

MrDoob

Guest
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
 
M

MrDoob

Guest
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.
 
Im not an expert by any means, but after digging around on google and messing around a little, I found a simpel way to change the default password, it worked for me at least.

  1. Log in to https://vnc-xfce.yourdomain.anyelse
  2. In the upper tight corner click on Applications, and select "Terminal Emulator"
  3. type vncpasswd
    1. Enter the new password
    2. Verify the new password
  4. login again using the new password
  5. Profit!
 
Assists Greatly with Development Costs

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

 

Top NZB NewsGroups!

Members - Up To a 58% Discount!

Trending

Online statistics

Members online
16
Guests online
115
Total visitors
131
Top