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.
To install Opengist, you have two options -- pick only one:
Note
After instaling this package; 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 opengist service.
The Proteus Apt Repo is a special Ubuntu / Debian / CentOS repository hosted by this developer on Github. You can install this Opengist package using apt-get install by adding the proteus apt repo to your sources list.
Open Terminal, add the GPG key to your keyring
wget -qO - https://github.com/Aetherinox.gpg | sudo gpg --dearmor -o /usr/share/keyrings/aetherinox-proteus-archive.gpgFetch the repo package list:
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/aetherinox-proteus-archive.gpg] https://raw.githubusercontent.com/Aetherinox/proteus-apt-repo/master $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/aetherinox-proteus-archive.list(Optional): You can test if the correct GPG key was added:
gpg -n -q --import --import-options import-show /usr/share/keyrings/aetherinox-proteus-archive.gpg | awk '/pub/{getline; gsub(/^ +| +$/,""); if($0 == "BCA07641EE3FCD7BC5585281488D518ABD3DC629") print "\nGPG fingerprint matches ("$0").\n"; else print "\GPG verification failed: Fngerprint ("$0") does not match the expected one.\n"}'After completing the above; update your packages:
sudo apt updateYou can now install the Opengist package with:
sudo apt install opengistDownload the latest .deb package from this repo's Releases page. You can download and install it using the commands below.
- Replace
ARCHwith386,amd64, orarm64 - Replace
X.X.Xwith the current version. ie:1.7.4
wget https://github.com/Aetherinox/opengist-debian/releases/download/X.X.X/opengistX.X.X-linux-ARCH.deb sudo dpkg -i opengist_1.X.X_amd64.debYou 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/ gitea.name: oidc.client-key: oidc.secret: oidc.discovery-url: custom.logo: custom.favicon: custom.static-links:To start/stop opengist, execute the following:
sudo systemctl start opengist sudo systemctl stop opengist sudo systemctl status opengistThe system service will activate the binary in /usr/bin/opengist
To build the debian package, run the following commands within this repo's src/ folder:
dpkg-deb --root-owner-group --build opengist1.X.X-linux-amd64 dpkg-deb --root-owner-group --build opengist1.X.X-linux-arm64 dpkg-deb --root-owner-group --build opengist1.X.X-linux-386Run the linter
lintian opengist1.X.X-linux-amd64.deb --tag-display-limit 0 | grep executable-not-elf lintian opengist1.X.X-linux-arm64.deb --tag-display-limit 0 | grep executable-not-elf lintian opengist1.X.X-linux-386.deb --tag-display-limit 0 | grep executable-not-elfThis debian package uses the following structure:
opengistX.X.X-linux-ARCH
File structure / tree for opengistX.X.X-linux-ARCH.deb
. βββ opengistX.X.X-linux-ARCH βΒ Β βββ 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 βββ opengistX.X.X-linux-ARCH.deb 30 directories, 21 filesWe are always looking for contributors. If you feel that you can provide something useful to Gistr, then we'd love to review your suggestion. Before submitting your contribution, please review the following resources:
Want to help but can't write code?
- Review active questions by our community and answer the ones you know.
The following people have helped get this project going:

