pixelchrome

a different view…

Converting image files with macOS command line tool sips

Simple Image Conversion from the Command Line sips -s format [image type] [file name] --out [output file] Example sips -s format png test.jpg --out test.png Batch Image Conversion with sips for i in *.jpeg; do sips -s format png $i --out Converted/$i.png;done Links Converting Image File Formats with the Command Line & sips

December 30, 2024 · 1 min · pixelchrome

Obsidian Blogging Setup

How I’ve setup Obsidian for blogging I’ve stumbled across this during scrolling through different youtube videos. Networkchuck showed here how he is using Obsidian for blogging -> I started a blog… in 2024 Blogpost Setup of the Obsidian Vault Create a specific directory where all blogposts are located Images should be located in a specific directory (see below) Hugo Setup Create a new site hugo new site testblog27122024 git init Congratulations! Your new Hugo site was created in /Users/harry/Developer/testblog27122024. Just a few more steps... 1. Change the current directory to /Users/harry/Developer/testblog27122024. 2. Create or install a theme: - Create a new theme with the command "hugo new theme <THEMENAME>" - Or, install a theme from https://themes.gohugo.io/ 3. Edit hugo.toml, setting the "theme" property to the theme name. 4. Create new content with the command "hugo new content <SECTIONNAME>/<FILENAME>.<FORMAT>". 5. Start the embedded web server with the command "hugo server --buildDrafts". See documentation at https://gohugo.io/. Initialized empty Git repository in /Users/harry/Developer/testblog27122024/.git/ Add a theme (PaperMod) git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod ...

December 29, 2024 · 3 min · pixelchrome

Meine ersten Obsidian Tweaks

Änderungen in den Obsidian Settings damit die Attachments in einem Subfolder gespeichert werden So sieht die Struktur aus ohne Anpassung In den Einstellungen auf folgendes geändert Files and Links -> Default location for new attachments -> In subfolder under current folder So sieht das dann im Finder aus GIT Siehe https://help.obsidian.md/getting-started/sync-your-notes-across-devices#Git Git Repo auf Github oder Gitlab anlegen git init in dem Verzeichnis des Vaults git remote add origin [URL] Commit your changes: git add . and git commit -m "Your message". Push the changes: git push origin main. Git Plugin Siehe https://obsidian.md/plugins?id=obsidian-git# ...

November 29, 2024 · 1 min · pixelchrome

fail2ban

fail2ban I’m using fail2ban to block script kiddies. Here is one line what you will find in your auth.log May 11 05:32:14 srv01 sshd[79609]: Invalid user postgres from 37.49.226.178 port 46504 This description can help you how to install and configure fail2ban I will update this post with new infos. Installation - Ubuntu / Debian sudo apt-get update sudo apt-get upgrade sudo apt-get install fail2ban Installation FreeBSD sudo pkg install py37-fail2ban Configuration Configuration Ubuntu / Devian cd /etc/fail2ban sudo vi jail.local This configuration is for the sshd daemon. If a user fails to connect three times (maxretry = 3) within 24 hours (findtime = 24h) to login via ssh, he will get banned indefinitely (bantime = -1). ...

May 12, 2020 · 4 min · pixelchrome

macOS and the X Window System with XQuartz

macOS and the X Window System If you want to use the X Window System on macOS, you need XQuartz. Install XQuartz brew cask install xquartz After a Reboot you will get the $DISPLAY set correctly. Test with xeyes /opt/X11/bin/xeyes SSH X11Forwarding You can now use ssh -X or ssh -Y Uninstall brew cask uninstall xquartz Start XQuartz temprorary This is only necessary if you want to start XQuartz without a reboot. ...

January 16, 2020 · 1 min · pixelchrome

Goodbye Ghost

Goodbye Ghost Its time to say goodbye to the software I’ve used for long time to blog here. Ghost was a perfect piece of software when I started (again). I’ve learned a lot during that time, e.g. Markdown, configuring NGINX to serve data from Ghost. And how to get nodejs running on my server (which is not that easy as it sounds. more later…) Why? The problems I’ve had: It relies on nodejs - especially at the beginning, there had been some restrictions with the versions. Therefore it was necessary to find a version that is supported with the OS I use and which works with Ghost. That made updates of FreeBSD not that easy, as nodejs need some more specific attention (e.g. add some changes to the node4 Makefile to be able to run sudo portmaster -m DISABLE_VULNERABILITIES=yes www/node4) I’ve created my own startup script for ghost. Meanwhile there are many and better versions available. Just search for ghost_start() and you will find plenty of them. I had massive problems to get Ghost updated to newer version. In more detail, I wasn’t able to export the blog settings and data. It was always a hassle to do that by hand. Therefore I was not able to update it regularly. All of that lead to a bad gut feeling (security) I still believe that Ghost is a wonderful platform for blogging. Especially the hosted version. ...

October 5, 2019 · 2 min · pixelchrome

Using letsencrypt with macOS Server

Even with all the restrictions of today some people need to run macOS Server (mojave 5.7.1). With the availability of letsencrypt it is possible to use this server with a proper signed certificate instead of a self-signed certficate. I am using cloudflare-dns. With some changes you can use this also for other methods. This is a tutorial and scripts to install letsencrypt, get a certificate an renew it. Use it on your own risk! ...

October 10, 2018 · 4 min · pixelchrome

Docker on macOS - Fatal Error

Fatal Error My Docker on macOS doesn’t start anymore. It shows the following At the very last line, you can see the following Error Message: no space left on device Disk full? Of course there is enough space on my local drive available, but the Docker disk image see FAQ is full. The disk image is located here ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2 With the qcow-tool you can check it: $ /Applications/Docker.app/Contents/MacOS/qcow-tool info Docker.qcow2 ((version Three) (backing_file_offset 0) (backing_file_size 0) (cluster_bits 16) (size 68719476736) (crypt_method None) (l1_size 128) (l1_table_offset ((bytes 131072) (is_mutable false) (is_compressed false))) (refcount_table_offset ((bytes 65536) (is_mutable false) (is_compressed false))) (refcount_table_clusters 1) (nb_snapshots 0) (snapshots_offset 0) (additional (((dirty true) (corrupt false) (lazy_refcounts true) (autoclear_features 0) (refcount_order 4)))) (extensions ((Feature_name_table (((ty Incompatible) (bit 0) (feature Dirty)) ((ty Incompatible) (bit 1) (feature Corrupt)) ((ty Compatible) (bit 0) (feature Lazy_refcounts))))))) Okay, looks good so far! Now how can I resize it? I wasn’t able to get it done with qcow-tool resize. ...

July 9, 2018 · 3 min · pixelchrome

NetApp Docker Volume Plugin for Raspberry Pi

TL;DR NetApp provides a plugin for docker for x86 platforms. With a small modification it works perfectly well on a Raspberry Pi (ARM). Intro A year ago I’ve written some articles about running docker on a cluster of Raspberry Pi. NetApp published a plugin for docker to integrate NetApp’s SolidFire, ONTAP, and E-series storage platforms. Of course this plugin is available for x86 (AMD64), but not for any other platform. Therefore I thought if it is possible to build this plugin for a Raspi (ARM). ...

December 29, 2017 · 4 min · pixelchrome

macOS Time Machine Backups and SMB

Time Machine doesn’t work on Network Shares after the upgrade After I’ve updated my Mac Pro to macOS High Sierra, Time Machine Backups stopped working. Shared with SMB? The backups are on a Mac Mini and I’ve found out that it is necessary to share the folder via SMB. But that checkmark has already been set. Therefore I’ve tried to reconnect the Mac Pro to the Backup destination. OSStatus Error 17 And I’ve received Error ‘OSStatus Error 17’. I wasn’t able to find out a description what this means, but looks like that there is an authentication problem. ...

September 29, 2017 · 1 min · pixelchrome