Kali Linux Install Brave browser: Difference between revisions

From WikiMLT
m (Стадий: 3 [Фаза:Разработване, Статус:Разутвърден]; Категория:Linux Desktop)
m (Text replacement - "mlw-continue" to "code-continue")
 
(7 intermediate revisions by the same user not shown)
Line 22: Line 22:
== References ==
== References ==
* Brave: [https://brave.com/linux/#debian-ubuntu-mint Installing Brave on Linux > Release Channel Installation > Debian, Ubuntu, Mint]
* Brave: [https://brave.com/linux/#debian-ubuntu-mint Installing Brave on Linux > Release Channel Installation > Debian, Ubuntu, Mint]
* Decrease SSD/NVMe permanent usage: [[Tmpfs Tools Profile Sync Daemon (PSD)]]
* Decrease SSD/NVMe permanent usage: [[Tmpfs Tools Profile Sync Daemon (PSD)|'''Tmpfs Tools Profile Sync Daemon (PSD)''']]
 
== Fix the "Show in folder" option ==
Out of the box the option "Show in folder" - position {{Pti|s=1|i=A|c=green}} at {{Media-cite|sf|1}} - doesn't open the target directory which is set as default File explorer. This issue is also valid for the other Chromium and Firefox based browsers.
{{Sform
| n = 1
| image = Brave-browser-show-in-folder-option.webp
| m = {{pt|s=1|i=A|c=green|a=90|x=380|y=113|z=1.2}}
| s = .85
| t = 16
| side = 16
}}
 
The only [https://unix.stackexchange.com/a/581233/201297 working solution] I've found is that shown below. This solution solves the issue also for the other browsers.<syntaxhighlight lang="shell" line="1">
sudo nano /etc/dbus-1/session-local.conf
</syntaxhighlight><syntaxhighlight lang="xml" line="1" class="code-continue">
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
 
<busconfig>
  <policy context="default">
    <!-- Block all usage of org.freedesktop.FileManager1 for opening files -->
    <deny send_interface="org.freedesktop.FileManager1" send_destination="org.freedesktop.FileManager1"/>
  </policy>
</busconfig>
</syntaxhighlight>
<syntaxhighlight lang="shell" line="1">
dbus-send --session --print-reply --dest=org.freedesktop.DBus --type=method_call /org/freedesktop/DBus org.freedesktop.DBus.ReloadConfig
</syntaxhighlight>Source, other approaches and references:
 
* Unix and Linux: [https://unix.stackexchange.com/a/581233/201297 '''How to use Nautilus as default in XFCE?''' (the answer provided by @smac89)]
* Reddit: [https://www.reddit.com/r/chrome/comments/g5x9sf/comment/i3tf9y3/?utm_source=reddit&utm_medium=web2x&context=3 Wrong file manager called when "Show in folder" in Ubuntu 19.10 (Linux)]
* Ask Ubuntu: [https://askubuntu.com/questions/39769/chromium-show-in-folder-opens-in-text-editor Chromium "Show in Folder" opens in text editor]<syntaxhighlight lang="shell" line="1">
mimeopen -d ~/Documents
</syntaxhighlight>
* Unix and Linux: [https://unix.stackexchange.com/a/115267/201297 How do I set Nautilus as default file manager in Elementary OS]<syntaxhighlight lang="bash" class="code-continue">
# What's the current default file manager?
</syntaxhighlight><syntaxhighlight lang="shell" line="1" class="code-continue">
xdg-mime query default inode/directory
</syntaxhighlight><syntaxhighlight lang="bash" class="code-continue">
# Set Nautilus as a default file manager
</syntaxhighlight><syntaxhighlight lang="shell" line="1" class="code-continue">
xdg-mime default nautilus.desktop inode/directory application/x-gnome-saved-search
</syntaxhighlight>
* Unix and Linux: [https://unix.stackexchange.com/questions/57302/change-chromium-from-automatically-launches-nautilus-with-the-show-in-folder-com Change Chromium from automatically launches Nautilus with the Show In Folder command]
* Mozilla Bugzilla: [https://bugzilla.mozilla.org/show_bug.cgi?id=727422 /usr/share/applications/mimeinfo.cache is used for default applications]
* Ubuntu Community Wiki: [https://help.ubuntu.com/community/DefaultFileManager Default File Manager]
* It's Foss: [https://itsfoss.com/install-nemo-file-manager-ubuntu/#make-nemo-default-file-manager-in-ubuntu How to Install and Make Nemo the Default File Manager in Ubuntu]


<noinclude>
<noinclude>
Line 28: Line 76:
{{devStage  
{{devStage  
  | Прндл  = Linux Desktop
  | Прндл  = Linux Desktop
  | Стадий = 3
  | Стадий = 6
  | Фаза  = Разработване
  | Фаза  = Утвърждаване
  | Статус = Разутвърден
  | Статус = Утвърден
  | ИдтПт  = Spas
  | ИдтПт  = Spas
  | РзбПт  = {{REVISIONUSER}}
  | РзбПт  = Spas
  | АвтПт  = Spas
  | АвтПт  = Spas
  | УтвПт  = Spas
  | УтвПт  = {{REVISIONUSER}}
  | ИдтДт  = 9.07.2022
  | ИдтДт  = 9.07.2022
  | РзбДт  = {{Today}}
  | РзбДт  = 20.09.2022
  | АвтДт  = 9.07.2022
  | АвтДт  = 20.09.2022
  | УтвДт  = 20.09.2022
  | УтвДт  = {{Today}}
  | ИдтРв  = [[Special:Permalink/27831|27831]]
  | ИдтРв  = [[Special:Permalink/27831|27831]]
  | РзбРв  = {{REVISIONID}}
  | РзбРв  = [[Special:Permalink/31628|31628]]
  | АвтРв  =  
  | АвтРв  = [[Special:Permalink/31629|31629]]
  | РзАРв  = [[Special:Permalink/27841|27841]]
  | РзАРв  = [[Special:Permalink/27841|27841]]
  | УтвРв  =  
  | УтвРв  = {{REVISIONID}}
  | РзУРв  = [[Special:Permalink/31626|31626]]
  | РзУРв  = [[Special:Permalink/31626|31626]]
}}
}}
</div>
</div>
</noinclude>
</noinclude>

Latest revision as of 08:29, 26 September 2022

In­stal­la­tion

Kali Lin­ux is a De­bian based dis­tri­b­u­tion, so we can in­stall the Brave brows­er in the same way as it is de­scribed in the Brave's of­fi­cial doc­u­men­ta­tion. In the fol­low­ing steps we will add the re­lease chan­nel repos­i­to­ry of Brave and then in­stall it,

sudo apt update && sudo apt install apt-transport-https curl
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg \
https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | \
sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update && sudo apt install brave-browser

Set­tings

  • If you are us­ing your lo­cal DNS ser­vice as Pi­hole, you may need to dis­able the op­tion Use se­cure DNS with­in brave://settings/.
  • Clear host cache via: brave://net-internals/#dns

Ref­er­ences

Fix the "Show in fold­er" op­tion

Out of the box the op­tion "Show in fold­er" – po­si­tion A at Screen 1 – doesn't open the tar­get di­rec­to­ry which is set as de­fault File ex­plor­er. This is­sue is al­so valid for the oth­er Chromi­um and Fire­fox based browsers.

Screen 1. Brave brows­er – the op­tion "Show in fold­er". Screen 1. Brave browser - the option "Show in folder".

The on­ly work­ing so­lu­tion I've found is that shown be­low. This so­lu­tion solves the is­sue al­so for the oth­er browsers.

sudo nano /etc/dbus-1/session-local.conf
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">

<busconfig>
  <policy context="default">
    <!-- Block all usage of org.freedesktop.FileManager1 for opening files -->
    <deny send_interface="org.freedesktop.FileManager1" send_destination="org.freedesktop.FileManager1"/>
  </policy>
</busconfig>
dbus-send --session --print-reply --dest=org.freedesktop.DBus --type=method_call /org/freedesktop/DBus org.freedesktop.DBus.ReloadConfig

Source, oth­er ap­proach­es and ref­er­ences: