which linux libfuse.so.2?

Pete Wright pete at nomadlogic.org
Wed Feb 10 01:00:08 UTC 2021



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 at 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 at 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 at nomadlogic.org
@nomadlogicLA



More information about the freebsd-questions mailing list