It's driving me mad

94 views
Skip to first unread message

jo7er7 aka Looker

unread,
Jun 24, 2025, 11:20:28 AMJun 24
to TigerVNC User Discussion/Support
Good evening,

I have been trying for days now to get a VNC server working.

I have a clean install of PeppermintOS Debian 

This was my last bash at it, using the info here.

This is what happens:
chris@plex:~$ vncserver

New Xtigervnc server 'plex:1 (chris)' on port 5901 for display :1.
Use xtigervncviewer -SecurityTypes VncAuth -passwd /tmp/tigervnc.gu3WMB/passwd :1 to connect to the VNC server.

vncserver: Can't exec '/home/chris/.vnc/xstartup': No such file or directory

=================== tail /home/chris/.vnc/plex:1.log ===================
Can't exec "/home/chris/.vnc/xstartup": No such file or directory at /usr/share/perl5/TigerVNC/Wrapper.pm line 1270.
========================================================================

Session startup via '/home/chris/.vnc/xstartup' exited with status 1!

Maybe try something simple first, e.g.,
tigervncserver -xstartup /usr/bin/xterm
The X session exited with status 1!
Killing Xtigervnc process ID 1280... success!
chris@plex:~$

The xstartup is there I can see it

Hopefully someone can help with this ...

Chris


Pierre Ossman

unread,
Jun 25, 2025, 5:59:44 AMJun 25
to jo7er7 aka Looker, TigerVNC User Discussion/Support
On 24/06/2025 16:34, jo7er7 aka Looker wrote:
> Good evening,
>
> I have been trying for days now to get a VNC server working.
>
> I have a clean install of PeppermintOS Debian
>
> This was my last bash at it, using the info here.
> https://shape.host/resources/comment-configurer-un-serveur-vnc-sur-debian-12
>
> This is what happens:
> chris@plex:~$ vncserver
>
> New Xtigervnc server 'plex:1 (chris)' on port 5901 for display :1.
> Use xtigervncviewer -SecurityTypes VncAuth -passwd
> /tmp/tigervnc.gu3WMB/passwd :1 to connect to the VNC server.
>
> vncserver: Can't exec '/home/chris/.vnc/xstartup': No such file or directory
>

Debian has their own startup scripts, so it's not something I'm too
familiar with. But the error message sounds like something is wrong with
the hashbang (assuming the file exists).

Could you share the contents of the file?

Regards,
--
Pierre Ossman Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc
Phone: +46-13-214600

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
Message has been deleted
Message has been deleted

LOOKER Chris

unread,
Jun 30, 2025, 5:07:29 AMJun 30
to Pierre Ossman, TigerVNC User Discussion/Support
Good morning,
Thank you for your reply. The contents are:

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &

Then it's : chmod +x ~/.vnc/xstartup

All seems fine until I try to run/start it.

Chris

Pierre Ossman

unread,
Jul 1, 2025, 3:54:54 AMJul 1
to LOOKER Chris, TigerVNC User Discussion/Support
On 25/06/2025 12:42, LOOKER Chris wrote:
> Good morning,
> Thank you for your reply. The contents are:
>
> #!/bin/sh
> unset SESSION_MANAGER
> unset DBUS_SESSION_BUS_ADDRESS
> startxfce4 &
>
> Then it's : chmod +x ~/.vnc/xstartup
>
> All seems fine until I try to run/start it.
>

Not sure if you should have that & at the end, but otherwise it looks fine.

The error message might be propagated then. Perhaps startxfce4 isn't
installed? Do you have /usr/bin/startxfce4?
Reply all
Reply to author
Forward
0 new messages