<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 
 <title>Artur Pędziwilk</title>
 <link href="/" rel="self"/>
 <link href=""/>
 <updated>2026-02-08T22:16:55+01:00</updated>
 <id></id>
 <author>
   <name>Artur Pędziwilk</name>
   <email></email>
 </author>

 
 <entry>
   <title>AppJail on FreeBSD</title>
   <link href="/blog/appjail-on-freebsd.html"/>
   <updated>2024-01-22T00:00:00+01:00</updated>
   <id>/blog/appjail-on-freebsd</id>
   <content type="html">
&lt;p&gt;&lt;a href=&quot;https://www.freebsd.org/&quot;&gt;FreeBSD&lt;/a&gt; is a free and open-source Unix-like operating system known for its reliability and stability. It is optimized for performance, especially for networking and disk storage.&lt;/p&gt;

&lt;h2 id=&quot;appjail-framework&quot;&gt;AppJail Framework&lt;/h2&gt;

&lt;p&gt;AppJail is an open source framework to create isolated, portable and easy to deploy environments using FreeBSD jails that behaves like an application.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;pkg &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;appjail&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;sysrc &lt;span class=&quot;nv&quot;&gt;appjail_enable&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;YES&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;linux-binary-compatibility&quot;&gt;Linux Binary Compatibility&lt;/h2&gt;

&lt;p&gt;Enable and start the Linux ABI. The Linux service will load necessary kernel modules and mount filesystems expected by Linux applications under /compat/linux.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;sysrc &lt;span class=&quot;nv&quot;&gt;linux_enable&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;YES&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;sysrc &lt;span class=&quot;nv&quot;&gt;linux_mounts_enable&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;YES&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;service linux start&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Linux software requires more than just an ABI to work. In order to run Linux software an userland must be installed and local timezone must be set.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;pkg &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;debootstrap&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;tzsetup&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;ubuntu-linux&quot;&gt;Ubuntu Linux&lt;/h2&gt;

&lt;p&gt;Ubuntu Linux is praised for its stability, security, and ease of use.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  &lt;span class=&quot;s1&quot;&gt;&apos;exec.start: &quot;/bin/true&quot;\nexec.stop: &quot;/bin/true&quot;\npersist\n&apos;&lt;/span&gt; &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; /etc/linux.template&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;appjail fetch debootstrap jammy&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;appjail quick jammy &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  &lt;span class=&quot;nv&quot;&gt;osversion&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;jammy &lt;span class=&quot;nb&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;linux+debootstrap &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  start linuxfs &lt;span class=&quot;nb&quot;&gt;alias &lt;/span&gt;ip4_inherit &lt;span class=&quot;nv&quot;&gt;devfs_ruleset&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;0 &lt;span class=&quot;nv&quot;&gt;template&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/etc/linux.template &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  login&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;references&quot;&gt;References&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://docs.freebsd.org/en/books/handbook/jails/&quot;&gt;FreeBSD Jails and Containers&lt;/a&gt; - FreeBSD Community; 1994-2024&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://docs.freebsd.org/en/books/handbook/linuxemu/&quot;&gt;FreeBSD Linux Binary Compatibility&lt;/a&gt; - FreeBSD Community; 1994-2024&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://appjail.readthedocs.io/en/latest/&quot;&gt;AppJail is a framework to create isolated, portable, and easy-to-deploy environments&lt;/a&gt; - Jesús Daniel Colmenares Oviedo; 2022-2023&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

</content>
 </entry>
 
 <entry>
   <title>BOINC on Kubernetes cluster</title>
   <link href="/blog/boinc-on-kubernetes.html"/>
   <updated>2023-12-12T00:00:00+01:00</updated>
   <id>/blog/boinc-on-kubernetes</id>
   <content type="html">
&lt;p&gt;&lt;a href=&quot;https://boinc.berkeley.edu/&quot;&gt;Berkeley Open Infrastructure for Network Computing&lt;/a&gt; (BOINC) is an open-source volunteer oriented computing grid that combines the processing power of individual users for the purposes of scientific research. It uses computer’s processors and graphics cards to cure diseases, study global warming, discover pulsars, and do many other types of scientific research.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://kubernetes.io/&quot;&gt;Kubernetes&lt;/a&gt; (K8S) is an open-source container orchestration system for automating software deployment, scaling, and management. Its suitability for running and managing large cloud-native workloads has led to widespread adoption of it in the data center.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Kubernetes manifest universe.yaml&lt;/strong&gt; for &lt;a href=&quot;https://universeathome.pl/universe/&quot;&gt;Universe@Home&lt;/a&gt; project.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;apiVersion: v1
kind: Pod
metadata:
  name: universe
spec:
  containers:
  - name: universe
    image: osgiliath/boinc:nvidia
    volumeMounts:
    - name: universe-storage
      mountPath: /var/lib/boinc
  volumes:
  - name: universe-storage
    emptyDir: &lt;span class=&quot;o&quot;&gt;{}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Create an universe application resources in a cluster.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# kubectl apply -f universe.yaml;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Attach to the universe@home project with your weak account key.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# kubectl exec universe -- boinccmd --project_attach https://universeathome.pl/universe/ WEAKACCOUNTKEY;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# kubectl logs universe;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Kubernetes manifest einstein.yaml&lt;/strong&gt; for &lt;a href=&quot;https://einsteinathome.org/&quot;&gt;Einstein@Home&lt;/a&gt; project.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;apiVersion: v1
kind: Pod
metadata:
  name: einstein
spec:
  containers:
  - name: einstein
    image: osgiliath/boinc:nvidia
    volumeMounts:
    - name: einstein-storage
      mountPath: /var/lib/boinc
  volumes:
  - name: einstein-storage
    emptyDir: &lt;span class=&quot;o&quot;&gt;{}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Create an einstein application resources in a cluster.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# kubectl apply -f einstein.yaml;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Attach to the einstein@home project with your weak account key.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# kubectl exec einstein -- boinccmd --project_attach https://einstein.phys.uwm.edu/ WEAKACCOUNTKEY;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# kubectl logs einstein;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
</content>
 </entry>
 
 <entry>
   <title>FreeBSD at Hetzner on AMD Ryzen</title>
   <link href="/blog/freebsd-at-hetzner.html"/>
   <updated>2020-12-29T00:00:00+01:00</updated>
   <id>/blog/freebsd-at-hetzner</id>
   <content type="html">
&lt;p&gt;&lt;a href=&quot;https://www.freebsd.org/&quot;&gt;FreeBSD&lt;/a&gt; is an operating system which focuses on features, speed, and stability.
It provides robust network services under the heaviest loads and uses memory efficiently to maintain good response times for thousands of simultaneous user processes.
FreeBSD/amd64 supports the AMD64 platform which is expected to be production quality with respects to all aspects of the FreeBSD operating system, including installation and development environments.&lt;/p&gt;

&lt;p&gt;Thankfully to Hetzner’s idea to &lt;a href=&quot;https://www.hetzner.com/sb&quot;&gt;reuse hardware of terminated products&lt;/a&gt; 
it is possible to find an economic yet powerful system.&lt;/p&gt;

&lt;p&gt;Inspired by &lt;a href=&quot;https://boinc.berkeley.edu/projects.php&quot;&gt;BOINC Projects&lt;/a&gt; with FreeBSD support I run a BOINC rig on AMD Ryzen Threadripper 2950X processor with maximum possible load on the system.&lt;/p&gt;

&lt;p&gt;The ordered server is delivered in &lt;a href=&quot;https://wiki.hetzner.de/index.php/Installimage/en&quot;&gt;rescue system&lt;/a&gt;.
Connecting over SSH with tunneling of VNC port makes the whole installation easy.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# ssh root@46.4.23.49 -L 6900:localhost:5900;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;Rescue System up since 2020-12-29 14:00 +01:00

Hardware data:

   CPU1: AMD Ryzen Threadripper 2950X 16-Core Processor &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;Cores 32&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
   Memory:  128712 MB
   Disk /dev/sda: 512 GB &lt;span class=&quot;o&quot;&gt;(=&amp;gt;&lt;/span&gt; 476 GiB&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
   Total capacity 476 GiB with 1 Disk

Network data:
   eth0  LINK: &lt;span class=&quot;nb&quot;&gt;yes
         &lt;/span&gt;MAC:  00:d8:61:56:51:dc
         IP:   46.4.23.49
         IPv6: 2a01:4f8:221:3895::2/64
         Intel&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;R&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; Gigabit Ethernet Network Driver&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Note down the DNS resolvers, the default gateway, IP and IPv6 addresses, and ethernet driver.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# cat /etc/resolv.conf;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# ip route show;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# ifconfig eth0;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# lspci | grep Ethernet;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Install QEMU. It is a generic and open source machine emulator and virtualizer.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# apt-get install qemu;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Download FreeBSD ISO image to install a new system from.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# wget https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/12.2/FreeBSD-12.2-RELEASE-amd64-disc1.iso;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Boot dual proccessor virtual machine with 2GB of memory and first disk attached to it. 
The ISO image is mounted as a CD-ROM and there is a VNC enabled.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# qemu-system-x86_64 -smp cpus=2 -m 2048 -hda /dev/sda -net nic -boot d -vnc localhost:0 -cdrom /root/FreeBSD-12.2-RELEASE-amd64-disc1.iso;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Connect the VNC client to localhost:6900 and continue installation normally.
Refer to the official handbook of &lt;a href=&quot;https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/bsdinstall.html&quot;&gt;Installing FreeBSD&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;ZFS configuration for pool type is “stripe: 1 disk” with encrypted swap.
More hard drives can be enabled in Qemu by&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# [...] -hda /dev/sda -hdb /dev/sdb -hdd /dev/sdc [...]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;/assets/images/freebsd-installer-zfs.webp&quot; alt=&quot;freebsd installer zfs&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The FreeBSD installer will ask to configure em0 virtual network device. Use DHCP to change that later for Intel(R) Gigabit Ethernet Network Driver.&lt;/p&gt;

&lt;p&gt;At the end of installation open a shell in the new system to make final manual modifications. 
Add networking configuration to /etc/rc.conf for igb0.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# ee /etc/rc.conf;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;nv&quot;&gt;gateway_enable&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;YES&quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;gateway_if&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;igb0&quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;gateway_ip&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;46.4.23.1&quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;ifconfig_igb0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;inet 46.4.23.49 netmask 255.255.255.192&quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;ifconfig_igb0_ipv6&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;inet6 2a01:4f8:221:3895::2 prefixlen 64&quot;&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;ipv6_default_interface&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;igb0&quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;ipv6_defaultrouter&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;fe80::1%igb0&quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;route_default&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;default &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$gateway_ip&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;route_gateway&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;-host &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$gateway_ip&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; -interface &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$gateway_if&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;static_routes&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;default gateway&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Verify the final SSH daemon configuration.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# ee /etc/ssh/sshd_config;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Halt the QEMU virtual machine and reboot the rescue system.&lt;/p&gt;

&lt;p&gt;Next SSH connection to the IP will offer a new SSH keys and connects to the newly installed FreeBSD.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# uname -a;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;FreeBSD akatorea.wilkart.online 12.2-RELEASE FreeBSD 12.2-RELEASE r366954 GENERIC  amd64&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

</content>
 </entry>
 
 <entry>
   <title>OpenBSD at Hetzner on AMD Athlon</title>
   <link href="/blog/openbsd-at-hetzner.html"/>
   <updated>2019-06-10T00:00:00+02:00</updated>
   <id>/blog/openbsd-at-hetzner</id>
   <content type="html">
&lt;p&gt;&lt;a href=&quot;https://www.openbsd.org/&quot;&gt;OpenBSD&lt;/a&gt; is one of the most secure operating systems on the market.
Impressive consistency and documentation through man-pages makes this OS one of the easiest to maintain too.
OpenBSD/amd64 runs on AMD’s Athlon-64 family of processors in 64-bit mode.
It also runs on processors made by other manufacturers which have cloned the AMD64 extensions.&lt;/p&gt;

&lt;p&gt;Thankfully to Hetzner’s idea to &lt;a href=&quot;https://www.hetzner.com/sb&quot;&gt;reuse hardware of terminated products&lt;/a&gt; 
it is possible to find an economic yet powerful system.&lt;/p&gt;

&lt;p&gt;Inspired by &lt;a href=&quot;https://torbsd.org/&quot;&gt;The Tor BSD Diversity Project&lt;/a&gt; I run a Tor relay on AMD Athlon 64 6000+ X2 processor.&lt;/p&gt;

&lt;p&gt;The ordered server is delivered in &lt;a href=&quot;https://wiki.hetzner.de/index.php/Installimage/en&quot;&gt;rescue system&lt;/a&gt;.
Connecting over SSH with tunneling of VNC port makes the whole installation easy.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# ssh root@85.10.201.218 -L 6900:localhost:5900;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;Rescue System up since 2019-05-18 12:10 +02:00

Hardware data:

   CPU1: AMD Athlon&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;tm&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; 64 X2 Dual Core Processor 6000+ &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;Cores 2&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
   Memory:  7729 MB
   Disk /dev/sda: 750 GB doesn&lt;span class=&quot;s1&quot;&gt;&apos;t contain a valid partition table
   Disk /dev/sdb: 750 GB doesn&apos;&lt;/span&gt;t contain a valid partition table
   Total capacity 1397 GiB with 2 Disks

Network data:
   eth0  LINK: &lt;span class=&quot;nb&quot;&gt;yes
         &lt;/span&gt;MAC:  00:24:21:2c:62:0d
         IP:   85.10.201.218
         IPv6: 2a01:4f8:a0:5163::2/64
         RealTek RTL-8169 Gigabit Ethernet driver&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Note down the DNS resolvers, the default gateway, IP and IPv6 addresses, and ethernet driver.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# cat /etc/resolv.conf;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# ip route show;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# ifconfig eth0;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# lspci | grep Ethernet;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Install QEMU. It is a generic and open source machine emulator and virtualizer.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# apt-get install qemu;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Download OpenBSD ISO image to install a new system from.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# wget https://ftp.eu.openbsd.org/pub/OpenBSD/6.5/amd64/install65.iso;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Boot dual proccessor virtual machine with 2GB of memory and first disk attached to it. 
The ISO image is mounted as a CD-ROM and there is a VNC enabled.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# qemu-system-x86_64 -smp cpus=2 -m 2048 -hda /dev/sda -net nic -boot d -vnc localhost:0 -cdrom /root/install65.iso;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Connect the VNC client to localhost:6900 and continue installation normally.
Refer to the official &lt;a href=&quot;https://ftp.eu.openbsd.org/pub/OpenBSD/6.5/amd64/INSTALL.amd64&quot;&gt;INSTALLATION NOTES&lt;/a&gt; for OpenBSD/amd64.&lt;/p&gt;

&lt;p&gt;The OpenBSD installer will configure virtual network device what needs to be copied to the 
Realtek later.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# cp hostname.em0 hostname.re0;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Check default gateway and hostname.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# cat /etc/mygate;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# cat /etc/myname;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Verify the final SSH daemon configuration.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# vi /etc/ssh/sshd_config;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Halt the QEMU virtual machine and reboot the rescue system.&lt;/p&gt;

&lt;p&gt;Next SSH connection to the IP will offer a new SSH keys and connects to the newly installed OpenBSD.&lt;/p&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# uname -a;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;OpenBSD artoria.wilkart.online 6.5 GENERIC.MP#3 amd64&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

</content>
 </entry>
 
 <entry>
   <title>Tor 0.3.4.8 for OpenBSD 6.3</title>
   <link href="/blog/tor-0.3.4.8-for-openbsd63.html"/>
   <updated>2018-10-10T00:00:00+02:00</updated>
   <id>/blog/tor-0.3.4.8-for-openbsd63</id>
   <content type="html">
&lt;p&gt;Tor is free software and an open network that helps you defend against traffic analysis, a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security.&lt;/p&gt;

&lt;p&gt;Package includes Tor 0.3.4.8 built for OpenBSD 6.3 for the following platforms - amd64.
Fully tested on &lt;a href=&quot;https://incloudibly.net/?ref=wilkart&quot;&gt;Incloudibly&lt;/a&gt; and
&lt;a href=&quot;https://portal.exoscale.com/register?r=5CmgG9NTlGiO&quot;&gt;Exoscale&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Retrieve signify key the packages are signed off.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# ftp -MVo /etc/signify/wilkart-pkg.pub https://openbsd.wilkart.online/wilkart-pkg.pub;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Install the package for your platform (amd64).&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# pkg_add https://openbsd.wilkart.online/6.3/$(uname -m)/tor-0.3.4.8.tgz;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Startup Tor daemon.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# rcctl start tor;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Consult /etc/tor/torrc with the &lt;a href=&quot;https://www.torproject.org/docs/tor-manual.html&quot;&gt;Tor manual&lt;/a&gt; and ‘man tor’.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Build Tor on FreeBSD powerpc</title>
   <link href="/blog/build-tor-freebsd-powerpc.html"/>
   <updated>2018-01-05T00:00:00+01:00</updated>
   <id>/blog/build-tor-freebsd-powerpc</id>
   <content type="html">
&lt;p&gt;Tor is free software and an open network that helps you defend against traffic analysis, a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security.&lt;/p&gt;

&lt;p&gt;The ports tree of FreeBSD 11 has the Tor 0.3.1.9 marked broken as “BROKEN_powerpc64= does not build: error: Need a uint128_t implementation!”
The port can be successfuly built using GNU Compiler Collection 5.&lt;/p&gt;

&lt;p&gt;Install GCC5 on your FreeBSD.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# pkg install gcc5;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Add the following settings to the /etc/make.conf to be applied to every build where “make” is used.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;.if &lt;span class=&quot;o&quot;&gt;!&lt;/span&gt;empty&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;.CURDIR:M/usr/ports/&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; exists&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;/usr/local/bin/gcc5&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;CC&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;gcc5
&lt;span class=&quot;nv&quot;&gt;CXX&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;g++5
&lt;span class=&quot;nv&quot;&gt;CPP&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;cpp5
.endif&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Comment out the “BROKEN_powerpc64=” line in the /usr/ports/security/tor/Makefile.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;#BROKEN_powerpc64= does not build: error: Need a uint128_t implementation!&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Make and install the Tor port.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# cd /usr/ports/security/tor;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# make install clean;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Building should begin with no errors and in very first lines you should notice the following.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;checking &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;gcc... gcc5&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Verify if desired version has be installed.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# pkg info | grep ^tor-;&lt;/span&gt;
tor-0.3.1.9_1                  Anonymizing overlay network &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;TCP&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Startup the Tor daemon.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# service tor start;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Read and understand the &lt;a href=&quot;https://www.torproject.org/docs/tor-manual.html&quot;&gt;Tor manual&lt;/a&gt; before enabling the service.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Tor 0.3.1.9 for OpenBSD 6.1</title>
   <link href="/blog/tor-0.3.1.9-for-openbsd61.html"/>
   <updated>2017-12-21T00:00:00+01:00</updated>
   <id>/blog/tor-0.3.1.9-for-openbsd61</id>
   <content type="html">
&lt;p&gt;Tor is free software and an open network that helps you defend against traffic analysis, a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security.&lt;/p&gt;

&lt;p&gt;Package includes Tor 0.3.1.9 built for OpenBSD 6.1 for the following platforms - amd64.
Fully tested on &lt;a href=&quot;https://www.vultr.com/?ref=6913226&quot;&gt;Vultr&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Retrieve signify key the packages are signed off.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# ftp -MVo /etc/signify/wilkart-pkg.pub https://openbsd.wilkart.online/wilkart-pkg.pub;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Install the package for your platform (amd64).&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# pkg_add https://openbsd.wilkart.online/6.1/$(uname -m)/tor-0.3.1.9.tgz;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Startup Tor daemon.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# rcctl start tor;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Consult /etc/tor/torrc with the &lt;a href=&quot;https://www.torproject.org/docs/tor-manual.html&quot;&gt;Tor manual&lt;/a&gt; and ‘man tor’.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Monit 5.24 for OpenBSD 6.1</title>
   <link href="/blog/monit-5.24-for-openbsd.html"/>
   <updated>2017-09-29T00:00:00+02:00</updated>
   <id>/blog/monit-5.24-for-openbsd</id>
   <content type="html">
&lt;p&gt;Monit is a free open source utility for managing and monitoring processes, programs, files, directories and filesystems on a UNIX system. 
Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.&lt;/p&gt;

&lt;p&gt;Package includes Monit 5.24 built for OpenBSD 6.1 for following platforms - amd64. 
Fully tested on &lt;a href=&quot;https://incloudibly.net/?ref=wilkart&quot;&gt;Incloudibly&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Retrieve signify key the packages are signed off.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# ftp -MVo /etc/signify/wilkart-pkg.pub https://openbsd.wilkart.online/wilkart-pkg.pub;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Install the package for your platform (amd64).&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# pkg_add https://openbsd.wilkart.online/6.1/$(uname -m)/monit-5.24.0.tgz;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Startup monit daemon with example configuration.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# cp /usr/local/share/examples/monit/monitrc /etc/;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# rcctl start monit;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# monit status;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# rcctl enable monit;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Consult /etc/monitrc with the &lt;a href=&quot;http://mmonit.com/monit/documentation/&quot;&gt;Monit documentation&lt;/a&gt;.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Tor 0.3.0.10 for OpenBSD 6.1</title>
   <link href="/blog/tor-0.3.0.10-for-openbsd61.html"/>
   <updated>2017-08-04T00:00:00+02:00</updated>
   <id>/blog/tor-0.3.0.10-for-openbsd61</id>
   <content type="html">
&lt;p&gt;Tor is free software and an open network that helps you defend against traffic analysis, a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security.&lt;/p&gt;

&lt;p&gt;Package includes Tor 0.3.0.10 built for OpenBSD 6.1 for the following platforms - amd64, sparc64 and macppc. 
Fully tested on &lt;a href=&quot;https://zrh.cloudsigma.com/ui/?affid=apedziwilk02104&quot;&gt;CloudSigma&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Retrieve signify key the packages are signed off.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# ftp -MVo /etc/signify/wilkart-pkg.pub https://openbsd.wilkart.online/wilkart-pkg.pub;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Install the package for your platform (amd64, sparc64, macppc).&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# pkg_add https://openbsd.wilkart.online/6.1/$(uname -m)/tor-0.3.0.10.tgz;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Startup Tor daemon.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# rcctl start tor;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Consult /etc/tor/torrc with the &lt;a href=&quot;https://www.torproject.org/docs/tor-manual.html&quot;&gt;Tor manual&lt;/a&gt; and ‘man tor’.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Monit 5.23 for OpenBSD 6.1</title>
   <link href="/blog/monit-5.23-for-openbsd.html"/>
   <updated>2017-06-21T00:00:00+02:00</updated>
   <id>/blog/monit-5.23-for-openbsd</id>
   <content type="html">
&lt;p&gt;Monit is a free open source utility for managing and monitoring processes, programs, files, directories and filesystems on a UNIX system. 
Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.&lt;/p&gt;

&lt;p&gt;Package includes Monit 5.23 built for OpenBSD 6.1 for the following platforms - amd64, sparc64 and macppc. 
Fully tested on &lt;a href=&quot;https://zrh.cloudsigma.com/ui/?affid=apedziwilk02104&quot;&gt;CloudSigma&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Retrieve signify key the packages are signed off.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# ftp -MVo /etc/signify/wilkart-pkg.pub https://openbsd.wilkart.online/wilkart-pkg.pub;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Install the package for your platform (amd64, sparc64, macppc).&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# pkg_add https://openbsd.wilkart.online/6.1/$(uname -m)/monit-5.23.0.tgz;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Startup monit daemon with example configuration.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# cp /usr/local/share/examples/monit/monitrc /etc/;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# rcctl start monit;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# monit status;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# rcctl enable monit;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Consult /etc/monitrc with the &lt;a href=&quot;http://mmonit.com/monit/documentation/&quot;&gt;Monit documentation&lt;/a&gt;.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Monit 5.20 for OpenBSD 6.0</title>
   <link href="/blog/monit-5.20-for-openbsd.html"/>
   <updated>2017-01-12T00:00:00+01:00</updated>
   <id>/blog/monit-5.20-for-openbsd</id>
   <content type="html">
&lt;p&gt;Monit is a free open source utility for managing and monitoring processes, programs, files, directories and filesystems on a UNIX system. 
Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.&lt;/p&gt;

&lt;p&gt;Package includes Monit 5.20 built for OpenBSD 6.0 amd64. Fully tested on &lt;a href=&quot;https://zrh.cloudsigma.com/ui/?affid=apedziwilk02104&quot;&gt;CloudSigma&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;SHA256 (monit-5.20.0.tgz) = c6ThE2FM/71LbCtJZCN9/zEW281tNrIoyUPTMT2eDp0=&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# pkg_add https://openbsd.wilkart.online/6.0/amd64/monit-5.20.0.tgz;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# cp /usr/local/share/examples/monit/monitrc /etc/;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# rcctl start monit;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# monit status;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# rcctl enable monit;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Installed daemon runs with default configuration. Check &lt;a href=&quot;http://mmonit.com/monit/documentation/&quot;&gt;Monit documentation&lt;/a&gt;.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Why I run Tor relays?</title>
   <link href="/blog/tor-relay.html"/>
   <updated>2016-08-14T00:00:00+02:00</updated>
   <id>/blog/tor-relay</id>
   <content type="html">
&lt;p&gt;&lt;strong&gt;The Tor network&lt;/strong&gt; is a group of volunteer-operated servers that allows people to improve their privacy and security in the Internet.
Ongoing trends in law, policy, and technology threaten anonymity as never before.&lt;/p&gt;

&lt;p&gt;The only concern I have is the crime commited through the Tor network. But at the same time there is a corruption in governments and authorities. I fear corruption, hypocrisy and censorship more than the crime in the Tor network.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I trust in education and technology much more than control and censorship.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And the following resources convinced me too:&lt;br /&gt;
&lt;a href=&quot;https://www.torproject.org/about/overview.html.en&quot;&gt;Why we need Tor&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.goldenfrog.com/ES/en/about-us/vision-paper?ar=f7nl39nv9sdmi_1&quot;&gt;Peace, Prosperity and the Case for the Open Internet&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.tandfonline.com/doi/full/10.1080/00396338.2016.1142085&quot;&gt;Cryptopolitik and the Darknet&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.youtube.com/watch?v=oHcsM1Iq-w4&quot;&gt;Jacques Fresco - Corruption&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://protonmail.com/blog/fighting-internet-censorship/&quot;&gt;ProtonMail against Internet Censorship&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.youtube.com/watch?v=NPE7i8wuupk&quot;&gt;Marta Peirano at TEDxMadrid&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.theregister.co.uk/2017/07/29/tor_dark_web/&quot;&gt;Dark web doesn’t exist. And folks use network for privacy, not crime&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://media.defcon.org/DEF%20CON%2025/DEF%20CON%2025%20presentations/DEFCON-25-Roger-Dingledine-Next-Generation-Tor-Onion-Services.pdf&quot;&gt;Roger Dingledine at DEF CON 25&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://ccdcoe.org/sites/default/files/multimedia/pdf/TOR_Anonymity_Network.pdf&quot;&gt;Technical and Legal Overview of the Tor Anonymity Network&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://open.spotify.com/album/3rpZE8bZrQMvkF5NAEWBMF&quot;&gt;Dubioza Kolektiv - Whistleblower&lt;/a&gt;&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Install Monit 5.13 on SmartOS</title>
   <link href="/blog/install-monit-5.13-on-smartos.html"/>
   <updated>2015-05-14T00:00:00+02:00</updated>
   <id>/blog/install-monit-5.13-on-smartos</id>
   <content type="html">
&lt;p&gt;Monit is a free open source utility for managing and monitoring processes, programs, files, directories and filesystems on a UNIX system. 
Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.&lt;/p&gt;

&lt;p&gt;Released version 5.13 (05/May/2015) with features described in &lt;a href=&quot;http://mmonit.com/monit/changes/&quot;&gt;changelog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Building from source on SmartOS operating system.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# cd /tmp;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# wget https://mmonit.com/monit/dist/monit-5.13.tar.gz;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# tar -xzvf monit-5.13.tar.gz;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# cd monit-5.13;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# ./configure --with-ssl-incl-dir=/opt/local/include \ &lt;/span&gt;
 &lt;span class=&quot;nt&quot;&gt;--with-ssl-lib-dir&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/opt/local/lib &lt;span class=&quot;nt&quot;&gt;--prefix&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/opt/monit-5.13&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Building will finish with following information.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Architecture: SOLARIS
SSL include directory: /opt/local/include
SSL library directory: /opt/local/lib
Compiler flags: -Wno-address -Wno-pointer-sign -g -O2 &lt;br /&gt;
  -Wall -Wunused -Wno-unused-label -funsigned-char -D_GNU_SOURCE &lt;br /&gt;
  -std=c99 -D _REENTRANT -D_POSIX_PTHREAD_SEMANTICS -D__EXTENSIONS__ &lt;br /&gt;
  -m64 -mtune=opteron -I/opt/local/include
Linker flags: -lpam -lpthread -lresolv -lnsl -lsocket &lt;br /&gt;
  -lkstat -L/opt/local/lib -lssl -lcrypto
pid file location: /var/run
Install directory: /opt/monit-5.13&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Installation and running.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# cd /tmp/monit-5.13;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# make;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# make install;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# /opt/monit-5.13/bin/monit -h;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Read the &lt;a href=&quot;http://mmonit.com/monit/documentation/monit.html&quot;&gt;Monit documentation&lt;/a&gt;
to configure your monitoring.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Install Monit 5.8 on SmartOS</title>
   <link href="/blog/install-monit-5.8-on-smartos.html"/>
   <updated>2014-05-11T00:00:00+02:00</updated>
   <id>/blog/install-monit-5.8-on-smartos</id>
   <content type="html">
&lt;p&gt;Monit is a free open source utility for managing and monitoring processes, programs, files, directories and filesystems on a UNIX system. 
Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.&lt;/p&gt;

&lt;p&gt;Released version 5.8 (27/Mar/2014) with features described in &lt;a href=&quot;http://mmonit.com/monit/changes/&quot;&gt;changelog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Building from source on SmartOS operating system.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# cd /tmp;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# wget http://mmonit.com/monit/dist/monit-5.8.tar.gz;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# tar -xzvf monit-5.8.tar.gz;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# cd monit-5.8;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# ./configure --with-ssl-incl-dir=/opt/local/include \ &lt;/span&gt;
 &lt;span class=&quot;nt&quot;&gt;--with-ssl-lib-dir&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/opt/local/lib &lt;span class=&quot;nt&quot;&gt;--prefix&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/opt/monit-5.8&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Building will finish with following information.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Monit Build Information:&lt;/p&gt;

  &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;           Architecture: SOLARIS
  SSL include directory: /opt/local/include
  SSL library directory: /opt/local/lib
         Compiler flags: -Wno-address -Wno-pointer-sign -g -O2 -Wall \ 
                         -Wunused -Wno-unused-label -funsigned-char \ 
                         -D_GNU_SOURCE -std=c99 -D _REENTRANT \
                         -D_POSIX_PTHREAD_SEMANTICS -D__EXTENSIONS__ \
                         -m64 -mtune=opteron -I/opt/local/include \
           Linker flags: -lpam -lpthread -lresolv -lnsl -lsocket \
                         -lkstat -L/opt/local/lib -lssl -lcrypto
      pid file location: /var/run
      Install directory: /opt/monit-5.8
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;  &lt;/div&gt;
&lt;/blockquote&gt;

&lt;p&gt;Installation and running.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;c&quot;&gt;# cd /tmp/monit-5.8;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# make;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# make install;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# /opt/monit-5.8/bin/monit -h;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Read the &lt;a href=&quot;http://mmonit.com/monit/documentation/monit.html&quot;&gt;Monit documentation&lt;/a&gt;
to configure your monitoring.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Pronunciation Poem</title>
   <link href="/blog/pronunciation-poem.html"/>
   <updated>2013-08-23T00:00:00+02:00</updated>
   <id>/blog/pronunciation-poem</id>
   <content type="html">
&lt;p&gt;I take it you already know&lt;br /&gt;Of though and bough and cough and dough?&lt;br /&gt;Others may stumble, but not you&lt;br /&gt;On hiccough, thorough, slough, and through.&lt;br /&gt;Well don&apos;t! And now you wish, perhaps,&lt;br /&gt;To learn of less familiar traps.&lt;br /&gt;Beware of heard, a dreadful word&lt;br /&gt;That looks like beard but sound like bird.&lt;br /&gt;And dead: it&apos;s said like bed, not bead,&lt;br /&gt;For goodness sake don&apos;t call it deed!&lt;br /&gt;Watch out for meat and great and threat&lt;br /&gt;(They rhyme with suite and straight and debt).&lt;br /&gt;A moth is not a moth as in mother&lt;br /&gt;Nor both as in bother, nor broth as in brother,&lt;br /&gt;And here is not a match for there,&lt;br /&gt;Nor dear and fear, for bear and pear.&lt;br /&gt;And then there&apos;s dose and rose and lose --&lt;br /&gt;Just look them up -- and goose and choose&lt;br /&gt;And cork and work and card and ward&lt;br /&gt;And font and front and word and sword&lt;br /&gt;And do and go, then thwart and cart,&lt;br /&gt;Come, come! I&apos;ve hardly made a start.&lt;br /&gt;A dreadful Language? Why man alive!&lt;br /&gt;I learned to talk it when I was five.&lt;br /&gt;And yet to write it, the more I tried,&lt;br /&gt;I hadn&apos;t learned it at fifty-five.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>From Tumblr to Jekyll</title>
   <link href="/blog/from-tumblr-to-jekyll.html"/>
   <updated>2013-08-03T00:00:00+02:00</updated>
   <id>/blog/from-tumblr-to-jekyll</id>
   <content type="html">
&lt;blockquote&gt;
	&lt;p&gt;&lt;strong&gt;Jekyll&lt;/strong&gt; - a simple, blog aware, static site generator.&lt;/p&gt;
	&lt;small&gt;Tom Preston-Werner&lt;/small&gt;
&lt;/blockquote&gt;

&lt;p&gt;Goodbye Tumblr and &lt;strong&gt;Welcome Jekyll&lt;/strong&gt;!&lt;/p&gt;
</content>
 </entry>
 
 
</feed>