DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th October 2024
jttoivon jttoivon is offline
New User
 
Join Date: Oct 2024
Posts: 2
Default Xvnc does not work with GDM anymore

I used to be able to run stand-alone Xvnc server and connect to it using GDM. But this stopped working after I upgraded to OpenBSD 7.5, and now that I have upgraded to 7.6 it does not work either.

I use TigerVNC. In my /etc/inetd.conf file I have the following line:
Code:
localhost:5901   stream   tcp nowait nobody  /usr/local/bin/Xvnc Xvnc -inetd -query localhost -once SecurityTypes=None -localhost -geometry 1860x1020 -Log *:syslog:100
I have added in my /etc/gdm/custom.conf file the lines:
[xdmcp]
Enable=true

Then I start GDM and inetd:
rcctl start gdm
rcctl -f start inetd
After which I try to connect to the OpenBSD box:
xtigervncviewer -via 192.168.122.218 localhost::5901
The command opens the VNC window, but it closes immediately.

The relevant lines from /var/log/messages and the /var/log/gdm/127.0.0.1:1-greeter.log are attached.

Xvnc is started automatically, but it looks like GDM is trying to start Xorg, and fails, instead using the Xvnc server.

Note that I have also installed Xorg in addition to Xvnc, and it starts automatically after starting GDM.

Any ideas how to fix this?

Jarkko
Attached Files
File Type: zip logs.zip (2.3 KB, 4 views)
Reply With Quote
  #2   (View Single Post)  
Old 1 Week Ago
jttoivon jttoivon is offline
New User
 
Join Date: Oct 2024
Posts: 2
Default Solved

I managed to fix this by removing relevant packages and then reinstalling them. Below are the commands I used.

Code:
doas pkg_delete tigervnc gdm gnome-session xfce
doas rm -rf /var/db/gdm
doas rm -rf /var/log/gdm/*
doas rm /etc/gdm/custom.conf
doas /usr/sbin/userdel _gdm
mv .vnc old.vnc
doas syspatch
doas pkg_add -u
doas rm -f /var/db/colord/mapping.db /var/db/colord/storage.db
doas rm -rf /var/sasl2/* /etc/dconf/db/* /etc/dconf/profile/*
doas rm -f /var/db/upower/history-*
doas pkg_add tigervnc gdm gnome-session xfce
doas rcctl start messagebus
doas emacs -nw /etc/gdm/custom.conf
doas rcctl restart gdm
doas rcctl -f start inetd
The problem probably was not in the .vnc directory, since after I renamed it back, it kept on working. Most likely the problem was in those removed files, since I had previously tried everything else unsuccessfully.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[/!\] DNSSEC : dont use anymore SHA-1! [/!\] CiotBSD General software and network 0 24th January 2020 05:54 PM
There's No Protection In High Ports Anymore, Son. If Indeed There Ever Was. J65nko News 6 19th February 2013 01:54 AM
NAUTILUS does not display /etc/fstab contents anymore vermaden FreeBSD General 0 13th April 2011 06:58 AM
My keyboard is not working properly anymore in OpenBSD newbsdied OpenBSD General 2 4th November 2010 11:20 PM
Can't passwd on all accounts anymore ck2323 FreeBSD General 1 7th October 2009 03:28 AM


All times are GMT. The time now is 07:24 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick