mirror of
https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git
synced 2025-12-29 03:23:00 +03:00
README.md rework
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
DPkg::Pre-Invoke {"stat -c %Z /usr/lib/x86_64-linux-gnu/opera/opera > /tmp/opera.timestamp";};
|
||||
DPkg::Post-Invoke {"if [ `stat -c %Z /usr/lib/x86_64-linux-gnu/opera/opera` -ne `cat /tmp/opera.timestamp` ]; then /root/.scripts/fix-opera.sh; fi; rm /tmp/opera.timestamp";};
|
||||
DPkg::Post-Invoke {"if [ `stat -c %Z /usr/lib/x86_64-linux-gnu/opera/opera` -ne `cat /tmp/opera.timestamp` ]; then ~root/.scripts/fix-opera.sh; fi; rm /tmp/opera.timestamp";};
|
||||
|
||||
83
README.md
83
README.md
@@ -4,14 +4,7 @@
|
||||
* It script must be execute all times opera will fails on showing html5 media content.
|
||||
* Now it also fixes WidevineCdm support for DRM video. You can try it on Vevo youtube channel for example.
|
||||
|
||||
## Index
|
||||
|
||||
* [Requirements](#Requirements)
|
||||
* [How use](#How-use)
|
||||
* [Create an alias](#Create-an-alias)
|
||||
* [Autostart after upgrade](#Autostart-after-upgrade)
|
||||
|
||||
### Requirements
|
||||
## Requirements
|
||||
|
||||
1. **wget** (Is needed for downloading the ffmpeg lib and Chrome)
|
||||
```sudo apt install wget```
|
||||
@@ -19,7 +12,7 @@
|
||||
2. **unzip**, **binutils** (Is needed for unpacking the downloaded file)
|
||||
```sudo apt install unzip binutils```
|
||||
|
||||
### How use
|
||||
## Usage
|
||||
|
||||
1. Clone this repo
|
||||
|
||||
@@ -29,73 +22,31 @@
|
||||
|
||||
```cd ./fix-opera-linux-ffmpeg-widevine```
|
||||
|
||||
3. Give execute permissions to the script file
|
||||
|
||||
```chmod +x ./fix-opera.sh```
|
||||
|
||||
4. Execute the script using sudo (Is needed for put the ffmpeg lib into the opera instalation folder)
|
||||
3. (*Optional*) Now you can simply start the script with superuser rights, but I'd recommend to skip this step and go forward.
|
||||
|
||||
```sudo ./fix-opera.sh```
|
||||
|
||||
### Create an alias
|
||||
|
||||
1. Clone this repo
|
||||
4. Create a **.scripts** folder on **root**'s **home**
|
||||
|
||||
```git clone https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git```
|
||||
```sudo mkdir ~root/.scripts```
|
||||
|
||||
2. Create a **script** folder on your **home**
|
||||
5. Copy the script into the **.scripts** folder
|
||||
|
||||
```mkdir ~/.scripts```
|
||||
```sudo cp ./fix-opera.sh ~root/.scripts```
|
||||
|
||||
3. Copy the script into the **script** folder
|
||||
6. Choose one or both options
|
||||
* (*Optional*) Create an **alias**. And then you'll be able to start it by typing ```fix-opera``` command in terminal.
|
||||
|
||||
```cp ./fix-opera-linux-ffmpeg-widevine/fix-opera.sh ~/.scripts```
|
||||
```echo "alias fix-opera='sudo ~root/.scripts/fix-opera.sh' # Opera fix HTML5 media" >> ~/.bashrc```
|
||||
|
||||
4. Give execute permissions to the script file
|
||||
|
||||
```chmod +x ~/.scripts/fix-opera.sh```
|
||||
```source ~/.bashrc```
|
||||
|
||||
5. Create an **alias** on the **.bashrc** file (Remember replace **<YOUR_USER>** for your linux user)
|
||||
|
||||
```echo "alias fix-opera='sudo /home/<YOUR_USER>/.scripts/fix-opera.sh' # Opera fix HTML5 media" >> ~/.bashrc```
|
||||
|
||||
6. Update **.bashrc** file
|
||||
|
||||
```source ~/.bashrc```
|
||||
|
||||
7. Delete the repo
|
||||
|
||||
```rm -rf ./fix-opera-linux-ffmpeg-widevine```
|
||||
### Autostart after upgrade (Debian-based distros)
|
||||
|
||||
1. Clone this repo
|
||||
|
||||
```git clone https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git```
|
||||
|
||||
2. Create a **script** folder on **/root**
|
||||
|
||||
```sudo mkdir /root/.scripts```
|
||||
|
||||
3. Copy the script into the **script** folder
|
||||
|
||||
```sudo cp ./fix-opera-linux-ffmpeg-widevine/fix-opera.sh /root/.scripts```
|
||||
|
||||
4. Give execute permissions to the script file
|
||||
|
||||
```sudo chmod +x /root/.scripts/fix-opera.sh```
|
||||
|
||||
5. Copy apt config file into the **script** folder
|
||||
|
||||
```sudo cp ./fix-opera-linux-ffmpeg-widevine/99fix-opera /root/.scripts```
|
||||
|
||||
6. Create symlink
|
||||
|
||||
```sudo ln -s /root/.scripts/99fix-opera /etc/apt/apt.conf.d/```
|
||||
|
||||
7. (Optional) Create an **alias**
|
||||
|
||||
```echo "alias fix-opera='sudo /root/.scripts/fix-opera.sh' # Opera fix HTML5 media" >> ~/.bashrc```
|
||||
* (*Optional*) Autostart after each opera upgrade (Debian-based distros)
|
||||
|
||||
```sudo cp ./99fix-opera ~root/.scripts```
|
||||
|
||||
```sudo ln -s ~root/.scripts/99fix-opera /etc/apt/apt.conf.d/```
|
||||
|
||||
8. Delete the repo
|
||||
|
||||
```rm -rf ./fix-opera-linux-ffmpeg-widevine```
|
||||
```cd .. && rm -rf ./fix-opera-linux-ffmpeg-widevine```
|
||||
|
||||
Reference in New Issue
Block a user