Date: Tue, 9 Feb 2021 17:00:03 -0800 From: Pete Wright <pete@nomadlogic.org> To: Tomasz CEDRO <tomek@cedro.info>, freebsd@dreamchaser.org, FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: which linux libfuse.so.2? Message-ID: <bfa75d24-519d-63cf-912c-fd3756bd8f3b@nomadlogic.org> In-Reply-To: <453b81d8-c08d-fae4-598b-16be904789d6@cedro.info> References: <79254130-e926-fab3-9d5b-b6862c6b747b@dreamchaser.org> <8e50ba4b-a419-0d60-c2b5-1c379e2dc604@nomadlogic.org> <453b81d8-c08d-fae4-598b-16be904789d6@cedro.info>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bfa75d24-519d-63cf-912c-fd3756bd8f3b>