Compare commits

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

6 commits

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
a42ad92a50
remove image-gallery shortcode 2025-02-15 10:58:18 +01:00
01134ccfab
update draft 2025-02-15 10:57:34 +01:00
6 changed files with 134 additions and 81 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

@ -13,6 +13,13 @@ tags:
- archlinux
- systemd
- beelink
- WoAD
- radiomail
- VARA HF
- VARA FM
- Packet Radio
- Winlink
- wine
#showDate: false
showReadingTime: false
@ -75,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
@ -97,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
@ -108,6 +128,9 @@ paru -S lib32-gnutls
export WINEARCH=win32
export WINEPREFIX=/home/dominic/.wine-winlink
you can also include these two lines in a .bash_profile or similar.
I use this sometimes in my `~/.zshrc.local` as i include this already.
since we exported WINEPREFIX we can omit the use of it in THIS SESSION
(this terminal window). if you use another you have to export the variable
again or prefix any command with
@ -122,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
@ -137,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>
</p>
</div>
<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
>
</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"

View file

@ -1,24 +0,0 @@
<style>
.image-gallery {overflow: auto; margin-left: -1%!important;}
.image-gallery li {float: left; display: block; margin: 0 0 1% 1%; width: 19%;}
.image-gallery li a {text-align: center; text-decoration: none!important; color: #777;}
.image-gallery li a span {display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; padding: 3px 0;}
.image-gallery li a img {width: 100%; display: block;}
</style>
<!-- TODO: remove the /static part 4 lines below because I want to include them from the actual directory -->
{{ $dir := string (.Get "gallery_dir") }}
<ul class="image-gallery">
{{ range (readDir (print "/static" $dir)) }}
{{- $image := resources.Get (printf "%s/%s" $dir .Name) -}}
{{- $imageurl := printf "%s/%s" $dir .Name -}}
{{- $imagetitle := index (split .Name ".") 0 -}}
<li>
<a href="{{ ($image.Fit "1600x1600 q50").Permalink }}" title="{{ $imagetitle }}" class="lightbox-image">
<img src="{{ ($image.Fill "300x300 q50").Permalink }}" alt="{{ $imagetitle }}" title="{{ $imagetitle }}">
<span>{{ $imagetitle }}</span>
</a>
</li>
{{ end }}
</ul>