Skip to content

Setup on linux with amd gpu #31

@sid597

Description

@sid597

In mac all I had to do was run the build command clj -A:dev -X dev/-main but since shifting to ubuntu (checkout my config for more) it is not easy to make it work in chrome, i used all the flags mentioned in their docs still got the error, not sure about the reason.

Installed firefox, webgpu is not supported in firefox yet, it is only available in nightly build so now I have nightly build downloaded for it.

I use chrome for browsing and all the work now have to use firefox, a new i3 command, vimium, logins etc.

Steps:

  • Download and firefox nightly
cd Downloads
tar -xJf firefox-*.tar.xz
sudo mv firefox /opt/firefox-nightly

// Desktop entry
mkdir -p ~/.local/share/applications/
nvim ~/.local/share/applications/firefox-nightly.desktop

[Desktop Entry]
Name=Firefox Nightly
Comment=Browse the Web
Exec=/opt/firefox-nightly/firefox %u
Terminal=false
Type=Application
Icon=/opt/firefox-nightly/browser/chrome/icons/default/default128.png
Categories=Network;WebBrowser;

// shortcut in i3
nvim ~/.config/i3/config
bindsym $mod+Shift+f exec /opt/firefox-nightly/firefox


// Create app armour profile 
sudo nvim /etc/apparmor.d/firefox-local

# This profile allows everything and only exists to give the
# application a name instead of having the label "unconfined"
abi <abi/4.0>,
include <tunables/global>
profile firefox-local
/opt/firefox-nightly/{firefox,firefox-bin,updater}
flags=(unconfined) {
    userns,
    # Site-specific additions and overrides. See local/README for details.
    include if exists <local/firefox>
}

sudo systemctl restart apparmor.service

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions