Skip to content

Instantly share code, notes, and snippets.

@Peregrinox
Peregrinox / node osmc.md
Last active February 5, 2018 13:26
node on osmc through nvm
@Peregrinox
Peregrinox / flexget-python3-osmc.md
Created November 13, 2017 09:14
install python3 and flexget in osmc
@Peregrinox
Peregrinox / java8-osmc from backports.md
Last active March 7, 2018 08:48
install java 8 on osmc

[https://discourse.osmc.tv/t/java-8-in-osmc/22369/8]

To enable Stretch backports and make its contents available, do something like:

echo deb http://ftp.debian.org/debian stretch-backports main | sudo tee --append /etc/apt/sources.list
sudo apt-get update

To install the JRE package, there's a special quirk:

@Peregrinox
Peregrinox / jdownloader on osmc.md
Last active May 2, 2024 11:04
install of jdownloader headless

after installing java:

sudo apt-get install libjna-java

Now, download and install jdownloader:

mkdir jd2
cd jd2
@Peregrinox
Peregrinox / osmc common tools.md
Last active November 13, 2017 16:00
common tools used on osmc
  • 7zip:
$ sudo apt-get install p7zip-full p7zip-rar
  • git:
sudo apt-get install git
@Peregrinox
Peregrinox / letsncrypt.md
Last active March 1, 2018 09:34
enable https on nginx server

Secure nginx with letsncrypt

Add the backports repository to your server by typing:

$ echo 'deb http://ftp.debian.org/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/backports.list
$ sudo apt-get update

Install the certbot package by targeting the backports repository: (this failed with dependency errors if python is set to 3.4 version, so I previously set alternatives to 2.7)

@Peregrinox
Peregrinox / enable passwordless ssh.md
Last active February 17, 2018 18:50
passwordless only ssh
sudo systemctl enable ssh.service
sudo systemctl start ssh.service

With that you can login with the osmc user.

enable passwordless:

create /.ssh/authorized_keys and copy public key with the osmc user

@Peregrinox
Peregrinox / install rclone.md
Last active February 13, 2018 11:46
pi rclone beta install

pi-rclone-beta-install

This is a fast install procedure for rclone in the raspberry pi (tested with OSMC on a Pi 2) with support for auth proxy that enable Amazon Cloud drive access.

Install from precompiled binarys (not need to install go-lang):

  • Download the relevant binary.
curl -O https://beta.rclone.org/rclone-beta-latest-linux-arm.zip