es gibt einige interessante Dinge, wie man einen Mac PC oder Macbook wirklich gut benutzen kann, wenn ich auch zugeben muss, dass ich die Dateiverwaltung unerträglich finde, u.a. weil man nie weiß, wo etwas hingespeichert wird oder ich nicht einsehen kann, warum Bilder oder Musik in einer Datenbank verschwinden, die sich dann als einfache Archive entpuppen, genau so wie die „Apps“. Nun ja, Geschmackssache halt.
Hier versuche ich einmal zusammen zu tragen, wie man das Arbeiten damit vereinfachen kann, denn die Zusammenstellung der Hardware beispielsweise ist immer noch sehr gut und auf älteren Macs mit Intel Prozessoren lassen sich ganz gut Linux Distributionen installieren 😉 So bin ich dann tatsächlich in den letzen Jahren etwas auf den Geschmack gekommen.
Soll wach bleiben!
ACHTUNG! Es muss manuell wieder abgeschaltet werden.
sudo pmset -a disablesleep 1
sudo pmset -a disablesleep 0
CPULIMIT compilen:
git clone https://github.com/opsengine/cpulimit.git
cd cpulimit
es BRICHT MIT ERROR AB!!
sed -i '' '1i\
#include <libgen.h>
' ./src/process_group.c
make
sudo cp src/cpulimit /usr/local/bin/
cd src && /Library/Developer/CommandLineTools/usr/bin/make clean
rm -f *~ *.o cpulimit
cd tests && /Library/Developer/CommandLineTools/usr/bin/make clean
rm -f *~ *.o busy process_iterator_test
cd src && /Library/Developer/CommandLineTools/usr/bin/make all
cc -c list.c -Wall -g -D_GNU_SOURCE
cc -c process_iterator.c -Wall -g -D_GNU_SOURCE
cc -c process_group.c -Wall -g -D_GNU_SOURCE
cc -o cpulimit cpulimit.c list.o process_iterator.o process_group.o -Wall -g -D_GNU_SOURCE
cpulimit.c:46:18: warning: extra tokens at end of #ifdef directive [-Wextra-tokens]
46 | #ifdef APPLE || FREEBSD
| ^
| //
In file included from cpulimit.c:58:
./memrchr.c:24:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
24 | memrchr(s, c, n)
| ^
2 warnings generated.
cd tests && /Library/Developer/CommandLineTools/usr/bin/make all
cc -o busy busy.c -lpthread -Wall -g
cc -I../src -o process_iterator_test process_iterator_test.c ../src/list.o ../src/process_iterator.o ../src/process_group.o -lpthread -Wall -g
process_iterator_test.c:31:18: warning: extra tokens at end of #ifdef directive [-Wextra-tokens]
31 | #ifdef APPLE || FREEBSD
| ^
| //
1 warning generated.
ps ax | grep UVR
7264 ?? R 365:14.54 /Applications/Ultimate Vocal Remover.app/Contents/MacOS/UVR
cpulimit % cpulimit -l 50 -p 7264
Process 7264 found
