Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Feb 2021 17:00:03 -0800
From:      Pete Wright <>
To:        Tomasz CEDRO <>,, FreeBSD Mailing List <>
Subject:   Re: which linux
Message-ID:  <>
In-Reply-To: <>
References:  <> <> <>

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:
>> 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

> 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 Wright

Want to link to this message? Use this URL: <>