New update

This commit is contained in:
foglar 2024-09-19 20:17:24 +02:00
parent a843fb6d3e
commit f7fbedf8d7
9 changed files with 285 additions and 12 deletions

View File

@ -11,14 +11,16 @@ GitHub is a cloud-based platform for hosting Git repositories, enabling version
- [Official webpage](https://cli.github.com/)
- Install on Arch with `sudo pacman -S github-cli`
- Install on Debian with
- Install on Debian with
```bash
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
```
- [Other installation instructions](https://raw.githubusercontent.com/cli/cli/trunk/docs/install_linux.md)

5
Hyprland/Catppuccin.md Normal file
View File

@ -0,0 +1,5 @@
# Catppuccin theme
## Bat
## Gitkraken

21
Hyprland/Sddm/README.md Normal file
View File

@ -0,0 +1,21 @@
# SDDM
## Installation and setup
- Install sddm package (`sudo pacman -S sddm`)
- Enable and start service `sudo systemctl enable sddm && sudo systemctl start sddm`
## Configuration
- Theme configuration file in `/etc/sddm.conf.d/kde_settings.conf`
- Preview sddm theme `sddm-greeter-qt6 --test-mode --theme /usr/share/sddm/themes/chili/`
- Change background - `/usr/share/sddm/themes/[theme_name]/theme.conf`
```conf
[General]
background=/path/to/background.png
```
- Create script for previewing all installed sddm themes
- Source: [Arch wiki](https://wiki.archlinux.org/title/SDDM)

View File

@ -0,0 +1,28 @@
#!/bin/bash
# Infinite loop to keep the script running after the user exits the greeter
while true; do
# List directories in /usr/share/sddm/themes
themes_dir="/usr/share/sddm/themes"
# List directories, extract only names, and append "Exit" option
themes=$(ls -d "$themes_dir"/*/ | xargs -n 1 basename)
last_chosen_theme="${chosen_theme}"
# Combine themes list with "Exit" option
options=$(echo -e "$themes\nSet theme ${last_chosen_theme}")
# Use gum to choose a theme or exit
chosen_theme=$(echo "$options" | gum choose)
# Check if the user chose "Exit", if so, break the loop and exit
if [ "$chosen_theme" == "Set theme ${last_chosen_theme}" ]; then
echo $themes_dir/$last_chosen_theme
break
fi
# If the user selects a theme, run the sddm-greeter in test mode
if [ -n "$chosen_theme" ]; then
sddm-greeter --test-mode --theme "$themes_dir/$chosen_theme" > /dev/null 2>&1
fi
done

View File

@ -0,0 +1,189 @@
name: photoprism
services:
photoprism:
container_name: photoprism
deploy:
resources:
reservations:
memory: "536870912"
limits:
memory: 8052M
environment:
- PHOTOPRISM_ADMIN_PASSWORD=casaos
- PHOTOPRISM_UPLOAD_NSFW=true
- TZ=Europe/Prague
image: photoprism/photoprism:231011
labels:
icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/PhotoPrism/icon.png
ports:
- target: 2342
published: "2342"
protocol: tcp
restart: unless-stopped
volumes:
- type: bind
source: /DATA/AppData/photoprism/photoprism/storage
target: /photoprism/storage
- type: bind
source: /DATA/Gallery
target: /photoprism/originals
x-casaos:
envs:
- container: TZ
description:
en_us: TimeZone
zh_cn: 时区
- container: PHOTOPRISM_UPLOAD_NSFW
description:
en_us: true or false, is it possible to upload NSFW
zh_cn: true 或 false是否允许上传 NSFW
- container: PHOTOPRISM_ADMIN_PASSWORD
description:
en_us: The password of admin
zh_cn: 管理员密码
ports:
- container: "2342"
description:
en_us: WebUI HTTP Port
zh_cn: WebUI HTTP 端口
volumes:
- container: /photoprism/storage
description:
en_us: PhotoPrism storage directory.
zh_cn: PhotoPrism 存储目录
- container: /photoprism/originals
description:
en_us: PhotoPrism originals directory.
zh_cn: PhotoPrism 原始文件目录
devices: []
cap_add: []
command: []
network_mode: bridge
privileged: false
hostname: photoprism
cpu_shares: 90
x-casaos:
architectures:
- amd64
- arm64
author: CasaOS Team
category: Gallery
description:
ar_sa: PhotoPrism® هو تطبيق يعمل بقوة AI لاستعراض وتنظيم ومشاركة مجموعة صورك.
يستخدمها التقنيات الأحدث للتسمية والعثور على الصور بشكل تلقائي دون أن
يتدخل في طريقك. يمكنك تشغيله في المنزل أو على خادم خاص أو في السحابة.
de_de: PhotoPrism® ist eine mit AI betriebene App zum Durchsuchen, Organisieren
und Teilen Ihrer Foto-Sammlung. Es nutzt die neuesten Technologien, um
Bilder automatisch zu kennzeichnen und zu finden, ohne Sie dabei zu
stören. Sie können es zu Hause, auf einem privaten Server oder in der
Cloud ausführen.
en_us: >
Your AI-Powered Photos App for the Decentralized Web
PhotoPrism brings the magic of AI to your home TV, phone, and multiple devices, revolutionizing the way you manage and share your photos. Unlike traditional photo albums that require manual organization, PhotoPrism automatically tags and finds your pictures, making it easier than ever to relive your memories. Whether you're showing family photos on your TV or sharing vacation snapshots on your phone, PhotoPrism makes the experience seamless and enjoyable.
PhotoPrism offers a host of features designed to enhance your photo management experience. With powerful search capabilities, automatic tagging, and a user-friendly interface, you'll find it easy to keep your photo collection organized. The app is free to use, with premium options available for those seeking additional features and support. Users can expect a smooth, intuitive experience that blends cutting-edge technology with everyday convenience.
Deploying PhotoPrism on Zima private cloud devices offers unparalleled convenience. Enjoy unlimited storage capacity, the speed of your local network, and access from multiple devices without the need for the internet. It's the perfect solution for NAS enthusiasts who value privacy and performance.
es_es: PhotoPrism® es una aplicación impulsada por IA para navegar, organizar y
compartir su colección de fotos. Hace uso de las últimas tecnologías para
etiquetar y encontrar fotos automáticamente sin molestarte. Puedes
ejecutarlo en casa, en un servidor privado o en la nube.
fr_fr: PhotoPrism® est une application alimentée par l'IA pour parcourir,
organiser et partager votre collection de photos. Il utilise les dernières
technologies pour étiqueter et trouver des photos automatiquement sans
vous déranger. Vous pouvez l'exécuter à la maison, sur un serveur privé ou
dans le cloud.
hu_hu: A PhotoPrism® egy AI-meghajtott alkalmazás, amely lehetővé teszi a
fényképek böngészését, rendezését és megosztását. A legújabb
technológiákat használja a képek automatikus címkézéséhez és
megtalálásához, anélkül, hogy bármit is akadályozna. Otthon, egy privát
szerveren vagy felhőben futtathatja.
it_it: PhotoPrism® è un'app alimentata da IA per sfogliare, organizzare e
condividere la tua collezione di foto. Fa uso delle ultime tecnologie per
etichettare e trovare le foto automaticamente senza disturbarti. Puoi
eseguirlo a casa, su un server privato o in cloud.
pl_pl: PhotoPrism® to aplikacja napędzana przez AI do przeglądania,
organizowania i udostępniania kolekcji zdjęć. Wykorzystuje najnowsze
technologie do automatycznego oznaczania i wyszukiwania zdjęć bez
przeszkadzania. Możesz uruchomić ją w domu, na prywatnym serwerze lub w
chmurze.
pt_br: PhotoPrism® é um aplicativo alimentado por IA para navegar, organizar e
compartilhar sua coleção de fotos. Ele usa as últimas tecnologias para
marcar e encontrar fotos automaticamente sem te incomodar. Você pode
executá-lo em casa, em um servidor privado ou na nuvem.
ru_ru: PhotoPrism® - это приложение, работающее на AI, для просмотра,
организации и обмена фотоколлекцией. Оно использует последние технологии
для автоматической маркировки и поиска фотографий без помех. Вы можете
запустить его дома, на частном сервере или в облаке.
sv_se: PhotoPrism® är en AI-drivet app för att bläddra, organisera och dela din
fotokollektion. Den använder de senaste teknologierna för att märka och
hitta bilder automatiskt utan att störa dig. Du kan köra det hemma, på en
privat server eller i molnet.
uk_ua: PhotoPrism® - це додаток, працюючий на AI, для перегляду, організації та
обміну фотоколекцією. Він використовує останні технології для
автоматичного позначення та пошуку фотографій без перешкод. Ви можете
запустити його додому, на приватному сервері або у хмарі.
zh_cn: >
您的去中心化的AI驱动的照片应用程序
PhotoPrism 将 AI 的魔力带入您的家庭电视、手机和多设备中彻底改变了您管理和分享照片的方式。不像传统的照片相册需要手动整理PhotoPrism 自动标记和查找您的照片让您更轻松地重温美好回忆。无论是通过电视展示家庭照片还是在手机上分享度假快照PhotoPrism 都能使这一过程变得无缝且愉快。
PhotoPrism 提供了一系列旨在增强您照片管理体验的功能。借助强大的搜索功能、自动标记和用户友好的界面,您将发现整理照片收藏变得轻而易举。该应用程序免费使用,并为那些寻求更多功能和支持的用户提供高级选项。用户可以期待一种融合前沿技术与日常便利的顺畅、直观的体验。
在 Zima 私有云设备上部署 PhotoPrism 带来了无与伦比的便利。享受无限存储容量、本地网络速度以及无需互联网的多设备访问。这是重视隐私和性能的 NAS 爱好者的完美解决方案。
developer: PhotoPrism
icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/PhotoPrism/icon.png
index: /
is_uncontrolled: false
main: photoprism
port_map: "2342"
screenshot_link:
- https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/PhotoPrism/screenshot-1.png
- https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/PhotoPrism/screenshot-2.png
- https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/PhotoPrism/screenshot-3.png
store_app_id: photoprism
tagline:
ar_sa: تصفح وتنظيم ومشاركة مجموعة صورك
de_de: Durchsuchen, Organisieren und Teilen Ihrer Foto-Sammlung
en_us: Browse Your Life in Images
es_es: Navegar, organizar y compartir su colección de fotos
fr_fr: Parcourir, organiser et partager votre collection de photos
hu_hu: A fényképek böngészése, rendezése és megosztása
it_it: Sfogliare, organizzare e condividere la tua collezione di foto
pl_pl: Przeglądanie, organizowanie i udostępnianie kolekcji zdjęć
pt_br: Navegando, organizando e compartilhando sua coleção de fotos
ru_ru: Просмотр, организация и обмен фотоколлекцией
sv_se: Bläddra, organisera och dela din fotokollektion
uk_ua: Перегляд, організація та обмін фотоколекцією
zh_cn: 用照片回忆您的生活
thumbnail: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/PhotoPrism/thumbnail.png
tips:
before_install:
en_us: |
## PhotoPrism
Default Account
| Username | Password |
| -------- | -------- |
| `admin` | `casaos` |
zh_cn: |
## PhotoPrism
默认账号
| 用户名 | 密码 |
| -------- | -------- |
| `admin` | `casaos` |
title:
en_us: PhotoPrism
custom: ""
hostname: ""
scheme: http

View File

@ -5,6 +5,10 @@ PhotoPrism is a self-hosted photo management platform designed to organize, brow
> [!IMPORTANT]
> If using docker all commands should be prefixed like this `docker compose exec photoprism *photoprism passwd foglar*`
## Setup
- Default credentials are **admin** and **casaos**
## Administration
- Change user password `photoprism passwd [username]`
@ -13,7 +17,7 @@ PhotoPrism is a self-hosted photo management platform designed to organize, brow
### User management
| CLI Command | Description |
| ----------------------------------------- | -------------------------------------------- |
|-------------------------------------------|----------------------------------------------|
| photoprism users ls [search] | Searches existing user accounts |
| photoprism users legacy [search] | Searches legacy user accounts |
| photoprism users add [options] [username] | Adds a new user account |
@ -25,7 +29,7 @@ PhotoPrism is a self-hosted photo management platform designed to organize, brow
### Session management
| CLI Command | Description |
| --------------------------------- | -------------------------------------------------------- |
|-----------------------------------|----------------------------------------------------------|
| photoprism auth ls [search] | Lists currently authenticated users and clients |
| photoprism auth add [username] | Adds a new authentication secret for client applications |
| photoprism auth show [identifier] | Shows detailed information about a session |
@ -36,4 +40,4 @@ PhotoPrism is a self-hosted photo management platform designed to organize, brow
For security reasons, the authentication logs are not accessible from the web user interface. They can only be viewed in the application service logs or by running the following command in a terminal:
```docker compose exec photoprism photoprism audit logins [username]```
`docker compose exec photoprism photoprism audit logins [username]`

View File

@ -4,10 +4,8 @@
- Install OpenSSH package (`sudo pacman -S openssh`) on client and server
- On server, start ssh service with `sudo service enable sshd.service` and `sudo service start sshd.service`
- Configuration file for ssh server is at `/etc/ssh/sshd_config`
- Configuration file for ssh client is at `/etc/ssh/ssh_config`
- More info at [archwiki](https://wiki.archlinux.org/title/OpenSSH)
## Authorization using keys
@ -61,3 +59,5 @@ Include /etc/ssh/sshd_config.d/*.conf
```
## SSH port forwarding
- Complete this someday

8
Tools/Ffmpeg/README.md Normal file
View File

@ -0,0 +1,8 @@
# FFmpeg
## Downloading online video with ffmpeg
- Get **.mpd** or **.m3u8** file from webpage when loading media in network tab
- Download it using url (with wget, curl or in teh web browser)
- Use command `ffmpeg -i "[file].m3u8" -c copy [output].mp4`

16
Tools/Fzf/README.md Normal file
View File

@ -0,0 +1,16 @@
# Fuzzy finder
## Setup
- Install using your distro package manager (`sudo pacman -S fzf`)
- Add following lines to your .bashrc or .zshrc configuration: `eval "$(fzf --bash)"` or `source <(fzf --zsh)`
## Usage
- Default call of `fzf` will start fuzzy search on your filesystem
- Use **--preview** flag to display content of the file in program of your choice:
```bash
fzf --preview="bat {} --color=always"
```
- To open selected file in nvim use `$()` like this: `nvim $(fzf --preview="bat {} --color=always)`
- You can do more complex stuff like this: `alias hist="history | awk '{for (i=2; i<=NF; i++) printf \$i\" \"; print \"\"}' | fzf | wl-copy"`