Skip to content

Instantly share code, notes, and snippets.

@4mirul
Last active March 15, 2022 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4mirul/31567683d3f5490f0161b62fbb98849f to your computer and use it in GitHub Desktop.
Save 4mirul/31567683d3f5490f0161b62fbb98849f to your computer and use it in GitHub Desktop.
Raspitorque

Raspitorque configuration

Raspberry Pi Imager

RaspberryPi Debian Wiki

Ubuntu Raspberry Pi Wiki

one-liner update command for ubuntu, add below line to the ~/.bash_aliases

alias update='sudo apt update -y && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean -y && sudo apt autoclean -y'

change user name can refer link

change hostname text

check used port number link

change time, check time timedatectl timedatectl set-timezone 'Asia/Kuala_Lumpur'o

medusa https://pymedusa.com/

https://forums.sonarr.tv/t/nginx-reverse-proxy-sonar-ver-issue/17506

https://websiteforstudents.com/how-to-install-gitea-on-ubuntu-20-04-18-04/

https://docs.gitea.io/en-us/

https://docs.pi-hole.net/main/prerequisites/#ufw

qbittorrent/qBittorrent#13032

ddclient

1 2 3 4

address updating utility for dynamic DNS services

This package provides a client to update dynamic IP addresses with several dynamic DNS service providers, such as DynDNS.com.

This makes it possible to use a fixed hostname (such as myhost.dyndns.org) to access a machine with a dynamic IP address.

This client supports both dynamic and (near) static services, as well as MX record and alternative name management. It caches the address, and only attempts the update when it has changed.

back to Table of Contents

fail2ban

1 2 3 4 5

ban hosts that cause multiple authentication errors

Fail2ban monitors log files (e.g. /var/log/auth.log, /var/log/apache/access.log) and temporarily or persistently bans failure-prone addresses by updating existing firewall rules. Fail2ban allows easy specification of different actions to be taken such as to ban an IP using iptables or hostsdeny rules, or simply to send a notification email.

By default, it comes with filter expressions for various services (sshd, apache, qmail, proftpd, sasl etc.) but configuration can be easily extended for monitoring any other text file. All filters and actions are given in the config files, thus fail2ban can be adopted to be used with a variety of files and firewalls. Following recommends are listed:

  • iptables/nftables -- default installation uses iptables for banning. nftables is also suported. You most probably need it
  • whois -- used by a number of mail-whois actions to send notification emails with whois information about attacker hosts. Unless you will use those you don't need whois
  • python3-pyinotify -- unless you monitor services logs via systemd, you need pyinotify for efficient monitoring for log files changes

Install:

sudo apt install fail2ban -y

Useful commands:

sudo service fail2ban start | stop | restart | status | reload

sudo fail2ban-server start | stop | restart | status | reload

sudo fail2ban-client <COMMAND> command list

back to Table of Contents

fdisk

1 2

collection of partitioning utilities

This package contains the classic fdisk, sfdisk and cfdisk partitioning utilities from the util-linux suite.

The utilities included in this package allow you to partition your hard disk. The utilities supports both modern and legacy partition tables (eg. GPT, MBR, etc).

The fdisk utility is the classical text-mode utility. The cfdisk utilitity gives a more userfriendly curses based interface. The sfdisk utility is mostly for automation and scripting uses.

Additional configuration: automount

https://unix.stackexchange.com/questions/204641/automatically-mount-a-drive-using-etc-fstab-and-limiting-access-to-all-users-o

https://www.liquidweb.com/kb/what-is-umask-and-how-to-use-it-effectively/

https://en.wikipedia.org/wiki/Fstab

back to Table of Contents

‎‎​

jackett

1

Jackett works as a proxy server: it translates queries from apps (Sonarr, Radarr, SickRage, CouchPotato, Mylar, Lidarr, DuckieTV, qBittorrent, Nefarious etc.) into tracker-site-specific http queries, parses the html response, then sends results back to the requesting software. This allows for getting recent uploads (like RSS) and performing searches. Jackett is a single repository of maintained indexer scraping & translation logic - removing the burden from other apps.

Install: link

back to Table of Contents

jellyfin

1

The Free Software Media System

Jellyfin is the volunteer-built media solution that puts you in control of your media. Stream to any device from your own server, with no strings attached. Your media, your server, your way.

Install: link

back to Table of Contents

nginx

1 2

small, powerful, scalable web/proxy server

Nginx ("engine X") is a high-performance web and reverse proxy server created by Igor Sysoev. It can be used both as a standalone web server and as a proxy to reduce the load on back-end HTTP or mail servers.

This is a dependency package to install either nginx-full (by default), nginx-light or nginx-extras.

Install:

sudo apt install nginx -y

Useful commands:

sudo service nginx start | stop | restart | status | reload

sudo nginx -t

back to Table of Contents

nodejs

1

evented I/O for V8 javascript - runtime executable

Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

Node.js is bundled with several useful libraries to handle server tasks:

System, Events, Standard I/O, Modules, Timers, Child Processes, POSIX, HTTP, Multipart Parsing, TCP, DNS, Assert, Path, URL, Query Strings.

Install: link

plexmediaserver

1

Plex gives you one place to find and access all the media that matters to you. From personal media on your own server, to podcasts, web shows, and news, to streaming music, you can enjoy it all in one app, on any device.

Install: link

back to Table of Contents

qbittorrent-nox

1

bittorrent client based on libtorrent-rasterbar (without X support)

BitTorrent client written in C++ and based on libtorrent-rasterbar. qBittorrent-nox is a version of qBittorrent (Qt5 application) that does not require X and can be controlled via a WebUI, thus is more suitable for headless servers. It is a feature rich but lightweight client that is very similar to rTorrent. Its main features are:

  • Remote control through a Web user interface
  • Vuze-compatible protocol encryption
  • uTorrent-compatible Peer eXchange (PeX)
  • DHT (trackerless) support
  • UPnP / NAT-PMP port forwarding
  • IPv6 compliant
  • Advanced control over torrent content and trackers
  • IP Filtering (eMule / Peer Guardian filters)
  • Torrents queueing and prioritizing
  • Good localization (~25 languages supported)
  • Unicode support

Install: link

back to Table of Contents

sonarr

1 2

Sonarr is a PVR for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new episodes of your favorite shows and will grab, sort and rename them. It can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available.

Install: link

back to Table of Contents

samba

1 2

SMB/CIFS file, print, and login server for Unix

Samba is an implementation of the SMB/CIFS protocol for Unix systems, providing support for cross-platform file and printer sharing with Microsoft Windows, OS X, and other Unix systems. Samba can also function as an NT4-style domain controller, and can integrate with both NT4 domains and Active Directory realms as a member server.

This package provides the components necessary to use Samba as a stand-alone file and print server or as an NT4 or Active Directory domain controller. For use in an NT4 domain or Active Directory realm, you will also need the winbind package.

This package is not required for connecting to existing SMB/CIFS servers (see smbclient) or for mounting remote filesystems (see cifs-utils).

Install: link

back to Table of Contents

sonarr

1

Sonarr is a PVR for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new episodes of your favorite shows and will grab, sort and rename them. It can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available.

Install: link

back to Table of Contents

sudo apt install python3-pip sudo pip3 install subliminal

subliminal download -l en <video>

‎‎​

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment