67 lines
1.6 KiB
Markdown
67 lines
1.6 KiB
Markdown
# Screenshot
|
|
|
|
`screenshot-area.sh`
|
|
|
|
```sh
|
|
#!/bin/bash
|
|
SCREENSHOT_FILE="/tmp/screenshot.png"
|
|
gnome-screenshot -a -f "$SCREENSHOT_FILE"
|
|
cat "$SCREENSHOT_FILE" | xclip -selection clipboard -t image/png -i
|
|
```
|
|
|
|
`screenshot-full.sh`
|
|
|
|
```sh
|
|
#!/bin/bash
|
|
SCREENSHOT_FILE="/tmp/screenshot.png"
|
|
gnome-screenshot -a -f "$SCREENSHOT_FILE"
|
|
cat "$SCREENSHOT_FILE" | xclip -selection clipboard -t image/png -i
|
|
```
|
|
|
|
# KVM
|
|
|
|
```sh
|
|
sudo dnf install libvirt-daemon-driver-network libvirt-daemon-driver-nodedev libvirt-daemon-driver-qemu libvirt-daemon-driver-storage-core qemu-audio-spice qemu-char-spice qemu-device-display-qxl qemu-device-display-virtio-gpu qemu-device-display-virtio-vga qemu-device-usb-redirect qemu-system-x86-core virt-manager virt-install virt-top
|
|
```
|
|
|
|
```sh
|
|
sudo systemctl --now enable virtnetworkd.service
|
|
sudo systemctl --now enable virtqemud.service
|
|
```
|
|
|
|
```sh
|
|
sudo setfacl -m u:qemu /home/ste
|
|
sudo setfacl -m u:qemu /home/ste/VMachines
|
|
sudo setfacl -m u:qemu /home/ste/VMachines/Rocky9
|
|
sudo setfacl -m u:qemu /home/ste/VMachines/Rocky9/rocky9.qcow2
|
|
```
|
|
|
|
```sh
|
|
sudo virsh net-list --all
|
|
sudo virsh net-start default
|
|
sudo virsh start 'Rocky Linux 9'
|
|
```
|
|
|
|
# Broken audio on youtube
|
|
|
|
Check for errors with `pw-top` then
|
|
|
|
`sudo nvim /usr/share/pipewire/pipewire.conf`
|
|
|
|
```sh
|
|
default.clock.min-quantum = 1024
|
|
```
|
|
|
|
```bash
|
|
sudo dnf install libavcodec-freeworld ffmpeg --allowerasing
|
|
```
|
|
|
|
```sh
|
|
sudo systemctl --user restart wireplumber pipewire pipewire-pulse
|
|
```
|
|
|
|
```sh
|
|
sudo dnf update @multimedia --setopt="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin
|
|
sudo dnf install intel-media-driver
|
|
```
|