Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
not able to start tigervnc
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
manu.rhel
n00b
n00b


Joined: 11 Apr 2014
Posts: 44

PostPosted: Thu Sep 26, 2024 10:52 am    Post subject: not able to start tigervnc Reply with quote

Hi Experts, I have recently installed TigerVNC server on a Gentoo machine -

Quote:
USE="server" emerge --ask --update --newuse net-misc/tigervnc

Also I have installed xfce using below commands -

Quote:
emerge --ask xfce-base/xfce4-meta xfce-extra/xfce4-notifyd
emerge --ask --deselect=y xfce-extra/xfce4-notifyd
emerge --ask x11-terms/xfce4-terminal


But when I am trying to bring up vncserver from one of the user accounts, I get the below message -

Quote:
$ vncserver :11
~/.vnc is deprecated, please consult 'man vncsession' for paths to migrate to. at /usr/bin/vncserver line 43.
Using desktop session Xsession
xauth: (stdin):1: bad display name "XXXX:11" in "add" command

New 'XXXX:11 (xxxxvnc)' desktop is XXXX:11

Starting desktop session Xsession


Xvnc TigerVNC 1.14.0 - built Sep 26 2024 18:41:47
Copyright (C) 1999-2024 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12101013


Thu Sep 26 18:47:00 2024
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s), port 5911
vncext: created VNC server for screen 0
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Could not resolve keysym XF86CameraAccessEnable
> Warning: Could not resolve keysym XF86CameraAccessDisable
> Warning: Could not resolve keysym XF86CameraAccessToggle
> Warning: Could not resolve keysym XF86NextElement
> Warning: Could not resolve keysym XF86PreviousElement
> Warning: Could not resolve keysym XF86AutopilotEngageToggle
> Warning: Could not resolve keysym XF86MarkWaypoint
> Warning: Could not resolve keysym XF86Sos
> Warning: Could not resolve keysym XF86NavChart
> Warning: Could not resolve keysym XF86FishingChart
> Warning: Could not resolve keysym XF86SingleRangeRadar
> Warning: Could not resolve keysym XF86DualRangeRadar
> Warning: Could not resolve keysym XF86RadarOverlay
> Warning: Could not resolve keysym XF86TraditionalSonar
> Warning: Could not resolve keysym XF86ClearvuSonar
> Warning: Could not resolve keysym XF86SidevuSonar
> Warning: Could not resolve keysym XF86NavInfo
Errors from xkbcomp are not fatal to the X server
[mi] mieq: warning: overriding existing handler (nil) with 0x5646746afb90 for event 2
[mi] mieq: warning: overriding existing handler (nil) with 0x5646746afb90 for event 3
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
xinit: connection to X server lost

waiting for X server to shut down ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:-nan ratio)



When I try to connect to this VNC Server from another machine, I get the below message on the Client machine -
Quote:
# vncviewer 172.18.2.34:5911

TigerVNC Viewer v1.13.1
Built on: 2024-09-26 06:03
Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Can't open display:


Please suggest how to get this fixed.

Thanks for all your help in advance
Back to top
View user's profile Send private message
sublogic
Apprentice
Apprentice


Joined: 21 Mar 2022
Posts: 269
Location: Pennsylvania, USA

PostPosted: Thu Sep 26, 2024 9:40 pm    Post subject: Reply with quote

I haven't tried to start a VNC server from a user account, but it works fine as a service. Edit /etc/tigervnc/vncserver.users to associate a userid to a VNC screen, then start the service; for example, with Openrc, rc-service tigervnc.1 start . Modify as needed if you use systemd.
Back to top
View user's profile Send private message
Havin_it
Veteran
Veteran


Joined: 17 Jul 2005
Posts: 1266
Location: Edinburgh, UK

PostPosted: Thu Oct 17, 2024 5:05 pm    Post subject: Reply with quote

Hi manu.rhel,

First I'd better advise you that upstream TigerVNC have deprecated the vncserver script, and will only be supporting running the server via a service (a systemd service for that matter, but so far our Gentoo hero devs are working around that for us :D ). Just to warn you, you may in future only be able to start it as a service; of course if you want to be able to start it as a user, you can simply use sudo to allow your user to start the service on-demand. (I won't bore you with the details now but just ask if you want them.)

That said, vncserver was still working last time I tried it. I'm not certain but the problem might be the lack of a config telling vncserver to start the XFCE session. For this you need a line like the following in ~/.vnc/config, or ~/.config/tigervnc/config if you want to get with the preferred current location:
Code:
session=xfce4

Note: The value is a guess on my part, it should be named like whatever the XFCE session script is called in /usr/share/xsessions/ folder.

If you already have that, it's possible you need to add the following to /etc/tigervnc/vncserver.users (I think this is only needed for service use but I could be wrong)
Code:
myusername:11


After that you could check whether :1 works instead of :11 (if you still need the server to be on port 5911, I believe that's also doable). I did find it wouldn't let me use :0, which I'm sure they have their reasons for but is a bit dumb on a headless server :roll:
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3425
Location: Canada

PostPosted: Fri Oct 18, 2024 4:08 am    Post subject: Reply with quote

Last time I tried, new vncserver had different symantics than old one, didn't it ? With the changes, tigervnc is useless for me, and I gave up on it.
Back to top
View user's profile Send private message
Havin_it
Veteran
Veteran


Joined: 17 Jul 2005
Posts: 1266
Location: Edinburgh, UK

PostPosted: Fri Oct 18, 2024 9:31 am    Post subject: Reply with quote

dmpogo wrote:
Last time I tried, new vncserver had different symantics than old one, didn't it ? With the changes, tigervnc is useless for me, and I gave up on it.

@dmpogo not to OT but can I ask what changes broke your setup, and in which version?
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3425
Location: Canada

PostPosted: Sat Oct 19, 2024 4:17 pm    Post subject: Reply with quote

Havin_it wrote:
dmpogo wrote:
Last time I tried, new vncserver had different symantics than old one, didn't it ? With the changes, tigervnc is useless for me, and I gave up on it.

@dmpogo not to OT but can I ask what changes broke your setup, and in which version?


I guess I partially overreacted (and not really needing vnc at that moment), but what frustrated me a bit is the lack of vncserver -kill :display_number functionality in the new version. I also tried to setup vncsession, and that did not fit my workflow (or I got completely confused and failed) My workflow at the time was to run several vnc sessions as a user on different displays, with different stuff. I did not use vnc for the last year or so, so never came back to it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum