From owner-freebsd-questions@FreeBSD.ORG Thu Feb 19 20:13:50 2015 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 75DBC1E4; Thu, 19 Feb 2015 20:13:50 +0000 (UTC) Received: from sdf.org (ma.sdf.org [192.94.73.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ma.sdf.org", Issuer "ma.sdf.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5659CC11; Thu, 19 Feb 2015 20:13:50 +0000 (UTC) Received: from ma.sdf.org (IDENT:U2FsdGVkX1/XM8YSGAQraeRN7NYaimrJZiPLksla+H0@ma.sdf.org [192.94.73.31]) by sdf.org (8.14.4/8.14.3) with ESMTP id t1JKDeHu005128; Thu, 19 Feb 2015 20:13:40 GMT MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 19 Feb 2015 14:13:40 -0600 From: cpet To: Toomas Aas Subject: Re: Graphical Linux app on FreeBSD In-Reply-To: <20150219205247.17861nw45qwx2t6s@webmail.raad.tartu.ee> References: <20150219205247.17861nw45qwx2t6s@webmail.raad.tartu.ee> Message-ID: X-Sender: cpet@sdf.org User-Agent: Roundcube Webmail/1.0.1 Cc: questions@freebsd.org, owner-freebsd-questions@freebsd.org 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 20:13:50 -0000 On 2015-02-19 12:52, Toomas Aas wrote: > 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 Are people scared to specify the name of the app? the sys requirements for said app? all this is useless basically.