Server/pulsebert: Unterschied zwischen den Versionen
Vater (Diskussion | Beiträge) (→Betriebssystem) |
Vater (Diskussion | Beiträge) (flakes rules!) |
||
(6 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | == | + | == Host == |
− | + | [[Intel NUC]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Betriebssystem == | == Betriebssystem == | ||
Zeile 41: | Zeile 24: | ||
* Account ''k-ot'' hinzugefügt | * Account ''k-ot'' hinzugefügt | ||
− | nixos-install | + | : <code>nixos-install</code> |
Passwort für root gesetzt | Passwort für root gesetzt | ||
Zeile 53: | Zeile 36: | ||
: <code>nix-locate hwinfo</code> | : <code>nix-locate hwinfo</code> | ||
+ | <!-- | ||
==== [https://nixos.wiki/wiki/Home_Manager home-manager] ==== | ==== [https://nixos.wiki/wiki/Home_Manager home-manager] ==== | ||
− | /etc/nixos/configuration.nix | + | : <code>sudo $EDITOR /etc/nixos/configuration.nix</code> |
− | + | <pre></pre> | |
+ | <pre> | ||
environment.systemPackages = with pkgs; [ | environment.systemPackages = with pkgs; [ | ||
+ | </pre> | ||
+ | <pre></pre> | ||
+ | <pre> | ||
home-manager | home-manager | ||
+ | </pre> | ||
+ | <pre></pre> | ||
+ | <pre> | ||
]; | ]; | ||
+ | </pre> | ||
+ | <pre></pre> | ||
: <code>sudo nixos-rebuild switch</code> | : <code>sudo nixos-rebuild switch</code> | ||
Zeile 76: | Zeile 69: | ||
: <code>home-manager switch</code> | : <code>home-manager switch</code> | ||
+ | --> | ||
=== Konfiguration === | === Konfiguration === | ||
+ | [[gitea:C3D2/nix-config/src/branch/master/hosts/pulsebert]] | ||
+ | |||
+ | ==== Verwaltung der Konfiguration ==== | ||
+ | |||
+ | [[gitea:C3D2/nix-config#flakes]] | ||
+ | |||
+ | <!-- | ||
==== Systemweite Konfiguration ==== | ==== Systemweite Konfiguration ==== | ||
Zeile 94: | Zeile 95: | ||
: <code>home-manager switch</code> | : <code>home-manager switch</code> | ||
+ | --> | ||
+ | |||
+ | == Betrieb == | ||
+ | |||
+ | === Installieren eines weiteren Paketes === | ||
+ | : am Beispiel vom notwendigen ''ddate'' | ||
+ | |||
+ | <pre>[k-ot@pulsebert:~]$ </pre> | ||
+ | : <code>ddate</code> | ||
+ | <pre> | ||
+ | ddate: command not found | ||
+ | </pre> | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <pre>[k-ot@pulsebert:~]$ </pre> | ||
+ | : <code>[https://www.mankier.com/1/nix-shell#--packages nix-shell -p] [https://search.nixos.org/packages?query=ddate ddate]</code> | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <pre>[nix-shell:~]$ </pre> | ||
+ | : <code>[[man:ddate | ddate]]</code> | ||
+ | <pre> | ||
+ | Today is Pungenday, the 10th day of Discord in the YOLD 3187 | ||
+ | </pre> | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <pre>[nix-shell:~]$ </pre> | ||
+ | : <code>exit</code> | ||
+ | <pre> | ||
+ | exit | ||
+ | </pre> | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <pre>[k-ot@pulsebert:~]$ </pre> | ||
+ | : <code>ddate</code> | ||
+ | <pre> | ||
+ | ddate: command not found | ||
+ | </pre> | ||
+ | |||
+ | === Abspielen von einem Stream für Audio === | ||
+ | : aka "Radio (als Klangtapete) aus dem Internet im Space hören" | ||
+ | |||
+ | Erstellen einer Umgebung im [[#Betreibssystem]] ([[NixOS]]) mit dem Paket ''mpv'' | ||
+ | : <code>[https://www.mankier.com/1/nix-shell#--packages nix-shell -p] [https://search.nixos.org/packages?query=mpv mpv]</code> | ||
+ | |||
+ | Abspielen von einem Stream (nur Ton, also ohne Video) am Beispiel [https://somafm.com/defcon/ ''DEF CON Radio'' von ''SomaFM''] mit dem Programm ''mpv'' | ||
+ | : <code>[[man:mpv|mpv]] --vid=no https://somafm.com/defcon256.pls</code> | ||
== Siehe auch == | == Siehe auch == |
Aktuelle Version vom 24. März 2021, 23:53 Uhr
Inhaltsverzeichnis
Host
Betriebssystem
Installation
standardmäßige Partitionierung gemäß https://nixos.org/nixos/manual/index.html#sec-installation-partitioning-UEFI
sda1 1 GB (statt 512 MB) für boot
kein swap
standardmäßiges Formatieren gemäß https://nixos.org/nixos/manual/index.html#sec-installation-partitioning-formatting
https://nixos.org/nixos/manual/index.html#sec-installation-installing
erstellte /mnt/etc/nixos/hardware-configuration.nix kontrolliert
erstellte /mnt/etc/nixos/configuration.nix geringfügig angepasst
- Account k-ot hinzugefügt
-
nixos-install
Passwort für root gesetzt
Einrichtung
Erstellen von einem Index für nix-locate
Anzeigen von …
-
nix-locate hwinfo
Konfiguration
gitea:C3D2/nix-config/src/branch/master/hosts/pulsebert
Verwaltung der Konfiguration
Betrieb
Installieren eines weiteren Paketes
- am Beispiel vom notwendigen ddate
[k-ot@pulsebert:~]$
-
ddate
ddate: command not found
[k-ot@pulsebert:~]$
[nix-shell:~]$
Today is Pungenday, the 10th day of Discord in the YOLD 3187
[nix-shell:~]$
-
exit
exit
[k-ot@pulsebert:~]$
-
ddate
ddate: command not found
Abspielen von einem Stream für Audio
- aka "Radio (als Klangtapete) aus dem Internet im Space hören"
Erstellen einer Umgebung im #Betreibssystem (NixOS) mit dem Paket mpv
Abspielen von einem Stream (nur Ton, also ohne Video) am Beispiel DEF CON Radio von SomaFM mit dem Programm mpv
-
mpv --vid=no https://somafm.com/defcon256.pls
Siehe auch
- (Ersatz) Server/cibert (ehemals Server/cider)
- (Ersatz) Server/lisbeth (als Ersatz von Server/cibert)
- Server/glotzbert (Gerät am TV)
foo im HQ
Server/pulsebert ist Teil vom HQ. Mit der hier verwendeten Vorlage:foo im HQ sollst du eine Übersicht über andere wichtige Gegenstände im HQ bekommen.