c3d2-wiki/Server%2Fglotzbert.mw

195 lines
5.1 KiB
Plaintext

== Hardware ==
; Model: MacMini
; CPU: Intel(R) Core(TM)2 Duo CPU P7550 @ 2.26GHz
; RAM: 2 GB
; HDD: 160 GB
== Betriebssystem ==
* Debian 8 (Jessie)
== Verwendung ==
[[#Kodi]] on Linux
=== after login ===
<pre>
mpv --ao pulse:cider.local --cache 8192 --fs http://webdav:${password}@storage.hq.c3d2.de:8080/rpool/${file}
</pre>
== Systemeinrichtung ==
Btrfs Subvolume Snapshot Boot Environment
: <source lang="bash"></source>
<pre>
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 149.1G 0 disk
|-sda1 8:1 0 200M 0 part /boot/efi
|-sda2 8:2 0 1.9G 0 part /boot
`-sda3 8:3 0 146.2G 0 part
|-glotzbert-system 254:0 0 142.5G 0 lvm /
`-glotzbert-swap 254:1 0 3.7G 0 lvm [SWAP]
sr0 11:0 1 1024M 0 rom
</pre>
* / (rootfs) - default
* /ROOT/system-20150303-2148 - Subv. Snapshot für lauffähige XBMC/Kodi-Umgebung
=== NVIDIA fix ===
https://wiki.debian.org/NvidiaGraphicsDrivers#configure
Nouveau Driver Probleme beheben
: <source lang="bash">vi /etc/default/grub</source>
<pre>
###
GRUB_CMDLINE_LINUX_DEFAULT="nouveau.modeset=0"
###
</pre>
: <source lang="bash">grub-mkconfig; update-grub</source>
Nvidia Driver statt Nouveau
: <source lang="bash">lspci -nn | grep VGA</source>
<source lang="bash">
02:00.0 VGA compatible controller [0300]: NVIDIA Corporation C79 [GeForce 9400] [10de:0861] (rev b1)
</source>
non-free in <code>/etc/apt/sources.list</code> einfügen
: <source lang="bash">apt-get update; apt-get upgrade</source>
: <source lang="bash">aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-dkms</source>
: <source lang="bash">mkdir /etc/X11/xorg.conf.d</source>
: <source lang="bash">echo -e 'Section "Device"\n\tIdentifier "My GPU"\n\tDriver "nvidia"\nEndSection' > /etc/X11/xorg.conf.d/20-nvidia.conf</source>
: <source lang="bash">apt-get install nvidia-config</source>
Neustarten!
: <source lang="bash">reboot</source>
=== Kodi ===
; aka ''XBMC''
* 13.2
*: https://people.debian.org/~rbalint/ppa/xbmc-ffmpeg/
repo hinzufügen
: <source lang="bash">echo "deb https://people.debian.org/~rbalint/ppa/xbmc-ffmpeg xbmc-ffmpeg-unstable/" >> /etc/apt/sources.list</source>
: <source lang="bash">apt-get install apt-transport-https</source>
: <source lang="bash">apt-get update; apt-get upgrade</source>
: <source lang="bash">apt-key adv --keyserver pool.sks-keyservers.net --recv-keys 21E764DF</source>
: <source lang="bash">apt-get update; apt-get upgrade</source>
XBMC hinzufügen
: <source lang="bash">apt-get install xbmc</source>
: <source lang="bash">apt-get install smbclient</source>
Neustarten!
: <source lang="bash">reboot</source>
==== Kodi Web-Access ====
* http://glotzbert:8080/
Bei
: ''Settings'' → ''Services'' → ''Webserver'' → ''Allow control of XBMC/Kodi via HTTP''
: <code>http://172.22.99.12:8080/</code>
eintragen.
==== Quellen für Daten bei Kodi ====
; Siehe auch: [http://kodi.wiki/view/Adding_video_sources Wiki Kodi: Adding video sources]
===== Dateien von storage als Quelle für Daten bei Kodi =====
: <source lang="bash">$EDITOR ~/.xbmc/userdata/sources.xml</source>
<pre></pre>
<pre>
<video>
</pre>
<pre></pre>
<pre>
<default pathversion="1"></default>
<source>
<name>rpool</name>
<path pathversion="1">smb://storage/rpool/</path>
<allowsharing>true</allowsharing>
</source>
</pre>
<pre></pre>
<pre>
</video>
</pre>
<pre></pre>
: <source lang="bash">$EDITOR ~/.xbmc/userdata/mediasources.xml</source>
<pre>
<mediasources>
<network>
</pre>
<pre></pre>
<pre>
<location id="0">smb://$account:$password@storage/rpool</location>
</pre>
<pre></pre>
<pre>
</network>
</mediasources>
</pre>
: <source lang="bash">$EDITOR ~/.xbmc/userdata/passwords.xml</source>
<pre></pre>
<pre>
<path>
<from pathversion="1">smb://storage/rpool</from>
<to pathversion="1">smb://$account:$password@storage/rpool/</to>
</path>
</pre>
<pre></pre>
===== öffentliche chaotische Dateien als Quelle für Dateien bei Kodi =====
: <source lang="bash">$EDITOR ~/.xbmc/userdata/sources.xml</source>
<pre></pre>
<pre>
<video>
</pre>
<pre></pre>
<pre>
<source>
<name>ftp.ccc.de</name>
<path pathversion="1">ftp://ftp.ccc.de:21/pub/</path>
<allowsharing>true</allowsharing>
</source>
</pre>
<pre></pre>
<pre>
</video>
</pre>
<pre></pre>
: <source lang="bash">$EDITOR ~/.xbmc/userdata/mediasources.xml</source>
<pre>
<mediasources>
<network>
</pre>
<pre></pre>
<pre>
<location id="1">ftp://ftp.ccc.de:21/pub</location>
</pre>
<pre></pre>
<pre>
</network>
</mediasources>
</pre>
=== btrfs boot environment erstellen ===
: <source lang="bash">/github/boot_btrfs_nested_subvol/subvolboot2.sh create</source>
=== x2x for mouse and keyboard transmission to glotzbert ===
<pre>
ssh -X k-ot@glotzbert "x2x -west -to :1"
</pre>
move your mouse out of your current x to the left... and remember that this remote public-access machine now has access to your local X session.
[[Kategorie:Hardware]]
[[Kategorie:Infrastruktur]]
[[Kategorie:HQ]]