Skip to content

Instantly share code, notes, and snippets.

@ruario
ruario / make-vivaldi-private-desktop-launcher.sh
Last active Dec 20, 2019
Run this to create a Vivaldi launcher for Linux desktops that always starts in private mode.
View make-vivaldi-private-desktop-launcher.sh
#!/bin/sh
mkdir -p ~/.local/share/applications
cat << END > ~/.local/share/applications/vivaldi-private.desktop
[Desktop Entry]
Version=1.0
Name=Vivaldi (Private)
Exec=vivaldi-stable --incognito
StartupNotify=true
Terminal=false
Icon=vivaldi
@ruario
ruario / 1-README.md
Last active Jul 13, 2022
A script that fetches a ChromeOS image for ARM32 and extracts the Widevine binary, saving it in a compressed archive for use with Vivaldi
View 1-README.md

The included script 'widevine-flash_armhf.sh' fetches a ChromeOS image for ARM and extracts the Widevine binary, saving it in a compressed archive. Since it downloads a fairly large file (2Gb+ on disk after download) it is recommended that you run the script on a machine that has plenty of disk space.

To install the resultant archive, issue the following on your ARM machine–after copying over the archive if needed:

sudo tar Cfx / widevine-flash-20200124_armhf.tgz

(Where 'widevine-flash-20200124_armhf.tgz' is updated to reflect the actual name of the created archive)

@ruario
ruario / lnx-2.0-proprietary-media-short.md
Last active Nov 7, 2018
Vivaldi 2.0 Linux Proprietary media, quick answer
@ruario
ruario / check-user-namespace.sh
Last active May 20, 2022
A bourne shell function to check for the presence of user namespace support in the linux kernel by calling the unshare command to set one up
View check-user-namespace.sh
check-user-namespace () {
if ! command -v unshare >/dev/null 2>&1; then
echo "The unshare command is not available. Install the util-linux package to fix this." >&2
return 2
fi
if unshare -U true >/dev/null 2>&1; then
echo "User namespace support enabled"
return 0
else
echo "User namespace support not enabled"
@ruario
ruario / README.md
Last active Jul 26, 2022
Run Vivaldi Package (rpm, deb or recompressed contents)
View README.md

Run Vivaldi Package

The attached script (rvp.sh) will allow you to directly run a Vivaldi .deb or .rpm package without “installing” it. This works by quickly extracting the package contents into /var/tmp and then executing the binary therein (the extracted files are removed when you close Vivaldi).

Vivaldi is run with a temporary user data (settings) that are specific to that exact version. This is to avoid messing up the main install's user data.

To run Vivaldi in this way, make rvp.sh executable and start a build like so:

./rvp.sh vivaldi-snapshot-1.15.1159.7-1.x86_64.rpm
@ruario
ruario / latest-skype.sh
Last active Sep 27, 2021
This script will find the latest Skype for Linux binary package, download it and repackage it into Slackware format.
View latest-skype.sh
#!/bin/bash
# latest-skype Version 1.1.2
# This script will find the latest Skype binary package, download it and
# repackage it into Slackware format.
# Copyright 2018 Ruari Oedegaard, Oslo, Norway
# All rights reserved.
#
@ruario
ruario / README.md
Last active May 11, 2022
HTML5 MP4 (H.264/AAC) video issues with Vivaldi for Linux snapshots
View install-vivaldi-via-repo.sh
sudo add-apt-repository 'deb https://repo.vivaldi.com/stable/deb/ stable main'
wget -qO- https://repo.vivaldi.com/stable/linux_signing_key.pub | sudo apt-key add -
sudo apt update && sudo apt install --install-recommends vivaldi-stable
View manually-extract-vivaldi.md

Manually extract Vivaldi from the deb like so:

ar p vivaldi-stable_1.13.1008.34-1_armhf.deb data.tar.xz | tar Jx ./opt/vivaldi --strip 2

To start Vivaldi from a terminal:

vivaldi/vivaldi&

@ruario
ruario / latest-vivaldi.sh
Last active Jul 23, 2022
This script will find the latest Vivaldi binary package, download it and repackage it into Slackware format.
View latest-vivaldi.sh
#!/bin/bash
# latest-Vivaldi Version 1.6.5
# This script will find the latest Vivaldi binary package, download it
# and repackage it into Slackware format.
# Copyright 2019 Ruari Oedegaard, Oslo, Norway All rights reserved.
#
# Redistribution and use of this script, with or without modification,
# is permitted provided that the following conditions are met: