From owner-freebsd-questions@freebsd.org Wed Feb 10 01:00:08 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 83881533A0E for ; Wed, 10 Feb 2021 01:00:08 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [174.136.98.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.nomadlogic.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Db1dM3KMsz4dvR for ; Wed, 10 Feb 2021 01:00:07 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.160] (cpe-24-24-163-126.socal.res.rr.com [24.24.163.126]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id d090eeae (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 10 Feb 2021 01:00:04 +0000 (UTC) Subject: Re: which linux libfuse.so.2? To: Tomasz CEDRO , freebsd@dreamchaser.org, FreeBSD Mailing List References: <79254130-e926-fab3-9d5b-b6862c6b747b@dreamchaser.org> <8e50ba4b-a419-0d60-c2b5-1c379e2dc604@nomadlogic.org> <453b81d8-c08d-fae4-598b-16be904789d6@cedro.info> From: Pete Wright Message-ID: Date: Tue, 9 Feb 2021 17:00:03 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <453b81d8-c08d-fae4-598b-16be904789d6@cedro.info> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4Db1dM3KMsz4dvR X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 174.136.98.114 as permitted sender) smtp.mailfrom=pete@nomadlogic.org X-Spamd-Result: default: False [-2.30 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+mx]; ARC_NA(0.00)[]; DMARC_NA(0.00)[nomadlogic.org]; SPAMHAUS_ZRD(0.00)[174.136.98.114:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[174.136.98.114:from]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:25795, ipnet:174.136.96.0/20, country:US]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2021 01:00:08 -0000 On 2/9/21 4:49 PM, Tomasz CEDRO wrote: > On 09.02.2021 21:56, Pete Wright wrote: >> there is also work happening on getting debian and ubuntu working >> under freebsd - not sure about its availability on 11.4, but i use it >> for GUI apps on my workstations: >> https://wiki.freebsd.org/LinuxJails >> >> the nice thing about this method, is once you've bootstrapped your >> debian environment you can chroot into it and run "apt-get install >> blah" and it all pretty much just works. > > Wow! I found that interesting and may be a way to run closed source > Linux utilities for FPGA from Latice and Xilinx as I have problems > running them with GUI on Linuxlator. yea it's been super handy, for example i've run several linux only GUI's this way (slack for example). > > Two quick questions: > 1. Can I use it as non-root? How to chroot for/as normal user? yes, what i do is set the following in fstab: /home           /compat/ubuntu/home     nullfs rw,late                      0       0 this makes my normal home directory visible in the chroot.  so what I do ischroot as root, then "su - pete": $ sudo chroot /compat/ubuntu /bin/bash debian-chroot$ su - pete pete@debian-chroot$ > 2. Did you use all X applications with no problems that way? > yes!  that's been my primary use-case actually.  first I allow my local X server to accept connections: $ xhost + localhost then, after chroot'ing and becoming my normal user I then set my DISPLAY environment variable to my freebsd desktop like so: pete@debian-chroot$ DISPLAY=":0" xterm this may be a pretty clean way to run Vivado - it's been a while, but when I used to run it under CentOS it did all sorts of crummy stuff to my system - so I actually had a dedicated workstation just for it. so with this method you'd just be mucking with the chroot'd debian/ubuntu environment, leaving your BSD system relatively clean in terms of deps and 3rd party files installed.  heck you can even have multiple debian chroots :) The wiki entry I referred to was pretty up to date, for example it covers in depth updating the fstab for proc, sysfs and fdescfs. Hope this helps, -pete -- Pete Wright pete@nomadlogic.org @nomadlogicLA