Skip to content

Instantly share code, notes, and snippets.

@glenn-sorrentino
Created December 22, 2023 00:30
Show Gist options
  • Save glenn-sorrentino/88415ae466ac52448d7cb46a80040140 to your computer and use it in GitHub Desktop.
Save glenn-sorrentino/88415ae466ac52448d7cb46a80040140 to your computer and use it in GitHub Desktop.
mastodon-scheduler.app install printout
root@debian-s-1vcpu-512mb-10gb-sfo3-01:~# curl https://raw.githubusercontent.com/glenn-sorrentino/mastodon-scheduler/hosted/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4068 100 4068 0 0 84303 0 --:--:-- --:--:-- --:--:-- 84750
Get:1 file:/etc/apt/mirrors/debian.list Mirrorlist [39 B]
Get:5 file:/etc/apt/mirrors/debian-security.list Mirrorlist [27 B]
Hit:6 http://security.debian.org bookworm-security InRelease
Hit:2 http://mirrors.digitalocean.com/debian bookworm InRelease
Hit:7 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease
Hit:3 http://mirrors.digitalocean.com/debian bookworm-updates InRelease
Hit:4 http://mirrors.digitalocean.com/debian bookworm-backports InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3 is already the newest version (3.11.2-1+b1).
python3-pip is already the newest version (23.0.1+dfsg-1).
python3-venv is already the newest version (3.11.2-1+b1).
python3.11-venv is already the newest version (3.11.2-6).
lsof is already the newest version (4.95.0-1).
unattended-upgrades is already the newest version (2.9.1+nmu3).
sqlite3 is already the newest version (3.40.1-2).
libnss3-tools is already the newest version (2:3.87.1-1).
ufw is already the newest version (0.36.2-1).
fail2ban is already the newest version (1.0.2-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6835 100 6835 0 0 124k 0 --:--:-- --:--:-- --:--:-- 125k
Get:1 file:/etc/apt/mirrors/debian.list Mirrorlist [39 B]
Get:5 file:/etc/apt/mirrors/debian-security.list Mirrorlist [27 B]
Hit:6 http://security.debian.org bookworm-security InRelease
Hit:2 http://mirrors.digitalocean.com/debian bookworm InRelease
Hit:7 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease
Hit:3 http://mirrors.digitalocean.com/debian bookworm-updates InRelease
Hit:4 http://mirrors.digitalocean.com/debian bookworm-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.39.2-1.1).
certbot is already the newest version (2.1.0-4).
python3-certbot-nginx is already the newest version (2.1.0-2).
nginx is already the newest version (1.22.1-9).
whiptail is already the newest version (0.52.23-1+b1).
tor is already the newest version (0.4.7.16-1).
libnginx-mod-http-geoip is already the newest version (1.22.1-9).
geoip-database is already the newest version (20230203-1).
unattended-upgrades is already the newest version (2.9.1+nmu3).
libssl-dev is already the newest version (3.0.11-1~deb12u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Domain: mastodon-scheduler.app
RunAsDaemon 1
HiddenServiceDir /var/lib/tor/mastodon-scheduler.app/
HiddenServicePort 80 127.0.0.1:80
2023/12/22 00:28:44 [warn] 17056#17056: conflicting server name "mastodon-scheduler.app" on 0.0.0.0:80, ignored
2023/12/22 00:28:44 [warn] 17056#17056: conflicting server name "www.mastodon-scheduler.app" on 0.0.0.0:80, ignored
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
2023/12/22 00:28:44 [warn] 17065#17065: conflicting server name "mastodon-scheduler.app" on 0.0.0.0:80, ignored
2023/12/22 00:28:44 [warn] 17065#17065: conflicting server name "www.mastodon-scheduler.app" on 0.0.0.0:80, ignored
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Cloning into 'mastodon-scheduler'...
remote: Enumerating objects: 1673, done.
remote: Counting objects: 100% (429/429), done.
remote: Compressing objects: 100% (89/89), done.
remote: Total 1673 (delta 355), reused 405 (delta 340), pack-reused 1244
Receiving objects: 100% (1673/1673), 948.09 KiB | 6.36 MiB/s, done.
Resolving deltas: 100% (899/899), done.
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for mastodon-scheduler.app and qsxf7vundxlug4esgbs637o4wi7xamoh2lx4oibqrnb2z2pvlrdaq5idonion.mastodon-scheduler.app
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/mastodon-scheduler.app/fullchain.pem
Key is saved at: /etc/letsencrypt/live/mastodon-scheduler.app/privkey.pem
This certificate expires on 2024-03-20.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.
Deploying certificate
Successfully deployed certificate for mastodon-scheduler.app to /etc/nginx/sites-enabled/mastodon-scheduler.app.nginx
Successfully deployed certificate for qsxf7vundxlug4esgbs637o4wi7xamoh2lx4oibqrnb2z2pvlrdaq5idonion.mastodon-scheduler.app to /etc/nginx/sites-enabled/mastodon-scheduler.app.nginx
Congratulations! You have successfully enabled HTTPS on https://mastodon-scheduler.app and https://qsxf7vundxlug4esgbs637o4wi7xamoh2lx4oibqrnb2z2pvlrdaq5idonion.mastodon-scheduler.app
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
* Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
* Donating to EFF: https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
✅ Installation complete!
https://mastodon-scheduler.app
https://qsxf7vundxlug4esgbs637o4wi7xamoh2lx4oibqrnb2z2pvlrdaq5idonion.mastodon-scheduler.app;
http://qsxf7vundxlug4esgbs637o4wi7xamoh2lx4oibqrnb2z2pvlrdaq5id.onion
branch 'hosted' set up to track 'origin/hosted'.
Switched to a new branch 'hosted'
Collecting Flask
Using cached flask-3.0.0-py3-none-any.whl (99 kB)
Collecting Mastodon.py
Using cached Mastodon.py-1.8.1-py2.py3-none-any.whl (65 kB)
Collecting pytz
Using cached pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
Collecting gunicorn
Using cached gunicorn-21.2.0-py3-none-any.whl (80 kB)
Collecting flask_httpauth
Using cached Flask_HTTPAuth-4.8.0-py3-none-any.whl (7.0 kB)
Collecting Werkzeug
Using cached werkzeug-3.0.1-py3-none-any.whl (226 kB)
Collecting Flask-SQLAlchemy
Using cached flask_sqlalchemy-3.1.1-py3-none-any.whl (25 kB)
Collecting cryptography
Using cached cryptography-41.0.7-cp37-abi3-manylinux_2_28_x86_64.whl (4.4 MB)
Collecting Jinja2>=3.1.2
Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting itsdangerous>=2.1.2
Using cached itsdangerous-2.1.2-py3-none-any.whl (15 kB)
Collecting click>=8.1.3
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Collecting blinker>=1.6.2
Using cached blinker-1.7.0-py3-none-any.whl (13 kB)
Collecting requests>=2.4.2
Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Collecting python-dateutil
Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting six
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting decorator>=4.0.0
Using cached decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting blurhash>=1.1.4
Using cached blurhash-1.1.4-py2.py3-none-any.whl (5.3 kB)
Collecting python-magic
Using cached python_magic-0.4.27-py2.py3-none-any.whl (13 kB)
Collecting packaging
Using cached packaging-23.2-py3-none-any.whl (53 kB)
Collecting MarkupSafe>=2.1.1
Using cached MarkupSafe-2.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (28 kB)
Collecting sqlalchemy>=2.0.16
Using cached SQLAlchemy-2.0.23-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB)
Collecting cffi>=1.12
Downloading cffi-1.16.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (464 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 464.8/464.8 kB 12.5 MB/s eta 0:00:00
Collecting pycparser
Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 21.5 MB/s eta 0:00:00
Collecting charset-normalizer<4,>=2
Downloading charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (140 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.3/140.3 kB 22.0 MB/s eta 0:00:00
Collecting idna<4,>=2.5
Downloading idna-3.6-py3-none-any.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.6/61.6 kB 11.8 MB/s eta 0:00:00
Collecting urllib3<3,>=1.21.1
Downloading urllib3-2.1.0-py3-none-any.whl (104 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 104.6/104.6 kB 12.5 MB/s eta 0:00:00
Collecting certifi>=2017.4.17
Downloading certifi-2023.11.17-py3-none-any.whl (162 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.5/162.5 kB 27.1 MB/s eta 0:00:00
Collecting typing-extensions>=4.2.0
Downloading typing_extensions-4.9.0-py3-none-any.whl (32 kB)
Collecting greenlet!=0.4.17
Downloading greenlet-3.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (620 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 620.0/620.0 kB 59.2 MB/s eta 0:00:00
Installing collected packages: pytz, blurhash, urllib3, typing-extensions, six, python-magic, pycparser, packaging, MarkupSafe, itsdangerous, idna, greenlet, decorator, click, charset-normalizer, certifi, blinker, Werkzeug, sqlalchemy, requests, python-dateutil, Jinja2, gunicorn, cffi, Mastodon.py, Flask, cryptography, Flask-SQLAlchemy, flask_httpauth
Successfully installed Flask-3.0.0 Flask-SQLAlchemy-3.1.1 Jinja2-3.1.2 MarkupSafe-2.1.3 Mastodon.py-1.8.1 Werkzeug-3.0.1 blinker-1.7.0 blurhash-1.1.4 certifi-2023.11.17 cffi-1.16.0 charset-normalizer-3.3.2 click-8.1.7 cryptography-41.0.7 decorator-5.1.1 flask_httpauth-4.8.0 greenlet-3.0.3 gunicorn-21.2.0 idna-3.6 itsdangerous-2.1.2 packaging-23.2 pycparser-2.21 python-dateutil-2.8.2 python-magic-0.4.27 pytz-2023.3.post1 requests-2.31.0 six-1.16.0 sqlalchemy-2.0.23 typing-extensions-4.9.0 urllib3-2.1.0
Automatic updates have been installed and configured.
Configuring fail2ban...
Synchronizing state of fail2ban.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable fail2ban
Configuring UFW...
Default incoming policy changed to 'deny'
(be sure to update your rules accordingly)
Default outgoing policy changed to 'allow'
(be sure to update your rules accordingly)
Rules updated
Rules updated (v6)
Rules updated
Rules updated (v6)
Rules updated
Rules updated (v6)
Rules updated
Rules updated (v6)
Command may disrupt existing ssh connections. Proceed with operation (y|n)? Firewall is active and enabled on system startup
UFW configuration complete.
2023/12/22 00:29:16 [warn] 17451#17451: conflicting server name "mastodon-scheduler.app" on 0.0.0.0:80, ignored
2023/12/22 00:29:16 [warn] 17451#17451: conflicting server name "www.mastodon-scheduler.app" on 0.0.0.0:80, ignored
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
2023/12/22 00:29:17 [warn] 17459#17459: conflicting server name "mastodon-scheduler.app" on 0.0.0.0:80, ignored
2023/12/22 00:29:17 [warn] 17459#17459: conflicting server name "www.mastodon-scheduler.app" on 0.0.0.0:80, ignored
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Created symlink /etc/systemd/system/multi-user.target.wants/mastodon_app.service → /etc/systemd/system/mastodon_app.service.
Checking for processes on port 5000...
Starting Mastodon app service...
✅ Automatic updates have been installed and configured.
✅ Setup complete. Rebooting in 3 seconds...
⏲️ Rebooting in 3 seconds...
root@debian-s-1vcpu-512mb-10gb-sfo3-01:~# Connection to 146.190.142.60 closed by remote host.
Connection to 146.190.142.60 closed.
glennsorrentino@m1 .ssh %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment