Giter Site home page Giter Site logo

hockeygoalie35 / nicotine-novnc-rpi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from realies/soulseek-docker

5.0 0.0 0.0 1.28 MB

๐Ÿณ Nicotine+ For Raspberry Pi through noVNC

Home Page: https://hub.docker.com/r/hockeygoalie35/nicotine-novnc-rpi/

License: Other

Shell 34.72% HTML 8.93% Python 56.35%

nicotine-novnc-rpi's Introduction

Nictotine+ for Raspberry Pi

Yet another realies/soulseek-docker fork! kokmok made a great RPI fork, but unfortunately hasn't updated it in 5 years, so that's where this repo comes in! Latest image uses Nicotine+ v3.3.2, and the Dockerfile allows for rebuilding with future versions. Huge thanks again to realies for all the hard work of getting soulseek to work over noVNC, and kokmok for giving me clues to get this working.

image

Setup

Here's a recommended file structure on your raspberry pi:

home/pi/Appdata
  -> nicotine
     -->downloads
     -->incomplete  # Optional
     -->received    # Optional
     -->shares

Here's a bash script that will do just that in home/pi/

mkdir -p /home/pi/Appdata/nicotine/data
mkdir -p /home/pi/Appdata/nicotine/downloads
mkdir -p /home/pi/Appdata/nicotine/incomplete
mkdir -p /home/pi/Appdata/nicotine/received
mkdir -p /home/pi/Appdata/nicotine/shares

Container Setup

Docker Compose

Now edit docker-compose.yml, changing the - /path/to/Nicotine/data to your newly created data directory, etc. If needed, change the UID and GID to match your user. It is advised not to run this container as root. Then in the project directory, run docker compose up -d

Portainer

Copy the contents of docker-compose.yml and paste it into a stack, changing the paths and UID/GID as above.

Make sure to use the correct image tag!

services:
  nicotine:
    image: hockeygoalie35/nicotine-novnc-rpi:arm64 #Or armv7 for 32bit
    container_name: nicotine
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Chicago
    volumes:
      - /home/pi/Appdata/nicotine/data:/data
      - /home/pi/Appdata/nicotine/downloads:/data/.local/share/nicotine/downloads
      - /home/pi/Appdata/nicotine/incomplete:/data/.local/share/nicotine/incomplete
      - /home/pi/Appdata/nicotine/received:/data/.local/share/nicotine/received
      - /home/pi/Appdata/nicotine/shares:/data/shares
    ports:
      - 6080:6080
    restart: unless-stopped

Once the container is up and running, in your web browser go to RPIHOSTNAME:6080 and you should be greeted with Nicotine+

Important

After the first boot up, Nicotine will create a default config file, which sets header_bar to TRUE. For whatever reason, this header bar and settings button don't show up in the noVNC window. I've written a python script that monitors the config file and sets header_bar to FALSE, which brings the search bar and other tabs back into the GUI. Once it changes the config, restart the container with docker restart nicotine

Before - Lack of search bar

image

Container STDOUT - py script fixing config

image

After - Search bar restored after restart

image

If for whatever reason the script doesn't fix it, you can go to: data/.config/nicotine/ and edit config, setting: header_bar = False

Building from Dockerfile (For devs)

Use the following commands to build it from the Dockerfiles

32-bit: docker build --platform linux/arm/v7 -t hockeygoalie35/nicotine-novnc-rpi:armv7 . -f ./Dockerfile-armv7

64-Bit: docker build --platform linux/arm64 -t hockeygoalie35/nicotine-novnc-rpi:arm64 . -f ./Dockerfile-arm64

nicotine-novnc-rpi's People

Contributors

realies avatar apurvis avatar hockeygoalie35 avatar gordon00 avatar jjgo avatar iammordaty avatar

Stargazers

Tiffany Schoneboom avatar  avatar  avatar Pharcyde#0394 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.