User:GnEeErKd
From LinuxMCE
Contents
- 1 Configuration Files
- 2 Core/MD Hybrid
- 3 X10 Devices
- 4 The Installation
- 4.1 LMCE 0810 beta2 Installation
- 4.2 Auto-start KDE desktop behind MCE on boot
- 4.3 Activate Orbiter Button
- 4.4 Disable Phone Systems
- 4.5 External Hard Drive
- 4.6 Configure 5.1 Channel Sound
- 4.7 Get DVDs to play
- 4.8 X10 interface and lighting setup
- 4.9 Set lighting scenarios
- 4.10 Internet Radio Channels
- 4.11 Set alarm clock scenarios
- 4.12 Disable the Firewall
- 4.13 Access Features outside of the Network
- 4.14 Enable the Web Orbiter
- 4.15 Enable remote desktop
- 4.16 Enable Network File Sharing
- 4.17 Assign Functions to mouse buttons
- 4.18 Bluetooth Proximity Control
- 4.19 Email/text message alerts
- 4.20 Webcams and Skype
- 4.21 Webcams as security cameras
- 4.22 Use your own pictures for the screen saver
- 4.23 Torrenting
- 4.24 Hulu
- 4.25 Command the CORE with text messages
Configuration Files
Core/MD Hybrid
- This is a one network card installation
- There is no capture card/MythTV in this setup
- There is no phone system control in this setup
Hardware
- Asus T3-P5945GCX Barebones with 3.00GHz Pentium 4
- Nvidia GeForce 6600 256 MB PCI-E 16x Video Card (DVI Output)
- 2 GB Generic RAM
- 80 GB Seagate ST380215A Hard Drive (for the OS and temporary media storage)
- 1 TB Western Digital 10EAVS External Hard drive (for media storage)
- DVDRAM GSA-4167B
Peripherals and Accessories
- 24 inch Sceptre LCD Monitor (DVI)
- 5.1 Channel Creative Sound System
- Gigaware microphone
- Generic USB 5 Button Wireless Optical Mouse with Scroll Wheel
- Generic Wireless PS/2 keyboard
- Ezonics EZCam USB Webcam
- Microsoft NX-6000 Webcam
- Generic 7-port USB Hub
- USB Bluetooth Dongle with CSR chipset
- HP Deskjet 2545 USB Printer
Software
- LinuxMCE 0810 beta2
- lmce-activate-orbiter-plasmoid
- kubuntu-restricted-extras
- libdvdread3
- xbindkeys
- xautomation
- alsamixer
- VNC/Remote Desktop Viewer
- BlueProximity
- ssmtp
- mailutils
X10 Devices
Controlling
- Controller: CM11A
- Remote: KR22A
Controlled
- LM465 is dimmable
- AM466 is not dimmable
- RR501 is not dimmable and is a remote control receiver (Can only be unit code 1 or 9)
Device Code | Module | Description B1 | RR501 | Sound System Power B2 | LM465 | Floor Light B3 | LM465 | Light Tree B4 | LM465 | Desk Light B5 | AM466 | Monitor Power B6 | AM466 | Rope Lights & Strobe Light B7 | AM466 | Fan B8 ------------------------------------------ B9 | RR501 | Black Lights
The Installation
- This is a one network card installation
- There is no capture card/MythTV in this setup
- There is no phone system control in this setup
- Single quotes (i.e. 'sudo apt-get install foo') represent commands to be typed into the terminal
- Web Admin can be accessed by going to http://localhost on the core or by going to http://<core-network-IP-address> from a computer on the network. The login and password are both the name of the first user name (beware of capitalization!)
- Some sections assume the completion of preceeding sections
- Skype setup assumes completion of the sound setup
- Many assume KDE starts on boot
- Remote Desktop and others assume Firewall is disabled
- Probably others as well
LMCE 0810 beta2 Installation
- Follow the internet installation instructions located here
- Upon reboot, temporarily hook the monitor to VGA to go through AVWizard
- Choose DVI output, 1080p, 60 Hz, OpenGL with Alpha Blending, stereo sound, 100% volume, and hit I Agree
- Upon finishing the AVWizard, there is a grey screen with large text displaying each package that is installed
- This continues until it gets to the Orbiter Regeneration
- After the orbiter regeneration, I receive the infamous grey screen with a cursor
- Use Ctrl+Alt+F2 to get to tty2, and log in
- Edit the /etc/network/interfaces file as seen in the configuration files section
- After rebooting, the Setup Wizard starts up which steps through the rest of the install process
- That's it, after some more big text, MCE starts up fine and begins displaying Flickr pictures on the screensaver
Auto-start KDE desktop behind MCE on boot
- By default, the KDE desktop environment only starts if you click "KDE desktop" on the OnScreen orbiter
- To get certain programs and services to run, it is easiest to have KDE startup behind the OnScreen orbiter on boot
- Edit /etc/init.d/linuxmce to contain the line shown in the configuration files section
Activate Orbiter Button
- Once you go to KDE from the on screen orbiter, there's no good way to go back besides reloading the router or clicking on OrbiterGL on the taskbar which rarely works
- The plasmoid might work, see those instructions here
- This did not work for me, so I did this instead with much more reliable results:
- Open terminal and type 'sudo kate ~/Desktop/Activate-Orbiter.sh'
- In the window that appears, paste in the file from the configuration files section
- Save and exit this window
- Now run 'sudo chmod 755 ~/Desktop/Activate-Orbiter.sh'
- Right click on an empty area on the Desktop plasmoid and click "Link to Application"
- Replace "Link to Application" with "Activate Orbiter"
- Click the ? icon to choose an icon (I made it tux)
- Go to the "Application" tab
- In the "Command" box enter "~/Desktop/Activate-Orbiter.sh"
- Click OK
- Click on the newly created shortcut to bring up the OnScreen orbiter
- Drag onto the desktop to make it act like a plasmoid
Disable Phone Systems
- Since this system doesn't do any phone system control, they can be disabled to save time and resources
- Web Admin > Wizard > Devices > Core
- Uncheck the "Telecom Handlers" box
- Click Update
- Web Admin > Wizard > Scenarios > Telecom Scenarios
- Uncheck each scenario
- From the OnScreen orbiter click Advanced > Advanced > Reload & regen all orbiters
- Telecom scenarios should be gone
- On reboot, core should not try to start the phone devices any more (except the orbiter embedded phone, which seems to regenerate itself if you delete it)
External Hard Drive
- After plugging in the external hard drive, a message comes up asking what to do with it
- After selecting "use without modifying" the drive is set up by MCE
- Web Admin > Files & Media > Media Files Sync
- Navigate to the hard drive and resynchronize Movies folder and Music Folder
Configure 5.1 Channel Sound
- Selecting stereo in the AVWizard does not enable multi-channel analog audio...this is how to fix it
- Here is this because I will want it later
- Web Admin > Wizard > Devices> Media Directors
- At the bottom of the media director device settings, change the "Audio Settings" Drop-Down menu to "Multi-channel analog"
- Open adept (K menu > applications > add/remove software)
- Do a search for "alsa" and then choose the "Settings" category on the left
- Select to install "Default sound card" and then click preview and apply changes to install it
- Once installed go to K menu > applications > settings > asoundconf-gtk
- Choose the intel sound card and quit
- Reboot the computer
- There should now be a speaker icon in the task bar, click it and then click "mixer"
- By default, my surround, center, and LFE (subwoofer) were muted...
- Unmuting and adjusting the volume on these works for testing, but they will be set back to these values on reboot
- 'sudo kate ~/.kde/Autostart/Set-Volume.sh'
- Paste in the script as seen in the configuration files section, the levels and mute/unmute status will be set on startup
- Save the file
- 'sudo chmod 755 ~/.kde/Autostart/Set-Volume.sh'
- Reboot the computer to test this and make sure they are properly set
Get DVDs to play
Instructions grabbed here
- Open Terminal
- 'sudo apt-get install -y kubuntu-restricted-extras libdvdread3'
- 'sudo /usr/share/doc/libdvdread3/install-css.sh'
X10 interface and lighting setup
- Plug in all the X10 modules and give them the unit codes described above
- Plug in the CM11A controller and hook it to the serial port
- Follow the directions here.
- Reload the router and regenerate orbiter when it asks to
- Tested each module with the Lights > Floorplan button in MCE
Set lighting scenarios
- By default, lmce gives you Sleep, Wakeup, and House to sleep mode as the Lighting Scenarios
- Scenarios can be added, deleted, and modified
- Web Admin > Wizard > Scenarios > Lighting Scenarios
- Click on the scenario to be edited or Add Scenario to make a new one
- Choose "Advanced Wizard" from the drop down menu
- Choose the items you wish to turn on/off/leave unchanged/set level
- Set any media settings (volume level, pause, etc)
- Set any security settings (security mode, etc)
- Click Update
- Once all scenarios are made and configured, go into the OnScreen orbiter and go to Advanced > Advanced > Reload & Regen All Orbiters
- Once everything is regenerated and reloaded, the scenarios should now be available by clicking "Lights" on the OnScreen or other orbiter
Internet Radio Channels
Instructions grabbed here
- If you have a few favorite internet radio stations, you can set them as their own scenarios
- I will use http://di.fm, but other radio stations should work very similarly
- Web Admin > Wizard > Scenarios > Media Scenarios
- In the description box, type the name of the channel (Trance)
- In the Entertain Area, select the Bedroom(Master)
- Choose the Xine Player device
- For type, select "LinuxMCE Audio file"
- Click Add
- Click Edit to the right of the new scenario
- In a new window go to the radio station of choice and download the channel playlist (the playlist provides links to each mirror)
- Go to that file on that computer and right click > open with
- Choose a text editor
- Copy the URL of one of the file names (http://scfire-ntc-aa07.stream.aol.com:80/stream/1003)
- Paste that into the File Name field of your scenario
- Click Save
- From the OnScreen orbiter click Advanced > Advanced > Reload & Regen All Orbiters
- Once that is finished, there should be a button for that station under "Media" on the orbiters
Set alarm clock scenarios
- I like to use my room as an alarm clock since I have a very regular weekday schedule
- Web Admin > Wizard > Events Handler > Timed Events
- Type a name for your alarm "Wake up" or "Alarm clock" are suggested
- If you have a human wakeup schedule, choose "Day of the Week based" and click "Add"
- This window is very self explanatory, check the days you want to wake up, and choose when you wish to do so
- Go ahead and select "Bedroom(Master)" as well, this should let you turn on and off the alarm using the web orbiter or some other orbiter
- If you just want lights to turn on, select "Lighting Wizard" from the drop down menu and select the lights that way (its easier)
- If you want to set the volume, play your favorite internet radio station, etc...use "Advanced Wizard"
- Media commands can be found under "DCE Router > Media plugin"
- Playing an internet radio station can be done by using the "MH Play Media" command in the Media plugin
- If you followed the steps from the last section, this shouldn't be too hard (Entertain area is a number (I only have one room, so mine is 1), Media type is 4)...you could also copy these settings from the "MH Play Media" command in the scenarios you created last section
Disable the Firewall
- Since this is a single-nic installation, I don't find the firewall very necessary, and it makes other features easier to get working if it is disabled
- Web Admin > Advanced > Network > Firewall Rules
- Check the "Firewall Disabled" box
- Click OK on on the warning dialog
Access Features outside of the Network
- Create an account at DynDNS.org
- Register a host name for your Media Center using the free DNS service
- Web Admin > Advanced > Network > Dynamic DNS Settings
- Enter the information you just registered with DynDNS.org
- Check the "obtain IP address from the web" box
- Click Save
- Web Admin > Wizard > Security > Outside Access
- Check "Allow outside access on port: " and specify port 8080
- Click "Update"
- If the Media Center is behind a router, port 8080 will need to be forwarded to the Media Center's IP or name
(This process is slightly different for each router but in my case, the router configuration was located at http://192.168.200.1, Most home routers will have the IP 192.168.0.1 or 192.168.1.1)
- On a computer with internet access, you should be able to go to http://<your-dyndns-hostname>:8080 and bring up the Web Admin
- Sometimes attempting to use http://<your-dyndns-hostname>:8080 while on the same local network won't work, so have a friend test it out or try it on a web-enabled cell phone
- If that isn't working, maybe MCE needs a router reload or a computer restart
Enable the Web Orbiter
Instructions grabbed here
- Web admin > Show Devices Tree > Core
- Create Child Device at the top
- Pick Device Template
- Device Category: Peripherals
- Template ID: 1748 (Generic Web Device)
- Pick device template
- Wait until orbiter generation is finished (progress can be seen at Wizard > Devices > Orbiters)
- Quick Reload Router
- My proxy orbiter had problems starting up, so I rebooted the whole machine to get it all working nicely
- Access the web orbiter by going to http://<core_ip>/lmce-admin/weborbiter.php or clicking the link on the login page of the web admin on any computer on the network
- Orbiter settings and preferences can be set at Wizard > Devices> Orbiters and then regenerated accordingly
- Assuming previous steps to "Access Features outside of the Network" were followed, web orbiter can be accessed by any computer on the internet by going to http://<your-dyndns-hostname>:8080 and clicking on the link on the login page or by going to http://<your-dyndns-hostname>:8080/lmce-admin/weborbiter.php directly
Enable remote desktop
- Go to the KDE desktop on the Media Center
- K Menu > Applications > Internet > Desktop Sharing
- Click "Configure"
- Click "Security"
- Check the "Allow uninvited connections" box
- Check the "Allow remote connections to control..." box
- Uncheck the "Ask before..." box
- Enter a password
- Click Apply and OK
- Use VNC or Remote Desktop Viewer from another computer to control it
Enable Network File Sharing
- This seems to be enabled by default in LMCE 0810 beta2 so just get on a network computer and connect to \\dcerouter and login
- External hard drive should be accessible directly or through /public/other/
Assign Functions to mouse buttons
Instructions grabbed here
- BACKUP xorg.conf: 'sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup'
- edit /etc/X11/xorg.conf mouse settings to look something like that in the configuration files section
- run 'xev' in terminal and single click each mouse button in the box that appears, paying attention to the output in the terminal to make sure each button number is correct (if it doesn't you have some trouble shooting to do here)
- 'sudo apt-get install -y xbindkeys xautomation
- Create the file ~/.xbinkeysrc ('sudo kate ~/.xbindkeysrc')
- Modify as seen in the configuration files section
- Run 'xbindkeys -n -v' (not as daemon, verbose) to test the configuration
- Once the configuration is how you want it, add xbindkeys to the startup of KDE by running 'sudo cp /usr/bin/xbindkeys /home/matt/.kde/Autostart/' in terminal
- Upon restart, the configuration should automatically take effect
- I often have to click the middle mouse button while in the OnScreen orbiter to get them to start responding, for some reason
Bluetooth Proximity Control
- Using the bluetooth signal from a phone or some other device that you routinely carry in your pocket, the computer can automatically detect when you enter and leave the room (or at least the general vicinity)
- This method isn't so good when multiple Media Directors are being used, because bluetooth can only connect and monitor signal strength between one pair at a time
- Upon insertion of the bluetooth dongle, MCE should automatically recognize it and set bluetooth up for you
- After this, it may ask to reload, regen, etc
- If any bluetooth devices are in the area and visible, MCE will ask you if you want to use them, etc
- My phone is not supported as a mobile orbiter, so I clicked "do not use"
- Once all that is done and the dongle is setup, go to the KDE desktop
- Web Admin > Wizard > Devices > Security
- Click "Add Device"
- Under Device Template, select "Generic Sensor" and click "Pick Device Template"
- Select "Bedroom(Master)" from the drop down menu on the left and rename the sensor "Bluetooth sensor"
- Click Update at the bottom
- Make note of the device number at the top left corner
- In terminal run 'sudo apt-get install blueproximity'
- Run BlueProximity by going to K menu > Applications > Utilities > BlueProximity
- Right click the BlueProximity icon (bluetooth icon with key) and click preferences
- Put your bluetooth phone or device in discoverable/visible mode (See device's documentation)
- Click on "Scan for Devices"
- When it has finished scanning, click the desired device and then "Use Selected Device"
- A pairing request should then appear on the phone, accept it and enter a passkey
- Enter that same pass key on the computer when it asks
- If your phone gives the option, choose "Always Connect" (This will automatically connect the phone and media center when they are in range of each other)
- The sliders in the "Proximity Details" tab can be adjusted to the proper settings for being outside the room (Locking) and inside the room (Unlocking)...this takes some trial and error to get the right setting, but be patient and it will work
- In the "Locking" tab, replace the "Locking command" with "/usr/pluto/bin/MessageSend localhost 54 -1000 2 9 25 0" replacing 54 with the device code of the generic sensor you created
- Replace the "Unlocking command" with "/usr/pluto/bin/MessageSend localhost 54 -1000 2 9 25 1" again replacing 54 with the device code of the generic sensor
- Erase the "Proximity Command"
- The generic sensor will now be tripped when the phone is in range, and untripped when it is out of range
- Web Admin > Events Handler > Respond to Events
- Set the description to "Bluetooth enters room"
- Choose "A sensor is Tripped" in the drop down menu
- Click Add
- Set what device to "= Bluetooth Sensor"
- Set trigger state to "tripped = 1"
- Click update
- Choose "Lighting Wizard" from the drop down and select the lights you would like to turn on/off/set level/leave unchanged when you enter the room
- Repeat the last 8 steps, with the description "Bluetooth leaves room" and the trigger state "tripped = 0" for the lights you want to turn on/off, etc when you leave the room
- After a reload router/orbiter regen...and possibly a full reboot...you should have proximity set up for you to leave the room and come back in
- Fine tune the sliders in BlueProximity to avoid lights turning off unintentionally Note: BlueProximity commands are only in effect when the window is closed...watching the atm distance slider and waiting for your lights to turn off does NOT work...trust me...
- If BlueProximity doesn't start up on boot (I think it does by default) 'sudo cp /usr/bin/blueproximity ~/.kde/Autostart/blueproximity'
Using multiple phones
- It is possible to recognize two or more more phones entering and leaving the room, here is how
- Assuming you finished the previous steps and got it working with one phone, open BlueProximity (the bluetooth icon with the key in the bottom right)
- At the top you will see "Selected configuration" click on "New"
- This creates another profile to watch at the same time as the other one, go to the "Bluetooth Device tab"
- Set your phone into discovery mode, scan, select the new phone, and then click "use selected device"
- This device will now follow the same instructions as the first phone, but this can be modified by clicking the other tabs
- To modify settings on each phone, click the dropdown list at the top and select the phone you want to change
THE PROBLEM WITH THIS
- There is a fundemental flaw in this setup, which can be worked out, but its a little troublesome
- Katie and Daniel have their phones both set up flawlessly according to the previous directions
- Katie comes home from work and walks into the entertainment room, the Media Center senses that her phone entered the room and turns the lights on for her
- Katie chooses to watch a movie and dims the lighting accordingly
- As she is watching the movie, Daniel comes home from work and joins her in the entertainment room
- Again, the Media Center senses his phone entering the room and turns the lights on for him
- Katie, upset, storms out of the room
- The Media Center senses Katie leaving, and turns the lights off for her
- Daniel stands in the dark alone cursing at the Media Center
How this COULD be solved
- In BlueProximity, there is the "proximity command" in addition to the locking and unlocking commands...this command is sent out at regular intervals as often as once every 5 seconds
- If each phone had either its own sensor, or its own trigger value, using this command should let the media center keep tabs of who is in the room
- The as long as the Media Center senses someone in the room already, it could choose to ignore the fact that someone else came in
- It could also then be able to notice if someone was still in the room when one left
- This, however, is all theoretical and would probably require some script writing in there somewhere to keep track of who is in the room
CONCLUSION
- As long as you all agree to never throw a fit when the above situation happens, using multiple phones for bluetooth proximity is quite simple
- However, if you can picture the exact situation above happening to you...this may not be a good idea
Email/text message alerts
Instructions grabbed here
- Alright, here is a good one...I like to have verification that my room turned off after I left, so I have it text my phone to let me know when the lights are off
- The same methods could be used to send email/text alerts for really anything, I'll leave that to your imagination
- First, you need an email account...I don't know which ones do/don't work for this besides the fact that Gmail works for me
- If you have a Gmail account, great! If not, you may want to get one...
- Now that you have a Gmail account, go into terminal and type 'sudo apt-get install ssmtp mailutils'
- 'sudo kate /etc/ssmtp/ssmtp.conf'
- Fill out this file in accordance with the configuration files section
- Make a new script 'sudo kate ~/Desktop/email.sh' and put in the script in the configuration files section
- Make it executable 'sudo chmod 755 ~/Desktop/email.sh'
- Test this new script by typing '~/Desktop/email.sh' into terminal
- You should receive a text message or email to wherever you specified in the script
- Now, to make this script run automatically, open up Web Admin > Wizard > Events Handler > Respond to events
- Click edit on the "bluetooth leaves room" event we made earlier (or something else, if you desire)
- Choose "Advanced Wizard" from the drop down menu if it isn't selected already
- In the drop down menu at the bottom, choose the "App Center" device
- From the available commands, choose "Spawn Application" and click "Add"
- Leave everything blank except for entering the file name: "/home/matt/Desktop/email.sh" where matt is your login name for the computer
- Press "Test Command" and wait a few seconds to verify that the script runs and the message makes it to your phone/email
- If that all works, hit save, and quick reload the router
- If it asks to do an orbiter regen, go ahead and do that as well
- Now, with any luck, you should be able to take your phone out of the area, have the lights turn off, and be alerted of the event
- Make a few new scripts to text you about whatever you want!
Webcams and Skype
Ok, this ended up being obnoxious, and I got information from all over...so here is what SHOULD work...but I am typing this after the fact
- There is some information on getting the NX-6000 working with gstfakevideo...but this doesn't seem to be necessary and I had better luck with the other method of pre-loading "v4l1compat.so"
- I have 2 webcams, one is an ezonics ezcam that will be used as just a security camera later...the other is the Microsoft NX-6000 which I use only for skype
Basic webcam preparation
- 'lsusb' should show both cameras
- 'ls /dev/vid*' should show video0 and video1
- Make note of the vendor and product ID of the NZ-6000 (045e:00f8)
- 'sudo kate /etc/udev/rules.d/95-webcam.rules'
- Enter the information in the configuration files section making sure to replace the vendor and product id with those from the lsusb
- 'sudo /etc/init.d/udev restart'
- 'ls /dev/vid*' should now show video0 and video5(because of the previous configuration, video0 is the EZCam and video5 is the NX-6000)
- Before going crazy, go into the user manager (K menu > applications > system > User manager), find your user name (matt in my case) and add it to the "audio" and "video" groups...a reboot will be needed to put this into effect, but it can wait until after the driver update
Install the newest UVC drivers
- 'mkdir ~/UVC'
- 'cd ~/UVC'
- 'wget http://linuxtv.org/hg/~pinchartl/uvcvideo/archive/tip.tar.bz2'
- 'tar -xzvf tip.tar.gz'
- 'cd uvcvideo...' there is a string of numbers after uvcvideo, use tab completion
- 'make'
- 'sudo make install'
- 'sudo depmod -a'
- 'sudo modprobe uvcvideo'
- 'sudo reboot' to make sure everything takes effect (including the group changes made in the previous subsection)
Test out the NX-6000
- 'sudo apt-get install luvcview'
- 'lucview -d /dev/video5' That should bring up the NX-6000 based on the setup done earlier
Enable the v4l1compat preload
- 'sudo mv /usr/bin/skype /usr/bin/skype.real'
- 'sudo kate /usr/bin/skype'
- Insert the code in the configuration files section
- Save
- 'sudo chmod 755 /usr/bin/skype'
Fix Skype
- Run Skype (K menu > applications > internet > Skype)
- Try to log in
- If this throws an the error "Another Skype instance may exist", run 'sudo chown -R matt.matt ~/.Skype/' replacing matt.matt with your username.username
- Go into the video options (S > options > video devices and try to test video5 (the NX-6000)
- If this crashes Skype, start it again, and try to make a video call...sometimes the test doesnt work, but video calls work fine
Set the Skype options
- Once Skype is working and tested, it should be set to startup on boot, log in, and then act a certain way
- Check the box that says "Sign me in when Skype starts" on the login screen and log in
- Go into S Menu > Options
- Click the "Start a Call" bubble in the General section
- Make sure the "Start Skype minimized to the system tray" box is UNCHECKED
- In the Privacy section, check the "Automatically answer incoming calls" This doesn't actually work with the next sub-section, so you may want to leave it unchecked
- In the Sound Devices section, make sure all devices correctly work by making selections and Making a test call
- Uncheck the "Allow Skype to automatically adjust my mixer levels" box in the Sound Devices section
- In the Video Devices section, make sure the top two boxes are checked
- Also in the Video Devices section, choose video5 from the dropdown menu and check the "anybody" bubble
- Click Apply at the bottom then click close
- Quit Skype (S Menu > quit) and then Restart it to make sure the settings were all saved
- For some reason I was having troubles saving files, until I set them one by one, applying and restarting skype after each
- Once all those are set and good, have someone call you and give it all a test (it should automatically answer and bring up their video without you pressing anything)
- 'sudo cp /usr/bin/skype ~/.kde/Autostart/skype' should make skype start on boot
Set things to work right with MCE
- With this setup, Skype audio seems to be overpowered by any media playing in MCE, this should help things
- This should also make the call window remain visible in the OnScreen orbiter instead of disappearing when anything is clicked (Allowing a change in music, etc without interrupting the call)
- Add a new sensor (Web Admin > Wizard > Devices > Security > Add device)
- Name it "Skype sensor" and set it to "Bedroom(master)"
- Take note of the device number at the top left and click "Update"
- Open Skype and go to S menu > options > Notifications
- Click "Incoming call ringing" and the "Advanced view" button on the right "Call Answered" does not apply to automatic answering
- Check the bottom box for "Execute the following script"
- Much like the bluetooth proximity, put in the command "/usr/pluto/bin/MessageSend localhost 55 -1000 2 9 25 1" replacing 55 with the device ID
- Go to "Call Hungup", check the same box and enter the command "/usr/pluto/bin/MessageSend localhost 55 -1000 2 9 25 0" again replacing 55 with the device ID
- Put this same code in "Number busy", "Call failed", "Call missed", and "Call Ended"
- Click apply and close
- The "Skype sensor" will now be tripped whenever a call is active
- Web Admin > Wizard > Events Handler > Respond to Events
- Type "Skype call" in the description, choose "A sensor is tripped", and click "Add"
- Set What device to "= Skype Sensor"
- Set "tripped = 1" and click "Update"
- Now choose the "Advanced Wizard"
- From the "Device" drop down menu find "Core > core/hybrid > OnScreen Orbiter > Xine player"
- Scroll down to "Pause" in the command drop down menu
- Choose any other commands you wish to activate upon receiving a call
- Repeat the last few steps for the "Skype end call" event which has sensor "tripped = 0"
- From the "Device" drop down menu find "Core > core/hybrid > OnScreen Orbiter > Xine player" again
- Choose the "pause" command again (This will UNpause the media, rather than sending "play" which starts it over)
Set the window rules
instructions grabbed here
- This section isn't quite finished, but I am putting it on hold for the time being so that I can move on to other sections
- While in the OnScreen orbiter, it is impossible (or at least difficult) to answer the call without going to KDE...here's the fix
- Open terminal and type 'sudo apt-get install devilspie'
- 'mkdir ~/.devilspie'
- 'kate ~/.devilspie/skype.ds'
- Put the code in you see on the configuration files section
- Save the file and then run 'devilspie' in terminal
- Quit and re-run skype (not just put it to the taskbar)
- Now return to the OnScreen orbiter and have someone call you, if auto-answer is on, the call should appear above everything else and not disappear when going through menu's, etc...if auto-answer is off, you should be able to now click the answer button and have the call remain on top
- To make sure devilspie starts on boot-up 'sudo cp /usr/bin/devilspie ~/.kde/Autostart'
- Right now the devilspie code doesn't work right for answering a call, and the pausing configuration doesn't work if auto-answer is on...looks like I have some more work to do
Webcams as security cameras
instructions grabbed here
- Those instructions walk through it fairly well, but I will step through it as well
- This should all work well if the drivers and such are installed...otherwise, there could be problems
- From the previous section regarding Webcams and Skype, I have two cameras hooked up to USB, one dedicated to Skype, and one dedicated to being a security camera
- The Skype camera should be assigned to /dev/video5 every startup and so I shouldn't have to worry about it in this setup
- Web Admin > show devices tree (bottom left)
- Click on the device to which the camera is connected (in my case, CORE)
- At the top left of that page, click "create child device"
- Put a name for the motion wrapper in the description (This is not the camera itself, but the controlling device for any attached camera...I named mine "Motion Wrapper")
- Click "Pick device template"
- Either find "Motion wrapper" in the device template drop down, or type the template id #64 and hit go
- Click "Pick device template"
- Now that you are on the property page for the motion wrapper, create a child device of that (top left again)
- Name the camera as you wish (I called mine "Camera0" to correspond with /dev/video0)
- Either choose "Generic Analog Camera" in the device template dropdown, or enter the template id #66
- Click "Pick device template"
- In the properties that come up, make sure you put the device number (/dev/video0) in the first box
- The other settings can be adjusted depending on how you want the camera to behave
- Restart the router (Web Admin > Wizard > Restart > "Quick Reload Router") to make these settings take effect
- If motion wrapper doesn't start, you may need to restart the computer
- The camera should now be able to be viewed on the OnScreen orbiter by going to Security > Floorplan
- You can also view the camera in the web admin by going to Web Admin > security > view cameras
- If this isn't working, new drivers may be necessary
Install the newest gspca drivers
instructions grabbed here
- The Ezonics EZCam USB is a CPiA/gspca camera, so I will install the newest drivers from here
- I can't get this camera to work, and have been trying for the last few hours...so I'm going to move on to another section
Use your own pictures for the screen saver
- Default installation grabs pictures from Flickr and makes them the screensaver, if you want to add some of your own pictures or get rid of the Flickr pictures and use only yours, you can
- Copy the pictures you want to use to /home/public/data/pictures/ this step is optional
- Web Admin > Files & Media > Screen saver
- This should bring up a file tree on the left side that allows you to choose any pictures under the /home directory, and set them as screensaver pictures (that's why the last step was optional, but I recommend it for organizational purposes)
- Once you find the pictures you would like to use as your screen saver, they should appear with thumbnails and a checkbox beside them
- If you check the boxes beside your images and click "Save" at the bottom, they will be added to your screen saver
- You may have to click "reload screensaver" at the top or quick reload the router before you start to see them on the screen
Get rid of Flickr pics
- If you don't want the Flickr pictures to be there at all, they can be deleted and instructed not to download
- Web Admin > Files & Media > Screensaver
- On the page that comes up, there is a button labled "Disable flickr script" that can be clicked to disable the future downloading of Flickr pictures
- There is also the option to delete the pictures that have already been downloaded using the next option on the page
- The default path should be right, change it if necessary...then hit remove
- Reload the screensaver and possible the router if necessary
Torrenting
- By setting up a torrent client with a web interface, you can tell the media center to download what you want, and have it download in the background and magically appear in your collection when it is done!
- K menu > Applications > BitTorrent Client
- Settings > Configure KTorrent
- Under Plugins, check the "web interface" box and click apply
- Now in the left column, select "Web Interface" at the bottom
- Choose a different port because MCE uses 8080 (I use 8081)
- Make a user name and password and click apply
- Go to the "Application" section on the left column
- Check "Move completed downloads to" and direct it to a folder in the public home folder (you may have to 'sudo mkdir /home/public/data/other/torrents' first)
- Click apply and ok
- I had to 'sudo chmod 777' the directory where I wanted to put torrents as well
- If you want to be able to access this interface from the internet, you must also forward this port as discussed in a previous section
- Add KTorrent to the startup:'sudo cp /usr/bin/ktorrent /home/matt/.kde/Autostart/'
- Now you should be able to access the web interface on any computer by going to http://<media-center-ip>:8081 inside the network or http://<media-center-domain>:8081 on the internet
- Download away!
Hulu
- Apparently there has been some work done to integrate hulu desktop and MCE...so I am going to look into it and see what I can do
Command the CORE with text messages
- Theoretically, shouldnt be too bad...maybe I'll try that