Category Archives: Blog

Ubuntu 14.04 Server with TvHeadend and Realtek RTL2832U USB tuner

If you seen my previous posts here and here. I can confirm that the instructions I provided on the post here are still applicable to the installation of TvHeadend on Ubuntu 14.04 Server.

I just installed Ubuntu 14.04 Server tonight and tested the installation process of TvHeadend per my other notes and it works fine.

Ironically enough so far I really like Ubuntu 14.04 Server, so I will leave it running for a bit and see how much I do like it after a few days and/or weeks.

rtorrent and rutorrent on Debian 7.5 Wheezy

I was hoping to install rtorrent and rutorrent on Debian 7.5 Wheezy, however it appears although I was referencing the page here, it appears to not work that simply.

i.e. Appears the installation of the two packages below causes some messed up packaging conflict and it seems to be in some sort of dead lock. I couldn’t get past it so I had to give up for now.

Problem packages causing packaging conflict is these;

  • libcurl4-openssl-dev
  • libssl-dev

Will give it another go in a few weeks time. I’ll also continue to do a bit of research to see if anyone has had success with this and how they did it.

Backyard – Drainage progress

Finally got a bit of time in the afternoon today to do more work on the drainage in the backyard. When we got all that rain the other month it highlighted the fact we now needed to do a bit more to allow the excess water to escape, so I started planning to fix the issue or at least make it bearable.

Managed to cut into the main storm water overflow line to the street and put in a junction and tee (used a collar to take up the difference, so that I could insert the new items from the pipe section that was removed), so I could put a surface drain above the tee. I am going to use this surface drain to sit just below existing surface line and insert the rain water tanks hose that drips during the first part of rain into the drain.

You can see the pictures below;

The fabric over the drain is only for the moment, so I don’t spill soil and other material back in it as I back fill it. I am also going to add another surface drain where it meets the pergola too. So I will break the arg line and insert a tee etc.

backyard_draingage_27-apr-2014_pic02

backyard_draingage_27-apr-2014_pic03

backyard_draingage_27-apr-2014_pic01

Realtek RTL2838 DVB-T tuner failure

It would appear that my Realtek RTL2838 DVB-T tuner has failed. I can no longer get it to record any more using TvHeadEnd. I noticed I hadn’t got any recordings the past few days and I’ve just checked all the connections. At this stage I think it’s safe to conclude that it’s gone.

It certainly didn’t last very long. I might end up getting another one, however not in a big rush. I need to do some other work with the hardware, so I might move onto that project in the meantime.

I note that dmesg output is showing the following, which based on some of the word is related to the hardware failure of the device.

[ 5520.964222] kdvb-ad-0-fe-0  D ffff88011d96eb20     0  2406      2 0x00000000
[ 5520.964226]  ffff88011ce17d08 0000000000000046 ffff88011ce17cf8 ffff880127c54580
[ 5520.964230]  ffff88011ce17fd8 ffff88011ce17fd8 ffff88011ce17fd8 0000000000014580
[ 5520.964233]  ffff880121f29770 ffff88011cf05dc0 0000000000000286 ffff88011ce17d90
[ 5520.964237] Call Trace:
[ 5520.964242]  [] ? dvb_usb_data_complete_204+0x20/0x20 [dvb_usb_v2]
[ 5520.964246]  [] schedule+0x29/0x70
[ 5520.964250]  [] wait_schedule+0xe/0x20 [dvb_usb_v2]
[ 5520.964254]  [] __wait_on_bit+0x5f/0x90
[ 5520.964258]  [] ? dvb_usb_data_complete_204+0x20/0x20 [dvb_usb_v2]
[ 5520.964261]  [] out_of_line_wait_on_bit+0x7c/0x90
[ 5520.964265]  [] ? wake_atomic_t_function+0x40/0x40
[ 5520.964270]  [] dvb_usb_fe_sleep+0x114/0x1b0 [dvb_usb_v2]
[ 5520.964277]  [] dvb_frontend_thread+0x177/0x780 [dvb_core]
[ 5520.964281]  [] ? add_wait_queue+0x60/0x60
[ 5520.964288]  [] ? dvb_frontend_ioctl+0x160/0x160 [dvb_core]
[ 5520.964291]  [] kthread+0xc0/0xd0
[ 5520.964295]  [] ? flush_kthread_worker+0xb0/0xb0
[ 5520.964299]  [] ret_from_fork+0x7c/0xb0
[ 5520.964303]  [] ? flush_kthread_worker+0xb0/0xb0

Ubuntu 12.04.4, TvHeadend and Realtek RTL2832U USB tuner

This week I setup an old Dell Optiplex 755 tower with Ubuntu 12.04.4, TvHeadEnd and Realtek RTL2832U USB tuner to perform some DVB-T recordings. The installation I performed of TvHeadEnd is the exact same one I documented some months back when I used the same USB tuner on a Raspberry Pi. You can read about it here.

The installation was flawless and simple as you’d expect. The system has been running a few days now and capturing what I want. It also allows me to point VLC client on other machines at the system to network stream any of the DVB-T channels the tuner can tune against (also shown in the previous post linked above).

Thinking of buying another tuner to be honest, so I can record from 2 different channels that don’t share the same stream/multiplex id.

LiPo battery failure

Dug out my LiPo 3S batteries on the weekend with the intent of charging them up for some use in the Traxxas E-Revo brushless. Unfortunately it appeared they had gone bad. As I revived one of them I found one of the cells had gone and the other I never bothered tinkering with.

I’ve since wrote them off as failed and purchased a new set. Now waiting for the new ones to arrive so I can have battery connectors soldered onto them.

Simpana 10 – advanced client properties – firewall – outgoing routes UI change

Noticed that the Simpana 10 Advanced client properties – firewall – outgoing routes user interface changed a little between SP5a and SP6. It may have happened on SP5b, but I couldn’t test at the time, but saw the difference certainly between our jump from SP5a to SP6.

Check out the pictures below to see what I mean. Looks like they relabelled some items.

Advanced Client Properties - Outgoing routes - SP5a

Advanced Client Properties – Outgoing routes – SP5a

Advanced Client Properties - Outgoing routes - SP6

Advanced Client Properties – Outgoing routes – SP6

Additional backyard work

Went on to complete the backyard work, and sort out another area down the side of the house. I just need to circle back and fix up some drainage which I will do in the next few weeks, as I can’t make a mess of the backyard until after my sons birthday party. So will get stuck into fixing that in the next 2-3 weeks. I put some posts in on the side of the house so we can use it to block the dog down the side when we have events on in the backyard. It also keeps out from running down that side of the house when it’s wet and destroying it.

A few more pictures below;

backyard_29-Mar-2014-pic01

backyard_29-Mar-2014-pic02

Simpana 10 – PostgreSQL 8.4 backup on CentOS Linux 5.10 x64 – example

I am going to assume that this is a test deployment and as such will expect that you have installed your CentOS 5.10 x64 Linux the way you want it, and I will follow on from that point on what I needed to perform to get the distribution release of PostgreSQL to work with Simpana 10 PostgreSQL iDA to perform a backup. Of course some assumed knowledge present.

  1. Install the postgresql packages onto your  CentOS client.
    $ sudo yum install postgresql84 postgresql-server postgresql-devel
  2. Startup postgresql server for the first time, you need to run initdb switch instead of start for the first time only.
  3. $ sudo service postgresql initdb
  4. We should also enable the service to run at boot moving forward
    $ sudo chkconfig postgresql on
  5. Before we change the authentication method below, we need to set a password that we know for the postgres user in the postgresql database. To perform this we need to change to the postgres user and connect to postgresql database and update the password for the user to something we know.
    $ sudo su –
    # su – postgres
    $ psql
  6. Now at the postgres prompt update the password for the postgres user, unless you want to make your own. Won’t discuss how, just going to show how to set postgresql user password. Be sure to remember what you set the password too, it will be required later on.
    postgres=# ALTER USER postgres WITH PASSWORD ‘password';
    ALTER ROLE
    postgres=#q
  7. Postgresql packages distributed with CentOS don’t use md5 password authentication, it defaults to peer/ident based authentication. In this example we will flip this to md5 based authentication, and we will touch on a peer/ident based authentication example in a later post. Perform the changes below to enable md5 authentication.
    $ cd /var/lib/pgsql/data
    $ sudo vi pg_hba.conf
    Find the line at the bottom of the file that looks like the one below;
    local     all     all                ident
    You need to change this to have md5 on the end, i.e. replace ident to be md5 instead. Save the changes.
  8. Now restart postgresql for the changes to take effect. (required)
    $ sudo service postgresql stop
    $ sudo service postgresql start
  9. Now you can test that this has worked by execution as root the command below, and when prompted for the postgres user password authenticate using the password set in step 6.
    # psql -U postgres
    If it worked, you will get the famous postgres=# prompt, in which you can enter q [enter] to quit it.
  10. Next up we now need to enable archive logs. We need to edit the postgres.conf file which on CentOS rpm based install is /var/lib/pgsql/data and the lines we need to add in the Archiving section is below;
    archive_mode = on
    archive_command = ‘cp %p /var/postgresql/archive/%f’
    Save those additions and move on below.
  11. Make sure to create the folders/destination used in the archive_command above and ensure postgres user can write to it etc.
  12. Now restart postgresql for the changes to take effect. (required)
    $ sudo service postgresql stop
    $ sudo service postgresql start
  13. Install the Simpana PostgreSQL iDA.
  14. Once installed refresh the Simpana Console and attempt to create your PostgreSQL instance. See the dialog below for the values I used in this configuration. Of course the username is the postgres user and password we configured in step 6. Note the archive log directory is the one we used in the archive_command string at step 10 too.
    simpana_10-centos-5.10_x64-postgresql_instance_creation
  15. If everything goes to plan you should have your instance created and now you can do configuration against the DumpBaseBackupSet subclient and/or FSBasedBackupSet subclient. For the difference between what each does, I recommend you review the documentation. As each backupset has its own unique capabilities. See the bottom of the Backup documentation page for explanations.
  16. Assign a Storage Policy to each subclient and run a backup of each to confirm it works.

CommVault Documentation references: