Friday, December 26, 2014

mythtv tweaks dec 2014

1.
mythlounge with ubuntu 14.04 shows xfce4-panel (menu bar) in top:

panel properties:
choose: 'Automatically Show and Hide the panel' and ' Don't reserve space on borders'


2.
Shutdown and reboot commands no longer work in mythtv. Edit sudoer's list

sudo visudo to edit the file:

user_name ALL=(ALL) NOPASSWD: /sbin/poweroff, /sbin/reboot, /sbin/shutdown

See also http://askubuntu.com/questions/168879/shutdown-from-terminal-without-entering-password


Above makes reboot, but not shutdown work?

Adding 'sudo poweroff' to custom halt command in mythtv--->setup--->general sorts this.

Tip:
have a look at frontend logs whilst using:
tail -f /var/log/mythtv/mythfrontend.log




3.
x11vnc not working from startup:


4.
dvd drive not working within mythtv:

in frontend playback settings specify location of dvd drive:
/dev/sr0

5.
Get Airplay working:
probably gonna need to have mythboxes and wifi on same subnet for this.


6. Fine tuning of mythsunroom:

nvidia overscan settings=50
mythfrontend gui doesn't resize: adjust pixels of gui in settings: appearance to 1831x1031

x11vnc from startup:
http://robot.wpi.edu/wiki/index.php/Setting_up_an_XUbuntu_VNC_Server#Automatically_start_the_server

Sunday, December 14, 2014

mythserver rebuild dec 2014 - Completed!

Purpose: try to get new mythserver done by Christmas!

Current issues with present server:
live tv has to be 'recorded' not to crash
mythweb not working
mythbackend flaky and not autostarting
grub issue - only boots on hot reboot


Installed mythbunutu 14.04 64bit on 160gb drive; something about the ISOs now means that some m'board BIOS won't boot form the disks. Using pendrive instead. mythserver boots fine from it.

recordings (etc) live at: /var/lib/mythtv/ on their own separate 1tb drive.


Using rsync to copy recordings from old var to new one (temp mounted on old machine):

sudo rsync -a --progress /var/lib/mythtv/recordings/*  /media/a0907e07-74fe-4bdb-b2b3-c6bf2ae58ab1/lib/mythtv/recordings/





backup mythtv using:

markp@mythserver:~$ sudo /usr/share/mythtv/mythconverg_backup.pl --verbose

this creates a sql backup file in /home/mythtv
 copy it to the temp /var (on the new system db_backups is by default the place for the backups)

the following is supposed to change the location of the backup. can't see how it works.
echo "DBBackupDirectory=/home/mythtv" > /var/lib/mythtv/db_backups

copy the backups to what will be the new /var:

sudo rsync -a --progress /home/mythtv/*.gz /media/a0907e07-74fe-4bdb-b2b3-c6bf2ae58ab1/lib/mythtv/db_backups/




New server - tweaks and issues:

After installing the proprietary TBS drivers (not the new Opensource ones) the Hauppage cards are not seen.

The 'make' has probably caused an issue with the existingdrivers. The TBS forum advises: "You've got some old modules mixed in with the new ones".

sudo mv /lib/modules/$(uname -r)/kernel/drivers/media ~/media.bak

cd to where I unpacked the TBS drivers ( /home/markp/Downloads/tbsdrivers/linux-tbs-drivers/ )and remake:


sudo make install
sudo reboot


Trying to restore:
markp@mythserver:/usr/share/mythtv$ sudo ./mythconverg_restore.pl --verbose
--drop_database --create_database --directory /var/lib/mythtv/db_backups --filename mythconverg-1317-20141215131639.sql.gz

don't know why when I used the backup regime the ./ wasn't needed, restore needs it? Yes.

Remote Frontends can't connect:
Edit /etc/mysql/conf.d/mythtv.cnf
remove the hash from the "bind-address 0.0.0.0" line

Now working.

Backend runs out of disk space after a few days. Probably an issue with permissions in /var/lib/mythtv/ as previous mythbackend had to run as root.

chown to mythtv:mythtv and chmod to 666 in both recordings and livetv folders. probably everything in here should be owned by mythtv.





John Deere Model A spluttering

Note about the throttle linkage to the govenor: The linkage needs to be "1/2 a hole short", i.e. when the throttle is wide open, engine stopped, take the linkage out of the arm on the carb. The gov. spring should pull the linkage 1/2 of the hole dia. past the point where it will go in. There are no springs inside the gov. housing, about all that can happen in there is a thrown weight or the sleeve stuck from sitting.

from here:
http://www.smokstak.com/forum/showthread.php?t=22799

Friday, May 16, 2014

charity software - methodist charities

In summer 2013 I realised that the free 'google apps non-profits', after much UK lobbying for many years, is now available for UK Registered Charities. This is a great offer, for the facility it provides, costs serious money for businesses. I have successfully applied for and set this up for our Methodist Circuit. If you have dreams of using ICT effectively in your Circuit or Church and want to know what it can do, message me. In a nutshell it's key features are: secure document/creation and  sharing; shared calendars for colleagues and (potentially) a common address book (this needs work to make happen which I haven't been able to achieve yet); a shared Circuit-wide addressbook for email and directory creation has always been a bit of a holy grail for me! Got this sorted already - for free?? Let me know how!

Just recently I've investigated TT-Exchange, which offers donated software from several noteworthy firms, including microsoft, to UK Charities. Yesterday it was confirmed that our Circuit does qualify for some, if not all of the software, but importantly it includes the MS stuff. I think this means for an 'administration donation' we can get licences for Windows 8 OS for about £5, and Office 2013 Standard for £15. I will confirm in the future if this is true!

Wednesday, May 14, 2014

public wifi

Public wifi from church premises
When it comes to Safeguarding one area of protection and care that the church should not overlook is if it offers wifi facilities for the public from church premises.

There are good reasons why such provision can be positive and helpful. Increasingly the Church seeks to engage with the community around it by offering the church premises for a wider variety of uses. Using the premises for things such as conferences and training, are more attractive if providing an online facility, especially if your church premises have little or no 3G mobile phone broadband signal. Offering public wifi at a church raises two particular challenges: controlling who has access and controlling the content public users might use.

Controlling who has access - Providing wifi in a public arena, such as church premises, must be understood as fundamentally different from a domestic wifi scenario. One reason for this is that offering wifi safely to occasional/infrequent unknown users requires security approaches that are not needed in the domestic situation. A fixed wifi password which must be revealed to the wifi user, if distributed widely, leaves the wifi facility totally open to misuse and abuse. However systems which can give some level of control to the free wifi access must not be so complex that they become unattractive to either use, or administrate.

Controlling the content - Public wifi access is attractive to rogue internet users who might like to either download, or upload, illegal, illicit and pornogrpahic content. Assuming such a user makes an internet connection with their own wifi device, once they have disconnected and removed themselves from the physical location of the wifi hotspot, their is no way to trace who that person was.

Solutions
For every problem there are solutions and there are software and hardware tools which can, and I suggest should, be deployed by churches to ensure that the abuse and misuse of their wifi facilities is minimised as much as possible, this is not least for their own protection; there are serious legal and criminal ramifications of certain types of internet traffic being passed through a church broadband connection.
Controlling access - To control who can use the wifi a system which uses timed vouchers is a reasonable solution. Firstly such systems require users to present themselves to someone inhouse to obtain the voucher, which can be limited to only work for (eg) 4 hours. Each user voucher uses a code or password which is unique, not generic.
Controlling content - To ensure that inappropriate material is not passed through the Church broadband connection a content filtering system should be deployed. Although such systems require some management, they are essential to try and block and filter inappropriate internet traffic of guest users.
Deploying such a solution?
Such systems typically work by replacing the broadband router provided by the ISP with something more sophisticated. Such approaches need not be prohibitively expensive, especially if there are local people who can help with the setup and administration of the systems.
Some very worthwhile solutions which are free are available using opensource software-based routers. pfSense is an excellent example of an opensource solution  which can provide all of the above; it provides many professional features. Although such software is free to download and use it will need to be run on a dedicated PC. Ideally special PC hardware which has a very low power requirement is used. Such hardware can cost less than £200; if that breaks the budget pfsense can be run on a redundant PC which might cost next to nothing.
Other considerations?
Do you have extensive premises? If so one wifi access point (AP) might not cover all the premises, additional APs will be required. pfSense and solutions like it use a 'firewall' which provides robust security between different parts of the Church network, eg the church office. pfSense also has the ability to setup two (or more) wifi networks, one for trusted 'in house' connections and one for 'public' users. Separating these networks helps maintain network security; it does though add to the complexity of the setup. Carefully chosen AP hardware can broadcast both networks simultaneously, saving on hardware and power costs.

If you'd like to know more about deploying such systems post a comment or you contact me at: mark.pengelly AT methodist.org.uk

Tuesday, April 22, 2014

mythtv upgrade April 2014

Current issues:

grub problem, require hot reboot to make grub load?
channels not quite right.

Current setup:
mythtv .2
mythbackend doesn't autostart at present
1Tb drive has 200Gb / and 800 Gb /var partitions
(recordings are at /var/lib/mythtv/recordings)

<code>
markp@mythserver:~$ apt-cache policy mythtv
mythtv:
  Installed: 2:0.26.1+fixes.20131223.e41b710-0ubuntu0mythbuntu1
  Candidate: 2:0.26.1+fixes.20140322.1a4cebf-0ubuntu0mythbuntu1
  Version table:
     2:0.26.1+fixes.20140322.1a4cebf-0ubuntu0mythbuntu1 0
        500 http://ppa.launchpad.net/mythbuntu/0.26/ubuntu/ precise/main amd64 Packages
 *** 2:0.26.1+fixes.20131223.e41b710-0ubuntu0mythbuntu1 0
        100 /var/lib/dpkg/status
     2:0.25.3+fixes.20130813.b5adf03-0ubuntu0mythbuntu2 0
        500 http://ppa.launchpad.net/mythbuntu/0.25/ubuntu/ precise/main amd64 Packages
     2:0.25.0+fixes.20120410.1f5962a-0ubuntu1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ precise/multiverse amd64 Packages
</code>



Aim:

replicate current .26 install so that it starts properly and has recording on separate drive.

recordings

Saturday, March 22, 2014

The Visual in Worship - openlp info

When the OpenLP program installs it creates a folder called 'Data'. To replace the list of songs on the inital install with my song database do the following.

1. Firstly download the new 'Data' folder from here,
http://www.pengelly.info/downloads-and-resources/
Click on the link to the data folder and 'save file'. This will ask if you want to download the 'zip' folder. Say yes and note where on your system it gets placed (probably your users 'downloads' folder)
You will need to 'unzip' that folder before you can use it. Ask me if you need help with this.

2. Open the Openlp program and on the menu at the top choose: Tools --> Open Data Folder.

This will open up a file browser window and it will show you where on your file system openlp is placing the 'data' folder. You will be looking at the contents of the data folder (which usually contains a list of 6 or 7 other folders called things like 'songs' 'themes' etc). NOW CLOSE THE OPENLP PROGRAM DOWN!

3. In the file browser, which shows the current openlp data folder, move up one directory level. This should mean that you then view the folder called 'data'. Using a right mouse click, rename that data folder to 'dataold'

4. Now copy the new downloaded 'data' folder into the same place as the renamed old data folder.

5. Restart openlp and if you've got it right (!) you should now have a longer list of songs (and more themes).

If you have problems don't feel bad, just post a comment/question on the blog below!

Note this song database can only legally be used when Churches have the appropriate CCLI licenses!! Please be legal as far as copyright is concerned!!

Wednesday, March 19, 2014

The Visual in Worship - Session 2

The second session is going to introduce you to 'worship presentation software'. There are many commercial and opensource alternative that work on windows, mac and linux.

We're going to look at an opensource (free) one that I've been experimenting with since Autumn 2013:
http://openlp.org/
It works with all three of those OS's mentioned - Go ahead and download/install it if you like.





OpenLP has nice 'remote control' capabilities using either an iphone/ipad/ipod-touch:
https://itunes.apple.com/us/app/openlp-remote/id730847052?ls=1&mt=8

(as often in the mac world the above is not free - $3.99!)

but the Android phone/tablet equivalent is, and I've used this sucessfully:
http://manual.openlp.org/android.html

Note you're going to need a wifi network to allow the remote control device to communicate with your laptop; not a facility in most of our churches - yet!


Saturday, March 15, 2014

The Visual in Worship - Session 1

Here's some links to help those at the 'Visual in Worship' training:

The slides I'm using: (in both MS powerPoint and OpenOffice impress format)
http://www.pengelly.info/uploads/mp_downloads/visualinworship.odp
http://www.pengelly.info/uploads/mp_downloads/visualinworship.ppt

A link to my booklet the Methodist Church published:

http://www.methodist.org.uk/downloads/ca_technology_0504.pdf

Link to an Epworth Review paper about Opensource software:
http://www.pengelly.info/uploads/mp_downloads/Epworth%20Review%20article%20pengelly%20pub1.pdf


Link to the openlp worship projection software:
http://openlp.org/

Sunday, February 02, 2014

Open LP database location

the Open LP db is located:

On Windows 7:
C:\Users\UserName\AppData\Roaming\openlp\data

On Ubuntu: