[Linuxulator] How to install Brave (Linux app) on FreeBSD 13.0+

Thanks for your efforts on this. Everything works fine, netflix etc fantastic. However I have one issue. I have a titan key setup with my google account so when I try and login to google it tries to probe udev, which causes a segfault:

Code:
ERROR:bus.cc(393)] Failed to connect to the bus: Did not receive a reply.
...
ERROR:udev_watcher.cc(51)] Failed to initialize a udev monitor.

If I chroot into /compat/ubuntu I can't start udev or dbus, should I be able to? Or am I completely misunderstanding something?

I would be interested to know if you or someone else has solved this particular issue. Brave tends to crash on my end as well any time it needs a hardware token.
 
patovm04 Regarding the Fix broken symlink step in your guide, I think it has been already solved in (at least) Ubuntu 22.10, since I used kinetic instead of focal for debootstrap to pull as the base.
 
One simple question: Why is it not possible to install a linux browser using the standard linux-emu? Why is it necessary to create that Ubuntu environment?
 
My question is why is this solution not packaged and in ports? pkg install www/brave? I mean, I don't need this solution but I would likely install it anyway.
 
I was reading the handbook Chapter 11 but still not clear how to fix ELF interpreter library issue. As brave does not launch using the https://github.com/mrclksr/linux-browser-installer script. Installation went well. But i cant launch it. I did chroot into the ubuntu system and did manually update but does not help. So what should i do? Shall i setup linux instead of ubuntu? As the app's entry is poping up on the applications ( i use KDE Plasma) but just not opens brave. 🥺
Also my final goal is to install brave-nightly instead of brave...
 
ELF interpreter /lib64/ld-linux-x86-64.so.2 not found, error 2
Abort trap
this is what i have got when trying to launch.

UPDATE
It is working now. brave-browser nightly. The trick is need to launch as brave-browser-nightly --no-sandbox --no-zygote --test-type --v=0
from chroot. I was using jammy as that is the latest LTS as far as i know. After updating the system just install it as you would do on a normal ubuntu regarding official brave website's instructions. At the end of the installation you might have some missing dependencies. Like:
Code:
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libxcb/libxcb1_1.14-3ubuntu3_amd64.deb  400  Bad Request [IP: 185.125.190.39 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/w/wayland/libwayland-cursor0_1.20.0-1_amd64.deb  400  Bad Request [IP: 185.125.190.36 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libt/libtheora/libtheora0_1.1.1+dfsg.1-15ubuntu4_amd64.deb  400  Bad Request [IP: 185.125.190.36 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/t/taglib/libtag1v5-vanilla_1.11.1+dfsg.1-3ubuntu3_amd64.deb  Error reading from server - read (104: Connection reset by peer) [IP: 185.125.190.36 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libu/liburi-perl/liburi-perl_5.10-1_all.deb  400  Bad Request [IP: 185.125.190.36 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
All you have to do is just install them manually one by one. After that run the apt install brave-browser-nightly command again. Then launch it with the flags.
Hope does help for somebody. ;)

However it is not perfect. I could launch only once. If i close the browser and want open it again i will have only the window but will be blank...Need some more investigation on it...:-/ I have to reboot the whole system (freebsd) to get work it again....I mean this is how i did but might exists some other workaround for it...
This is the terminal output when i open it and DOES WORK!!
Code:
[1444:101249:0602/224455.912611:ERROR:file_path_watcher_inotify.cc(315)] inotify_init() failed: Function not implemented (38)
[1444:101252:0602/224455.917166:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1444:101258:0602/224456.117047:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1444:101258:0602/224456.117099:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1444:1444:0602/224456.134583:ERROR:proxy_config_service_linux.cc(620)] inotify_init failed: Function not implemented (38)
[1444:101252:0602/224456.148257:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[1444:101252:0602/224456.148383:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[1444:101252:0602/224456.148415:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[1444:101252:0602/224456.148446:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[1444:101249:0602/224456.169150:ERROR:udev_watcher.cc(52)] Failed to initialize a udev monitor.
[1444:1444:0602/224456.176606:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[1444:1444:0602/224456.176630:ERROR:kwallet_dbus.cc(107)] Error contacting kwalletd (isEnabled)
[1444:1444:0602/224456.176697:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[1444:1444:0602/224456.176713:ERROR:kwallet_dbus.cc(79)] Error contacting klauncher to start kwalletd
[1444:1444:0602/224456.176831:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[1444:1444:0602/224456.176847:ERROR:kwallet_dbus.cc(459)] Error contacting kwalletd (close)
[1444:1444:0602/224456.179295:ERROR:chrome_browser_cloud_management_controller.cc(162)] Cloud management controller initialization aborted as CBCM is not enabled.
[1450:101271:0602/224456.208536:ERROR:file_path_watcher_inotify.cc(315)] inotify_init() failed: Function not implemented (38)
[1444:1444:0602/224456.244052:ERROR:proxy_config_service_linux.cc(620)] inotify_init failed: Function not implemented (38)
[1444:1444:0602/224456.260181:ERROR:proxy_config_service_linux.cc(620)] inotify_init failed: Function not implemented (38)
[1444:101252:0602/224456.262991:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[1444:101252:0602/224456.263071:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[1444:101252:0602/224456.453761:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[1444:101252:0602/224456.453807:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[1444:1444:0602/224456.569761:ERROR:proxy_config_service_linux.cc(620)] inotify_init failed: Function not implemented (38)
[1444:1444:0602/224456.618708:ERROR:eek:bject_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: unknown error type:
[1444:101306:0602/224456.683446:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1444:101306:0602/224456.683706:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1444:101306:0602/224456.683838:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1444:101306:0602/224456.683963:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1444:101306:0602/224456.684016:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1449:1449:0602/224456.798331:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
[1449:1449:0602/224456.800261:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: GLX is not present.
[1449:1449:0602/224456.800283:ERROR:gl_display.cc(790)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[1449:1449:0602/224456.801472:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
[1449:1449:0602/224456.801505:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: GLX is not present.
[1449:1449:0602/224456.801525:ERROR:gl_display.cc(790)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[1449:1449:0602/224456.801545:ERROR:gl_display.cc(824)] Initialization of all EGL display types failed.
[1449:1449:0602/224456.801567:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1449:1449:0602/224456.835697:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
[1449:1449:0602/224456.835740:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: GLX is not present.
[1449:1449:0602/224456.835758:ERROR:gl_display.cc(790)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[1449:1449:0602/224456.835872:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
[1449:1449:0602/224456.835902:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: GLX is not present.
[1449:1449:0602/224456.835919:ERROR:gl_display.cc(790)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[1449:1449:0602/224456.835936:ERROR:gl_display.cc(824)] Initialization of all EGL display types failed.
[1449:1449:0602/224456.835952:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1449:1449:0602/224456.837976:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[1455:1455:0602/224456.948095:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
[1455:1455:0602/224456.948157:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: GLX is not present.
[1455:1455:0602/224456.948169:ERROR:gl_display.cc(790)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[1455:1455:0602/224456.948273:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
[1455:1455:0602/224456.948293:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: GLX is not present.
[1455:1455:0602/224456.948303:ERROR:gl_display.cc(790)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[1455:1455:0602/224456.948314:ERROR:gl_display.cc(824)] Initialization of all EGL display types failed.
[1455:1455:0602/224456.948324:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1455:1455:0602/224456.975743:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
[1455:1455:0602/224456.975793:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: GLX is not present.
[1455:1455:0602/224456.975812:ERROR:gl_display.cc(790)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[1455:1455:0602/224456.975947:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
[1455:1455:0602/224456.975975:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: GLX is not present.
[1455:1455:0602/224456.975992:ERROR:gl_display.cc(790)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[1455:1455:0602/224456.976009:ERROR:gl_display.cc(824)] Initialization of all EGL display types failed.
[1455:1455:0602/224456.976026:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1455:1455:0602/224456.977922:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[1456:1456:0602/224457.085794:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
[1456:1456:0602/224457.085858:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: GLX is not present.
[1456:1456:0602/224457.085872:ERROR:gl_display.cc(790)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[1456:1456:0602/224457.085965:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
[1456:1456:0602/224457.085983:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: GLX is not present.
[1456:1456:0602/224457.085993:ERROR:gl_display.cc(790)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[1456:1456:0602/224457.086003:ERROR:gl_display.cc(824)] Initialization of all EGL display types failed.
[1456:1456:0602/224457.086013:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1456:1456:0602/224457.111343:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
[1456:1456:0602/224457.111381:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: GLX is not present.
[1456:1456:0602/224457.111398:ERROR:gl_display.cc(790)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[1456:1456:0602/224457.113181:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: GLX is not present.
[1456:1456:0602/224457.113215:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: GLX is not present.
[1456:1456:0602/224457.113230:ERROR:gl_display.cc(790)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[1456:1456:0602/224457.113249:ERROR:gl_display.cc(824)] Initialization of all EGL display types failed.
[1456:1456:0602/224457.113262:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1456:1456:0602/224457.114896:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[1453:101307:0602/224457.274057:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[1444:101249:0602/224459.739029:ERROR:udev_watcher.cc(52)] Failed to initialize a udev monitor.
 
This looks like the sysctl compat.linux.emul_path is not set. Have you added it in rc.conf?

Code:
No matching processes belonging to you were found
W: [(null)] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support.
ELF interpreter /lib64/ld-linux-x86-64.so.2 not found, error 2
Abort trap

Holger tyler19820201

The issue was that I needed to change the sysctl on the HOST not on the jails of the chroot.


FINALLY
Code:
compat.linux.emul_path=/compat/ubuntu
in the sysctl.conf

Code:
pulseaudio --start --exit-idle-time=3600
in the linux-brave

13.1p2
==============================================================================================
After successful change on the host to point to /compat/ubuntu
When I launch linux-brave

Code:
No matching processes belonging to you were found
W: [(null)] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support.
ELF interpreter /lib64/ld-linux-x86-64.so.2 not found, error 2
Abort trap
pulseaudio --start --exit-idle-time=3600
[78392:194536:0612/185649.785459:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[78392:78392:0612/185649.857499:ERROR:ozone_platform_x11.cc(239)] Missing X server or $DISPLAY
[78392:78392:0612/185649.857514:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.
 
Back
Top