lspci
04:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
04:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
And the settings:rmmod bttv
rmmod tuner
sudo modprobe bttv card=70 tuner=1
Tuesday, 15 December 2009
Mythbuntu - BTTV Driver
Wednesday, 9 December 2009
Can't ping FQDN in Ubuntu
It seems the avahi-daemon interferes with the normal resolving process. It’s DNS caching borks the normal functionality
The fix:
# shut it down
sudo /etc/init.d/avahi-daemon stop
# stop it starting at the next reboot by removing the startup links
sudo update-rc.d -f avahi-daemon remove
Removing any system startup links for /etc/init.d/avahi-daemon ...
/etc/rc1.d/K86avahi-daemon
/etc/rc2.d/S50avahi-daemon
/etc/rc3.d/S50avahi-daemon
/etc/rc4.d/S50avahi-daemon
/etc/rc5.d/S50avahi-daemon
Sunday, 1 November 2009
Cacti - Mikrotik Signal Strength Graph for client connection
Well it took me some time and confusion to get this graph going; at the end of the day it was a configuration error and the misuse/confusion between different templates found on the net.
In summary this is the correct parameters:
Cacti version: 0.8.7e
Mikrotik Router OS: 4.2
Device:
- Added device with SNMP v1 & Mikrotik Template
- Make sure the Associated Data Queries - Mikrotik - Wireless - Client is working.
Data Sources:
- Selected Data Template - Mikrotik - Wireless - Signal Strength ( NOT Mikrotik - Wireless - RegTable Signal Strength)
- Custom Data - Index Value - This is the numerical value (e.g. 4) corresponding to the wireless interface index id you want the signal strength measured for.
- Custom Data - Index Type - ifIndex
Data Queries:
- Use the Mikrotik - Wireless - Client data query located at <path_cacti>/resource/snmp_queries/mikrotik_wireless_client.xml and make sure the Data input method is: Get SNMP Data (indexed)
That should do the trick.
Where did I go wrong:
I had to add a new device for this to work, but once working I could duplicate the graph and associate it with the correct device. - don't know if this is a cacti bug or not?
I used the RegTable signal strength data template in error
Wednesday, 21 October 2009
LNB
Dual polarisation LNBs
The LNB shown above has one wire going into the waveguide to pick up vertical polarisation. If the input waveguide is circular is can support two polarisations and it can be arranged for there to be two input probes at right angles, thus allowing two alternative polarisations to be selected (vertical or horizontal), either one or the other. Dual polarisation LNBs may commonly be switched remotely using two alternative DC supply voltages. e.g. 13 volts makes it receive vertical polarisation and 19 volts make it receive horizontal polarisation.
LNB supply voltages
The DC voltage power supply is fed up the cable to the LNB. Often by altering this voltage it is possible to change the polarisation or, less commonly, the frequency band. Voltages are normally 13 volts or 19 volts. Perfect weatherproofing of the outdoor connector is essential, otherwise corrosion is rapid. Note that both the inner and outer conductors must make really good electrical contact. High resistance can cause the LNB to switch permanently into the low voltage state. Very peculiar effects can occur if there poor connections amongst multiple cables to say an LNB and to a transmit BUC module as the go and return DC supplies may become mixed up and the wrong voltage applied across the various items. The electrical connections at the antennas between the LNB and the BUC chassis are often indeterminate and depend of screws in waveguide flanges etc. Earth loop currents may also be a problem - it is possible to find 50 Hz or 60 Hz mains currents on the outer conductors - so be careful. Such stray currents and induced RF fields from nearby transmitters and cell phones may interfere with the wanted signals inside the cables. The quality and smoothing of the the DC supplies used for the LNBs is important
How to test an LNB
Check with a current meter that it is drawing DC current from the power supply. The approx number of milliamps will be given by the manufacturer. Badly made or corroded F type connections are the most probable cause of faults. Remember that the centre pin of the F connector plug should stick out about 2mm, proud of the surrounding threaded ring.
Use a satellite finder power meter. If you point the LNB up at clear sky (outer space) then the noise temperature contribution from the surroundings will be negligible, so the meter reading will correspond to the noise temperature of the LNB, say 100K (K means degrees Kelvin, above the 0 K absolute zero temperature). If you then point the LNB at your hand or towards the ground, which is at a temperature of approx 300K then the noise power reading on the meter should go up, corresponding to approx 400K (100K +300K).
Note that LNBs may fail on one polarisation or on one frequency band and that the failure mode may only occur at certain temperatures.
[gmap]
Wednesday, 30 September 2009
Energy consumption - Geyser
The intention of this test was to try and understand the effects of switching the geyser off for a long period every day. The test was conducted on an old Sadia 30gal (136 litre), 3Kw geyser. Hot water was used exclusively to shower twice a day, once in the morning and once in the evening. No other hot water was used during the test period. During the first two days the geyser was not switched off. After that it was switched off at about midday and then switched on again at about 10:30pm at night for two days. The temperature of the water did not seem to be noticeably lower during the evening shower on those days.
The graphs below represent the electricity used on each day:
You can clearly make out the "reheating spikes" where the thermostat switches the heating element on briefly to reheat the water after it has cooled. The longer duration heating events show when cold water entered the geyser to replace that used during a shower and required heating for up to a few hours. It is assumed that the reheating spikes that occur shortly after the water was heated after a shower, are due to mixing of hot and cold water. (We think that water near the element reaches operating temperature and thus the thermostat switches off the heating element. But not all the water in the geyser has reached that temperature yet. So the thermostat has to switch on again when the hot water near the element mixes with cooler water elsewhere in the geyser).
Day1 - Normal Use Summary Figures:
Energy used heating cold water during/after showers - 4.09kWh
Energy used by reheating spikes - 1.65kWh
Number of reheating spikes - 5
Average energy used per reheating spike - 0.33kWh
Day2 - Normal Use Summary Figures:
Energy used heating cold water during/after showers - 4.68kWh
Energy used by reheating spikes - 1.42kWh
Number of reheating spikes - 5
Average energy used per reheating spike - 0.28kWh
Day1 - Simuated Time Switch Summary Figures:
Energy used heating cold water during/after showers - 5.45kWh
Energy used by reheating spikes - 1.02kWh
Number of reheating spikes - 4
Average energy used per reheating spike - 0.26kWh
Day2 - Simuated Time Switch Summary Figures:
Energy used heating cold water during/after showers - 4.84kWh
Energy used by reheating spikes - 1.03kWh
Number of reheating spikes - 3
Average energy used per reheating spike - 0.26kWh
Conclusions that can be drawn from this test:
- For the geyser tested, 0.28kWh is used, on average, during each reheating spike, which occurred roughly every 4-6 hours.
- 5 reheating spikes occur per day when the geyser is not switched off.
- Switching off the gesyer from noon to approx. 10:30pm reduces the number of reheating spikes.
- Because the showers weren't rigorously timed to be exactly the same each day, its not really possible to say for sure whether more energy is consumed on days when the geyser is switched off as opposed to days when it is not.
- At best one can say the only energy saving one can expect from switching off the geyser for an extended period each day is a reduction in the average number of reheating spikes per day (reduced from 5 to 3.5 in this test). Which is thus a maximum saving of 0.42kWh per day. For a saving to occur, no additional energy should be used when the geyser is switched on again, other than that required to heat the cold water that replaced hot water used in any shower whilst the geyser was off. However in this test no such saving was observed, the reverse in fact.
- A more rigorous methodology will be required to conclusively establish whether any savings can be achieved by switching off the geyser each day.
The summary figures for the test are:
Average energy used per "normal day" | 5.92kWh |
Average energy used per "timer day" | 6.17kWh |
Wednesday, 1 July 2009
Grsync
I started from the old trusted rsync and found a gui Grsync for it.
So far it works very well and fast for backup , I will investigate a automated startup next
Automated startup seem to be a problem, however a sync can be started from the command line with the correct "saved task"
I am doing all backups with Grsync now.
Monday, 22 June 2009
Symbolic Links in ProFTPd
lrwxrwxrwx 1 root root 11 Mar 2 2000 rmt -> /sbin/rmt
The file
rmt
contains the nine characters /sbin/rmt
. The reason symbolic links fail when chroot(2)
is used to change the position of the root (/
)of the filesystem is that, once /
is moved, the pointed-to file path changes. If, for example, if chroot(2)
is used to change the filesystem root to /ftp
, then the symlink above would be actually be pointing to /ftp/sbin/rmt
. Chances that that link, if chroot(2)
is used, now points to a path that does not exist. Symbolic links that point to nonexistent files are known as dangling symbolic links. Note that symbolic links to files underneath the new root, such as symlinks to a file in the same directory:> pwd
/var/ftp
> ls -l
-rw-r--r-- 1 root root 0 Jan 16 11:50 tmpfile
lrwxrwxrwx 1 root root 7 Jan 16 11:50 tmplink -> tmpfile
will be unaffected; only paths that point outside/above the new root will be affected.
so clearly this will not work in a ProFTPd default directory
The trick is to use re-mount the directory you want listed again
To have an exact duplicate of the
/var/ftp/incoming directory
available in /home/bob/incoming
and /home/dave/incoming
, use one of these commands:- Linux (as of the 2.4.0 kernel):
mount --bind /var/ftp/incoming /home/bob/incoming
mount --bind /var/ftp/incoming /home/dave/incoming
or, alternatively:mount -o bind /var/ftp/incoming /home/bob/incoming
mount -o bind /var/ftp/incoming /home/dave/incoming
On Kubuntu 9.x with kernel 2.6.28-11-generic the command was:
sudo mount --bind /media/disk/Sorted\ MP3/ /home/sharedftp/download/Music/
This mounted the Sorted MP3 directory under the FTPServer DefaultRoot directory.
In order to have these tricks persist, to survive a system reboot, the
/etc/fstab
file may need to have these mounts addedfstab
to mount a folder locally to another folder using --bind, ie. mount --bind /path1/ /path2/
/path1 /path2 bind defaults,bind 0 0
To mount a folder with spaces in fstab use "\040"
/media/disk/Sorted\040MP3/ /home/sharedftp/download/Music/ bind defaults,bind 0 0
Sunday, 7 June 2009
Satellite Positioning
LNB
There is great post by ShaneW at
http://techies.co.za/phpBB2/viewtopic.php?t=5368&start=0&postdays=0&postorder=asc&highlight=
Hi guys. I was asked to explain to a few colleagues how an LNB works so I wrote up a bit of an explanation, thought it might help a few people on here aswell. |
Dish Pointing
How to align a dish yourself:
Yes it is most definitely possible to do a self install, without any fancy test gear, just get the basics right!
You simply need a good sense of direction, a compass, a school protractor and a builders level, and some spanners that fits the nuts!. Of course you can always buy one of those caravaners kits because there is a simple pointing device in there, and then follow those directions! and a lot of patience is needed!
Make sure the pole mount that you screw to the wall is Vertical in all directions, as this make the pointing exercise much easier.
Mount the antenna on the pole
SKEW angle setting:
(a) Set the ELEVATION angle (up and down) in such a way as to make sure the LNB is Horizontal to the ground (the part point into the antenna).Temporarily lock the antenna in that position just so that it does not move on you.
(b) Now looking into the antenna, adjust the LNB skew angle, down from the Horizontal, rotation clockwise, to approximately the 16H00 position.
(c) Use a simple school protractor, set 0 degree to horizontal, and then turn the LNB clockwise to angle calculated.
(d) lock the LNB in place tight enough so that it does not move on you, and mark the position. If you get this right now then later skew angle adjustments may not be needed at all!.
SET the ELEVATION:
(a) to the calculated value, use the scale on the side of the antenna bracket, as this scale should already compensate for the offset angle.
(b) the pole mount is vertical, this angle will be almost perfectly correct
With the above two set you have now eliminated two of the 3 variables and only azimuth is now needed to be set!
SET the AZIMUTH:
(a) connect up the the cables, switch on the PVR, choose Mnet 101.
(b) IF this is a new PVR, then I suggest that you connect it up at home. let it scan and activate the card BEFORE you leave for your holiday home.
(c) Use the compass to find the basic direction, point the LNB arm of the antenna in that direction. Mark the position on the flange so that at least you know where that direction is.
(d) Now rotate the antenna SLOWLY in one direction until you get a signal, ( that is if you did not have a single immediately). Move until the antenna is obviously completely off position.
(e) if no signal move in opposite direction, till you get a signal, set on maximum ( should be more than 80%), and mark the position.
(f) Now deliberately move off this point in one direction till the signal drops to "zero", mark the position.
(g) Move in opposite direction till you go through maximum and drop off again to "zero", Mark that position.
(h) Set the azimuth half way between to two marks, and that should be close to the original maximum position.
(i) tighten bolts so that antenna will not move but beware of over tightening!
PEAK the elevation
(a) Now do the same as you did azimuth wise, vertically.
(b) MARK the position, loosen the clamps slightly, enough to allow antenna to just move, Move antenna UP till signal drops off to "zero", mark.
(c) Go DOWN till you get zero and mark. Divide by two and that should be where you set it originally!
(d) tighten elevation clamps
Peak the skew angle as previously described, tighten clamps enough to hold BUT beware of over tightening
[gmap]
South Africa Satellite Information
General known satellites in South Africa
36.0°E | Eutelsat Sesat | 081230 |
36.0°E | Eutelsat W4 | 081229 |
68.5°E | Intelsat 7 | 081229 |
68.5°E | Intelsat 10 | 081231 |
[gmap]
For a full list go to: http://www.lyngsat.com/tracker/europe.html
So both these satellites Sesat and W4 share the 36° East orbital position. The W series provide increased power and broader coverage with respect to the previous generation EUTELSAT II satellites.
Eutelsat W4
Eutelsat SESAT
Intelsat 7
So from the above coverage maps it is clear that the SESAT satellite is suppose to give a better reception in some parts of South Africa. The channels that is present on a satellite can be tracked by various websites, Lyngsat have up to date satellite frequency charts
http://www.lyngsat.com/sesat.html
http://www.lyngsat.com/intel7.html
http://www.lyngsat.com/intel10.html
http://www.lyngsat.com/intel68.html
http://en.kingofsat.net/tv-68.5E.php
Multichoice South Africa on Intelsat 7 at 68.5°E
These charts can be by viewed via Frequencies, Packages or Satellites, and as such MC South Africa is a “Package” that is available on the above mentioned satellites and is presented as follows on their website at http://www.lyngsat.com/packages/mcsafrica.html
Freq. Tp | Channel Name | Enc. system | SID | VPID | APID | Beam | ||
10970 V tp A7 | ||||||||
SR 30000 FEC 5/6 | KykNet | Irdeto 2 | 251 | 5005 | 6007 Af | South Africa | ||
Colour codes used on the package charts:
clear
encrypted
HD/clear
HD/encrypted
interactive
and this data can be used to configure / setup your decoder to receive the channels, obviously to receive packages like MC South Africa (MultiChoice South Africa) you need a decoder capable of decoding the “Enc. system” encryption e.g. Irdeto 2. So MultiChoice have a range of decoders available for purchase that use smartcard technology to decode the encrypted channels. This bring me to the following section of this article namely Free to Air channels (This is channels available on the satellites you don’t have to pay to see or is without encryption)
Free to Air Channels
Free To Air satellite is a term used to describe satellite signals which you can legally receive without a subscription.
Free To Air satellite programming is not encrypted.
A satellite free to air installation can be accomplished by most people that have the patience to follow instructions and a moderate electronic knowledge. If this is not for you, it will be far easier for you to contact a local satellite installer in your area to assist you. This tutorial assumes you wish to receive a single fixed satellite and not using a dish mover or rotor.
For most broadcasts in South Africa, a dish size of 90cm is sufficient. Larger dish sizes may be required for more northern or out of footprint locations.
In order to receive all channels, reception of both PAS7 & PAS10 at 68,5 degrees East on a 90cm satellite dish is required. If you cannot access all the channels listed, your dish is either not aligned properly and/or you're using a too small dish.
Channels available
Television
The following are some of the channels you'll pick up once entering the settings below:
Mindset Learning, Mindset Health, Botswana TV, Vivid Mosiac, God TV Africa, Hope Channel Africa, ITV, Astro and various commercial channels.
Radio
Radio2000, SAFM, Ikwekwezi FM, 5FM, RSG, Lesedi FM, Lotus FM, Metro FM, Good Hope FM, YFM, Classic FM, DW Radio, Radio Pulpit/Kansel, Impact Radio, Radio Pretoria, Trans World Radio, Channel Africa.
Settings for the FTA Setup
Before setting up your decoder, please ensure that your decoder software is upgraded to the latest version.
To perform a software upgrade:
Press the MENU button.
Select "ADVANCED OPTIONS" and press OK.
Select "DSD UPGRADE" and press OK.
The decoder should start to upgrade the software now. If you are not sure about the version of your decoder software, you can contact Multichoice or your local DSTV technician/supplier and they will be able to help you.
Also ensure the LNB High frequency is set to 10700
Step 2:
Press menu
Select "Advanced Options"
Select "Dish Installation"
Enter the pin "9949"
Select "Network Configuration"
Select "Network 2 Setup" NB: Leave "Network 1 Setup (Home)" unchanged!!
Set Signal Setup to "Enabled" by selecting it, and moving left or right
Set Frequency to "11170"
Set Symbol Rate to "26652
Set Polarization to "Vertical"
Set FEC to "5/6"
Select "Accept these settings"
Step 3:
Select "Network 3 Setup"
Set Signal Setup to "Enabled"
Set Frequency to "11625"
Set Symbol Rate to "15000
Set Polarization to "Vertical"
Set FEC to "3/4"
Select "Accept these settings"
Step 4:
Select "Network 4 Setup"
Set Signal Setup to "Enabled"
Set Frequency to "11674"
Set Symbol Rate to "26652
Set Polarization to "Vertical"
Set FEC to "5/6"
Select "Accept these settings"
Step 5:
Select "Network 5 Setup"
Set Signal Setup to "Enabled"
Set Frequency to "12522"
Set Symbol Rate to "26657
Set Polarization to "Horizontal"
Set FEC to "1/2"
Select "Accept these settings"
Step 6:
Select "Network 6 Setup"
Set Signal Setup to "Enabled"
Set Frequency to "12562"
Set Symbol Rate to "26657
Set Polarization to "Horizontal"
Set FEC to "1/2"
Select "Accept these settings"
Step 7:
Select "Network 7 Setup"
Set Signal Setup to "Enabled"
Set Frequency to "12682"
Set Symbol Rate to "26657
Set Polarization to "Horizontal"
Set FEC to "1/2"
Select "Accept these settings"
Step 8:
Select "Network 8 Setup"
Set Signal Setup to "Enabled"
Set Frequency to "12722"
Set Symbol Rate to "26657
Set Polarization to "Vertical"
Set FEC to "1/2"
Select "Accept these settings"
Step 9:
Exit once to go back to the "Dish Installation" menu
Select "Scan All Networks"
Your decoder will go into scanning mode and might take a while to scan all 9 networks. Do not interrupt the process even if it seams to take longer than you expected!
Once completed, your picture will return as normal
To access you public channels, press the "TV button" on your remote control.
The "Bouquet Options" menu will appear.
Select "Public PAS7/10"
Pressing any of the arrow buttons on your remote, will open the screen with all the available Free to Air channels.
Simply select the channel you wish to view and press ok to tune.
To access the radio channels, simply select the "music note" on your remote (while still on Public PAS7/10 bouquet) and select which channel you would like to listen.
Tested Free-to-Air settings
Freq | use NIT | Pol | SR | FEC | Description |
11170 | Yes | Vertical | 26652 | 5/6 | Sentech Vivid bouquet |
11625 | Yes | Vertical | 15000 | 3/4 | BTV |
11674 | Yes | Vertical | 26652 | 5/6 | vivid |
12522 | Yes | Horizontal | 26657 | 1/2 | |
12562 | Yes | Horizontal | 26657 | 1/2 | View Africa Network |
12577 | Yes | Vertical | 3378 | 3/4 | ManaSat |
12682 | Yes | Horizontal | 26657 | 1/2 | Novacom |
12722 | Yes | Vertical | 26657 | 1/2 | |
12722 | Yes | Horizontal | 26657 | 2/3 | FTV |
Radio stations that was added:
Logo | Channel Name | Satellite | Beam | Video/Audio | |
DVB | |||||
DVB | |||||
Ackermans Stores | DVB | ||||
CDC Radio Channel | DVB | ||||
DVB | |||||
DVB | |||||
DVB | |||||
DVB | |||||
DVB | |||||
CVC Africa | DVB | ||||
Divine Radio | DVB | ||||
Fusion FM | DVB | ||||
DVB | |||||
DVB | |||||
DVB | |||||
DVB | |||||
DVB | |||||
DVB | |||||
DVB | |||||
DVB | |||||
DVB | |||||
DVB | |||||
DVB | |||||
DVB | |||||
DVB | |||||
Pep Stores | DVB | ||||
Pep Stores 2 | DVB | ||||
DVB | |||||
DVB | |||||
Radio 2000 | DVB | ||||
Radio Cidade | PAL | ||||
Radio Diskom | DVB | ||||
DVB | |||||
DVB | |||||
DVB | |||||
DVB | |||||
DVB | |||||
DVB | |||||
Satellite Islam | DVB | ||||
DVB | |||||
DVB | |||||
DVB | |||||
DVB |