Skip to content

Instantly share code, notes, and snippets.

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 / get-vivaldi-snap.sh
Last active December 24, 2017 00:31
Fetches the latest Vivaldi Linux rpm or deb package listed on the team blog
#!/bin/sh
case ${ARCH:-$(uname -m)} in
x86_64) DEBARCH=amd64; ARCH=x86_64 ;;
i?86) DEBARCH=i386; ARCH=i386 ;;
*) echo "Your architecture is not supported!" >&2; exit 1 ;;
esac
if [ "$1" = "-d" ]; then
PKGTYPE=deb
ARCH=$DEBARCH
@ruario
ruario / mac-viv-standalone-shortcut.md
Last active August 16, 2018 06:24
How to assign a shortcut to launch Vivaldi in Standalone Mode on macOS

The following allows macOS users to run two different Vivaldi's alongside each other (e.g. stable and snapshot), with their prefences/settings stored seperately. This is also handy if you want to do an initial test of a snapshot in a self contained manor, without touching your main prefences/settings.

It works by causing launch Vivaldi in such a way that it stores its prefences/settings in a directory next it (called "Vivaldi Data"), rather than using the default prefences/settings directory ("~/Library/Application Support/Vivaldi").

To setup

  • Open the Automator.app (part of macOS) and create a new "Service"
  • Change "Service receives" to: "files or folders" in "Finder"
  • Drag "Get Selected Finder Items" (found under "Files & Folders") into the actions area
  • Drag "Run Shell Script" (found under "Utilities") into the actions area below "Get Selected Finder Items" and set "Pass input" to "as arguments"
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
@ruario
ruario / manual-install-of-opera.md
Last active September 7, 2018 11:49
How to install Opera developer for Linux on distributions other than Debian, Ubuntu or derivatives
@ruario
ruario / lnx-2.0-proprietary-media-short.md
Last active November 7, 2018 10:18
Vivaldi 2.0 Linux Proprietary media, quick answer
@ruario
ruario / pkgtrack
Last active January 29, 2019 15:06
#!/bin/sh
#
# Version: 1.2
#
# This script provides a method for tracking software installed from
# source. Run it as follows for more information:
#
# pkgtrack -h
#
# Copyright 2018 Ruari Odegaard, Oslo, Norway
@ruario
ruario / transfer-staged-package.sh
Last active February 12, 2019 02:12
Script to install the contents of a staging directory containing a binary Linux package and setup an uninstall script
#!/bin/sh -e
helptext() {
cat << HELP
Usage: $0 [option]... packagename
Options:
-h, --help (Show this help text)
-a, --archive (Create an archive, instead of install)
@ruario
ruario / f2sb.sh
Last active October 18, 2019 07:32
A script for those who "Forgot to make a SlackBuild". Following a manual install (e.g. `make install`), use this script to make a Slackware package.
#!/bin/sh -eu
#
# This script allows you to create a Slackware package from software you
# previously installed manually (e.g. via `make install`).
#
# Usage:
#
# ./script name-version /path/to/reference/file [seconds]
#
# Provide the name and version of the package, path to one file that forms
@ruario
ruario / make-vivaldi-private-desktop-launcher.sh
Last active December 20, 2019 15:32
Run this to create a Vivaldi launcher for Linux desktops that always starts in private mode.
#!/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