https://github.com/cyb3rko/cachykde-handbook
My personal notes and scripts for my CachyOS KDE setup
https://github.com/cyb3rko/cachykde-handbook
cachyos handbook kde kde-plasma linux
Last synced: about 1 month ago
JSON representation
My personal notes and scripts for my CachyOS KDE setup
- Host: GitHub
- URL: https://github.com/cyb3rko/cachykde-handbook
- Owner: cyb3rko
- Created: 2025-01-26T00:44:00.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-23T19:56:39.000Z (about 1 month ago)
- Last Synced: 2025-03-23T20:35:34.891Z (about 1 month ago)
- Topics: cachyos, handbook, kde, kde-plasma, linux
- Language: Shell
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CachyOS KDE Handbook 🐧
System info: CachyOS + KDE Plasma Wayland + fish shell
---
- [Resource Management](#resource-management)
- [Large file and folder monitor](#large-file-and-folder-monitor)
- [Find large files](#find-large-files)
- [Clean package manager caches](#clean-package-manager-caches)
- [Rerate package mirrors](#rerate-package-mirros)
- [AutoTrash](#autotrash)
- [journalctl](#journalctl)
- [Services](#services)
- [SSH Session Keep-Alive](#ssh-session-keep-alive)
- [Java](#java)
- [GPG](#gpg)
- [Applications](#applications)
- [AppImages](#appimages)
- [Cachy Browser](#cachy-browser)
- [OneDrive](#onedrive)
- [Jetbrains Toolbox](#jetbrains-toolbox)
- [nvm](#nvm)
- [Steam](#steam)
- [yt-dlp](#yt-dlp)
- [TLS](#tls)
- [Import CA](#import-ca)## Resource Management
### Large file and folder monitor
Simple overview of the largest files and folders:
```bash
sudo pacman -S ncdu
ncdu /
```### Find large files
Find files in current directory with a specified minimum size (in this example 100 MB):
```bash
find . -type f -size +100M
```### Clean package manager caches
Call this to start interactive package manager cache clearing:
```bash
yay -Sc
```### Rerate package mirros
```bash
sudo cachyos-rate-mirrors
```### Autotrash
To automatically clear older files in the trash, run the following (example: files older than 40 days):
```bash
uv tool install autotrash
autotrash -d 40 --install
```### journalctl
See space used by system logs:
```bash
journalctl --disk-usage
```Set maximum log retention time in `/etc/systemd/journald.conf`:
```bash
MaxRetentionSec=1month
```## Services
### SSH Session Keep-Alive
Edit `/etc/ssh/ssh_config` and append:
```bash
ServerAliveInterval 60
```### Java
To install the correct version do the following and install the requested version:
```bash
sudo pacman -Ss java | grep jdk
```To switch between installed java versions use:
```bash
archlinux-java
```Set the `JAVA_HOME` env variable with the following config in `~/.env`:
```bash
JAVA_HOME=/usr/lib/jvm/default
```### GPG
List keys:
```bash
gpg --list-secret-keys --keyid-format=long
```Show public key for id:
```bash
gpg --armor --export
```Edit key:
```bash
gpg --edit-key
```Set correct `~/.gnupg/` permissions:
```bash
chown -R $(whoami) ~/.gnupg/
find ~/.gnupg -type f -exec chmod 600 {} \;
find ~/.gnupg -type d -exec chmod 700 {} \;
```## Applications
### AppImages
To use AppImage files, call the following:
```bash
sudo pacman -S fuse
```### Cachy Browser
To apply preferences to Cachy Browser via the [browser/cachy.overrides.cfg](browser/cachy.overrides.cfg), store it at `~/.cachy/`.
Restart the browser and find applied policies at `about:policies`.### OneDrive
Install [abraunegg/onedrive](https://github.com/abraunegg/onedrive):
```bash
yay -S onedrive-abraunegg
```- **d-compiler**: ldc
- **d-runtime**: liblphobosTo allow logging to `/var/log/onedrive`, do the following:
```bash
sudo mkdir /var/log/onedrive
sudo chown root:niko /var/log/onedrive
sudo chmod 0775 /var/log/onedrive
```Initialize onedrive:
```bash
onedrive
```After initializing onedrive and BEFORE running the first sync, copy [config](onedrive/config) and [sync_list](onedrive/sync_list) to `~/.config/onedrive/`. Check the config with `onedrive --display-config`.
First sync:
`onedrive --resync --sync`### Jetbrains Toolbox
First allow AppImages (see [AppImages](#appimages)).
Then run [`jetbrains-toolbox.sh`](jetbrains-toolbox.sh).
### nvm
Install nvm like explained in their [README](https://github.com/nvm-sh/nvm?tab=readme-ov-file#install--update-script).
Then add the following to `config.fish`:```fish
function nvm
bash -c "source ~/.nvm/nvm.sh; nvm $argv"
endset -U fish_user_paths /home/niko/.nvm/versions/node/*/bin $fish_user_paths
```### Steam
```bash
sudo pacman -S steam
```- activate hardware acceleration in the Steam settings
- enable game emulation via Proton in the Steam settings### yt-dlp
```shell
sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp
```## TLS
### Import CA
1. Run `sudo trust anchor ca-file.pem`
2. Check import with `ls /etc/ca-certificates/trust-source`
3. (Test TLS connection with `openssl s_client -connect :443`)