This sheet goes along with this SSH YouTube tutorial
$ ssh brad@192.168.1.29
$ mkdir test
$ cd test
$ ssh brad@192.168.1.29
$ mkdir test
$ cd test
Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:
Up Arrow: Will show your last commandDown Arrow: Will show your next commandTab: Will auto-complete your commandCtrl + L: Will clear the screenThese are the steps to setup an Ubuntu server from scratch and deploy a MERN app with the PM2 process manager and Nginx. We are using Linode, but you could just as well use a different cloud provider or your own machine or VM.
Create an account at Linode
Click on Create Linode
Choose your server options (OS, region, etc)
| name | alpha-2 | alpha-3 | country-code | iso_3166-2 | region | sub-region | intermediate-region | region-code | sub-region-code | intermediate-region-code | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Afghanistan | AF | AFG | 004 | ISO 3166-2:AF | Asia | Southern Asia | 142 | 034 | |||
| Åland Islands | AX | ALA | 248 | ISO 3166-2:AX | Europe | Northern Europe | 150 | 154 | |||
| Albania | AL | ALB | 008 | ISO 3166-2:AL | Europe | Southern Europe | 150 | 039 | |||
| Algeria | DZ | DZA | 012 | ISO 3166-2:DZ | Africa | Northern Africa | 002 | 015 | |||
| American Samoa | AS | ASM | 016 | ISO 3166-2:AS | Oceania | Polynesia | 009 | 061 | |||
| Andorra | AD | AND | 020 | ISO 3166-2:AD | Europe | Southern Europe | 150 | 039 | |||
| Angola | AO | AGO | 024 | ISO 3166-2:AO | Africa | Sub-Saharan Africa | Middle Africa | 002 | 202 | 017 | |
| Anguilla | AI | AIA | 660 | ISO 3166-2:AI | Americas | Latin America and the Caribbean | Caribbean | 019 | 419 | 029 | |
| Antarctica | AQ | ATA | 010 | ISO 3166-2:AQ |
| ######################################################################################################### | |
| GO-TO: https://github.com/compose-spec/compose-spec/blob/main/spec.md | |
| ######################################################################################################### | |
| GO-TO-RAW: https://raw.githubusercontent.com/compose-spec/compose-spec/refs/heads/main/spec.md | |
| ######################################################################################################### | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| } | |
| body { | |
| #background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d); | |
| background: linear-gradient(135deg, #122D5E, #2254B0, #122D5E); |
| <body> | |
| <div> | |
| <svg width="1123" height="837" viewBox="0 0 1123 837" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
| <rect width="1123" height="837" fill="black" /> | |
| <g id="sky" filter="url(#filter0_d)"> | |
| <rect id="background" x="30" y="26" width="1063" height="777" rx="20" fill="black" /> | |
| <g id="stars"> | |
| <path id="Vector" d="M202.12 319.2C204.937 319.2 207.22 316.917 207.22 314.1C207.22 311.283 204.937 309 202.12 309C199.303 309 197.02 311.283 197.02 314.1C197.02 316.917 199.303 319.2 202.12 319.2Z" fill="white" /> | |
| <path id="Vector_2" d="M566.12 615.2C568.937 615.2 571.22 612.917 571.22 610.1C571.22 607.283 568.937 605 566.12 605C563.303 605 561.02 607.283 561.02 610.1C561.02 612.917 563.303 615.2 566.12 615.2Z" fill="white" /> | |
| <path id="Vector_3" d="M351.12 638.95C352.694 638.95 353.97 637.674 353.97 636.1C353.97 634.526 352.694 633.25 351.12 633.25C349.546 633.25 348.27 634.526 348.27 636.1C348.27 637.674 349.546 638.95 351.12 638.95Z" fill="white" |
| #!/bin/bash | |
| # Цвета | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| YELLOW='\033[1;33m' | |
| BLUE='\033[0;34m' | |
| NC='\033[0m' | |
| # Порты для проверки (можно изменить) |
| sudo vim /etc/redis/redis.conf | |
| Change the following lines | |
| daemonize yes | |
| bind 127.0.0.1 | |
| dir /var/lib/redis | |
| wget https://gist.github.com/nightfox/8153193/raw/553c375424866e8d0d0bd5b48d23578c93031bce/redis-server |