# Enable InterActive Desktop

**URL:** <https://discourse.openondemand.org/t/enable-interactive-desktop/1751>\
**Category:** Get Help\
**Tags:** question\
**Created:** [October 25, 2021, 1:54pm UTC](https://discourse.openondemand.org/t/enable-interactive-desktop/1751 "2021-10-25T13:54:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![1907.semih](https://avatars.discourse-cdn.com/v4/letter/1/6bbea6/32.png) [@1907.semih](https://discourse.openondemand.org/u/1907.semih)\
**Post date:** [October 25, 2021, 1:54pm UTC](https://discourse.openondemand.org/t/enable-interactive-desktop/1751/1 "2021-10-25T13:54:22Z")

</div>

Hi Everyone,

Open Ondemand on interactive desktop running It continues to mature well. My file permissions are as follows.

What’s a problem?

root@ondemand bc\_desktop]# ll  
total 24  
-rw-r–r-- 1 root root 2386 Oct 6 18:15 CHANGELOG.md  
-rw-r–r-- 1 root root 266 Oct 6 18:15 form.yml  
-rw-r–r-- 1 root root 1087 Oct 6 18:15 LICENSE.txt  
-rw-r–r-- 1 root root 312 Oct 6 18:15 manifest.yml  
-rw-r–r-- 1 root root 2209 Oct 6 18:15 README.md  
-rwxr-xr-x 1 root root 35 Oct 6 18:15 submit.yml.erb  
drwxr-xr-x 3 root root 64 Oct 19 14:36 template  
[root@ondemand bc\_desktop]# pwd  
/var/www/ood/apps/sys/bc\_desktop  
[root@ondemand bc\_desktop]# cd template/  
[root@ondemand template]# ll  
total 8  
-rwxrwxrwx 1 root root 100 Oct 6 18:15 before.sh.erb  
drwxrwxrwx 2 root root 66 Oct 19 14:36 desktops  
-rwxrwxrwx 1 root root 525 Oct 25 13:28 script.sh.erb  
[root@ondemand template]#

AND ..

[root@ondemand bc\_desktop]# ls  
hpc.yml hpc.yml.bck submit  
[root@ondemand bc\_desktop]# cat hpc.yml

# /etc/ood/config/apps/bc\_desktop/oakley.yml

* * *

title: “Oakley Desktop”  
cluster: “hpc”  
attributes:  
desktop: “xfce”  
batch\_connect:  
template: “vnc”  
nvpasswd: “vnc.passwd”  
websockify\_cmd: “/usr/bin/websockify”  
[root@ondemand bc\_desktop]#

[root@ondemand submit]# cat my\_submit.yml.erb

# /etc/ood/config/apps/bc\_desktop/submit/my\_submit.yml.erb

* * *

batch\_connect:  
template: “vnc”  
script:  
job\_environment:  
SBATCH\_EXPORT: “ALL”  
native:  
- “-N”  
- “\<%= bc\_num\_slots.blank? ? 1 : bc\_num\_slots.to\_i %\>”  
[root@ondemand submit]#

[root@ondemand submit]# cd /home/xfce/ondemand/data/sys/dashboard/batch\_connect/sys/bc\_desktop/hpc/output/e93d86ab-a941-439e-8a4d-92c7434a5c48/  
[root@ondemand e93d86ab-a941-439e-8a4d-92c7434a5c48]# cat output.log  
Setting VNC password…  
Starting VNC server…

Desktop ‘TurboVNC: xdmod.eduline.local:1 (xfce)’ started on display xdmod.eduline.local:1

Log file is vnc.log  
Successfully started VNC server on xdmod.eduline.local:5901…  
Script starting…  
Starting websocket server…  
/var/spool/slurm/d/job00137/slurm\_script: line 179: /home/xfce/ondemand/data/sys/dashboard/batch\_connect/sys/bc\_desktop/hpc/output/e93d86ab-a941-439e-8a4d-92c7434a5c48/script.sh: Permission denied  
WebSocket server settings:

- Listen on :7214
- No SSL/TLS support (no cert file)
- Backgrounding (daemon)  
Scanning VNC log file for user authentications…  
Generating connection YAML file…  
Cleaning up…  
Killing Xvnc process ID 21538  
[root@ondemand e93d86ab-a941-439e-8a4d-92c7434a5c48]#

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [October 25, 2021, 2:17pm UTC](https://discourse.openondemand.org/t/enable-interactive-desktop/1751/2 "2021-10-25T14:17:20Z")

</div>

Hi and welcome!

> [@1907.semih](#):
>
> 179: /home/xfce/ondemand/data/sys/dashboard/batch\_connect/sys/bc\_desktop/hpc/output/e93d86ab-a941-439e-8a4d-92c7434a5c48/script.sh:

Can you check what line 179 is? I’m not entirely sure if it’ be the same line on our systems.

---

<div class="post-metadata">

**Author:** ![1907.semih](https://avatars.discourse-cdn.com/v4/letter/1/6bbea6/32.png) [@1907.semih](https://discourse.openondemand.org/u/1907.semih)\
**Post date:** [October 25, 2021, 2:20pm UTC](https://discourse.openondemand.org/t/enable-interactive-desktop/1751/3 "2021-10-25T14:20:36Z")

</div>

Hi jeff,

[root@ondemand e93d86ab-a941-439e-8a4d-92c7434a5c48]# cat /home/xfce/ondemand/data/sys/dashboard/batch\_connect/sys/bc\_desktop/hpc/output/e93d86ab-a941-439e-8a4d-92c7434a5c48/script.sh  
#!/usr/bin/env bash

# Change working directory to user’s home directory

cd “${HOME}”

# Reset module environment (may require login shell for some HPC clusters)

module purge && module restore

# Ensure that the user’s configured login shell is used

export SHELL=“$(getent passwd $USER | cut -d: -f7)”

# Start up desktop

echo “Launching desktop ‘xfce’…”  
echo “hadi baslayalim”  
source “/home/xfce/ondemand/data/sys/dashboard/batch\_connect/sys/bc\_desktop/hpc/output/e93d86ab-a941-439e-8a4d-92c7434a5c48/desktops/xfce.sh”  
echo “Desktop ‘xfce’ ended…”  
[root@ondemand e93d86ab-a941-439e-8a4d-92c7434a5c48]#

this file there isn’t a line :179 🙂

---

<div class="post-metadata">

**Author:** ![1907.semih](https://avatars.discourse-cdn.com/v4/letter/1/6bbea6/32.png) [@1907.semih](https://discourse.openondemand.org/u/1907.semih)\
**Post date:** [October 26, 2021, 9:13am UTC](https://discourse.openondemand.org/t/enable-interactive-desktop/1751/4 "2021-10-26T09:13:19Z")

</div>

Hi everyone,

This problem is solutions: NFS share /home on machine is selinux disabled check 😉

---

<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 24, 2022, 9:13am UTC](https://discourse.openondemand.org/t/enable-interactive-desktop/1751/5 "2022-04-24T09:13:32Z")

</div>

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