steam OS running plex (or plex running steam?)

so I tried to build a steam box that runs plex and dual boots to steamOS or launches the Steam app. but why not go the whole way and run steamOS and launch plexhometheater from there?

either way is cool and I will try them both. currently running ubuntu and default boot to plex home theater. (which is a PITA, too…)

Method 1:
http://www.libregeek.org/2015/03/09/add-plex-media-steamos/

Method 2:
build ubuntu box and hit several brick walls…

Convert your new disk to a physical volume (in this case, the new
disk is ‘sdb’).

sudo pvcreate /dev/sdb

Add the physical volume to the volume group via ‘vgextend’.

sudo vgextend ubuntu-vg /dev/sdb

Allocate the physical volume to a logical volume (extend the volume
size by your new disk size).

sudo lvextend -l +100%FREE /dev/ubuntu-vg/root

Resize the file system on the logical volume so it uses the
additional space.

sudo resize2fs /dev/ubuntu-vg/root

(maybe forced to e2fsck first…)

and the lvm volume:

root@lea:~# fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000676ee

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1953791 975872 83 Linux
/dev/sda2 1955838 234440703 116242433 5 Extended
/dev/sda5 218816512 234440703 7812096 82 Linux swap /
Solaris
/dev/sda6 1955840 80078847 39061504 83 Linux
/dev/sda7 80080896 218806271 69362688 83 Linux

Partition table entries are not in disk order

WARNING: GPT (GUID Partition Table) detected on ‘/dev/sdb’! The util
fdisk doesn’t support GPT. Use GNU Parted.

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 1 3907029167 1953514583+ ee GPT
Partition 1 does not start on physical sector boundary.

WARNING: GPT (GUID Partition Table) detected on ‘/dev/sdc’! The util
fdisk doesn’t support GPT. Use GNU Parted.

Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdc1 1 3907029167 1953514583+ ee GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/mapper/plex–vg-plex–lv: 2000.4 GB, 2000393601024 bytes
255 heads, 63 sectors/track, 243200 cylinders, total 3907018752 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/plex–vg-plex–lv doesn’t contain a valid partition
table
root@lea:~# pvcreate /dev/sdb
Device /dev/sdb not found (or ignored by filtering).
root@lea:~# pvdisplay
— Physical volume —
PV Name /dev/sdc1
VG Name plex-vg
PV Size 1,82 TiB / not usable 4,00 MiB
Allocatable yes (but full)
PE Size 4,00 MiB
Total PE 476931
Free PE 0
Allocated PE 476931
PV UUID SQkrxh-cuiC-9FpK-ui3h-Z7xu-UPcr-7VfcHH

“/dev/sdb1” is a new physical volume of “1,82 TiB”
— NEW Physical volume —
PV Name /dev/sdb1
VG Name
PV Size 1,82 TiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID ZAP99G-eJaw-dwzP-Fdwg-uAq7-UlAi-SLvTjn

root@lea:~# vgextend plex-vg /dev/sdb
Device /dev/sdb not found (or ignored by filtering).
Unable to add physical volume ‘/dev/sdb’ to volume group ‘plex-vg’.
root@lea:~# vgextend plex-vg /dev/sdb1
Volume group “plex-vg” successfully extended
root@lea:~# lvextend -l +100%FREE /dev/sd
/dev/sdb1 /dev/sdc1
root@lea:~# lvextend -l +100%FREE /dev/sd
/dev/sdb1 /dev/sdc1
root@lea:~# lvextend -l +100%FREE /dev/sd
/dev/sdb1 /dev/sdc1
root@lea:~# umount /dev/mapper/plex–vg-plex–lv
root@lea:~# lvextend -l +100%FREE /dev/plex-vg/plex-lv
Extending logical volume plex-lv to 3,64 TiB
Logical volume plex-lv successfully resized
root@lea:~# resize2fs /dev/mapper/
control plex–vg-plex–lv
root@lea:~# resize2fs /dev/mapper/plex–vg-plex–lv
resize2fs 1.42.9 (4-Feb-2014)
Please run ‘e2fsck -f /dev/mapper/plex–vg-plex–lv’ first.

root@lea:~# e2fsck -f /dev/mapper/plex–vg-plex–lv
e2fsck 1.42.9 (4-Feb-2014)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
plex: 5800/122101760 files (10.7% non-contiguous), 443342092/488377344
blocks
root@lea:~# resize2fs /dev/mapper/plex–vg-plex–lv
resize2fs 1.42.9 (4-Feb-2014)
Resizing the filesystem on /dev/mapper/plex–vg-plex–lv to 976754688
(4k) blocks.
The filesystem on /dev/mapper/plex–vg-plex–lv is now 976754688 blocks
long.

root@lea:~#

fstab:

/dev/mapper/plex–vg-plex–lv /plex ext4 errors=remount-ro 0 1

plex backup and restore:

https://support.plex.tv/hc/en-us/articles/201370363-Move-an-Install-to-Another-System

also:

sudo apt-get install ubuntu-restricted-extras

sudo apt-get install gstreamer0.10-plugins-ugly gxine libdvdread4
totem-mozilla icedax tagtool easytag id3tool lame
nautilus-script-audio-convert libmad0 mpg321 libavcodec-extra

Following command for Enable DVD Playback:
sudo /usr/share/doc/libdvdread4/install-css.sh

For Ubuntu 14.04 Trusty install more codecs:
sudo apt-get install libxine1-ffmpeg mencoder

open ports for it to be accessible from the outside:

https://support.plex.tv/hc/en-us/articles/201543147-What-network-ports-do-I-need-to-allow-through-my-firewall-

it doesn’t mention 32400 (the default channel for the web server…?)

suspend from plex menu won’t work (permissions?)
fix: http://forums.plex.tv/discussion/136323/shutdown-question (number 2b apparently)

also: 5.1 sound via hdmi nVidia card apparenty needs a hack,

two steps needed for this to work:
1)
edit /etc/pulse/daemon.conf

change these lines: (5+1=6) ;)

default-sample-channels = 6
enable-lfe-remixing = yes

OPTIONAL ??? required?
edit /etc/modprobe.d/alsa-base.conf
and add this line at the end of the file:

options snd-hda-intel model=3stack-6ch-dig

2)
install pulse audio device choser or mixer (nut sure which) and enable/select the device that says “connected” – there is apparently always three devices, one per connected monitor / digital out