View previous topic :: View next topic |
Author |
Message |
mgnut57 Apprentice
Joined: 12 Jan 2008 Posts: 292
|
Posted: Tue Aug 09, 2022 2:02 am Post subject: Can't get desktop session in Tiger VNC |
|
|
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:
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 |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9677 Location: almost Mile High in the USA
|
Posted: Wed Aug 10, 2022 4:09 pm Post subject: |
|
|
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 |
|
|
mgnut57 Apprentice
Joined: 12 Jan 2008 Posts: 292
|
Posted: Wed Aug 10, 2022 7:44 pm Post subject: |
|
|
eccerr0r wrote: | should be vncserver -kill :20 to kill (not vncsession)?
|
$ vncserver -kill :20
usage: vncserver <display> |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9677 Location: almost Mile High in the USA
|
Posted: Wed Aug 10, 2022 10:17 pm Post subject: |
|
|
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 |
|
|
mgnut57 Apprentice
Joined: 12 Jan 2008 Posts: 292
|
Posted: Wed Aug 10, 2022 11:55 pm Post subject: |
|
|
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 |
|
|
jamapii l33t
Joined: 16 Sep 2004 Posts: 637
|
Posted: Tue Aug 16, 2022 8:32 am Post subject: |
|
|
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 |
|
|
mgnut57 Apprentice
Joined: 12 Jan 2008 Posts: 292
|
Posted: Tue Aug 16, 2022 5:04 pm Post subject: |
|
|
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 |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Wed Aug 24, 2022 9:03 pm Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21595
|
Posted: Wed Aug 24, 2022 10:02 pm Post subject: |
|
|
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 |
|
|
mgnut57 Apprentice
Joined: 12 Jan 2008 Posts: 292
|
Posted: Thu Aug 25, 2022 1:11 am Post subject: |
|
|
[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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21595
|
Posted: Thu Aug 25, 2022 12:21 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Thu Aug 25, 2022 1:13 pm Post subject: |
|
|
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 |
|
|
mgnut57 Apprentice
Joined: 12 Jan 2008 Posts: 292
|
Posted: Thu Aug 25, 2022 8:49 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Thu Aug 25, 2022 9:40 pm Post subject: |
|
|
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 |
|
|
mgnut57 Apprentice
Joined: 12 Jan 2008 Posts: 292
|
Posted: Fri Aug 26, 2022 12:56 am Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Fri Aug 26, 2022 9:39 am Post subject: |
|
|
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 |
|
|
mgnut57 Apprentice
Joined: 12 Jan 2008 Posts: 292
|
Posted: Sun Aug 28, 2022 5:45 am Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Sun Aug 28, 2022 12:45 pm Post subject: |
|
|
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 |
|
|
|