Skip to content

Instantly share code, notes, and snippets.

@interfect
interfect / castanet.sh
Last active May 30, 2025 07:08
Set up a Chromecast from a Linux PC, without an Android or iOS mobile device and without Google Home
#!/usr/bin/env bash
# castanet.sh: Script to connect a chromecast to a WiFi network.
#
# Allows you to put your Chromecast on WiFi and do Chromecast initial setup
# without using the Google Home app at all, just using a normal Linux computer.
#
# You do need your Chromecast to be on Ethernet, or (untested) to join its setup WiFi
# network with your PC, and you also need to find out its IP yourself with e.g.
# Wireshark.
BACKEND
-[ ] define nsAPI_cmnd_alias in /etc/sudoers.d/10_servermanager_api
https://gist.github.com/ba0d97eb578664f42852d63d630e8949
https://github.com/NethServer/nethserver-cockpit/compare/master...DavidePrincipi:sudoers
example:
Cmnd_Alias NSAPI_SYSTEM_TLS = \
/usr/libexec/nethserver/api/system-certificate/read, \
/usr/libexec/nethserver/api/system-certificate/update, \