Date: Fri, 10 Aug 2018 08:48:38 -0700 From: David Newman <dnewman@networktest.com> To: freebsd-questions@freebsd.org Subject: Re: xrdp configuration and xfce4 Message-ID: <f46c4d3a-9e9a-3e17-ceac-a28eb706045d@networktest.com> In-Reply-To: <0101016521032eb2-f262b8e9-b49d-4698-b7fa-b164846438d8-000000@us-west-2.amazonses.com> References: <d3534b9a-4061-5f6b-e94c-68646700f194@networktest.com> <caf921f910fe2dec5d4a6ed19e682cef@freebsd.org> <7d12e2d7-e8e6-53d0-3c62-d3ca8868f9be@networktest.com> <20180808013151.sia5lgegjcxu2pr3@icepick.vmeta.jp> <3d2a1aa3-94de-e4e7-bb1d-a54ff7a92f94@networktest.com> <010101651cc2eaf1-3b1f8145-18bd-4665-bdf9-767470f85a3d-000000@us-west-2.amazonses.com> <ae825563-6242-d7d9-9458-3003fde1b4f3@networktest.com> <0101016521032eb2-f262b8e9-b49d-4698-b7fa-b164846438d8-000000@us-west-2.amazonses.com>
index | next in thread | previous in thread | raw e-mail
On 8/9/18 4:26 PM, Koichiro IWAO wrote: > >>> Again, in xrdp context, ~/.xinitrc or ~/.xsession doesn't affect. Forget >>> it and >>> see /usr/local/etc/xrdp/startwm.sh or ~/startwm.sh. >> >> Partial success! xfce4 now starts automatically with a local startwm.sh >> file. > > Which did you try? ~/startwm.sh? Yes. xfce4 starts up with ~/startwm.sh in place, using the contents and permissions you described. > If you got success with ~/startwm.sh, > there might be a bug of xrdp. Some people reported similar issue to yours. OK. That is a separate issue, but a big one for me, as it makes remote management difficult. Where is the appropriate place to report the clipboard issue? > Let me break down the issue and help us improve xrdp before looking at > clipboard issue. > > 1. remove ~/startwm.sh > 2. confirm /usr/local/etc/xrdp/startwm.sh starts startxfce4 > 3. login via xrdp > 4. you'll see xterm > 5. see /var/log/xrdp-sesman.log > 6. you'll see the log like this > > [20180710-23:08:24] [CORE ] waiting for window manager (pid 41266) to exit > [20180710-23:08:24] [CORE ] error starting default wm for user meta - > pid 41266 > [20180710-23:08:25] [DEBUG] errno: 2, description: No such file or > directory > [20180710-23:08:25] [DEBUG] execlp3 parameter list: > [20180710-23:08:25] [DEBUG] argv[0] = startwm.sh > [20180710-23:08:25] [DEBUG] argv[1] = startwm.sh > > If you see the log like this, xrdp is failing to find > /usr/local/etc/xrdp/startwm.sh. > If you specify the full path to startwm.sh in sesman.ini, it should > work. Try it. > Don't forget to restart xrdp-sesman after you edited sesman.ini. > > ``` > DefaultWindowManager=/usr/local/etc/xrdp/startwm.sh > ``` > > Thank you for your cooperation. Thank YOU, Iwao-san, for your help with this. The behavior is exactly as you described, but only if we replace the startwm.sh script supplied with the pkg with the two-line version you suggested: #!/bin/sh startxfce4 The startwm.sh script supplied with the package has three different cases for Linux distributions (lines 66-88) but nothing for xfce4 on FreeBSD. Thanks again for your help with the startup issue, and in advance for pointers on debugging the clipboard issue. dnhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f46c4d3a-9e9a-3e17-ceac-a28eb706045d>
