Kategori: Linux (Sida 1 av 30)

Install Filerun on Unraid

(totally based on the guide Nelo wrote on the Filerun forum, unraid-docker-guide)

This guide describes to to manually add filerun to your Unraid server, the need for this guide arose when afians community application (CA) went AWOL.

NOTE: You need to add MariaDB docker before following this guide. In the database you also need to add a database (filerun), a database user (filerun) and a password for the database user (supersecretpassword)

TIP: An easy way to add user/database/password is to use the docker PHPMyAdmin, you can find it under community applications

In Unraid, on the docker page, begin by clicking Add container located in the bottom meny

On the empty template page, start by switching to advanced view by toggling the basic view switch

Fill in the fields as follow:

Template: <don’t touch this>
Name: Filerun – Official
Overview: This is Filerun, your own self hosted google driver alternative
Repository: filerun/filerun
Docker Hub URL: https://hub.docker.com/r/filerun/filerun
Icon URL: https://feedback.filerun.com/s/cache/9a/c9/9ac9d7f611e2b2e8520dd0d01dd5f10d.png
WebUI: http://[IP]:[PORT:80]/
Extra parameters: <leave empty unless you know what you are doing >
Post argument: <leave empty unless you know what you are doing >
CPU Pinning: <leave default unless you know what you are doing>
Network type: <leave default unless you know what you are doing>
Console shell command: <leave default unless you know what you are doing>
Privileged: off

Now, click Add another Path, Port, Variable, Label or Device

Choose variable

Add these five variables, repeat ”Add another Path, Port, Variable, Label or Device” for each variable.

Name: Database for Filerun
Key: FR_DB_HOST
Value: localhost
Default Value:
Description:
Display:
Required: Yes
Password Mask: No

Name: Database port
Key: FR_DB_PORT
Value: 3306
Default Value:
Description:
Display:
Required: Yes
Password Mask: No

Name: Filerun database name
Key: FR_DB_NAME
Value: filerun
Default Value:
Description:
Display:
Required: Yes
Password Mask: No

Name: Filerun database user
Key:  FR_DB_USER
Value: filerun
Default Value:
Description:
Display:
Required: Yes
Password Mask: No

Name: Filerun database user password
Key: FR_DB_PASS
Value: supersecretpassword
Default Value:
Description:
Display:
Required: Yes
Password Mask: Yes

Now click Add another Path, Port, Variable and select port

Enter these values

Name: Web UI port
Container port: 80
Host port: 9898
Default value:
Connection type: TCP
Description:
Display:
Required: Yes
Password mask: No

Finally, click Now click Add another Path, Port, Variable and select type Path

And enter these values

Name: Data storage path
Container path: /user-files
Host path: /mnt/user/filerun
Default value:
Access mode: Read/Write
Description: Path for container data
Display: Always
Required: Yes
Password mask: No

Done!

Now press Apply to create and start your Filerun instance.

Motioneye och Debian 10 (Buster)

Du kommer att f? det h?r felet om du k?r Motioneye och uppgraderar din server till Debian 10:

ImportError: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by /usr/local/lib/python2.7/dist-packages/pycurl.so)

Problemet l?ser du enkelt med:

pip install --upgrade pycurl

(det l?ste mitt problem iallafall 🙂 )

tmux och bashrc

Jag har haft problem med att f? min tmux session att automatiskt starta n?r jag ansluter till servern med putty, Det h?nde helt enkelt ingenting.

Det jag ville skulle ske n?r jag loggar in ?r att kommandot: tmux attach-session -t shell skulle k?ras helt automagiskt. Det l?ter mig ha min ’vanliga’ session ig?ng s? att jag l?tt kan logga in och forts?tta d?r jag var efter att jag pausat och st?ngt putty.

Helsmidigt, det kommandot g?r ?r att ansluta till sessionen som heter shell, om den inte finns s? skapas en ny.

Problemet ?r att om jag l?gger in kommandot i .bashrc s? k?rs det inte 🙁

Magin ligger i att l?gga kommandor i filen .bash_profile d? fungerar allt!

Lite tmux info:
https://tmuxcheatsheet.com/
http://man7.org/linux/man-pages/man1/tmux.1.html
https://thoughtbot.com/blog/a-tmux-crash-course

<TL;DR;> L?gg tmux attach-session -t shell i .bash_profile

« Äldre inlägg

© 2022 Editio Princeps

Tema av Anders NorenUpp ↑