Skip to content

Instantly share code, notes, and snippets.

View jniltinho's full-sized avatar
🏠
Working from home

Nilton Oliveira jniltinho

🏠
Working from home
View GitHub Profile
@jniltinho
jniltinho / install-powerdns.sh
Last active March 4, 2024 19:01
Install PowerDNS Linux
#!/bin/bash
## https://github.com/PowerDNS-Admin/PowerDNS-Admin
## https://www.howtoforge.com/how-to-install-powerdns-on-ubuntu-22-04/
## https://phoenixnap.com/kb/powerdns-ubuntu
## https://geekandnix.com/ubuntu/powerdns/
## https://hub.docker.com/r/powerdnsadmin/pda-legacy
## https://gist.github.com/maxivak/1daa03229493e22a7263c83dd52af76f
## https://github.com/PowerDNS/pdns
@jniltinho
jniltinho / install-nerd-fonts.sh
Last active February 28, 2024 18:46
Install Nerd Fonts
#!/bin/bash
## https://github.com/ryanoasis/nerd-fonts/releases
version='3.1.1'
declare -a fonts=(
BitstreamVeraSansMono
@jniltinho
jniltinho / install-zig.sh
Created February 20, 2024 11:17
Install Zig on Linux
#!/bin/bash
## Links
## Ubuntu|Debian|Linux
## https://ziglang.org/documentation/master/
## https://ziglang.org/learn/getting-started/
## https://zig.guide/build-system/build-modes/
## https://zig.guide/
## https://github.com/C-BJ/awesome-zig
## https://github.com/zigzap/zap
@jniltinho
jniltinho / install-postfixadmin-docker.sh
Last active February 17, 2024 18:31
Install PostfixAdmin Docker
#!/bin/bash
## Links
## https://github.com/postfixadmin/postfixadmin
## https://github.com/postfixadmin/docker
apt update
apt install -y git curl wget docker.io
wget -O /usr/local/bin/docker-compose https://github.com/docker/compose/releases/download/v2.24.6/docker-compose-linux-x86_64
chmod +x /usr/local/bin/docker-compose
@jniltinho
jniltinho / install-roundcube.sh
Last active March 16, 2024 21:49
Install RoundCube Ubuntu
#!/bin/bash
## Links
## Ubuntu|Debian
## https://www.linuxtuto.com/how-to-install-roundcube-on-ubuntu-22-04/
## https://medium.com/@community.vahid/stable-webmail-install-roundcube-webmail-ubuntu-22-04-lts-server-semi-stable-ec4349c1804b
## https://caddy.community/t/help-configuring-php-fpm-status-for-caddy2/19737/7
## https://www.atlantic.net/vps-hosting/how-to-install-and-configure-caddy-web-server-with-php-on-rocky-linux/
## https://www.howtoforge.com/tutorial/how-to-install-caddy-web-server-with-php-fpm-on-ubuntu-1604/
@jniltinho
jniltinho / install-filebrowser.sh
Last active February 28, 2024 11:00
Install filebrowser + Caddy
#!/bin/bash
## Links
## Ubuntu|Debian|Linux
## https://github.com/filebrowser/filebrowser
## https://github.com/caddyserver/caddy
## https://github.com/tenox7/wfm
## https://www.youtube.com/watch?v=W2yZ5_sd9Hc
## https://technotim.live/posts/meet-file-browser/
VERSION=v2.27.0
@jniltinho
jniltinho / to-utf8.sh
Created February 7, 2024 19:37
Convert to UTF8
#!/bin/bash
## Links
## https://stackoverflow.com/questions/11316986/how-to-convert-iso8859-15-to-utf8
TO="UTF-8"; FILE=$1
FROM=$(file -i $FILE | cut -d'=' -f2)
if [[ $FROM = "binary" ]]; then
echo "Skipping binary $FILE..."
exit 0
fi
@jniltinho
jniltinho / install-obs-rtspserver.sh
Last active March 14, 2024 10:38
Install obs-rtspserver Plugins
#!/bin/bash
## Links
## Ubuntu 23.10, OBS 30.0.1
## https://github.com/iamscottxu/obs-rtspserver
## https://www.youtube.com/watch?v=CtoBw96wJnM
## https://obsproject.com/forum/resources/obs-rtspserver.1037/
mkdir -p /usr/share/obs/obs-plugins/obs-rtspserver
@jniltinho
jniltinho / install-rtmp-server.sh
Last active January 26, 2024 16:58
Install RTMP Server
#!/bin/bash
## Install RTMP on Debian 12|Ubuntu 22.04
## https://github.com/bluenviron/mediamtx
## https://github.com/Haivision/srt
## https://github.com/harlanc/xiu
## https://github.com/SuRGeoNix/Flyleaf
## https://github.com/grigory-lobkov/rtsp-camera-view
## https://github.com/patrickhener/goshs
## https://github.com/gwuhaolin/livego
## https://github.com/datarhei/restreamer
@jniltinho
jniltinho / pos-install-debian12.sh
Created January 7, 2024 21:02
Pos Instalacao Debian 12
#!/bin/bash
## https://www.tutorlinux.com.br/2023/07/18/pos-instalacao-do-linux-debian-12-bookworm/
## https://www.blogopcaolinux.com.br/2023/06/Guia-pos-instalacao-Debian-12-Bookworm.html
## https://www.linuxcapable.com/how-to-install-latest-linux-kernel-on-debian-linux/
## https://wiki.debian.org/Firefox
apt update && apt upgrade
apt-get install sudo flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo