Step1: Remove Parallels with AppCleaner (https://freemacsoft.net/appcleaner/)
Step2: Run reset.sh file
Step3: Install Parallels
Step1: Remove Parallels with AppCleaner (https://freemacsoft.net/appcleaner/)
Step2: Run reset.sh file
Step3: Install Parallels
I bought M1 MacBook Air. It is the fastest computer I have, and I have been a GNOME/GNU/Linux user for long time. It is obvious conclusion that I need practical Linux desktop environment on Apple Silicon.
Fortunately, Linux already works on Apple Silicon/M1. But how practical is it?
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!
NOTE: that this is current, 10/1/2021 state.
[Version] | |
major = 1 | |
minor = 1 | |
[Common] | |
black_dir_prefix = "@tmp", "@eaDir", ".SynologyWorkingDirectory", "#recycle", "desktop.ini", ".ds_store", "Icon\r", "thumbs.db", "$Recycle.Bin", "@sharebin", "System Volume Information", "Program Files", "Program Files (x86)", "ProgramData", "#snapshot" | |
max_length = 0 | |
max_path = 0 | |
[File] |
Note: this was tested and used on DSM5 and partly on 6. Since V7 I am not using this anymore.
Got and ssh into your box. Find what is using swap:
find /proc -maxdepth 2 -path "/proc/[0-9]*/status" -readable -exec awk -v FS=":" -v TOTSWP="$(cat /proc/swaps | sed 1d | awk 'BEGIN{sum=0} {sum=sum+$(NF-2)} END{print sum}')" '{process[$1]=$2;sub(/^[ \t]+/,"",process[$1]);} END {if(process["VmSwap"] && process["VmSwap"] != "0 kB") {used_swap=process["VmSwap"];sub(/[ a-zA-Z]+/,"",used_swap);percent=(used_swap/TOTSWP*100); printf "%10s %-30s %20s %6.2f%\n",process["Pid"],process["Name"],process["VmSwap"],percent} }' '{}' \; | awk '{print $(NF-2),$0}' | sort -hr | head | cut -d " " -f2-
Update synoinfo.conf to correct memory in MB (https://www.gbmb.org/gb-to-mb) for 8GB:
-- listen for console connection with the given secret key
-- controlSocket("0.0.0.0")
-- setKey(please generate a fresh private key with makeKey())
-- start the web server on port 8083, using password 'set a random password here'
-- webserver("0.0.0.0:8083", "set a random password here")
-- accept DNS queries on UDP/5200 and TCP/5200
I largely followed Florin's blog post, but have a few notes to add regarding issues I encountered:
gpg-agent
only automatically starts when gpg is used; for ssh, you'll need to ensure it's running.list
command inside gpg --edit-card
, look for the Key attributes
line to see what is currently selected. On my YubiKey 4, it defaulted to 2048 bits for all keys:Key attributes ...: rsa2048 rsa2048 rsa2048
version: "3.1" | |
services: | |
redis-master-1: | |
build: ./ | |
networks: | |
redisnet: | |
ipv4_address: 10.0.0.2 | |
command: sh -c "redis-server /src/redis.conf --port 7000 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000" | |
redis-master-2: | |
build: ./ |