For Unraid 6.12 and newer with Community Applications (the Apps tab). About
15 minutes. Maktaba runs as Unraid's own nobody user (99, group
users 100), never as root.
Before you start
- Memory: 8 GB or more is comfortable; Maktaba runs from 4 GB.
-
A pool for the data folder: Maktaba's database must live on a cache pool
or a single disk, such as
/mnt/cache/appdata/maktaba, never on the array's/mnt/usershare. Setup refuses the array for it, because its database would be slow and corruptible there. Your media stays on the array. -
Hardware video (optional): with an Intel or AMD chip, check that
/dev/driexists (Tools → System Devices, orls /dev/driin the terminal). If it is missing, install the Intel GPU TOP plugin from Apps, which loads the driver.
1. Find Maktaba in Apps
Apps → search Maktaba → Install. Until Community
Applications lists it: Docker → Add Container →
Template repositories, add
https://github.com/Hamza-Labs-Core/Maktaba and Save, then
choose Maktaba under Template.
2. Fill in the template
-
Data: keep
/mnt/cache/appdata/maktaba, or another pool's appdata folder. Make it Maktaba's before you Apply: Docker would make it as root, and Maktaba, which never runs as root, would stop at once. Open the terminal (>_ at the top right) and runmkdir -p /mnt/cache/appdata/maktaba && chown 99:100 /mnt/cache/appdata/maktaba(your path, if you changed it). -
Media: your share, for example
/mnt/user/Media. Set Container Path to the same path as Host Path: machines that join this home later find the same share. Set Access Mode to Read Only where Maktaba must never write. Add another Path for each further share. - Time zone: yours, for example
Asia/Riyadh. -
Render device: keep
/dev/drifor hardware video, and add the render group to Extra Parameters:--user 99:100 --stop-timeout 90 --group-add 18, where 18 is whatstat -c %g /dev/dri/renderD128prints on your server. Without a GPU, remove the device. - Network Type: keep Host. Your phones and TVs then find Maktaba by themselves.
- Ports, only if another container already uses 8088, 8080, 8081 or 54329 (Plex or another media app, for one): Show more settings → Web port, API port, Live TV port or Database port, a free port in each you change. Left empty, Maktaba moves a taken web, API or live TV port to a free one between 8780 and 8790 by itself; a port you set is never moved (A port is taken).
Apply. Unraid downloads the image and starts the container.
3. Let Maktaba read your shares
Unraid's shares belong to nobody:users, so Maktaba can usually read them as
they are. Files copied in another way (over SSH as root, by another container as another
user) may not be readable: Tools → Docker Safe New Perms gives them back to
nobody:users. A share Maktaba can't read shows No access
in Maktaba, with this fix.
4. Run the setup
Docker → click Maktaba's icon → Console, and run:
/opt/maktaba/server/bin/maktaba-server container setup
Answer its questions: a name for the admin account (not admin, which Maktaba
keeps for itself), its password, and the folders with your videos. The NAS needs the
internet for this step: setup downloads the transcription and search tools (about 2 GB) and
the speech models. Maktaba starts by itself when it finishes. Open
WebUI from the icon's menu, or
http://<your server>:8088. With another web port, type
http://<your server>:<port> instead: the WebUI item always opens
8088. Sign in, then add a library for each folder:
Manage → Manage libraries → Add library (After setup).
The home, or storage for another
These steps make the NAS your Maktaba home, on any memory tier. Setup asks, for each folder, the share your other computers open it by (it works it out where it can), so a computer with a graphics card can join the home later and take the heavy work (After setup). If the home runs on another computer instead, the NAS needs no Maktaba at all: share its folders, and that home reads them over the network. A Standard or Strong NAS may also join a home elsewhere as one of its machines; a Light one is warned first (Home, machine or storage).
After setup
- When the array is stopped, the shares are gone for a while: libraries show No access, and nothing in them is treated as deleted. Start the array and press Check access.
- Updates: Maktaba updates itself inside its update window (Manage → Updates). Unraid's "update ready" for the image is not needed; applying it does no harm. Keep room on the pool for the backup taken first; a release that cannot change the database goes back by itself (An update did not go through).
- After setup for quiet hours, speech to text, a reverse proxy and adding a computer with a GPU; Troubleshooting for each message.