This repository is the core of all other OT related repository.
Nothing will work if this repository isn't installed, and variables changed.
The config file here will include all variables to run other OT repos.
cd
git clone https://github.com/calr0x/OT-Settings.git
cd OT-Settings
cp config-example.sh config.sh
nano config.sh
Essentially, what we are doing here is make a local copy of the config-example.sh file and name it config.sh.
You do not want to change config-example.sh since this will be modified every time you want to git pull (aka update) your repository.
Every change made will be done on config.sh, and every other OT repository will be sourcing from config.sh.
Follow the commented out instructions in the config.sh file and fill up the variables. If you need help, consult the guide below.
Below is a command that updates all projects currently installed in your system. Run this to get the latest updates for all repositories.
cd OT-Settings
./update-all-projects.sh
This section will cover how to get each variable to put inside config.sh
Getting your S3 Bucket URL:
- Log in to your Amazon AWS account
- Go to Buckets
- Create bucket
- Choose the name of your bucket and leave the rest as default
- Your URL is as follows : s3:https://s3.amazonaws.com/YOU_BUCKET_NAME
- Paste this link into config.sh
export RESTIC_REPOSITORY="s3:https://s3.amazonaws.com/YOU_BUCKET_NAME"
- Select your desired password and put it in
export RESTIC_PASSWORD="REPLACE_WITH_RESTIC_REPOSITORY_PASSWORD"
Getting your AWS Access Key ID and Secret Access Key:
- Log in to your Amazon AWS account
- Click on your username on the top right corner
- Select My Security Credentials
- Go to Access keys (access key ID and secret access key)
- Create New Access Key
- Both keys will be shown, make sure to keep them safely
- Paste keys to
export AWS_ACCESS_KEY_ID="REPLACE_WITH_AWS_ACCESS_KEY"
export AWS_SECRET_ACCESS_KEY="REPLACE_WITH_AWS_SECRET_ACCESS_KEY"
Getting your Telegram bot token:
- Add @botfather on Telegram
- Follow the on-screen instructions to create your chat bot
- Paste the code into
export TELEGRAM_TOKEN="REPLACE_WITH_TELEGRAM_TOKEN"
Getting your chat ID:
- Add @IDBot
- Type /start
- Type /getid
- Paste the code into
export CHAT_ID="REPLACE_WITH_TELEGRAM_CHAT_ID"