From owner-freebsd-questions@freebsd.org Thu Aug 9 23:31:21 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 908581076BB1 for ; Thu, 9 Aug 2018 23:31:21 +0000 (UTC) (envelope-from 0101016521032eb2-f262b8e9-b49d-4698-b7fa-b164846438d8-000000@us-west-2.amazonses.com) Received: from a27-35.smtp-out.us-west-2.amazonses.com (a27-35.smtp-out.us-west-2.amazonses.com [54.240.27.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1AB2F8CFFB for ; Thu, 9 Aug 2018 23:31:20 +0000 (UTC) (envelope-from 0101016521032eb2-f262b8e9-b49d-4698-b7fa-b164846438d8-000000@us-west-2.amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=4nphvxivhgsntfxkzsopqsdbvjscuhxm; d=vmeta.jp; t=1533857181; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID; bh=F6Cby3iRu+ymbYh8zarqBGm9rXWog1Z8Luz+SsJhENg=; b=icoL3AenK/gu7ATuPDFzA5gKAEfRStLtcvEv7NiwbfQE8hT06XN40auUFbJrMvzj PJoCNJArGqaniCB9jBrjF2whVxcD8Lzl05M6Qe7LAlAKR8/BmhCHeeWwNx65VUwCBIT gK0qPNhAVbe2S1OYtihoAHOR7rpf3sJq0DLHO77k= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=7v7vs6w47njt4pimodk5mmttbegzsi6n; d=amazonses.com; t=1533857181; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID:Feedback-ID; bh=F6Cby3iRu+ymbYh8zarqBGm9rXWog1Z8Luz+SsJhENg=; b=VevsFa04q90xEghGRSQqrsJs3AW/RHp45RSPsucuCSZB/7KAeowV8eFSdro5hT9M 6d+/G64olFA5weMPDgKsjP0k5L66HhkVUwJzuLp4WcBJaIrpr/XSNsoc6aEIxCgMLiv rls1NMq3vpd9NTuSu2YRS4YFhwA4ggoxJrTdfrc0= X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on glory.vmeta.jp X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 9 Aug 2018 23:26:21 +0000 From: Koichiro IWAO To: David Newman Cc: freebsd-questions@freebsd.org Subject: Re: xrdp configuration and xfce4 In-Reply-To: References: <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> Message-ID: <0101016521032eb2-f262b8e9-b49d-4698-b7fa-b164846438d8-000000@us-west-2.amazonses.com> X-Sender: meta@vmeta.jp User-Agent: Roundcube Webmail/1.3.6 X-SES-Outgoing: 2018.08.09-54.240.27.35 Feedback-ID: 1.us-west-2.ngRt4x2U/cWqug8pbfjwMxB6pcDw1fmN73bGmMLYyRI=:AmazonSES 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: Thu, 09 Aug 2018 23:31:21 -0000 >> 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? If you got success with ~/startwm.sh, there might be a bug of xrdp. Some people reported similar issue to yours. 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. -- `whois vmeta.jp | nkf -w` meta