Skip to main content

Teches

· loading · loading
Using Rsync to sync a folder between two hosts # I was using github to sync my notebook with my website. But that introduces some extra steps that rsync can easily eliminate.

· loading · loading
Add the following to the end of /etc/apt/sources.list # not for production use deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription You may need to replace this for your current version. See https://pve.proxmox.com/wiki/Package_Repositories This will download “unstable” updates for proxmox.

· loading · loading
Fedora SilverBlue Vimwiki Switch to Firefox? Switch to Android or graphene os Show disk usage on a specific directory: du -sch /var/www/nextcloud/data/david/files/Games/battlenet/* Hugo Hugo: Add Table of Contents Anywhere in Markdown File (ruddra.com)

· loading · loading
Pandoc # Used for converting file formats https://ins3cure.com/pandoc-on-rhel-8/ Go to https://github.com/jgm/pandoc/releases/latest, download the latest tarball (currently pandoc-2.17.0.1-linux-64.tar.gz) and run:

· loading · loading
Sync obsidian dirs to hugo dirs: rsync -av --delete source destination –delete flag deletes files in the destination directory if they do not exist in the source #!/bin/bash rsync -av --delete ~/Documents/content/booknotes ~/Documents/blog/content/ rsync -av --delete ~/Documents/content/'health and fitness' ~/Documents/blog/content/ rsync -av --delete ~/Documents/content/images ~/Documents/blog/content/ rsync -av --delete ~/Documents/content/linux ~/Documents/blog/content/ rsync -av --delete ~/Documents/content/networking ~/Documents/blog/content/ rsync -av --delete ~/Documents/content/now ~/Documents/blog/content/ rsync -av --delete ~/Documents/content/philosophy ~/Documents/blog/content/ rsync -av --delete ~/Documents/content/python ~/Documents/blog/content/ rsync -av --delete ~/Documents/content/Recipes ~/Documents/blog/content/ rsync -av --delete ~/Documents/content/Recommended ~/Documents/blog/content/ rsync -av --delete ~/Documents/content/tools ~/Documents/blog/content/ rsync -av --delete ~/Documents/content/writing ~/Documents/blog/content/ rsync -av --delete ~/Documents/content/_index.md ~/Documents/blog/content/ cd /home/david/Documents/blog && hugo && if ! nmcli connection show --active | grep -q "Primary"; then echo "Starting VPN..." nmcli connection up id "Primary" sleep 5 fi rsync -rtvzP ~/Documents/blog/docs/ {username}@{ip-address}:/var/www/public Using inotify to monitor obsidian and run the update script whenever there are changes: # sudo dnf -y install inotify-tools

· loading · loading
First, you’ll need to create a github account. If you won’t be using a custom domain (You can add one later), make sure you name the account what you want your website to be. The domain will be {{ account-name.github.io }}

· loading · loading
To migrate a standard nextcloud setup to Podman/Docker, you need to create the container setup and copy data from the old system to the new. I am going to start with a new Alma 10 VM for my setup.

· loading · loading
libvirt is the most mature and proven virtualization stack in the world proxmox is just a management layer on top of it so is kubevirt so are like a dozen other things qemu is a general purpose linux virtualization swiss army knife CLI, the way most people use it most of the time is as an interface to KVM which is just built into the kernel

· loading · loading
Convert .MOV to MP4 # All .MOV files in a folder for f in *.MOV; do ffmpeg -i $f $f.mp4; done More info at Techwalla https://www.techwalla.com/articles/how-to-convert-mov-to-mp4-with-ffmpeg-on-linux

· loading · loading
Commands # Version # $ git –version

· loading · loading
Following this guide: https://blog.while-true-do.io/podman-setup-gitea/ Create container network: sudo podman network create gitea-net Enable update timer for automatic updates: sudo systemctl enable --now podman-auto-update.timer Database setup # sudo vim /etc/systemd/system/container-gitea-db.service

· loading · loading
Github: https://github.com/89luca89/distrobox Run native containers that have access to the host file system Creates an app launcher icon for the container Launch gui apps from other distros natively. Even without spinning up the container first

· loading · loading
Install Calibre and Rsync apt install -y calibre rsync Make a directory for your library mkdir /opt/calibre Either upload your existing library using rsync. For example to /opt/calibre/. cd ~/Documents rsync -avuP your-library-dir root@example.org:/opt/calibre/ Add a new user to protect your server:

· loading · loading
Rhel # Config root: /etc/httpd Primary config file: /etc/httpd/conf/httpd.conf Module config: conf.modules.d virtual host config: conf.d Log: /var/log/httpd User: apache

· loading · loading

· loading · loading

· loading · loading

· loading · loading

· loading · loading
Cellphones: Pixel 10 with graphene is Chat: Zulip instead of Slack Cloud: Nextcloud > MicroSoft OneDrive HyperVsior: Proxmox > VMWare Email: Proton > gmail

· loading · loading
Automated setup https://universal-blue.org/ You get all the benefits of using containers Separates system level packages from applications. System Level Desktop, kernel? Layering Apps at system level because containers aren’t as developed yet Locks to the fedora version you are on Layered package examples # - gnome shell extensions - distrobox Uses rpm-ostree? https://coreos.github.io/rpm-ostree/administrator-handbook/

· loading · loading
--- - name: Setup Development Environment hosts: localhost become: yes become_user: davidt tasks: # Install Flatpak applications - name: Install Flatpak applications flatpak: name: "{{ item }}" state: present loop: - com.brave.Browser - org.gnome.Snapshot - org.libreoffice.LibreOffice - org.remmina.Remmina - com.termius.Termius - com.slack.Slack - org.keepassxc.KeePassXC - org.mozilla.Thunderbird - us.zoom.Zoom - org.wireshark.Wireshark - com.google.Chrome - io.github.shiftey.Desktop - com.jgraph.drawio.desktop - org.adishatz.Screenshot - com.github.finefindus.eyedropper - com.obsproject.Studio - com.vivaldi.Vivaldi - com.vscodium.codium - org.kde.kdenlive - io.github.input_leap.input-leap - com.spotify.Client - org.kde.kdenlive - com.github.johnfactotum.Foliate - be.alexandervanhee.gradia - name: Install homebrew applications homebrew: name: "{{ item }}" state: present loop: - hugo - name: Install pip modules ansible.builtin.pip: name: "{{ item }}" state: latest loop: - ansible-navigator

· loading · loading

· loading · loading
Run command ujust devmode Add yourself to the right groups ujust dx-group https://docs.projectbluefin.io/bluefin-dx/ Flatpaks nextcloud desktop Chrome Brave Slack Spotify Remmina Termius --- - name: Setup Development Environment hosts: localhost become: yes tasks: # Install Flatpak applications - name: Install Flatpak applications flatpak: name: "{{ item }}" state: present loop: - com.bitwarden.desktop - com.brave.Browser - org.gimp.GIMP - org.gnome.Snapshot - org.libreoffice.LibreOffice - org.remmina.Remmina - com.termius.Termius - com.slack.Slack - org.keepassxc.KeePassXC - md.obsidian.Obsidian - com.calibre_ebook.calibre - org.mozilla.Thunderbird - us.zoom.Zoom - org.wireshark.Wireshark - com.google.Chrome - io.github.shiftey.Desktop - io.github.dvlv.boxbuddyrs - com.github.tchx84.Flatseal - io.github.flattool.Warehouse - io.missioncenter.MissionCenter - com.github.rafostar.Clapper - com.mattjakeman.ExtensionManager - com.jgraph.drawio.desktop - org.adishatz.Screenshot - com.github.finefindus.eyedropper - com.github.johnfactotum.Foliate - com.obsproject.Studio - com.vivaldi.Vivaldi - com.vscodium.codium - io.podman_desktop.PodmanDesktop - org.kde.kdenlive - org.virt_manager.virt-manager - io.github.input_leap.input-leap - com.nextcloud.desktopclient.nextcloud Homebrew