summaryrefslogtreecommitdiff
path: root/feed.org
diff options
context:
space:
mode:
authorYour Name <you@example.com>2025-04-02 22:35:42 -0600
committerYour Name <you@example.com>2025-04-02 22:35:42 -0600
commitffe525c0b903e1aff67a7e2f3bc0e984f3b7ce87 (patch)
tree0a08485bcd6ed079996f1fa313ae5d1f004fc031 /feed.org
parente76a2998c3874987dc93addb16ec82397267f49a (diff)
feed
Diffstat (limited to 'feed.org')
-rw-r--r--feed.org89
1 files changed, 89 insertions, 0 deletions
diff --git a/feed.org b/feed.org
index e4b3c14..5581866 100644
--- a/feed.org
+++ b/feed.org
@@ -1,6 +1,94 @@
#+title: Posts
#+OPTIONS: num:nil toc:1
+* Prepping for v2 of my salt repo
+:PROPERTIES:
+:ID: 04b2c85d-8339-46b5-a123-180ed526bb25
+:PUBDATE: 2025-04-02 Wed 22:34
+:END:
+I've massively restructured my salt repo and added enough features that I'm going to make a new repository and release it again in full, as a 2.0 version. This should be done within the next week or two.
+* Methods of installing software in salt
+:PROPERTIES:
+:ID: bb15d59f-c217-441a-9446-108429b52c10
+:PUBDATE: 2025-04-02 Wed 22:34
+:END:
+Here are some various methods of installing software, with reference to my personal salt configuration.
+** pkg.installed
+:PROPERTIES:
+:ID: 0e128288-8e86-41b1-9d4e-8ed5d431d110
+:END:
+
+Here's ~/srv/user_salt/pkgs/accounting.sls~ as an example. It uses the simplest way of installing programs, which is just listing them under ~pkg.installed~ which pulls them from your distros main repositories. This is the most preferable way to install software if it's available.
+
+#+begin_src salt
+# Install accounting tools
+accounting--install-apps:
+ pkg.installed:
+ - pkgs:
+ - hledger # Command-line plain text accounting
+ - gnucash # Graphical GNU accounting suite
+#+end_src
+
+** move a binary file into /usr/bin
+:PROPERTIES:
+:ID: 0dacbd16-7ddd-420e-8422-acff908a3c46
+:END:
+
+Here's ~/srv/user_salt/pkgs/st.sls~ as an example. It takes a binary file that's part of this salt repository, and moves it into the ~/usr/bin/ directory in a qube.
+
+#+begin_src salt
+# Installs my build of st terminal
+/usr/bin/st:
+ file.managed:
+ - source: salt://pkgs/bin/st.bin
+ - user: root
+ - group: root
+ - mode: 777
+#+end_src
+
+** Install from third-party repo with a script
+:PROPERTIES:
+:ID: 98e7e2ec-b88b-4a92-a065-5876a4f7c0ed
+:END:
+
+Here's ~/srv/user_salt/pkgs/signal.sls~ as an example. It starts by installing some dependencies using the most common ~pkg.installed~ method, then moves an install script ~/srv/user_salt/pkgs/install-scripts/signal-repo.sh~ into a qube and executes it to install the Signal messenger.
+
+#+begin_src salt
+...
+
+signal--repo-script:
+ file.managed: # file.managed lets you place files from your salt repo into qubes
+ - name: /usr/bin/install-repo # this is where the installation script is placed
+ - source: salt://pkgs/install-scripts/signal-repo.sh # This is where the installation script was sourced
+ - user: root # sets the owner of the file, you can usually default to root
+ - group: root # sets the group of the file, you can usually default to root
+ - mode: 777 # sets the permissions of the file, you can usually default to 777 (any user on the qube has permissions)
+
+# This simply executes the install-repo script in a qube
+'install-repo':
+ cmd.run
+#+end_src
+
+Here's the installation script that's ran:
+
+*** ~/srv/user_salt/pkgs/install-scripts/signal-repo.sh~
+:PROPERTIES:
+:ID: f07d4cd1-6ec6-41da-af32-41b9512eefb9
+:END:
+
+#+begin_src bash
+# Retrieves Signal's key for verifying the package
+# The request is proxied through 127.0.0.1:8082 to allow the template qube to access the internet
+sudo curl --proxy 127.0.0.1:8082 -s https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor | sudo tee -a /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null
+
+# Defines Signal's repo in /etc/apt/sources.list.d/
+echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' | tee /etc/apt/sources.list.d/signal-xenial.list
+
+# Updates packages and installs signal-desktop through the newly configured repository
+sudo apt update
+sudo apt install signal-desktop -y
+#+end_src
+
* Website update
:PROPERTIES:
:ID: c843faa8-1fce-478d-bab2-e016c75bf59d
@@ -13,6 +101,7 @@ The blog posts have been consolidated into a single org document. I like the fee
I've figured out how to create an RSS feed using ~ox-rss~, which makes it easy to generate an xml feed from the newly-consolidated feed.org document. You can now follow my feed from any RSS reader!
https://git.skylarcloud.xyz now has a repo with the org and html files used for this site.
+
* Convenient torrenting with qBittorrent
:PROPERTIES:
:ID: a3fa9387-fbfd-41dd-9def-a4588c04bc73