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

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

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

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

High Load on macOS Server

I had a really high load on my Mac Mini Server. As it is a Late 2014 with only two CPU-Cores, everything hurts which makes the Server slow. Two processes consumed a lot of Memory and CPU-Time. apspd & cfprefsd With fs_usage I’ve found out that cfprefsd reads and writes all the time to /Library/Preferences/ApplePushServiceProvider/com.apple.apspd.plist. And this file was more the 53 MByte! So it looked like apspd` is the reason for the issue. ...

May 10, 2017 · 2 min · pixelchrome

macOS Spotlight kaputt?

Keine lokalen Ergebnisse Gestern hat Spotlight beim suchen nur Ergebnisse in ‘Vorgeschlagene Website’ angezeigt. Lokale Ergebnisse gab es nicht. Im Terminal den Status abgefragt # sudo mdutil -s / /: Error: unexpected indexing state. kMDConfigSearchLevelTransitioning Hmm… Have you tried turning it off and on again? # sudo mdutil -i off / /: Error: Index is already changing state. Please try again in a moment. Das funktioniert also auch nicht. Dann hilft nur den Daemon komplett neu zu starten. ...

October 26, 2016 · 1 min · pixelchrome

IOS10 / macOS Sierra kann keine Mails verschicken?

Ich habe heute den Update auf IOS 10 bzw. macOS Sierra durchgeführt. Was ziemlich schnell auffiel, es können keine Mails mehr verschickt werden! Naja… offensichtlich versucht das Mail Programm nun IPv6 zu bevorzugen, macht aber keinen Fallback auf IPv4. Das ist mir aufgefallen als ich die Logs meines Mail-Servers angesehen habe. IMAP Connection kommt zustande (eben per IPv6), bei SMTP sah ich gar keine Einträge. Hmm… # netstat -a|grep -i listen|grep smtp tcp4 0 0 *.smtps *.* LISTEN tcp4 0 0 *.smtp *.* LISTEN Wie man sieht hört mein SMTP Server nur auf IPv4 :-( ...

September 15, 2016 · 1 min · pixelchrome

Bootbaren ESXi-USB Installer mit OS X erzeugen

Für alles gibt es ja meistens schon eine Lösung, so auch für dieses kleine Problem. VMware stellt nur ISO Images zum Download bereit, von denen ESXi installiert werden kann. Nun möchte man aber vielleicht einen USB-Stick verwenden, statt das ISO-Image auf eine CD zu brennen. Dafür gibt es verschiedene Anleitungen. Für OS X muss man vielleicht etwas länger suchen. Aber auf GitHub, findet man was passendes :-) vmware-usb-osx This project includes a simple makefile that helps you create a bootable USB installer for VMware ESXi on OSX. This is based on a similar script I made for ubuntu. ...

May 13, 2016 · 3 min · pixelchrome

Ghost, Mac OS X und homebrew

Wie installiere ich Ghost unter Mac OS X? Ganz einfach! Oder? Mit brew nodejs installieren und dann mit npm install & npm start starten. Im Prinzip ja, aber… wenn man nodejs neu installieren muss, dann wird ein brew install nodejs die neueste Version installieren. Die ist aber leider nicht supportet von Ghost. Also dann eben die LTS Version von nodejs installieren? brew install homebrew/versions/node4-lts Die Version ist leider auch zu neu :( . Zumindest für Ghost 0.7.6. ...

February 18, 2016 · 1 min · pixelchrome