This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get update | |
| sudo apt-get install snapd | |
| sudo snap install core; sudo snap refresh core | |
| sudo snap install --classic certbot | |
| sudo ln -s /snap/bin/certbot /usr/bin/certbot | |
| sudo certbot certonly --standalone -d yourdomain.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #A daemon process runs your command/ application in the background. This gist explains on how to set it up and use it. | |
| sudo -s | |
| cd /etc/systemd/system/ | |
| nano custom-daemon.service | |
| #Begin file | |
| [Unit] | |
| Description=Custom daemon process | |
| After=network.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo -s | |
| apt-get update | |
| apt-get install apache2 | |
| cd /etc/apache2/sites-available | |
| nano a_new_website.conf | |
| #begin of file | |
| <VirtualHost *:8080> | |
| ServerAdmin admin@example.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo -s | |
| apt-get update | |
| apt-get install apache2 | |
| apt-get install tor | |
| nano /etc/apache2/sites-available/tor_website.conf | |
| #tor_website.conf file contents: | |
| #begin of file | |
| <VirtualHost *:8080> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #First we create a new ssh user for our tunnel. In this example we will create a tunnel so a minecraft player can only access- | |
| #our server using the tunnel connection. | |
| #On vps (linux) as root user: | |
| adduser mc_user | |
| groupadd ssh_tunnel | |
| usermod -aG ssh_tunnel mc_user | |
| #Now edit the /etc/ssh/sshd_config file with an editor: |