Add explanation on how to install brave
This commit is contained in:
parent
6666ef9489
commit
43c3bbef27
1 changed files with 45 additions and 3 deletions
|
@ -4,9 +4,51 @@ The steps described here allow the creation of a linux system on a Surface Book
|
|||
- Rename host
|
||||
- Install Brave
|
||||
- ```bash
|
||||
mkdir -p ~/.chromium-extensions/youtube-music-dl
|
||||
wget https://github.com/dougppaz/youtube-music-dl/releases/download/v1.2.1/youtube-music-dl.zip
|
||||
unzip youtube-music-dl.zip -d ~/.chromium-extensions/youtube-music-dl
|
||||
sudo apt install -y wget unzip jq 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 -y brave-browser
|
||||
|
||||
archiveName=$(mktemp)
|
||||
wget https://github.com/dougppaz/youtube-music-dl/releases/download/v1.2.1/youtube-music-dl.zip -O $archiveName
|
||||
|
||||
extensionName=youtube-music-dl
|
||||
contextRoot=$(mktemp -d)
|
||||
extensionDir=$contextRoot/$extensionName
|
||||
keyFile=$extensionDir.pem
|
||||
extensionFile=$extensionDir.crx
|
||||
manifestFile=$extensionDir/manifest.json
|
||||
|
||||
extensionRoot=/usr/share/brave-extensions
|
||||
destination=$extensionRoot/$extensionName.crx
|
||||
sudo mkdir -p $extensionRoot
|
||||
|
||||
unzip $archiveName -d $extensionDir
|
||||
brave-browser --pack-extension=$extensionDir
|
||||
manifest="$(cat $manifestFile | jq ". + {key: "'"'"$(openssl rsa -in $keyFile -pubout -outform DER | openssl base64 -A)"'"'"}")"
|
||||
manifest="$(echo $manifest | jq ".background.persistent = false")"
|
||||
echo $manifest > $manifestFile
|
||||
|
||||
extensionID=$(openssl rsa -in $keyFile -pubout -outform DER | shasum -a 256 | head -c32 | tr 0-9a-f a-p)
|
||||
extensionVersion=$(cat $manifestFile | jq -r '.version')
|
||||
brave-browser --pack-extension=$extensionDir --pack-extension-key=$keyFile
|
||||
|
||||
sudo cp $extensionFile $extensionRoot
|
||||
|
||||
configRoot=/opt/brave.com/brave/extensions/
|
||||
|
||||
sudo rm -rf $contextRoot
|
||||
sudo chmod -R a+rx $extensionRoot
|
||||
sudo chmod -R u+w $extensionRoot
|
||||
sudo mkdir -p $configRoot
|
||||
{
|
||||
echo "{"
|
||||
echo ' "external_crx": "'"$destination"'",'
|
||||
echo ' "external_version": "'"$extensionVersion"'"'
|
||||
echo "}"
|
||||
} | sudo tee $configRoot/$extensionID.json
|
||||
```
|
||||
- Install Bitwarden
|
||||
- Install Xournal++
|
||||
|
|
Loading…
Reference in a new issue