Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't get desktop session in Tiger VNC
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
mgnut57
Apprentice
Apprentice


Joined: 12 Jan 2008
Posts: 292

PostPosted: Tue Aug 09, 2022 2:02 am    Post subject: Can't get desktop session in Tiger VNC Reply with quote

I am trying to get a VNC session started with a MATE session, however this doesn't seem to work. I start the vnc server as a user from the command line:
Code:
vncserver :20


I copied the exact information for GNOME from this page:
https://wiki.gentoo.org/wiki/TigerVNC

But changed "gnome-session" to mate-session".

I always get a TWM session. It appears to attempt to start MATE within TWM, which isn't useful. I have experienced the same with XFCE on another machine.

Note also that trying to kill the VNC session results in an invalid message:
Code:
$ vncsession :20 -kill
Syntax:
    vncsession <username> <display>


Adding in the username does not help.

Is TigerVNC broken?

It looks like I am not the only one seeing problems:
https://forums.gentoo.org/viewtopic-t-1155415.html
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Wed Aug 10, 2022 4:09 pm    Post subject: Reply with quote

should be vncserver -kill :20 to kill (not vncsession)?

I have an older version of tigervnc installed (net-misc/tigervnc-1.9.0-r2), wonder if there's a bug in the newer ones. I'm using fvwm2 and xfce4 on two different machines, they seem to work as expected...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
mgnut57
Apprentice
Apprentice


Joined: 12 Jan 2008
Posts: 292

PostPosted: Wed Aug 10, 2022 7:44 pm    Post subject: Reply with quote

eccerr0r wrote:
should be vncserver -kill :20 to kill (not vncsession)?



$ vncserver -kill :20

usage: vncserver <display>
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Wed Aug 10, 2022 10:17 pm    Post subject: Reply with quote

what version of tigervnc are you using now? Suspect the newer version changed something...a lot....
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
mgnut57
Apprentice
Apprentice


Joined: 12 Jan 2008
Posts: 292

PostPosted: Wed Aug 10, 2022 11:55 pm    Post subject: Reply with quote

eccerr0r wrote:
what version of tigervnc are you using now? Suspect the newer version changed something...a lot....


I first noticed the problem with net-misc/tigervnc-1.12.0-r5, but it may have been there before. I haven't needed to use a VNC session for some time.

Code:
# genlop -t tigervnc | tail

     Tue Apr 12 22:29:24 2022 >>> net-misc/tigervnc-1.9.0-r2
       merge time: 6 minutes and 18 seconds.

     Sat May 21 22:08:42 2022 >>> net-misc/tigervnc-1.12.0-r5
       merge time: 6 minutes and 35 seconds.

     Sat Aug  6 23:01:45 2022 >>> net-misc/tigervnc-1.12.0-r7
       merge time: 6 minutes and 8 seconds.

Back to top
View user's profile Send private message
jamapii
l33t
l33t


Joined: 16 Sep 2004
Posts: 637

PostPosted: Tue Aug 16, 2022 8:32 am    Post subject: Reply with quote

The "bug" is that the vncserver script of version 1.9 is not provided any more.

The best way, for now, to keep old setups working, and also for some new setups, is to install version 1.9, copy /usr/bin/vncserver to ~/bin, and use this to start VNC servers.

Version 1.12 has a completely different script, that does different things, under the same name.

The old script does
  • support -geometry and other parameters on the command line, but one can still resize the server geometry from the viewer
  • read a ~/.vnc/xstartup file to start the X session
  • not prevent you from running multiple instances per user
  • provide the -kill parameter to kill an instance from the command line
  • have a man page and its own source code for documentation


The new script does
  • read ~/.vnc/config for parameters
  • I guess it effectively reads something from /usr/share/xsessions or somewhere else to start a "session", just like ordinary X scripts, based on the config file
  • to kill it, I guess you are supposed to use vncviewer and shutdown the session like any other X session
  • have its own source code for docunentation
  • I think it's meant to be started from systemd or other init system, but starting from command line and cron should be possible


So there is no -kill parameter, and no multiple sessions per user.

One could move or link the ~/.vnc/config file around and start multiple sessions, or restore the old script.

Read /etc/tigervnc/vncserver-config-defaults for a config file example, to try to start a different session.

The new version has also vncsession, which is something else.
Back to top
View user's profile Send private message
mgnut57
Apprentice
Apprentice


Joined: 12 Jan 2008
Posts: 292

PostPosted: Tue Aug 16, 2022 5:04 pm    Post subject: Reply with quote

jamapii wrote:
The "bug" is that the vncserver script of version 1.9 is not provided any more.
....
So there is no -kill parameter, and no multiple sessions per user.
....


Wow. I use multiple sessions per user extensively at work. I guess we will have to stay of 1.9 or less.

Why duplicate the worst aspects of Windows?
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Wed Aug 24, 2022 9:03 pm    Post subject: Reply with quote

mgnut57 wrote:
jamapii wrote:
The "bug" is that the vncserver script of version 1.9 is not provided any more.
....
So there is no -kill parameter, and no multiple sessions per user.
....


Wow. I use multiple sessions per user extensively at work. I guess we will have to stay of 1.9 or less.

Why duplicate the worst aspects of Windows?


Yes, I just discovered this limitations of the new version and is looking for replacement. I basically use vncservers as graphical versions of screen, to have possibly multiple persistent sessions.
I also use adhoc creation of a session from a viewer (not sure that is supported).

A bit can be founds here
[url]
https://www.ibm.com/support/pages/how-configure-vnc-server-red-hat-enterprise-linux-8
[/url]

Unfortunately version 1.9 is not in portage anymore, we need to maintain a local copy
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21631

PostPosted: Wed Aug 24, 2022 10:02 pm    Post subject: Reply with quote

Have you considered xpra? It provides the tmux-like feature of keeping the remote windows alive when you are not connected. Unlike VNC, it forwards each window to the client as an individual window, so you can intermix them with local windows and manage them locally, rather than having them all confined to a VNC rectangular window.
Back to top
View user's profile Send private message
mgnut57
Apprentice
Apprentice


Joined: 12 Jan 2008
Posts: 292

PostPosted: Thu Aug 25, 2022 1:11 am    Post subject: Reply with quote

[quote="dmpogo"]
mgnut57 wrote:
jamapii wrote:
The "bug" is that the vncserver script of version 1.9 is not provided any more.
....
So there is no -kill parameter, and no multiple sessions per user.
....

Unfortunately version 1.9 is not in portage anymore, we need to maintain a local copy


I have backups going back several years. I expect that I can find 1.9 in them, plus isn't there somewhere a set of old versions of the portage trees?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21631

PostPosted: Thu Aug 25, 2022 12:21 pm    Post subject: Reply with quote

All old ebuild versions are available in git. However, obtaining the old ebuild is insufficient. You also need the old upstream source code, which is not necessarily preserved in git. After the Gentoo Portage tree stops offering a version, the upstream sources of that version expire off the Gentoo mirrors, so you would need to go straight to upstream or to some third party archive to obtain the source code.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Thu Aug 25, 2022 1:13 pm    Post subject: Reply with quote

mgnut57,

You may be lucky with my old distfiles.
If I've had it since June 2006, its there. Up to Sep-2021 anyway.

Hmm ... tigervnc-1.9.0.tar.gz looks promising.

There is 300G in about 60k files, so autoindexing is slow.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mgnut57
Apprentice
Apprentice


Joined: 12 Jan 2008
Posts: 292

PostPosted: Thu Aug 25, 2022 8:49 pm    Post subject: Reply with quote

Hu wrote:
All old ebuild versions are available in git. However, obtaining the old ebuild is insufficient. You also need the old upstream source code, which is not necessarily preserved in git. After the Gentoo Portage tree stops offering a version, the upstream sources of that version expire off the Gentoo mirrors, so you would need to go straight to upstream or to some third party archive to obtain the source code.


It appears that I had excluded /usr/portage from my backups.

RedHat/CentOS 6 uses 1.9, so the original source can be extracted from a source RPM.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Thu Aug 25, 2022 9:40 pm    Post subject: Reply with quote

mgnut57,

Maybe. RedHat/CentOS uses lots of RedHat/CentOS patches.
The ebuild and its manifests will reject mismatching file size and checksums.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mgnut57
Apprentice
Apprentice


Joined: 12 Jan 2008
Posts: 292

PostPosted: Fri Aug 26, 2022 12:56 am    Post subject: Reply with quote

I downloaded the file from your old distfiles server.

RedHat/Centos don't change the original tar.gz files: the patches are maintained in separate files and are applied only when the binary rpm file is built.

Now I have to find the portage files for 1.9.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Fri Aug 26, 2022 9:39 am    Post subject: Reply with quote

mgnut57,

They are all in git.
Start with a full clone, then something like
Code:
git checkout `git rev-list -n 1 --first-parent --before="2003-04-10" master`


You will need to change the date :)

That will give you the repo an it was --before="2003-04-10".
Pick the bits you want and add them to your overlay.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mgnut57
Apprentice
Apprentice


Joined: 12 Jan 2008
Posts: 292

PostPosted: Sun Aug 28, 2022 5:45 am    Post subject: Reply with quote

NeddySeagoon wrote:
mgnut57,

They are all in git.
Start with a full clone, then something like
Code:
git checkout `git rev-list -n 1 --first-parent --before="2003-04-10" master`


You will need to change the date :)

That will give you the repo an it was --before="2003-04-10".
Pick the bits you want and add them to your overlay.


Thanks for the help. What git URL should I start with?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Sun Aug 28, 2022 12:45 pm    Post subject: Reply with quote

mgnut57,

https://github.com/gentoo/gentoo is a mirror of the ::gentoo repo on github.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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