Friday, July 10, 2009
Linksys PAP2 Overheating Problem
Bought it off ebay (new, unlocked NA version) from China and all was well for about 3 weeks. Then Line-1 stopped working: no dial tone, just some popping sound when I lift the receiver. Line-2 was still OK. However, a few days later Line-2 also dies. When unplugging the device I noticed that it was very hot; so I left it unplugged until it cooled down. The cool device came back to life and all worked for about 20 minutes until it got very hot again. Did this a few times and now the Lines can access the internal AVR menu of the device but the SIP connections don't work anymore--even though the web-config shows that the SIP connections are online.
Thursday, July 2, 2009
Ubuntu: NetworkManager, VPN, Mediatomb Conflicts
Oh, the stupidity of wanting *too* much: I want mediatomb to startup at boot so that the media service will be available without any users logging-in. However, using NetworkManager to manage connections doesn't configure the ethernet adapter before mediatomb starts so mediatomb dies at startup. This is easily resolved by setting the ethernet device to autostart in /etc/networks/interfaces, but this causes NetworkManager to not show any network connections and thus you can't start any VPN connections you may have setup in NetworkManager.
OK, so let's just scrap NetworkManager and use a different interface to connect to VPN. Kvpnc seems like a good candidate so I tried that. Unfortunately the latest release of Kvpnc (0.9.0) for Jaunty does not have support for MS-CHAP v2. Probably have to wait for Karmic to get Kvpnc 0.9.1 which should support MS-CHAP v2. Shit.
OK, so let's just scrap NetworkManager and use a different interface to connect to VPN. Kvpnc seems like a good candidate so I tried that. Unfortunately the latest release of Kvpnc (0.9.0) for Jaunty does not have support for MS-CHAP v2. Probably have to wait for Karmic to get Kvpnc 0.9.1 which should support MS-CHAP v2. Shit.
Sunday, June 28, 2009
Mediatomb uPNP Streaming to Samsung 7 series LCD TV
Installed mediatomb on ubuntu Jaunty to make my pictures, music and video available to my Samsung 7 series (2008 model) LCD TV.
First problem:
The TV recognized the mediatomb uPNP server and listed all the available folders and files; however, trying to play anything resulted in a "unrecognized file format" error. I found this fix googling: you have to add a couple of elements to the custom-http-headers section in mediatomb's config.xml. Audio and pictures works after this fix.
<custom-http-headers>
...
<add header="transferMode.dlna.org: Streaming">
<add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=017000 00000000000000000000000000">
</custom-http-headers>
Reference link
Second problem:
When I got mediatomb to automatically scan my disk for media files and make them available, most AVI files were tagged with the mime-type of 'video/x-msvideo.' The TV doens't like this mime-type, so I added this element:
<map from="avi" to="video/mpeg">
in the import/mappings/extension-mimetype section. After rescanning the disk, AVI files now have a mime-type of 'video/mpeg' which the TV likes and most divx-encoded files play perfectly.
Third problem:
Some video resulted in 'unsupported video/audio codec' errors. I had already enabled mediatomb's transcoding feature and set mkv files to be transcoded using MPlayer's mencoder (google 'mediatomb samsung config.xml'). So I figured why not just transcode files that don't play nice on the TV directly. I configed files that are tagged with the mime-type of video/x-msvideo to be transcoded by mencoder as well. Then when I run across a file that won't play nice on the TV directly, I use mediatomb to set it's mime-type to video/x-msvideo. BTW, I did try transcoding using VLC but it didn't work for me; kept getting the 'unsported format' error even though VLC was doing something.
Forth problem:
Transcoding works very well except that when playing large, 720p or 1080p video, my computer couldn't transcode fast enough and you get pauses (every second or two) in the playback. But if I pause the playback, the buffer gets a chance to fill up and I get smoother video on resume. The longer the pause the more the buffer fills up and more more smooth video I get.
First problem:
The TV recognized the mediatomb uPNP server and listed all the available folders and files; however, trying to play anything resulted in a "unrecognized file format" error. I found this fix googling: you have to add a couple of elements to the custom-http-headers section in mediatomb's config.xml. Audio and pictures works after this fix.
<custom-http-headers>
...
<add header="transferMode.dlna.org: Streaming">
<add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=017000 00000000000000000000000000">
</custom-http-headers>
Reference link
Second problem:
When I got mediatomb to automatically scan my disk for media files and make them available, most AVI files were tagged with the mime-type of 'video/x-msvideo.' The TV doens't like this mime-type, so I added this element:
<map from="avi" to="video/mpeg">
in the import/mappings/extension-mimetype section. After rescanning the disk, AVI files now have a mime-type of 'video/mpeg' which the TV likes and most divx-encoded files play perfectly.
Third problem:
Some video resulted in 'unsupported video/audio codec' errors. I had already enabled mediatomb's transcoding feature and set mkv files to be transcoded using MPlayer's mencoder (google 'mediatomb samsung config.xml'). So I figured why not just transcode files that don't play nice on the TV directly. I configed files that are tagged with the mime-type of video/x-msvideo to be transcoded by mencoder as well. Then when I run across a file that won't play nice on the TV directly, I use mediatomb to set it's mime-type to video/x-msvideo. BTW, I did try transcoding using VLC but it didn't work for me; kept getting the 'unsported format' error even though VLC was doing something.
Forth problem:
Transcoding works very well except that when playing large, 720p or 1080p video, my computer couldn't transcode fast enough and you get pauses (every second or two) in the playback. But if I pause the playback, the buffer gets a chance to fill up and I get smoother video on resume. The longer the pause the more the buffer fills up and more more smooth video I get.
Wednesday, June 24, 2009
Ubuntu VPN into Microsoft Server
When creating the PPTP profile make sure to turn off all authentication methods except for MSCHAPv2. Also enable MPPE.
Wednesday, June 3, 2009
Ubuntu - firefox - flash 10
Fought with the computer for a few hours trying to get youtube videos to be less choppy. Thought upgrading the flash plug-in from ver. 9.x to 10.x would help. Tried to install version 10 many times using the DEB package as well as through synaptics but could not firefox to use version 10; disabling versin 9 disables flash completely. To make a long story short I had to override the symlinks for the alternative flash player to point it at version 10:
>cd /etc/alternatives
>sudo ln -s /usr/lib/adobe-flashplugin/libflashplayer.so xulrunner-flashplugin
>sudo ln -s /usr/lib/adobe-flashplugin/libflashplayer.so xulrunner-addons-flashplugin
Both flash version 9 and 10 still show up firefox's plug-in list, but 10 is enabled and flash video is indeed smoother.
>cd /etc/alternatives
>sudo ln -s /usr/lib/adobe-flashplugin/libflashplayer.so xulrunner-flashplugin
>sudo ln -s /usr/lib/adobe-flashplugin/libflashplayer.so xulrunner-addons-flashplugin
Both flash version 9 and 10 still show up firefox's plug-in list, but 10 is enabled and flash video is indeed smoother.
Subscribe to:
Posts (Atom)