snabelen.no er en av mange uavhengige Mastodon-servere du kan bruke for å delta i det desentraliserte sosiale nettet.
Ein norsk heimstad for den desentraliserte mikroblogge-plattformen.

Administrert av:

Serverstatistikk:

364
aktive brukere

#macos

1,5T innlegg63 deltakere0 innlegg i dag

Do you write code that runs on Linux and macOS? If so, what does your development environment look like? Please boost for visibility.

Windows market share in Germany drops to 69.78%, down nearly 10 points in a year 📉

Meanwhile, macOS rises to 19.59%, driven by user demand for privacy & seamless integration 🍏

Linux more than doubles to 5.49%, reflecting growing interest in open-source, secure, and flexible systems 🐧

This is a very specific #macOS and #Wireguard question.

Is there a way to start a Wireguard tunnel (which I now do manually for reasons which will become obvious) when you change your Location to specific ones?

For example:

* Location "Office" -> no Wireguard
* Location "Home" -> Wireguard to specific endpoint
* Location "Automatic" -> Wireguard to another endpoint

I know the launchd trick¹ to have it run at startup but this would be "all the time" as opposed to location-dependent:

I'm sure there is a magic macOS incantation for it :flan_XD:

:flan_piteous:

__
¹ for those who don't know how to start Wireguard at boot on macOS:

cat > com.wireguard.endpoint.plist <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "apple.com/DTDs/PropertyList-1.">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.wireguard.endpoint</string>
<key>ProgramArguments</key>
<array>
<!-- Points to local version of wg-quick that
fixes path issues with the script -->
<string>/opt/local/bin/wg-quick</string>
<string>up</string>
<string>endpoint</string>
</array>
<key>KeepAlive</key>
<dict>
<key>NetworkState</key>
<true/>
</dict>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/opt/local/var/log/wireguard.err</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<!-- Adds in user-specific and MacPorts bin directories to start of PATH -->
<string>/opt/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</dict>
</dict>
</plist>
EOF

Followed by:

sudo cp com.wireguard.endpoint.plist /Library/LaunchDaemons
sudo launchctl enable system/com.wireguard.endpoint
sudo launchctl bootstrap system /Library/LaunchDaemons/com.wireguard.endpoint.plist

Replied in thread

@chockenberry @rmondello > “DELETE is the absolute last thing I want to see when dealing with passwords.”

Made me chuckle;

in The Netherlands, the text to eject an external drive on macOS is: “Delete” (“Verwijderen”).
Yes. Read that again. It’s like the worse translation, ever…

They translated it *literally* instead of giving it a proper/intuitive name... #macOS #apple

Replied in thread

@viticci

Quite frankly, we will tell our customers to refrain from updating to #macOS "Smear", and we will NOT use any of the ugly, and unusable new glassy UI elements in our #NeoFinder flagship software for the time being.

"UIDesignRequiresCompatibility" is your friend.

#Apple needs at least three more years to make this at least a little usable. Or drop it, and start from scratch, if they even still have people able to pull such a thing off.

Yikes.