Git Product home page Git Product logo

aetherinox / debian-opengist Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 97.04 MB

Opengist self-hosted gist solution contained within a debian .deb package for automatic installation.

Home Page: https://github.com/thomiceli/opengist

Shell 100.00%
deb-package debian debian-packages docker gist git github go golang opengist pastebin pastebin-service self-hosted tailwindcss typescript ubuntu ubuntu-packages

debian-opengist's Introduction

Opengist (Debian Package)

Version Downloads Repo Size Last Commit)



About

Opengist is a self-hosted pastebin powered by Git. All snippets are stored in a Git repository and can be read and/or modified using standard Git commands, or with the web interface. It is similiar to GitHub Gist, but open-source and could be self-hosted.


View




Install

Install this Debian package as you would any other by downloading and executing it. Once OpenGist is installed, the following files will be placed in the below structure:

๐Ÿ“ /etc/opengist/config.yml
๐Ÿ“ /lib/systemd/system/opengist.service
๐Ÿ“ /usr/bin/opengist

This deb will create a new system user named opengist which will run the service.




Config

You may edit the Opengist config file by opening /etc/opengist/config.yml

log-level: warn
external-url:
opengist-home:
db-filename: opengist.db
sqlite.journal-mode: WAL
http.host: 0.0.0.0
http.port: 6157
http.git-enabled: true
ssh.git-enabled: true
ssh.host: 0.0.0.0
ssh.port: 2222
ssh.external-domain:
ssh.keygen-executable: ssh-keygen
github.client-key:
github.secret:
gitea.client-key:
gitea.secret:
gitea.url: https://gitea.com/
oidc.client-key:
oidc.secret:
oidc.discovery-url:



Start / Manage Service

To start/stop opengist, execute the following:

sudo systemctl start opengist
sudo systemctl stop opengist
sudo systemctl status opengist

The system service will activate the binary in /usr/bin/opengist




Build

To build the debian package

dpkg-deb --root-owner-group --build opengist-1.6.1_amd64
dpkg-deb --root-owner-group --build opengist-1.6.1_arm64

Run the linter

lintian opengist_1.6.1_amd64.deb --tag-display-limit 0 | grep executable-not-elf
lintian opengist_1.6.1_arm64.deb --tag-display-limit 0 | grep executable-not-elf



Structure

This debian package uses the following structure:


opengist_1.6.1_amd64

File structure / tree for opengist_1.6.1_amd64

.
โ”œโ”€โ”€ opengist_1.6.1_amd64
โ”‚ย ย  โ”œโ”€โ”€ DEBIAN
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ conffiles
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ control
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ postinst
โ”‚ย ย  โ”œโ”€โ”€ etc
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ opengist
โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ config.yml
โ”‚ย ย  โ”œโ”€โ”€ lib
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ systemd
โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ system
โ”‚ย ย  โ”‚ย ย          โ””โ”€โ”€ opengist.service
โ”‚ย ย  โ””โ”€โ”€ usr
โ”‚ย ย      โ”œโ”€โ”€ bin
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ opengist
โ”‚ย ย      โ””โ”€โ”€ share
โ”‚ย ย          โ”œโ”€โ”€ applications
โ”‚ย ย          โ”‚ย ย  โ””โ”€โ”€ opengist.desktop
โ”‚ย ย          โ”œโ”€โ”€ doc
โ”‚ย ย          โ”‚ย ย  โ””โ”€โ”€ opengist
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ AUTHORS
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ changelog.gz
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ copyright
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ examples
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ config.yaml
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ README
โ”‚ย ย          โ”‚ย ย      โ””โ”€โ”€ README.md
โ”‚ย ย          โ”œโ”€โ”€ icons
โ”‚ย ย          โ”‚ย ย  โ””โ”€โ”€ hicolor
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ 128x128
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ apps
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย      โ””โ”€โ”€ opengist.png
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ 16x16
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ apps
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย      โ””โ”€โ”€ opengist.png
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ 256x256
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ apps
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย      โ””โ”€โ”€ opengist.png
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ 32x32
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ apps
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย      โ””โ”€โ”€ opengist.png
โ”‚ย ย          โ”‚ย ย      โ””โ”€โ”€ 64x64
โ”‚ย ย          โ”‚ย ย          โ””โ”€โ”€ apps
โ”‚ย ย          โ”‚ย ย              โ””โ”€โ”€ opengist.png
โ”‚ย ย          โ”œโ”€โ”€ lintian
โ”‚ย ย          โ”‚ย ย  โ””โ”€โ”€ overrides
โ”‚ย ย          โ”‚ย ย      โ””โ”€โ”€ opengist
โ”‚ย ย          โ””โ”€โ”€ man
โ”‚ย ย              โ””โ”€โ”€ man1
โ”‚ย ย                  โ””โ”€โ”€ opengist.1.gz
โ””โ”€โ”€ opengist_1.6.1_amd64.deb

30 directories, 21 files



opengist_1.6.1_arm64

File structure / tree for opengist_1.6.1_arm64

โ”œโ”€โ”€ opengist_1.6.1_arm64
โ”‚ย ย  โ”œโ”€โ”€ DEBIAN
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ conffiles
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ control
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ postinst
โ”‚ย ย  โ”œโ”€โ”€ etc
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ opengist
โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ config.yml
โ”‚ย ย  โ”œโ”€โ”€ lib
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ systemd
โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ system
โ”‚ย ย  โ”‚ย ย          โ””โ”€โ”€ opengist.service
โ”‚ย ย  โ””โ”€โ”€ usr
โ”‚ย ย      โ”œโ”€โ”€ bin
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ opengist
โ”‚ย ย      โ””โ”€โ”€ share
โ”‚ย ย          โ”œโ”€โ”€ applications
โ”‚ย ย          โ”‚ย ย  โ””โ”€โ”€ opengist.desktop
โ”‚ย ย          โ”œโ”€โ”€ doc
โ”‚ย ย          โ”‚ย ย  โ””โ”€โ”€ opengist
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ AUTHORS
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ changelog.gz
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ copyright
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ examples
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ config.yaml
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ README
โ”‚ย ย          โ”‚ย ย      โ””โ”€โ”€ README.md
โ”‚ย ย          โ”œโ”€โ”€ icons
โ”‚ย ย          โ”‚ย ย  โ””โ”€โ”€ hicolor
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ 128x128
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ apps
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย      โ””โ”€โ”€ opengist.png
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ 16x16
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ apps
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย      โ””โ”€โ”€ opengist.png
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ 256x256
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ apps
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย      โ””โ”€โ”€ opengist.png
โ”‚ย ย          โ”‚ย ย      โ”œโ”€โ”€ 32x32
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ apps
โ”‚ย ย          โ”‚ย ย      โ”‚ย ย      โ””โ”€โ”€ opengist.png
โ”‚ย ย          โ”‚ย ย      โ””โ”€โ”€ 64x64
โ”‚ย ย          โ”‚ย ย          โ””โ”€โ”€ apps
โ”‚ย ย          โ”‚ย ย              โ””โ”€โ”€ opengist.png
โ”‚ย ย          โ”œโ”€โ”€ lintian
โ”‚ย ย          โ”‚ย ย  โ””โ”€โ”€ overrides
โ”‚ย ย          โ”‚ย ย      โ””โ”€โ”€ opengist
โ”‚ย ย          โ””โ”€โ”€ man
โ”‚ย ย              โ””โ”€โ”€ man1
โ”‚ย ย                  โ””โ”€โ”€ opengist.1.gz
โ””โ”€โ”€ opengist_1.6.1_arm64.deb

30 directories, 21 files



Previews

debian-opengist's People

Contributors

aetherinox avatar

Stargazers

 avatar

Watchers

 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.