Compare commits

...
Sign in to create a new pull request.

4 commits
pswp ... main

Author SHA1 Message Date
0abf93d4ae
update draft note 2025-02-18 09:47:45 +01:00
2ec7ba1b6a
remove libretranslate link
removed libretranslate on the VM because upgrading python was just a
PITA
2025-02-18 09:47:29 +01:00
41782effc2
add gmid.conf
Gemini server config file for local testing
2025-02-15 14:23:46 +01:00
5f93cb018f
move lightbox into extend-footer.html (from extend-head.html) 2025-02-15 14:23:12 +01:00
5 changed files with 124 additions and 57 deletions

View file

@ -38,10 +38,6 @@ and PDF files of the links too.
[opengist](https://gist.oe7drt.net/)
: Selfhosted version of Github gists where I save some random snippets.
[LibreTranslate](https://translate.oe7drt.net/)
: I was testing Mastodon again (this time on my local server at home) in a virtual machine.
Within that I created another user that runs an instance of LibreTranslate.
[Mastodon](https://social.oe7drt.net/)
: I do some testing on this private instance every now and then and if you need an instance
to test out a few things feel free to create users over there. It is currently subscribed

View file

@ -82,6 +82,17 @@ to reboot without su
/etc/polkit-1/rules.d/49-nopasswd_global.rules
```
/* Allow members of the wheel group to execute any actions
* without password authentication, similar to "sudo NOPASSWD:"
*/
polkit.addRule(function(action, subject) {
if (subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
```
### passwordless ssh login
ssh-add -L > .ssh/authorized_keys
@ -104,6 +115,8 @@ can also be done on most installation media that use grub by hitting
### Wine
#### Default (Arch)
Windows tools will require wine, so we install this right now
paru -S wine
@ -132,14 +145,18 @@ winetricks -q allfonts
adding some .NET frameworks we will mostly use/need
```
winetricks -q dotnet35sp1
winetricks vb6run
winetricks vcrun2015
```
optional if errors
```
winetricks -q dotnet40
winetricks -q dotnet46
```
registering notepad.exe as default application for logfiles
@ -147,6 +164,18 @@ create a backup of the wine installation
tar -cJf wine-backup\_$(date +%Y-%m-%d-%H-%M-%S)\_initial-setup.tar.xz .wine-winlink
#### Debian
```
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install wine wine32 fonts-wine
```
```
sudo apt install gcc-multilib g++-multilib
```
### VARA tools
vara hf, vara fm

21
gmid.conf Normal file
View file

@ -0,0 +1,21 @@
# create certs for localhost
# openssl req -x509 -newkey rsa:4096 -nodes -keyout gmid.key \
# -out gmid.pem -days 365 -subj "/CN=localhost"
protocols "tlsv1.3"
types {
# include "/usr/share/misc/mime.types"
include "/usr/share/doc/gmid/mime.types"
}
server "localhost" {
listen on * port 1965
cert "/home/dominic/sites/oe7drt-website/gmid.pem"
key "/home/dominic/sites/oe7drt-website/gmid.key"
# root "/srv/sites/oe7drt-gemini"
root "/home/dominic/sites/oe7drt-website/public"
lang "en"
}

View file

@ -1,16 +1,75 @@
<div class="flex items-center justify-between">
<div>
<p class="text-xs text-neutral-500 dark:text-neutral-400">
Served> with <a
class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="https://archlinux.org/"
target="_blank" rel="noopener noreferrer">Arch Linux</a> and <a
class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="https://httpd.apache.org/"
target="_blank" rel="noopener noreferrer">Apache httpd</a>
<a class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="/feed.xml"
target="_blank" rel="noopener">Atom feed</a>
<a class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="/feed.json"
target="_blank" rel="noopener">Json feed</a>
Served> with
<a
class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="https://archlinux.org/"
target="_blank"
rel="noopener noreferrer"
>Arch Linux</a
>
and
<a
class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="https://httpd.apache.org/"
target="_blank"
rel="noopener noreferrer"
>Apache httpd</a
>
<a
class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="/feed.xml"
target="_blank"
rel="noopener"
>Atom feed</a
>
<a
class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="/feed.json"
target="_blank"
rel="noopener"
>Json feed</a
>
</p>
</div>
</div>
{{ with resources.Get "js/lightbox.js" }} {{ if hugo.IsDevelopment }} {{ with .
| js.Build }}
<script
defer
type="text/javascript"
src="{{ .RelPermalink }}"
data-copy="Copy"
data-copied="Copied"
></script>
{{ end }} {{ else }} {{ $opts := (dict "minify" true "targetPath"
"js/lightbox.js") }} {{ with . | js.Build $opts | fingerprint }}
<script
defer
type="text/javascript"
src="{{ .RelPermalink }}"
data-copy="Copy"
data-copied="Copied"
integrity="{{ .Data.Integrity }}"
></script>
{{ end }} {{ end }} {{ end }} {{ with resources.Get "css/lightbox.css" }} {{ if
hugo.IsDevelopment }} {{ with . }}
<link
type="text/css"
rel="stylesheet"
media="screen,print"
href="{{ .RelPermalink }}"
/>
{{ end }} {{ else }} {{ with . | fingerprint }}
<link
type="text/css"
rel="stylesheet"
media="screen,print"
href="{{ .RelPermalink }}"
integrity="{{ .Data.Integrity }}"
/>
{{ end }} {{ end }} {{ end }}

View file

@ -1,45 +1,7 @@
{{- if eq .Site.BaseURL "https://oe7drt.com/" }}
{{ partial "plausible_head.html" . }}
{{- end }}
{{- if eq .Site.BaseURL "https://oe7drt.com/" }} {{ partial
"plausible_head.html" . }} {{- end }}
<meta name="fediverse:creator" content="@oe7drt@mastodon.radio" />
{{ with resources.Get "js/lightbox.js" }} {{ if hugo.IsDevelopment }} {{ with .
| js.Build }}
<script
defer
type="text/javascript"
src="{{ .RelPermalink }}"
data-copy="Copy"
data-copied="Copied"
></script>
{{ end }} {{ else }} {{ $opts := (dict "minify" true "targetPath"
"js/lightbox.js") }} {{ with . | js.Build $opts | fingerprint }}
<script
defer
type="text/javascript"
src="{{ .RelPermalink }}"
data-copy="Copy"
data-copied="Copied"
integrity="{{ .Data.Integrity }}"
></script>
{{ end }} {{ end }} {{ end }} {{ with resources.Get "css/lightbox.css" }} {{ if
hugo.IsDevelopment }} {{ with . }}
<link
type="text/css"
rel="stylesheet"
media="screen,print"
href="{{ .RelPermalink }}"
/>
{{ end }} {{ else }} {{ with . | fingerprint }}
<link
type="text/css"
rel="stylesheet"
media="screen,print"
href="{{ .RelPermalink }}"
integrity="{{ .Data.Integrity }}"
/>
{{ end }} {{ end }} {{ end }}
<meta
http-equiv="onion-location"
content="http://5uxkejb6la7olhncaotybxrscmdlbxwy64ucuyrum4tsgfuoxbyav2qd.onion"