You are not logged in.

#1 2024-10-29 03:23:59

alexdaleita
Member
Registered: 2024-10-29
Posts: 3

Cant setup tigervnc

I've been trying these days to setup tigervnc but nothing, not used to struggle this much for something that's supposed to be easy, first of all i tried to create vncpasswd but it says "Could not create VNC config directory: File exists", it's supposed to works everytime, i tried to do that again because the first time i insert a password and it went, then i uninstalled and reisntalled tiger and tried to do that again, but let's suppose that the password is set, i have never had a "passwd" file in the .vnc or i dont know maybe tigervnc config folder? i have no file name like that in all my /. So i also tried to run a server, both on :1 or :2, but it always give the error "vncsession: vncserver exited with status=2". i also have added the user in tigervnc config file. i dont know what do anymroe

Offline

#2 2024-10-29 08:22:00

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,800

Re: Cant setup tigervnc

i dont know what do anymroe

Start by reading https://wiki.archlinux.org/title/TigerVNC

Offline

#3 2024-10-30 03:22:55

alexdaleita
Member
Registered: 2024-10-29
Posts: 3

Re: Cant setup tigervnc

seth wrote:

i dont know what do anymroe

Start by reading https://wiki.archlinux.org/title/TigerVNC

I followed that guide many times, but i cant find any solution on why passwd or .vnc or vncpasswd shouldn't workign, i also googled. The documentation doesnt seem to have any help for me.

Offline

#4 2024-10-30 07:35:13

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,800

Re: Cant setup tigervnc

I followed that guide many times

Yeah, sure. Many times. So many times. The most times. All the times…

"Could not create VNC config directory: File exists"

The wiki wrote:

Create a password using vncpasswd which will store the hashed password in $XDG_CONFIG_HOME/tigervnc/passwd. Ensure the file's permission is set to 0600.

So maybe have a look at that path…

Offline

#5 2024-11-09 22:47:39

alexdaleita
Member
Registered: 2024-10-29
Posts: 3

Re: Cant setup tigervnc

seth wrote:

I followed that guide many times

Yeah, sure. Many times. So many times. The most times. All the times…

"Could not create VNC config directory: File exists"

The wiki wrote:

Create a password using vncpasswd which will store the hashed password in $XDG_CONFIG_HOME/tigervnc/passwd. Ensure the file's permission is set to 0600.

So maybe have a look at that path…

Even if passwd is set at 0600 it gives me the same error, and i created that file by myself, because no file was ever created in that path, i have also created that folder by my self in the past, also i dont understand why you should be that aggressive to me, this is supposed to be helpful to others, when someone asks me help i always do my best to help, i dont say go to see on internet. I have tried, and compared to the other problems i manage to solve by myself, this is literally one of those i cant be able to solve. I dont know why, it seems like a sort of bug, because permission wise i dont seem to have any problems, i have also tried deleting vncpasswd file in /usr/bin/vnc but nothing helped. So here i am with a non functional vnc, even tho i tried what i could.

Offline

#6 2024-11-10 01:56:50

MAYBL8
Member
From: Florida USA
Registered: 2022-01-14
Posts: 376
Website

Re: Cant setup tigervnc

Don't mean to hijack this post but I just installed RustDesk. Don't know if it will be what you are looking for:
https://www.addictivetips.com/ubuntu-li … -on-linux/

Online

#7 2024-11-10 08:25:44

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,800

Re: Cant setup tigervnc

i dont understand why you should be that aggressive to me

I'm not aggressive and maybe that's a language problem but "I followed that guide many times" is a nonsensical statement.

1. https://deepl.com/
2.

i have also created that folder by my self

Even if passwd is set at 0600 it gives me the same error,

i have never had a "passwd" file in the .vnc or i dont know maybe tigervnc config folder?

I have also tried deleting vncpasswd file in /usr/bin/vnc

Let's be very clear:  you've have not read the wiki even once.
I now think it's because you don't speak english at all. That's ok, but don't lie.

echo $XDG_CONFIG_HOME
ls -lR ${XDG_CONFIG_HOME:-$HOME/.config}/tigervnc/
cat /etc/tigervnc/vncserver.users
cat ${XDG_CONFIG_HOME:-$HOME/.config}/tigervnc/config

According to your OP you however already do have vncpasswd, so it's not necessary to do that again.
So the next question is why the vncserver now actually fails.

Offline

#8 2024-11-10 15:29:44

dakota
Member
Registered: 2016-05-20
Posts: 415

Re: Cant setup tigervnc

@seth

I don't know if this is relevant or not. If not, please excuse my interruption. My tigervnc works flawlessly, but those are not the paths that my system uses. (Perhaps the setup and configuration have changed recently?) So, perhaps the OP also needs to look in different directories?

[ops@sascada ~]$ echo $XDG_CONFIG_HOME

[ops@sascada ~]$ ls -lR ${XDG_CONFIG_HOME:-$HOME/.config}/tigervnc/
ls: cannot access '/home/ops/.config/tigervnc/': No such file or directory

[ops@sascada ~]$ cat /etc/tigervnc/vncserver.users
# TigerVNC User assignment
#
# This file assigns users to specific VNC display numbers.
# The syntax is <display>=<username>. E.g.:
#
# :2=andrew
# :3=lisa
:1=ops

[ops@sascada ~]$ cat ${XDG_CONFIG_HOME:-$HOME/.config}/tigervnc/config
cat: /home/ops/.config/tigervnc/config: No such file or directory

[ops@sascada ~]$ ls -lR  ~/.vnc
/home/ops/.vnc:
total 28
-rw-r--r-- 1 ops ops 5951 Jan  5  2021 archlinux:1.log
-rw-r--r-- 1 ops ops   78 Feb 24  2024 config
-rw-r--r-- 1 ops ops  609 Feb 25  2024 default.tigervnc
-rw------- 1 ops ops    8 Dec 17  2020 passwd
-rw-r--r-- 1 ops ops 2340 Nov 10 07:04 sascada:1.log
-rw-r--r-- 1 ops ops   15 Feb 24  2024 tigervnc.history

Cheers,

Edit -- Thanks seth (below)

Last edited by dakota (2024-11-10 17:06:33)


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

#9 2024-11-10 15:40:27

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,800

Re: Cant setup tigervnc

Wiki and https://man.archlinux.org/man/extra/tig … erver.8.en claim ${XDG_CONFIG_HOME:-$HOME/.config}/tigervnc/ as current canonical config paths.
~/.vnc/xstartup is/was TightVNC and I assume there's certainly some backward compatibility for older installations.

… eg. I don't have ~/.config/mpd/ but ~/.mpd* still works fine smile

Offline

Board footer

Powered by FluxBB