# Setting VNC Screen Size/Resolution

**URL:** <https://discourse.openondemand.org/t/setting-vnc-screen-size-resolution/3023>\
**Category:** Get Help\
**Tags:** question\
**Created:** [October 16, 2023, 10:46pm UTC](https://discourse.openondemand.org/t/setting-vnc-screen-size-resolution/3023 "2023-10-16T22:46:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JPGlaser](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jpglaser/32/967_2.png) [@JPGlaser](https://discourse.openondemand.org/u/JPGlaser)\
**Post date:** [October 16, 2023, 10:46pm UTC](https://discourse.openondemand.org/t/setting-vnc-screen-size-resolution/3023/1 "2023-10-16T22:46:29Z")

</div>

Hey @jeff.ohrstrom,

I see that there are settings for resolutions with VNC, that we would normally use on a command line, for OnDemand’s desktop app through turboVNC. However, it doesn’t seem to actually appear (see below unanswered topic):

> [@How to set size of application running in vcn with xfce desktop](https://discourse.openondemand.org/t/how-to-set-size-of-application-running-in-vcn-with-xfce-desktop/2632):
>
> Hi, I have made an app using vnc and xfce following the matlab example [4. Edit Launch Script — Open OnDemand 3.0.0 documentation](https://osc.github.io/ood-documentation/latest/tutorials/tutorials-interactive-apps/add-matlab/edit-script-sh.html#use-xfce-for-the-window-manager) The relevant files are: [root@ood-hepp hepp\_hypatia]# cat submit.yml.erb --- batch\_connect: template: vnc [root@ood-hepp hepp\_hypatia]# cat form.yml --- title: "HYPATIA" cluster: "zpath" form: - bc\_queue - bc\_account - bc\_num\_hours - bc\_num\_slots - desktop - bc\_vnc\_idle - bc\_vnc\_resolution - bc\_email\_on\_started attributes: bc\_vnc\_idle: 0 bc\_…

Here is my config:

title: “Korok Desktop”  
description: “This launches a XFCE desktop on the Korok compute nodes.”  
cluster: “link”  
attributes:  
desktop: “xfce”  
bc\_vnc\_resolution:  
required: true  
bc\_num\_slots: 1  
bc\_vnc\_idle: 0  
form:

- bc\_num\_hours
- desktop
- bc\_num\_slots
- bc\_vnc\_idle
- bc\_account
- bc\_queue
- bc\_vnc\_resolution

---

<div class="post-metadata">

**Author:** ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)\
**Post date:** [October 17, 2023, 3:57pm UTC](https://discourse.openondemand.org/t/setting-vnc-screen-size-resolution/3023/2 "2023-10-17T15:57:48Z")

</div>

Hi, sorry for the troubles. I don’t think the link you provided is going to be much help as that was for a separate app a user was trying to get this functionality with.

Here, you’re just trying to run XFCE desktop and change the resolution, which is more straightforward.

Looking at the posted `yaml` though, it doesn’t look like things are formatted correctly from what I see. But, it’s also not raw so I’m unsure.

But, i see you have `bc_vnc_resolution` twice, and it doesn’t look like some of these lines are at the right scope, such as some entries under `attributes`.

Could you possibly post the raw `yml` in so we can ensure the formatting is correct to begin? You can use backticks to do this.

---

<div class="post-metadata">

**Author:** ![JPGlaser](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jpglaser/32/967_2.png) [@JPGlaser](https://discourse.openondemand.org/u/JPGlaser)\
**Post date:** [October 17, 2023, 5:55pm UTC](https://discourse.openondemand.org/t/setting-vnc-screen-size-resolution/3023/3 "2023-10-17T17:55:27Z")

</div>

No worries, here is what the yaml looks like @travert .

```auto
title: "Korok Desktop"
description: "This launches a XFCE desktop on the Korok compute nodes."
cluster: "link"
attributes:
  desktop: "xfce"
  bc_vnc_resolution:
    required: true
  bc_num_slots: 1
  bc_vnc_idle: 0
form:
  - bc_num_hours
  - desktop
  - bc_num_slots
  - bc_vnc_idle
  - bc_account
  - bc_queue
  - bc_vnc_resolution

```

---

<div class="post-metadata">

**Author:** ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)\
**Post date:** [October 17, 2023, 6:38pm UTC](https://discourse.openondemand.org/t/setting-vnc-screen-size-resolution/3023/4 "2023-10-17T18:38:35Z")

</div>

What does it render when you do this:

```auto
title: "Korok Desktop"
description: "This launches a XFCE desktop on the Korok compute nodes."
cluster: "link"
attributes:
  desktop: "xfce"
  bc_num_slots: 1
  bc_vnc_idle: 0
form:
  - bc_num_hours
  - desktop
  - bc_num_slots
  - bc_vnc_idle
  - bc_account
  - bc_queue
  - bc_vnc_resolution

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [April 14, 2024, 6:39pm UTC](https://discourse.openondemand.org/t/setting-vnc-screen-size-resolution/3023/5 "2024-04-14T18:39:10Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
