Github messages for voidlinux
 help / color / mirror / Atom feed
From: eoli3n <eoli3n@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: x2goserver package is non-functional
Date: Tue, 11 May 2021 11:53:23 +0200	[thread overview]
Message-ID: <20210511095323.XrYtzR3GgpD5JWSx-qmfmspmi0Gd9FFSd0vumJQVJ_Q@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-30781@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 3563 bytes --]

New comment by eoli3n on void-packages repository

https://github.com/void-linux/void-packages/issues/30781#issuecomment-837297270

Comment:
sqlite db exists in ``/var/lib/x2go/x2go_sessions``
some references:
- https://lists.x2go.org/pipermail/x2go-user/2019-March/005522.html : no answer
- https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1482 : no answer
--------
to print real error, edit ``/usr/lib/x2go/x2gocheckport`` at line 131
```
  # Filter out any empty or invalid values.
  typeset -i item_i='0'
  typeset item=''

  # add echo of the var between delimiters
  echo "##### ${used_display_ports_work[@]} #####"
  for item in "${used_display_ports_work[@]}"; do
       item_i="${item}"
```
real error is
```
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23. BEGIN failed--compilation aborted at /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl line 23.
```
```
cpan install Switch
```
solved it, but it is not packaged in the repo
- [x] create ``perl-Switch`` package

--------
now i get
```
DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable to open database file at /usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pm line 66.
```
following https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1063
```
➜ x2golistsessions
DBIconnect('dbname=/var/lib/x2go/x2go_sessions','',...)failed:unabletoopendatabasefileat/usr/share/perl5/vendor_perl/X2Go/Server/DB/SQLite3.pmline66.
```

Fix with
```
chmod g+s /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
```
See https://www.cvedetails.com/cve/CVE-2013-4376/

Note : useless reverse engineering, in the ``INSTALL`` file...
```

3.) SGID GROUP
--------------
Configure ownership, permissions and setgid group bits of
libx2go-server-db-sqlite3-wrapper and x2goprint:

  NOTE: The described actions have already been performed by the Makefile
  run, leaving this here for documentation only.

 $ chown root:x2gouser /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper
 $ chmod 2755 /usr/lib/x2go/libx2go-server-db-sqlite3-wrapper

 $ chown root:x2goprint /usr/bin/x2goprint
 $ chmod 2755 /usr/bin/x2goprint

 $ chown 0440 /etc/sudoers.d/x2goserver
```
During the build the ``x2gouser`` group doesn't exist
```
➜ ./xbps-src install x2goserver
[...]
➜ sudo chroot masterdir /bin/bash
bash-5.1# getent group x2gouser
bash-5.1# 
```
It seems that the test fo the group ``x2gouser`` during the build phase fails : https://github.com/eugenesan/x2goserver/blob/master/libx2go-server-db-perl/Makefile#L58
```
	getent group x2gouser &>/dev/null && chown root:x2gouser $(DESTDIR)$(LIBDIR)/libx2go-server-db-sqlite3-wrapper || true
```
- [x] add ``INSTALL`` file to automate this

--------
Check spec to see if missing deps: https://github.com/eugenesan/x2goserver/blob/master/x2goserver.spec
- [x] which
- [x] pwgen
- [x] net-tools
- [x] perl-Try-Tiny
- [x] perl-Switch 

--------
Now i get
```
Échec de la connexion xauth: file /home/user/.Xauthority does not exist xauth: (argv):1: bad display name "voidlinux:50" in "add" command Failed to start X2Go Agent session with ID user-50-1620685786_stDxterm_dp32. X2Go Agent terminated unexpectedly. Aborting session startup.
```

  parent reply	other threads:[~2021-05-11  9:53 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-10 16:30 [ISSUE] " ahesford
2021-05-10 16:48 ` ericonr
2021-05-10 20:23 ` eoli3n
2021-05-10 20:24 ` eoli3n
2021-05-10 20:34 ` eoli3n
2021-05-10 20:35 ` eoli3n
2021-05-10 20:38 ` eoli3n
2021-05-10 21:16 ` eoli3n
2021-05-10 21:16 ` eoli3n
2021-05-10 21:24 ` eoli3n
2021-05-10 21:27 ` eoli3n
2021-05-10 21:27 ` eoli3n
2021-05-10 22:01 ` eoli3n
2021-05-10 22:10 ` eoli3n
2021-05-10 22:10 ` eoli3n
2021-05-10 22:13 ` eoli3n
2021-05-10 22:16 ` eoli3n
2021-05-10 22:18 ` eoli3n
2021-05-10 22:20 ` eoli3n
2021-05-10 22:28 ` eoli3n
2021-05-10 22:28 ` eoli3n
2021-05-10 22:29 ` eoli3n
2021-05-10 22:30 ` eoli3n
2021-05-10 22:40 ` eoli3n
2021-05-10 22:40 ` eoli3n
2021-05-11  7:07 ` eoli3n
2021-05-11  7:07 ` eoli3n
2021-05-11  7:36 ` eoli3n
2021-05-11  7:36 ` eoli3n
2021-05-11  7:39 ` eoli3n
2021-05-11  7:44 ` eoli3n
2021-05-11  7:50 ` eoli3n
2021-05-11  7:50 ` eoli3n
2021-05-11  8:30 ` eoli3n
2021-05-11  8:56 ` eoli3n
2021-05-11  9:04 ` eoli3n
2021-05-11  9:04 ` eoli3n
2021-05-11  9:53 ` eoli3n [this message]
2021-05-11  9:54 ` eoli3n
2021-05-11 10:10 ` eoli3n
2021-05-11 10:45 ` eoli3n
2021-05-11 10:46 ` eoli3n
2021-05-11 10:47 ` eoli3n
2021-05-11 10:49 ` eoli3n
2021-05-11 10:50 ` eoli3n
2021-05-11 10:51 ` eoli3n
2021-05-11 11:47 ` eoli3n
2021-05-11 11:47 ` eoli3n
2021-05-11 11:57 ` eoli3n
2021-05-11 12:30 ` eoli3n
2021-05-11 17:29 ` eoli3n
2021-05-11 18:51 ` eoli3n
2021-07-15 11:53 ` [ISSUE] [CLOSED] " ahesford
2023-02-11 15:28 ` devmalick
2023-02-11 16:41 ` ahesford
2023-02-11 16:42 ` ahesford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210511095323.XrYtzR3GgpD5JWSx-qmfmspmi0Gd9FFSd0vumJQVJ_Q@z \
    --to=eoli3n@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).