Skip to content

Commit

Permalink
Update INSTALL.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiland committed Oct 6, 2024
1 parent 2eb9d13 commit fad3084
Showing 1 changed file with 18 additions and 69 deletions.
87 changes: 18 additions & 69 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,41 @@
#### Download and execute the script

For latest release

```bash
curl -s https://api.github.com/repos/tmiland/Invidious-Updater/releases/latest \
| grep "browser_download_url.*sh" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
```
***Note: you will be prompted to enter root password***

```bash
chmod +x invidious_update.sh
./invidious_update.sh
```
Or directly
If root password is not set, type:

```bash
curl -sSL https://github.com/tmiland/Invidious-Updater/releases/latest/download/invidious_update.sh | bash
sudo passwd root
```

For master branch
Log in as root
```bash
wget https://github.com/tmiland/Invidious-Updater/raw/master/invidious_update.sh
chmod +x invidious_update.sh
./invidious_update.sh
su root
```
### Repository

```shell
sudo curl -SsL -o /etc/apt/sources.list.d/tmiland.list https://deb.tmiland.com/debian/tmiland.list
```
To install this script:
- Latest release
```bash
curl -sSL https://github.com/tmiland/Invidious-Updater/raw/master/install.sh | bash release
```
- Master
```bash
curl -sSL https://github.com/tmiland/Invidious-Updater/raw/master/install.sh
```

```shell
curl -SsL https://deb.tmiland.com/debian/KEY.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/tmiland-archive-keyring.gpg >/dev/null
```
### Repository

```shell
sudo apt update
```

```shell
sudo curl -SsL -o /etc/apt/sources.list.d/tmiland.list https://deb.tmiland.com/debian/tmiland.list && \
curl -SsL https://deb.tmiland.com/debian/KEY.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/tmiland-archive-keyring.gpg >/dev/null && \
sudo apt update && \
sudo apt install invidious-updater
```

- Run script with ```invidious_update ```

- ***Only for Debian/Ubuntu/LinuxMint/PureOS***

#### Check for script update (Default "no")

```bash

./invidious_update.sh -u

```

#### Update Invidious via Cron

**Select option 2 once to manually set GitHub Credentials**
Expand All @@ -72,34 +52,3 @@ crontab -e
```bash
@daily bash /path/to/script/invidious_update.sh -c > /dev/null 2>&1 # Automated Invidious Update
```

***Note: you will be prompted to enter root password***

If root password is not set, type:

```bash
sudo passwd root
```

#### Install inv sig helper
This option will install [inv_sig_helper](https://github.com/iv-org/inv_sig_helper)
```bash

/path/to/script/invidious_update.sh -i

```

#### Update YouTube trusted session generator
This option will install [YouTube trusted session generator](https://github.com/iv-org/youtube-trusted-session-generator)
```bash

/path/to/script/invidious_update.sh -y

```
Add job to cron to periodically update po_token and visitor_data:
```bash
crontab -e
```
```bash
@daily bash /path/to/script/invidious_update.sh -y > /dev/null 2>&1 # Automated YouTube trusted session generator update
```

0 comments on commit fad3084

Please sign in to comment.