Add notes to fix jellyfin and nextcloud admin
All checks were successful
/ build (push) Successful in 3m41s
All checks were successful
/ build (push) Successful in 3m41s
This commit is contained in:
parent
033b5e4fac
commit
ee2ed84b6e
3 changed files with 64 additions and 6 deletions
|
@ -9,4 +9,5 @@ RUN mkdocs build
|
|||
|
||||
FROM nginx:alpine
|
||||
|
||||
EXPOSE 80
|
||||
COPY --from=build /docs/site/ /usr/share/nginx/html/
|
||||
|
|
46
docs/general-fix-notes.md
Normal file
46
docs/general-fix-notes.md
Normal file
|
@ -0,0 +1,46 @@
|
|||
|
||||
# General Notes
|
||||
|
||||
## Nextcloud
|
||||
|
||||
Lost admin privileges
|
||||
|
||||
connect to Nextcloud container and change to www-data (`su -s /bin/bash - www-data`)
|
||||
|
||||
```bash
|
||||
cd /var/www/html
|
||||
php occ user:list
|
||||
```
|
||||
|
||||
The user you need will be in the list and need the UUID
|
||||
|
||||
```bash
|
||||
php occ group:adduser admin <uuid>
|
||||
```
|
||||
|
||||
## Jellyfin
|
||||
|
||||
### Fix lost admin privileges
|
||||
|
||||
Change jellyfin pod to run bash instead of jellyfin
|
||||
|
||||
Install SQLlite in the new temporary pod
|
||||
|
||||
```bash
|
||||
apt update
|
||||
apt install sqlite3
|
||||
```
|
||||
|
||||
Backup the database just in case
|
||||
|
||||
```bash
|
||||
cp /config/data/jellyfin.db{,.bak}
|
||||
```
|
||||
|
||||
Update the permissions:
|
||||
|
||||
```bash
|
||||
UPDATE Permissions SET Value = 1 WHERE (Kind = 0 OR Kind = 3 OR Kind = 4 OR Kind = 5 OR Kind = 6 OR Kind = 7 OR Kind = 8 OR Kind = 9 OR Kind = 10 OR Kind = 11 OR Kind = 12 OR Kind = 13 OR Kind = 14 OR Kind = 15 OR Kind = 16 OR Kind = 17 OR Kind = 18 OR Kind = 19 OR Kind = 20 OR Kind = 21) AND UserId IN (SELECT Id FROM Users WHERE Username = 'AdminUsername');
|
||||
|
||||
.exit
|
||||
```
|
|
@ -1,10 +1,21 @@
|
|||
# Physical Network
|
||||
|
||||
``` mermaid
|
||||
graph LR
|
||||
A[Start] --> B{Error?};
|
||||
B -->|Yes| C[Hmm...];
|
||||
C --> D[Debug];
|
||||
D --> B;
|
||||
B ---->|No| E[Yay!];
|
||||
graph TB
|
||||
C(Opnsense) --> A;
|
||||
D(laundry AP) --> A;
|
||||
E(Loft AP) --> A;
|
||||
A[Laundry Switch] <-->|Outside| B[Garage Switch];
|
||||
B --> F(Microserver)
|
||||
B --> G(kubemaster)
|
||||
B --> H(agent0)
|
||||
B --> I(agent1)
|
||||
B --> J(agent2)
|
||||
P[bedroom] <--> B
|
||||
L(TV) --> K
|
||||
M(Kodi) --> K
|
||||
N(OrangeTV) --> K
|
||||
O(Retropie) --> K
|
||||
K[lounge switch] <--> B
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue