Saturday, July 07, 2012

Mythtv tweaking and nfs

Sound on mythlounge:
(newer setup, Dec 2011, using S/PDIF mobo o/p) choose:
ALSA:dmix:CARD=NVidia,DEV=1
again only STEREO works
this is using the "HDA NVidia, ALC888 Digital" device
these allows firefox sound to work with myth.

playback setting:
VDPAU High Quality



NFS server: exports need adding to /etc/exports on the (file)server

1. install:
apt-get install nfs-kernel-server 

 
2. on the server create the /export shares:
root@server:/home/markp# mkdir -p /export/Music_flac
root@server:/home/markp# mkdir -p /export/Music_mp3
root@server:/home/markp# mkdir -p /export/photos


3. bind the /export filesytem to the actual locations, add to fstab so happens auto on boot:
#NSFv4 server share settings:
/home/markp/Music_flac /export/Music_flac      none    bind    0       0
/home/markp/Music_mp3  /export/Music_mp3       none    bind    0       0
/home/myserver_groups/photos   /export/photos  none    bind    0


4. set the nfs conf options as suggested at:
NFSv4 setup from ubuntu community.

5. place the exports in /etc/exports:
/export       192.168.1.0/24(rw,fsid=0,no_subtree_check,sync)
/export/Music_flac 192.168.1.0/24(rw,nohide,insecure,no_subtree_check,sync)
/export/Music_mp3 192.168.1.0/24(rw,nohide,insecure,no_subtree_check,sync)
/export/photos 192.168.1.0/24(rw,nohide,insecure,no_subtree_check,sync)


NFS setup for client

1.:
sudo apt-get install nfs-common

2.For mythmusic set directory as /home/markp/Music_flac
For mythgallery (photo viewing) set directory as /home/myserver_groups/photos
The above directories allow mythfrontend on the main fileserver to use their real locations

3. create the mount points referred to on the client:
sudo mkdir -p /home/myserver_groups/photos
mkdir -p /home/markp/Music_flac
mkdir -p /home/gracep
mkdir -p /home/meganp
mkdir -p /home/crossing_groups
mkdir -p /home/markp/myserver_groups
mkdir -p /home/sheridanp
mkdir -p /home/markp

4. add this to fstab to mount the nfs shares on the client on boot:
#nfsv4 mounts
192.168.1.10:/Music_flac /home/markp/Music_flac nfs4 _netdev,auto 0 0
192.168.1.10:/photos /home/myserver_groups/photos nfs4 _netdev,auto 0 0




nfs4 file permission issues: although the flac files could be accessed fine on the client, the photos wouldn't allow access to the subfolders, 'permission denied'
chmod to 777 on the server fixes.

Album art issues in mythmusic:
although I thought mythmusic was picking up the image that it can display when using the the visualiaztion 'album-art' from the flac tag, it would appear it doesn't. Rather it is relying on a jpg being in the folder of the flac files. This file can be called anything.jpg but cannot be a hidden file, ie start with a full stop.

Friday, July 06, 2012

Recognised & Regarded vs. Authorised to Service

R&R and AM -  the low down:
Recognised and Regarded.  This is no longer the category which applies to people in LEP situation.  The category is "Authorised to Serve" (AM).

(This change occurred six or seven years ago.  R and R means that a person
is fully under the discipline of our Conference, resulting in people being
fully under two disciplines, which obviously doesn't work. AM means that a
person is under the discipline of their own Church but authorised by and
accountable to the Methodist Church for relevant parts of their work.)

As soon as we know who the person is, we can start the ball rolling (it
must come via the District).  The President of Conference would be asked
to approve it.  I've never known a case of refusal.

Friday, June 01, 2012

fonts in Ubuntu

Put extra/new fonts in /usr/share/fonts/truetype

Wednesday, May 30, 2012

setting up new users etc in new ubuntu install to sync with UIDs at TC



logout of gui, drop to shell (ctrl+alt+F1).

sudo adduser <newusername>

then add newusername to group sudo

exit

login to shell in that new name

sudo usermod -u <newUID> <usernametochange>

Sunday, April 22, 2012

Mobile phones in car

trying to do a number of things here:
1. Charge two phones, samsung galaxy and iphone
2. pipe sound from either phone via car ICE

the usb+3.5mm stereo to iphone connectors are powered via a cigar socket to usb adaptor which has an additional usb A type socket soldered to it's board

Saturday, April 07, 2012

freesat mythtv firmware hauppage problem

Although the card is seen on the system, and in Mythtv, the Hauppage DVB-S2 tuner needs some non-free firmware to make it work:
cat /var/log/kern.log
Apr 7 08:35:22 mythserver kernel: [ 711.136979] cx24116_firmware_ondemand: Waiting for firmware upload (dvb-fe-cx24116.fw)...
Apr 7 08:35:22 mythserver kernel: [ 711.140459] cx24116_firmware_ondemand: Waiting for firmware upload(2)...
Apr 7 08:35:22 mythserver kernel: [ 711.140466] cx24116_firmware_ondemand: No firmware uploaded (timeout or file not found?)
Apr 7 08:35:22 mythserver kernel: [ 711.140473] cx24116_cmd_execute(): Unable initialise the firmware


It won't tune until the firmware is installed, so:
sudo apt-get install linux-firmware-nonfree

Reboot, then :
markp@mythserver:~$ dmesg | grep cx24116
[ 37.916332] cx24116_firmware_ondemand: Waiting for firmware upload (dvb-fe-cx24116.fw)...
[ 38.071137] cx24116_firmware_ondemand: Waiting for firmware upload(2)...
[ 42.916930] cx24116_load_firmware: FW version 1.26.90.0
[ 42.916948] cx24116_firmware_ondemand: Firmware upload complete
[ 45.166018] cx24116_firmware_ondemand: Waiting for firmware upload (dvb-fe-cx24116.fw)...
[ 45.171222] cx24116_firmware_ondemand: Waiting for firmware upload(2)...
[ 50.036655] cx24116_load_firmware: FW version 1.26.90.0
[ 50.036675] cx24116_firmware_ondemand: Firmware upload complete

mythtv tuning now works...

Monday, March 26, 2012

mdadm administration and maintenance

check status of a raid:
root@server:/home/markp# mdadm --query --detail /dev/md0
/dev/md0:
Version : 0.90
Creation Time : Wed Jun 16 11:12:17 2010
Raid Level : raid1
Array Size : 732571904 (698.64 GiB 750.15 GB)
Used Dev Size : 732571904 (698.64 GiB 750.15 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Mon Mar 26 08:37:54 2012
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0

UUID : a796fd2c:740124f9:01f9e43d:ac30fbff (local to host server)
Events : 0.7867161

Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
1 0 0 1 removed


the two disks of my md0 are sdb1 and sdc1. Add back whichever is degraded:
root@server:/home/markp# mdadm --add /dev/md0 /dev/sdc1
mdadm: added /dev/sdc1
root@server:/home/markp# mdadm --query --detail /dev/md0
/dev/md0:
Version : 0.90
Creation Time : Wed Jun 16 11:12:17 2010
Raid Level : raid1
Array Size : 732571904 (698.64 GiB 750.15 GB)
Used Dev Size : 732571904 (698.64 GiB 750.15 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Mon Mar 26 08:53:20 2012
State : clean, degraded, recovering
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 1

Rebuild Status : 0% complete

UUID : a796fd2c:740124f9:01f9e43d:ac30fbff (local to host server)
Events : 0.7867463

Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
2 8 33 1 spare rebuilding /dev/sdc1