Difference between revisions of "User:Phenigma"

From LinuxMCE
Jump to: navigation, search
m (Outstanding Issues I need to investigate as I have time)
 
(47 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
   | __TOC__
 
   | __TOC__
 
   |}
 
   |}
 +
 
= Operational System =
 
= Operational System =
 +
*Jul. 26, 2016 - Running Ubuntu Trusty 1404 armhf net install on odroid XU4, keeping up to date with updates.
  
*Dec. 2009 - Running an DVD installed beta2 system.
+
== Core ==
 +
*oDroid XU4 - http://www.hardkernel.com/main/products/prdt_info.php
 +
**Cloudshell with LCD - http://www.hardkernel.com/main/products/prdt_info.php?g_code=G143599699669
 +
**Ubuntu Trusty 14.04 (armhf) - https://odroid.in/ubuntu_14.04lts/
 +
**128GB SSD, 2 GB RAM, Onboard 1GB NIC
 +
**D-Link 100MB NIC for external interface
  
== Core - ASUS P4C800E-Deluxe - UI2 ==
+
== MD #1 ==
*Intel P4 2.8Ghz, 2 GB RAM, 1GB LAN, Analog Audio
+
*Zotac IONITX-A-U Atom N330 1.6 Ghz - UI2
*NVIDIA Geforce 6600 GT - VGA - 1280x1024
+
**Ubuntu Trusty 14.04 64-bit (amd64) - Disked MD
*120 GB SATA HDD
+
**128GB SSD, 2 GB RAM, 1GB LAN, HDMI 1080P - VDPAU (xine), squeezelite for audio
*100MB PCI NIC
+
**USB-UIRT
*CM11A - Removed
+
**PulseEight HDMI CEC Adaptor
**19 Oct. 2009 - I've been fighting with a CM11A and two X10 appliance relays and I have come to the conclusion that X10 is old technology which should be taken out behind the shed and put down.  It looks like noise on my power lines is causing the appliance relays to turn 'ON' whenever they feel like.  LMCE is not the cause.  I'll need to try ZWave or Insteon some time I've got disposable cash.
+
**Panasonic VIERA VT 50" 3D Plasma TV with Ethernet & RS-232 (HDMI CEC Control)
 +
**Denon 3311CI HDMI AV Receiver with Ethernet & RS-232 (HDMI CEC Control)
 +
**PS4 (HDMI CEC Control)
 +
**Bell 9242 Dual-Tuner PVR (IR control)
 +
**WD HD TV Live+ (IR control)
 +
**USB Bluetooth Adaptor - Wiimote, PS3 Sixaxis - not currently configured
 +
**Mediagate MCE Remote (via USBUIRT)
 +
**Rii Mini Wireless Keyboard/Mouse
  
== MD - Zotac IONITX-A-U Atom N330 1.6 Ghz - UI2 ==
+
== MD #2 ==
*2 GB RAM, 1GB LAN, Digital Audio, VGA - 720P - VDPAU
+
*Raspberry Pi3 B+ @1.1Ghz - UI1 - OMX for Video, squeezelite for audio
*USB-UIRT
+
**Raspbian Jessie (armhf) - Disked MD
*Toshiba Plasma TV - 42HP86 - VGA
+
**1 GB RAM, 100Mb LAN
*Yamaha AV Receiver - HTR-5760 - DD/DTS 5.1/PCM via S/PDIF
+
**Viewsonic 24" LCD TV - RS232 control
*X10 Appliance Module (Floor Lamp) - Removed
+
  
== MD - ASUS EeeBox B202 Atom 230 1.6 Ghz - UI1 ==
+
== MD #3 ==
*1 GB RAM, 1GB LAN, Analog Audio, VGA - 800x600
+
*Raspberry Pi2 B+ @900Mhz - UI1 - OMX for Video, squeezelite for audio
*Powered PC Speakers
+
**Raspbian Jessie (armhf) - Disked MD
*Mediagate MCE Remote - I'm not sure what/if some of the buttons are supposed to do in LMCE yet...  havn't been able to get the IR receiver to work yet. 
+
**1 GB RAM, 100Mb LAN
 +
**USB-UIRT
 +
**Toshiba 42HP86 - (IR control)
 +
**PS3 - Logitech Harmony Adapter - mimics PS3 blu-ray remote (IR control)
 +
 
 +
== MD #4 ==
 +
*Raspberry Pi1 B+ @950Mhz - No UI - squeezelite only
 +
**Raspbian Wheezy (armhf) - Diskless MD
 +
**512 MB RAM, 100Mb LAN
 +
**USB Sound Card & Speakers attached
 +
 
 +
== MD #5 (testing) ==
 +
*Raspberry Pi2 B+ @900Mhz - UI2/qMD testing - OMX for Video, squeezelite for audio
 +
**Raspbian Jessie (armhf) - Disked MD
 +
**512 MB RAM, 100Mb LAN
 +
 
 +
== MD #6 (testing) ==
 +
*Intel ComputeStick - UI2 testing - xine w/va-api acceleration for Video, squeezelite for audio
 +
**Ubuntu Trusty (amd64) - Disked MD
 +
**2 GB RAM
 +
**USB Hub/1GB LAN
 +
 
 +
== NAS ==
 +
*ASUS M4A87TD EVO w/AMD Athlon II X2 3.2Ghz - UI2
 +
**128GB SSD, 4 GB RAM, Onboard Realtek 8111E 1GB LAN, S/PDIF Optical Audio
 +
**Palit nVidia GT210 512MB Fanless PCIe x16 2.0, DVI->HDMI - 1080P [VDPAU (xine) not currently in use]
 +
**Intel 1000CT PCIe NIC
 +
**4x3TB SATA HDDs - RAID5
  
 
== Orbiters ==
 
== Orbiters ==
*WebDT 366
+
*Joggler (x5) - squeezeplay OS with Orbiter installed overtop
*Nokia N800
+
*WebDT 366LX (x4) - Modified PadOrbiter install with squeezeslaves (not currently in use)
*Toshiba Portege Touchscreen Tablet (WinOrbiter)
+
*Nokia N800 - Diablo Orbiter
*Toshiba Tecra Tablet (WinOrbiter)
+
*Nokia N900 - Fremantle Orbiter (not currently in use)
**some builds do not include the windows orbiter installer.  Check [[Control_LinuxMCE_using_a_Windows_device_as_an_Orbiter]]
+
<del>**some builds do not include the windows orbiter installer.  Check [[Control_LinuxMCE_using_a_Windows_device_as_an_Orbiter]]</del>
*Ubuntu PC (WinOrbiter via Wine)
+
*2x Android Phones - QOrbiter/Android Web Orbiter
 +
*Samsung Galaxy Tab 10.1 4G - QOrbiter/Android Web Orbiter
 +
*1x Windows 10 tablet with windows orbiter
 +
 
 +
== Automation ==
 +
=== Lighting ===
 +
*Z-Wave Light Switches x 8
 +
*Z-Wave Switched Outlet x 1
 +
*Z-Wave Dimmer Switches x 3
 +
 
 +
=== Security & Control ===
 +
*Z-Wave Aeotoc Multisensor6
 +
*Z-Wave HSM-100
 +
*Z-Wave SchlageLink(tm) Door Lock
  
 
== Networking ==
 
== Networking ==
*Linksys WRT350N - DD-WRT v24sp1
+
*Asus RT-N56U - Primary Firewall/Hardware NAT Translation Device
 
**Internet Firewall
 
**Internet Firewall
 
**Asterisk 1.4 Server - SIP line (not yet controlled by LMCE)
 
**Asterisk 1.4 Server - SIP line (not yet controlled by LMCE)
 +
*ASUS RT-N56U as Access Point
 
*Linksys PAP2T-NA ATA  
 
*Linksys PAP2T-NA ATA  
*2 x D-Link 8-Port Gigabit Green switches
+
*Siemens Gigaset A600-IP - POTS & SIP Cordless Phone
 +
*CISCO 24-port Gigabit Smart Ethernet Switch
 +
*4 x D-Link 8-Port Gigabit Green Ethernet switches
 +
*1 x TPLINK 8-Port Gigabit POE Ethernet switch
  
== File Server ==
+
== Backup File Server ==
*ASUS K8V-SE Deluxe
+
*QNAP-410 TurboNAS
**AMD Athlon 3000, 1GB RAM, 1GB LAN
+
**Marvell 800Mhz, 256MB RAM, 2x1GB LAN
*PCI 100MB NIC
+
**4x2TB SATA HDDs - RAID5
*3TB SATA HDDs - RAID5
+
 
+
= Network Map =
+
*This map may seem rather complicated at first but is built this way out of necessity.  I had a pre-existing network which serves my parents and my wife and I.  The existing network had to remain stable throughout my learning curve with LMCE and could not be down for a 4 hour re-install, or more...  As I am able, and stability permits, I will migrate devices to the LMCE network.
+
*The Ubuntu NAS exists within both networks to serve files to PCs in the original network as well as the LMCE network, it's also my original Mythtv backend.
+
*The laptops attach wirelessly to the LMCE network to run Windows Orbiter.
+
[[Image:xnetmap.jpg]]
+
  
 
= Installation =
 
= Installation =
 
 
== Core ==
 
== Core ==
*Disconnect all devices from the internal lmce network
+
*Stop UpdateMedia from mangling my id3 tags, this causes updatemedia to import data but not update the file's id3tags.
*Install according to the DVD installation instructions for 0810 beta2
+
echo SyncId3Files=false >> /etc/UpdateMedia.conf
*Edit the network settings in webadmin, remove .129 from valid address as this is set statically in my AP.
+
*Add the following to /etc/pluto/xine.conf to enable 5.1 PCM over hdmi (and therefor multichannel AAC).
*Update (create) /etc/apt/apt.conf.d/02proxy to point to my NAS/server running an updated build of apt-cacher-ng which is endlessly more stable than the version in Ubuntu 0810
+
audio.device.alsa_pcm_device:plughw:1,3
*Install libdvdcss
+
  audio.device.alsa_front_device:plughw:1,3
  apt-get update
+
  audio.device.alsa_default_device:plughw:1,3
  apt-get install libdvdcss2 w32codecs
+
audio.device.alsa_surround40_device:plughw:1,3
*Create the initial MD images
+
  audio.device.alsa_surround51_device:plughw:1,3
  /usr/pluto/bin/Diskless_CreateTBZ.sh
+
audio.output.speaker_arrangement:Pass Through
 +
audio.device.alsa_passthrough_device:plughw:1,3
 +
*Configure the D-Link DWA-552 as an [[Access Point]] (if desired)
 
*Turn devices on/plug-in one by one
 
*Turn devices on/plug-in one by one
#NAS/Server
 
#WebDT
 
#HDHomerun
 
#N800
 
#TabletPC1
 
#ZotacION
 
#EeeBox
 
#N900
 
 
== MDs ==
 
*Install libdvdcss & w32 codecs
 
apt-get update
 
apt-get install libdvdcss2 w32codecs
 
  
= Outstanding Issues I need to investigate as I have time =
+
= TODO =
*MySQL optimizations/find out why my A/V datagrid queries take 6 seconds (or longer) to execute, add indexes (where applicable) and find out why UpdateMedia is constantly updating the database tables when my media isn't changing.
+
*ability to set values from events?
*Proper (complete) device templates for TV, Receiver, PS3, Wii, 9242 PVR
+
*sqlCVS asynchronous commits, PK/FK misalignment
*UI2 on the EeeBox is elusive**Current driver causes segfault/cifs-vfs errors
+
*create BL_SameEntArea message broadcast level for proper CMD_Set_Screen_Type_Cat behaviour?
**Updated xorg and intel driver work great but mouse and keyboard events are not picked up by orbiter.
+
 
**This has been pushed back to 1004 release, UI2 should work ootb with 1004 intel video drivers.
+
= Useful Commands / Processes =
*...
+
== Hide the cursor in orbiter ==
 +
touch /etc/pluto/orbiter.disable.mouse
 +
== Re-initialize the Media Database ==
 +
(From forum post http://forum.linuxmce.org/index.php?topic=6408.msg70571#msg70571)
 +
* Disable the UpdateMedia daemon
 +
# /usr/pluto/bin/UpdateMediaDaemonControl.sh –disable
 +
* Login to mysql and remove the database
 +
# mysql -uroot
 +
# drop database pluto_media;
 +
# quit
 +
* Re-initialize the media database
 +
# cp /usr/pluto/database/media.sqlcvs .
 +
# /usr/pluto/bin/sqlCVS -D pluto_media -r media import
 +
*Re-start the UpdateMedia daemon
 +
# /usr/pluto/bin/UpdateMediaDaemonControl.sh –enable
 +
== Set Root password on MD ==
 +
Get superuser privs and enter your password:
 +
$ sudo su -
 +
chroot to the MDs environment (XX is the MD#), run passwd and enter your desired root password for this MD.
 +
# chroot /usr/pluto/diskless/XX/
 +
# passwd
 +
You can now ssh, or login, to the MD as root.
 +
== sqlCvS webadmin use ==
 +
http://forum.linuxmce.org/index.php?topic=5758.msg33952#msg33952
 +
== joggler stuff ==
 +
http://www.jogglerwiki.com/wiki/User_talk:Tschak
 +
== Clock Font ==
 +
[18:43:40] <TSCHAKMac> rather, StyleVariation entry
 +
[18:44:38] <TSCHAKMac> PK_StyleVariation 59
 +
[18:44:41] <TSCHAKMac> change the font to Verdana
 +
[18:44:43] <TSCHAKMac> then regen
 +
[18:44:49] <TSCHAKMac> does it show up ?
 +
== RPI1 cmdline ==
 +
dma.dmachans=0x3c bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708.boardrev=0x2 bcm2708.serial=0x29353735 smsc95xx.macaddr=B8:27:EB:35:37:35 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait

Latest revision as of 22:16, 26 July 2016

Operational System

  • Jul. 26, 2016 - Running Ubuntu Trusty 1404 armhf net install on odroid XU4, keeping up to date with updates.

Core

MD #1

  • Zotac IONITX-A-U Atom N330 1.6 Ghz - UI2
    • Ubuntu Trusty 14.04 64-bit (amd64) - Disked MD
    • 128GB SSD, 2 GB RAM, 1GB LAN, HDMI 1080P - VDPAU (xine), squeezelite for audio
    • USB-UIRT
    • PulseEight HDMI CEC Adaptor
    • Panasonic VIERA VT 50" 3D Plasma TV with Ethernet & RS-232 (HDMI CEC Control)
    • Denon 3311CI HDMI AV Receiver with Ethernet & RS-232 (HDMI CEC Control)
    • PS4 (HDMI CEC Control)
    • Bell 9242 Dual-Tuner PVR (IR control)
    • WD HD TV Live+ (IR control)
    • USB Bluetooth Adaptor - Wiimote, PS3 Sixaxis - not currently configured
    • Mediagate MCE Remote (via USBUIRT)
    • Rii Mini Wireless Keyboard/Mouse

MD #2

  • Raspberry Pi3 B+ @1.1Ghz - UI1 - OMX for Video, squeezelite for audio
    • Raspbian Jessie (armhf) - Disked MD
    • 1 GB RAM, 100Mb LAN
    • Viewsonic 24" LCD TV - RS232 control

MD #3

  • Raspberry Pi2 B+ @900Mhz - UI1 - OMX for Video, squeezelite for audio
    • Raspbian Jessie (armhf) - Disked MD
    • 1 GB RAM, 100Mb LAN
    • USB-UIRT
    • Toshiba 42HP86 - (IR control)
    • PS3 - Logitech Harmony Adapter - mimics PS3 blu-ray remote (IR control)

MD #4

  • Raspberry Pi1 B+ @950Mhz - No UI - squeezelite only
    • Raspbian Wheezy (armhf) - Diskless MD
    • 512 MB RAM, 100Mb LAN
    • USB Sound Card & Speakers attached

MD #5 (testing)

  • Raspberry Pi2 B+ @900Mhz - UI2/qMD testing - OMX for Video, squeezelite for audio
    • Raspbian Jessie (armhf) - Disked MD
    • 512 MB RAM, 100Mb LAN

MD #6 (testing)

  • Intel ComputeStick - UI2 testing - xine w/va-api acceleration for Video, squeezelite for audio
    • Ubuntu Trusty (amd64) - Disked MD
    • 2 GB RAM
    • USB Hub/1GB LAN

NAS

  • ASUS M4A87TD EVO w/AMD Athlon II X2 3.2Ghz - UI2
    • 128GB SSD, 4 GB RAM, Onboard Realtek 8111E 1GB LAN, S/PDIF Optical Audio
    • Palit nVidia GT210 512MB Fanless PCIe x16 2.0, DVI->HDMI - 1080P [VDPAU (xine) not currently in use]
    • Intel 1000CT PCIe NIC
    • 4x3TB SATA HDDs - RAID5

Orbiters

  • Joggler (x5) - squeezeplay OS with Orbiter installed overtop
  • WebDT 366LX (x4) - Modified PadOrbiter install with squeezeslaves (not currently in use)
  • Nokia N800 - Diablo Orbiter
  • Nokia N900 - Fremantle Orbiter (not currently in use)

**some builds do not include the windows orbiter installer. Check Control_LinuxMCE_using_a_Windows_device_as_an_Orbiter

  • 2x Android Phones - QOrbiter/Android Web Orbiter
  • Samsung Galaxy Tab 10.1 4G - QOrbiter/Android Web Orbiter
  • 1x Windows 10 tablet with windows orbiter

Automation

Lighting

  • Z-Wave Light Switches x 8
  • Z-Wave Switched Outlet x 1
  • Z-Wave Dimmer Switches x 3

Security & Control

  • Z-Wave Aeotoc Multisensor6
  • Z-Wave HSM-100
  • Z-Wave SchlageLink(tm) Door Lock

Networking

  • Asus RT-N56U - Primary Firewall/Hardware NAT Translation Device
    • Internet Firewall
    • Asterisk 1.4 Server - SIP line (not yet controlled by LMCE)
  • ASUS RT-N56U as Access Point
  • Linksys PAP2T-NA ATA
  • Siemens Gigaset A600-IP - POTS & SIP Cordless Phone
  • CISCO 24-port Gigabit Smart Ethernet Switch
  • 4 x D-Link 8-Port Gigabit Green Ethernet switches
  • 1 x TPLINK 8-Port Gigabit POE Ethernet switch

Backup File Server

  • QNAP-410 TurboNAS
    • Marvell 800Mhz, 256MB RAM, 2x1GB LAN
    • 4x2TB SATA HDDs - RAID5

Installation

Core

  • Stop UpdateMedia from mangling my id3 tags, this causes updatemedia to import data but not update the file's id3tags.
echo SyncId3Files=false >> /etc/UpdateMedia.conf
  • Add the following to /etc/pluto/xine.conf to enable 5.1 PCM over hdmi (and therefor multichannel AAC).
audio.device.alsa_pcm_device:plughw:1,3
audio.device.alsa_front_device:plughw:1,3
audio.device.alsa_default_device:plughw:1,3
audio.device.alsa_surround40_device:plughw:1,3
audio.device.alsa_surround51_device:plughw:1,3
audio.output.speaker_arrangement:Pass Through
audio.device.alsa_passthrough_device:plughw:1,3
  • Configure the D-Link DWA-552 as an Access Point (if desired)
  • Turn devices on/plug-in one by one

TODO

  • ability to set values from events?
  • sqlCVS asynchronous commits, PK/FK misalignment
  • create BL_SameEntArea message broadcast level for proper CMD_Set_Screen_Type_Cat behaviour?

Useful Commands / Processes

Hide the cursor in orbiter

touch /etc/pluto/orbiter.disable.mouse

Re-initialize the Media Database

(From forum post http://forum.linuxmce.org/index.php?topic=6408.msg70571#msg70571)

  • Disable the UpdateMedia daemon
# /usr/pluto/bin/UpdateMediaDaemonControl.sh –disable
  • Login to mysql and remove the database
# mysql -uroot
# drop database pluto_media;
# quit
  • Re-initialize the media database
# cp /usr/pluto/database/media.sqlcvs .
# /usr/pluto/bin/sqlCVS -D pluto_media -r media import
  • Re-start the UpdateMedia daemon
# /usr/pluto/bin/UpdateMediaDaemonControl.sh –enable

Set Root password on MD

Get superuser privs and enter your password:

$ sudo su -

chroot to the MDs environment (XX is the MD#), run passwd and enter your desired root password for this MD.

# chroot /usr/pluto/diskless/XX/
# passwd

You can now ssh, or login, to the MD as root.

sqlCvS webadmin use

http://forum.linuxmce.org/index.php?topic=5758.msg33952#msg33952

joggler stuff

http://www.jogglerwiki.com/wiki/User_talk:Tschak

Clock Font

[18:43:40] <TSCHAKMac> rather, StyleVariation entry [18:44:38] <TSCHAKMac> PK_StyleVariation 59 [18:44:41] <TSCHAKMac> change the font to Verdana [18:44:43] <TSCHAKMac> then regen [18:44:49] <TSCHAKMac> does it show up ?

RPI1 cmdline

dma.dmachans=0x3c bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708.boardrev=0x2 bcm2708.serial=0x29353735 smsc95xx.macaddr=B8:27:EB:35:37:35 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait