From owner-freebsd-questions@FreeBSD.ORG Thu Feb 19 19:02:23 2015 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5F307854 for ; Thu, 19 Feb 2015 19:02:23 +0000 (UTC) Received: from kuller.raad.tartu.ee (kuller.raad.tartu.ee [213.184.43.8]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 12E2818D for ; Thu, 19 Feb 2015 19:02:22 +0000 (UTC) Received: from kuller.raad.tartu.ee (localhost [127.0.0.1]) by kuller.raad.tartu.ee (Postfix) with ESMTP id A32C43987B for ; Thu, 19 Feb 2015 20:52:52 +0200 (EET) X-Virus-Scanned: amavisd-new at post.raad.tartu.ee Received: from kuller.raad.tartu.ee ([127.0.0.1]) by kuller.raad.tartu.ee (kuller.raad.tartu.ee [127.0.0.1]) (amavisd-new, port 10024) with LMTP id M2cLru__4ANA for ; Thu, 19 Feb 2015 20:52:47 +0200 (EET) Received: by kuller.raad.tartu.ee (Postfix, from userid 80) id 48D5D39858; Thu, 19 Feb 2015 20:52:47 +0200 (EET) Received: from 76-20-190-90.dyn.estpak.ee (76-20-190-90.dyn.estpak.ee [90.190.20.76]) by webmail.raad.tartu.ee (Horde Framework) with HTTP; Thu, 19 Feb 2015 20:52:47 +0200 Message-ID: <20150219205247.17861nw45qwx2t6s@webmail.raad.tartu.ee> Date: Thu, 19 Feb 2015 20:52:47 +0200 From: Toomas Aas To: questions@freebsd.org Subject: Graphical Linux app on FreeBSD MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.7) X-Originating-IP: 90.190.20.76 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2015 19:02:23 -0000 Hello! I am trying to run a Linux binary on my FreeBSD system using the Linux compatibility layer. This is a GUI application. I tried to run it as regular user and as root, but each time I encounter different error message: $ ./the_linux_binary XOpenIM() failed Abort (core dumped) $ su Password: root@mypc:/home/toomas/tmp # ./the_linux_binary No protocol specified Can't open display: :0.0 Is there any hope to get such application running? Relevant system info follows. $ grep COMPAT MYKERNEL options COMPAT_LINUX32 options COMPAT_43 options COMPAT_FREEBSD32 $ uname -a FreeBSD mypc.lan 9.3-STABLE FreeBSD 9.3-STABLE #0 r278030: Sun Feb 1 21:19:50 EET 2015 toomas@mypc.lan:/usr/obj/usr/src/sys/MYKERNEL amd64 $ sysctl compat.linux.osrelease compat.linux.osrelease: 2.6.18 $ pkg info -a | grep linux linux-c6-expat-2.0.1_1 linux-c6-fontconfig-2.8.0_1 linux-c6-xorg-libs-7.4_1 linux_base-c6-6.6 $ file the_linux_binary the_linux_binary: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), statically linked, stripped -- Toomas Aas