raihaninfo / binaryapphosting

Binary app hosting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OS Command Execution and Gets the output

https://stackoverflow.com/questions/24095661/os-exec-sudo-command-in-go/24095983#24095983

https://stackoverflow.com/questions/66854550/golang-linux-add-an-user-with-help-of-exec

https://stackoverflow.com/questions/66854550/golang-linux-add-an-user-with-help-of-exec

export PATH=$PATH:/usr/local/go/bin

-d /var/www/vhosts/automan.biz/

userdel -r automan

contabo::root:MR657GDREx

sudo netstat -tulpn | grep LISTEN

sudo apt install openssh-server

nc -v -z 127.0.0.1 22

ls -ld /var/www/vhosts/automan.biz/

usermod -G
usermod -g sftponly automan
usermod -G sftponly automan

How to permanently set $PATH on Linux/Unix

You need to add it to your ~/.profile or ~/.bashrc file.

nano .profile

 export PATH = "$PATH:/usr/local/go/bin"

chown -R automan /var/www/vhosts/automan.biz/

After that execute the following

It will automatically update your path for the remainder of the session.
source ~/.profile

Linux Pipe in golang

Reference

Services we are going to implement

PowerDNS

Dynamic DNS

How to build Dynamic DNS

mDNS

mDNS or Multicast DNS can be used to discover services on the local network without the use of an authoritative DNS server. This enables peer-to-peer discovery. It is important to note that many networks restrict the use of multicasting, which prevents mDNS from functioning. Notably, multicast cannot be used in any sort of cloud, or shared infrastructure environment. However it works well in most office, home, or private infrastructure environments.

Google drive

Maddy Emailserver

PostFix, DoveCot, Mysql, Spamassassin

Postgrey Greylisting

Greylisting in short means that when someone wants to deliver a mail to your mail server it will simply reply -Please come back later-?. That is something all RFC-compliant mail servers do and when they do come back the mail is accepted. Most spammers and spam software are not compliant and not patient enough to try again. You will be surprised to see how effective this is.

Email Client

SFTP chroot

Reverse Proxy

Expose a local server behind a NAT or firewall to the internet.

VPN Service

Tutorial

Parentral Control DNS

Ad Blocker

WebRTC

Distributed real-time communication system, the goal is to chat anydevice, anytime, anywhere

About

Binary app hosting


Languages

Language:Go 97.6%Language:Shell 2.4%