User:GnEeErKd/Configuration Files
From LinuxMCE
Contents
Configuration Files
/etc/init.d/linuxmce
- I don't know if the specific placement of this line really matters, but this worked for me
StartService "Setting SSH Keys" "/usr/pluto/bin/SSH_Keys.sh" "&" StartService "Setting Coredump Location" "/usr/pluto/bin/corefile.sh" StartService "Creating Firewire 2 Video4Linux Pipes" "/usr/pluto/bin/Firewire2Video4Linux.sh" StartService "Configuring Pluto Storage Devices" "/usr/pluto/bin/StorageDevices_Setup.sh" /etc/init.d/samba start StartService "Detecting Timezone" "/usr/pluto/bin/Timezone_Detect.sh" "&" StartService "Status Radar" "/usr/pluto/bin/StorageDevices_StatusRadar.sh" StartService "Samba Radar" "/usr/pluto/bin/StorageDevices_SambaRadar.sh" StartService "PVR-250 tuner restore" "/usr/pluto/bin/CaptureCards_BootConfig_PVR-250.sh" StartService "KDE Desktop" "/usr/pluto/bin/Start_KDE.sh" ## Setup ALSA mixers ...
/etc/network/interfaces
- (the eth0 configuration should be set according to the network the media center is connected to)
auto lo iface lo inet loopback auto eth0d localhost 62 -1000 2 9 25 0" replacing 62 with the device code of the generic sensor you created iface eth0 inet static address 192.168.200.42 netmask 255.255.255.0 gateway 192.168.200.1 auto eth0:1 iface eth0:1 inet static address 192.168.80.1 netmask 255.255.255.0
~/Desktop/Activate-Orbiter.sh
- Change "21" to the device number of your OnScreen orbiter
- This can be found by going to Web Admin > Show Devices Tree > Core > The core/hybrid, click on OnScreen Orbiter and look in the black box at the top left of the information displayed
#!/bin/bash /usr/pluto/bin/MessageSend localhost 0 21 1 912 119 "0"
~/.kde/Autostart/Set-Volume.sh
#!/bin/sh amixer sset Front 100% unmute amixer sset Surround 100% unmute amixer sset Center 100% unmute amixer sset LFE 100% unmute amixer sset 'Front Mic Boost' 100% unmute amixer sset 'Front Mic' 100% unmute amixer sset 'Input Source' 'Front Mic' amixer sset 'Capture' 100% unmute
/etc/X11/xorg.conf
- Options may very depending on your setup and mouse, this is the config for my setup
- The protocol ExplorerPS/2 seems to have the best luck, but auto may work as well
... Section "InputDevice" # generated from default Identifier "Mouse0" Driver "mouse" Option "Protocol" "ExplorerPS/2" Option "Device" "/dev/psaux" Option "Emulate3Buttons" "no" Option "ZAxisMapping" "4 5" Option "Buttons" "7" Option "ButtonMapping" "1 2 3 6 7" EndSection ...
~/.xbindkeysrc
- b:# is the mouse button, modify according to the functions you want
- use 'xev' to determine the mouse button numbers
- use 'xbindkeys -k' to determine keyboard button codes (they are case-sensitive)
"xte 'keydown F7' &" b:2 "xte 'keyup F7' &" b:2+release "xte 'keydown Prior' &" b:4 "xte 'keyup Prior' &" b:4+release "xte 'keydown Next' &" b:5 "xte 'keyup Next' &" b:5+release "xte 'keydown F6' &" b:6 "xte 'keyup F6' &" b:6+release "xte 'keydown F8' &" b:7 "xte 'keyup F8' &" b:7+release
/etc/ssmtp/ssmtp.conf
- Make sure you replace USERNAME and PASSWORD with your Gmail account info
# # Config file for sSMTP sendmail # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root=USERNAME@gmail.com # The place where the mail goes. The actual machine name is required no # MX records are consulted. Commonly mailhosts are named mail.domain.com mailhub=smtp.gmail.com:587 UseSTARTTLS=YES AuthUser=USERNAME AuthPass=PASSWORD # Where will the mail seem to come from? rewriteDomain=gmail.com # The full hostname hostname=dcerouter # Are users allowed to set their own From: address? # YES - Allow the user to specify their own From: address # NO - Use the system generated From: address FromLineOverride=YES
~/Desktop/email.sh
- Replace 5555551234@vtext.com with whatever the equivalent is for your phone carrier, or a normal email address if you don't want text alerts
#!/bin/bash # script to send simple email # email subject SUBJECT="MCE" # Email To ? EMAIL="5555551234@vtext.com" # This is the text message email setup for verizon, check for your carrier's equivalent # Email text/message EMAILMESSAGE="/tmp/emailmessage.txt" echo "Your lights are:">$EMAILMESSAGE echo "Off">>$EMAILMESSAGE # send an email using /bin/mail mail -s "$SUBJECT" "$EMAIL" < $EMAILMESSAGE
/etc/udev/rules.d/95-webcam.rules
- Modify the vendor and product ID to match that of your camera
KERNEL=="video*", SYSFS{idVendor}=="045e", SYSFS{idProduct}=="00f8", NAME="video5"
/usr/bin/skype
#!/bin/sh LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype.real