From owner-freebsd-questions@freebsd.org Wed Aug 8 22:22:45 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EC6C0106D948 for ; Wed, 8 Aug 2018 22:22:44 +0000 (UTC) (envelope-from doug@fledge.watson.org) Received: from cyrus.watson.org (cyrus.watson.org [204.107.128.30]) by mx1.freebsd.org (Postfix) with ESMTP id 9F5609792C for ; Wed, 8 Aug 2018 22:22:44 +0000 (UTC) (envelope-from doug@fledge.watson.org) Received: from fledge.watson.org (fledge.watson.org [198.74.231.63]) by cyrus.watson.org (Postfix) with ESMTPS id 24220A34D9; Wed, 8 Aug 2018 22:22:38 +0000 (UTC) Received: from fledge.watson.org (doug@localhost.watson.org [127.0.0.1]) by fledge.watson.org (8.15.2/8.15.2) with ESMTP id w78MMbEd057325; Wed, 8 Aug 2018 18:22:37 -0400 (EDT) (envelope-from doug@fledge.watson.org) Received: from localhost (doug@localhost) by fledge.watson.org (8.15.2/8.15.2/Submit) with ESMTP id w78MMaeW057321; Wed, 8 Aug 2018 18:22:37 -0400 (EDT) (envelope-from doug@fledge.watson.org) Date: Wed, 8 Aug 2018 18:22:36 -0400 (EDT) From: doug Reply-To: doug@safeport.com To: David Newman cc: freebsd-questions@freebsd.org Subject: Re: xrdp configuration and xfce4 In-Reply-To: <52e2c421-e766-859e-3331-92aeb0c9921e@networktest.com> Message-ID: References: <7d12e2d7-e8e6-53d0-3c62-d3ca8868f9be@networktest.com> <20180808013151.sia5lgegjcxu2pr3@icepick.vmeta.jp> <3d2a1aa3-94de-e4e7-bb1d-a54ff7a92f94@networktest.com> <2a4a6b24-b0ec-a1e8-2e52-00cf1703e193@networktest.com> <52e2c421-e766-859e-3331-92aeb0c9921e@networktest.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (fledge.watson.org [127.0.0.1]); Wed, 08 Aug 2018 18:22:37 -0400 (EDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Aug 2018 22:22:45 -0000 On Wed, 8 Aug 2018, David Newman wrote: > On 8/8/18 12:16 PM, Oleg Cherkasov wrote: >> On 08. aug. 2018 19:57, David Newman wrote: >>> On 8/8/18 9:32 AM, Oleg Cherkasov wrote: >>>> On 08. aug. 2018 04:10, David Newman wrote: >>> >>> Previously the .xsession file was just 'startxfce4'. >>> >>> But adding the '#! /bin/sh' line and restarting xrdp did not change the >>> behavior: It's still a black screen with one xterm, and no xfce4 desktop >>> or copy/paste support. >>> >>> Of course startxfce4 will run manually from the xterm but along with >>> copy/paste, those are the problems I'm looking to solve. >> >> I think it was another in X called ~/.xinitrc, just give it a try. > > That file previously had these contents: > > exec /usr/local/bin/startxfce4 --with-ck-launch > > Changing this to just: > > startxfce4 > > and restarting the xrdp service did not result in xfce4 starting by > itself or copy/paste being enabled. > > It's possible FreeBSD-specific changes are needed to xrdp.ini, > startwm.sh, and maybe other config files, but I don't know what those > changes are. Do you have physical access to the FreeBSD system? If so look at .xsession-errors in your home dir. In /var/log you will have Xorg.0.log and some other simiarly name files. It seemed like getting xfce started was at least part of the problem. If not, sorry for the noise. I use xdm with my .xsession as follows: artemis:~> cat .xsession #!/bin/sh /usr/bin/ssh-agent /usr/local/bin/startxfce4 startxfce4 from the console login also works. I do not have any other user defined files.