Compare commits
6 commits
easy-galle
...
main
Author | SHA1 | Date | |
---|---|---|---|
0abf93d4ae | |||
2ec7ba1b6a | |||
41782effc2 | |||
5f93cb018f | |||
a42ad92a50 | |||
01134ccfab |
6 changed files with 134 additions and 81 deletions
|
@ -38,10 +38,6 @@ and PDF files of the links too.
|
||||||
[opengist](https://gist.oe7drt.net/)
|
[opengist](https://gist.oe7drt.net/)
|
||||||
: Selfhosted version of Github gists where I save some random snippets.
|
: 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/)
|
[Mastodon](https://social.oe7drt.net/)
|
||||||
: I do some testing on this private instance every now and then and if you need an instance
|
: 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
|
to test out a few things feel free to create users over there. It is currently subscribed
|
||||||
|
|
|
@ -13,6 +13,13 @@ tags:
|
||||||
- archlinux
|
- archlinux
|
||||||
- systemd
|
- systemd
|
||||||
- beelink
|
- beelink
|
||||||
|
- WoAD
|
||||||
|
- radiomail
|
||||||
|
- VARA HF
|
||||||
|
- VARA FM
|
||||||
|
- Packet Radio
|
||||||
|
- Winlink
|
||||||
|
- wine
|
||||||
|
|
||||||
#showDate: false
|
#showDate: false
|
||||||
showReadingTime: false
|
showReadingTime: false
|
||||||
|
@ -75,6 +82,17 @@ to reboot without su
|
||||||
|
|
||||||
/etc/polkit-1/rules.d/49-nopasswd_global.rules
|
/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
|
### passwordless ssh login
|
||||||
|
|
||||||
ssh-add -L > .ssh/authorized_keys
|
ssh-add -L > .ssh/authorized_keys
|
||||||
|
@ -97,6 +115,8 @@ can also be done on most installation media that use grub by hitting
|
||||||
|
|
||||||
### Wine
|
### Wine
|
||||||
|
|
||||||
|
#### Default (Arch)
|
||||||
|
|
||||||
Windows tools will require wine, so we install this right now
|
Windows tools will require wine, so we install this right now
|
||||||
|
|
||||||
paru -S wine
|
paru -S wine
|
||||||
|
@ -108,6 +128,9 @@ paru -S lib32-gnutls
|
||||||
export WINEARCH=win32
|
export WINEARCH=win32
|
||||||
export WINEPREFIX=/home/dominic/.wine-winlink
|
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
|
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
|
(this terminal window). if you use another you have to export the variable
|
||||||
again or prefix any command with
|
again or prefix any command with
|
||||||
|
@ -122,14 +145,18 @@ winetricks -q allfonts
|
||||||
|
|
||||||
adding some .NET frameworks we will mostly use/need
|
adding some .NET frameworks we will mostly use/need
|
||||||
|
|
||||||
|
```
|
||||||
winetricks -q dotnet35sp1
|
winetricks -q dotnet35sp1
|
||||||
winetricks vb6run
|
winetricks vb6run
|
||||||
winetricks vcrun2015
|
winetricks vcrun2015
|
||||||
|
```
|
||||||
|
|
||||||
optional if errors
|
optional if errors
|
||||||
|
|
||||||
|
```
|
||||||
winetricks -q dotnet40
|
winetricks -q dotnet40
|
||||||
winetricks -q dotnet46
|
winetricks -q dotnet46
|
||||||
|
```
|
||||||
|
|
||||||
registering notepad.exe as default application for logfiles
|
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
|
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 tools
|
||||||
|
|
||||||
vara hf, vara fm
|
vara hf, vara fm
|
||||||
|
|
21
gmid.conf
Normal file
21
gmid.conf
Normal 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"
|
||||||
|
}
|
|
@ -1,16 +1,75 @@
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
<div>
|
<div>
|
||||||
<p class="text-xs text-neutral-500 dark:text-neutral-400">
|
<p class="text-xs text-neutral-500 dark:text-neutral-400">
|
||||||
Served> with <a
|
Served> with
|
||||||
class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="https://archlinux.org/"
|
<a
|
||||||
target="_blank" rel="noopener noreferrer">Arch Linux</a> and <a
|
class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
|
||||||
class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="https://httpd.apache.org/"
|
href="https://archlinux.org/"
|
||||||
target="_blank" rel="noopener noreferrer">Apache httpd</a> ┊
|
target="_blank"
|
||||||
<a class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="/feed.xml"
|
rel="noopener noreferrer"
|
||||||
target="_blank" rel="noopener">Atom feed</a> ┊
|
>Arch Linux</a
|
||||||
<a class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="/feed.json"
|
>
|
||||||
target="_blank" rel="noopener">Json feed</a>
|
and
|
||||||
</p>
|
<a
|
||||||
</div>
|
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>
|
</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 }}
|
||||||
|
|
|
@ -1,45 +1,7 @@
|
||||||
{{- if eq .Site.BaseURL "https://oe7drt.com/" }}
|
{{- if eq .Site.BaseURL "https://oe7drt.com/" }} {{ partial
|
||||||
{{ partial "plausible_head.html" . }}
|
"plausible_head.html" . }} {{- end }}
|
||||||
{{- end }}
|
|
||||||
<meta name="fediverse:creator" content="@oe7drt@mastodon.radio" />
|
<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
|
<meta
|
||||||
http-equiv="onion-location"
|
http-equiv="onion-location"
|
||||||
content="http://5uxkejb6la7olhncaotybxrscmdlbxwy64ucuyrum4tsgfuoxbyav2qd.onion"
|
content="http://5uxkejb6la7olhncaotybxrscmdlbxwy64ucuyrum4tsgfuoxbyav2qd.onion"
|
||||||
|
|
|
@ -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>
|
|
Loading…
Add table
Reference in a new issue