Install coherence on ubuntu 10

sudo apt-get install python-coherence

coherence is a full featured DLNA solution for linux


  •  Coherence is a complete UPnP python framework including a DMS, a DMR, and a DMC.
  • LinuxMCE as a complete free solution has Fuppes integrated, but plans to switch to MediaTomb.
  • XBMC a free and open source (GPL) software media player and entertainment hub for digital media available for Linux, Mac OS X, Microsoft Windows, as well as the original Xbox game console
  • Asset UPnP/DLNA, Free Audio specific UPnP/DLNA server for Windows & Windows Home Server. Features album art, audio WAVE/LPCM transcoding from a huge range of audio codecs, replaygain support for streamed audio. Customizable browse tree.
  • Jamcast, a DLNA compliant media server for Windows that is capable of streaming any audio playing on the PC to DLNA devices.
  • Mezzmo is a feature-packed UPnP/DLNA media server with on-the-fly transcoding and media organizing features.
  • PlayOn from MediaMall.[37] Appears to be a DMS, also capable of serving streamed internet media such as Netflix, Hulu, YouTube, CNN, ESPN.
  • PS3 Media Server.An open source (GPLv2) DLNA compliant UPnP Media Server for the PS3, written in Java, with the purpose of streaming or transcoding any kind of media files, with minimum configuration.
  • Serviio is a free DLNA media server and works with any DLNA compliant device (TV, Playstation 3, etc.) and some other (XBox 360). It is updated frequently.
  • TwonkyMedia server runs on PC, Mac, Linux and Android and enables media sharing of local and online media among a large variety of devices.
  • TVMOBiLi – A free DLNA/UPnP Media Server for Windows, Mac OS X and Linux. Appears to be just a DMS.
  • TVersity, a free UPnP MediaServer with strong device support and on-the-fly transcoding.[41] Appears to be just a DMS.
  • Coherence is a framework written in Python to enable applications access to digital living network resources. As a stand alone application it can act as a UPnP/DLNA media server, in combination with a supported client as a media renderer.



http://en.wikipedia.org/wiki/Comparison_of_UPnP_AV_MediaServers


Name↓ License↓ Cost↓ Mac OS X↓ Linux, Unix↓ MS Windows↓ Audio↓ Images↓ Video↓ On-The-Fly A/V Transcoding↓ Web Interface↓ DLNA Certified↓ Implementation↓ Source Control↓
360 Media Server GPL Free No Yes Yes Yes No No Yes Yes ? Java Git
BRisa MIT Free Yes Yes No Yes Yes Yes Yes [1] Yes ? Python CVS
Coherence MIT Free Yes Yes No Yes Yes Yes Yes [2] Yes [1] ? Python Subversion+Trac
Elgato Eyeconnect Prop. $49.95 Yes No No Yes Yes Yes No No ?
Foobar2000 [3] Prop. Free No No Yes Yes No No Yes No ?
FUPPES GPL Free Yes Yes Yes Yes Yes Yes Yes Yes ? C++ Subversion
GeeXboX uShare GPL Free No Yes[4] No Yes[5] Yes[5] Yes[5] No Yes ?
Gmediaserver GPL Free No Yes No Yes No Yes No No ? C FTP
iSedora Media Server Prop. $25 Yes No Yes Yes Yes Yes Yes Yes ?
Majestic Media Server Prop. $5.99 Yes No No Yes Yes Yes Yes No ?
MediaTomb GPL Free Yes [6] Yes No Yes Yes Yes Yes Yes ? C++ Subversion
minidlna GPL/BSD Free Partial [7] Yes Yes [8] Yes Yes Yes Partial [9] Partial [10] ? C CVS
Mezzmo Prop. $24.95 No No Yes Yes Yes Yes Yes No ?
myiHome Prop. Free Yes Yes Yes Yes Yes Yes No No ?
MythTV with uPnP GPL Free Yes Yes No Yes Yes Yes Yes Yes ? C++ git+trac
Nullriver Medialink Prop. $20.00 Yes No No Yes Yes Yes Yes No ?
PS3 Media Server GPL Free Yes Yes Yes Yes Yes Yes Yes Yes [11] ? Java Subversion
PyMedS MIT Free Yes Yes No ? ? ? Yes [12] No ? Python HTTP
Rygel LGPLv2 Free No Yes No [13] Yes Yes Yes Yes No ? vala git
Rivet Prop. $18.95 Yes No No Yes Yes Yes No No ?
Serviio Prop. Free Yes Yes Yes Yes Yes Yes Yes No ?
SimpleCenter Premium Prop. $19.99 No No Yes Yes Yes Yes Yes Yes ?
TVersity Prop. $29.95 [14] No No Yes Yes Yes Yes Yes Yes ?
TVMOBiLi Prop. Free Yes Yes Yes Yes Yes Yes No Yes ?
TwonkyMedia Server Prop. $29.95 Yes Yes Yes Yes Yes Yes Yes [15] Yes ?
Windows Media Connect Prop. Free [16] No No Yes Yes Yes Yes No No ?
PlayOn $79.97 [17] No No Yes ? ? Yes ? ? ?
XBMC Media Center GPL Free Yes Yes Yes Yes Yes [18] Yes No Yes ? C++ git
Yazsoft Playback Prop. $15.00 Yes No No Yes Yes Yes No No ?

 



Install lighttpd on ubuntu

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install lighttpd

modify lighttpd configuration ==> sudo nano /etc/lighttpd/lighttpd.conf

  • Disable global dir listing :  server.dir-listing          = “enable”  ==> server.dir-listing          = “disable”
  • Add alias of url:   alias.url = (
                  “/img/”         => “/www/image/”,
                  “/fp/”          => “/www/flowplayer/”,
                  “/Google_I_O/”  => “/usr/share/red5/dist/webapps/root/Google_I_O/”,
                  “/assets/”      => “/usr/share/red5/dist/webapps/root/assets/”,
                  “/download/”    => “/data/download/”,
                  “/dl/”          => “/data/download/”
                  )
  • Enable dir listing for the specified url:  $HTTP[“url”] =~ “^/dl/|^/download/|^/Google_I_O/” {
        dir-listing.activate = “enable”
     }
  • Enable module of mod_flv_streaming

sudo /usr/sbin/lighty-enable-mod cgi

sudo /etc/init.d/lighttpd  force-reload

 

About Godaddy AD

Remove AD:

     Add <script>  in HTML file, just after the tag of </body>

    example:

    <html>
    <body>
        <h1>It works!</h1>
        <p>This is the default web page for this server.</p>
       <p>The web server software is running but no content has been added, yet.</p>
      </body>

      <script>
   </html>

 

 

Hide AD

   Add <style>#conash3D0 {display:none}</style>; in HTML file, just after tag of </body>

  example:

  <html>
    <body>
        <h1>It works!</h1>
     <p>This is the default web page for this server.</p>
     <p>The web server software is running but no content has been added, yet.</p>
    </body>

    <style>#conash3D0 {display:none}</style>;
 </html>

Hide Godaddy AD in the front of wordpress

Add the following code into wp-includesgeneral-template.php:

function wp_footer() {
    /*
    Hide AD
    echo ‘<style>#conash3D0 {display:none}</style>’;
    */
    $lang = explode(‘,’,strtolower($_SERVER[‘HTTP_ACCEPT_LANGUAGE’]));
  if($lang[0]==’zh-cn’) { echo ‘<style>#conash3D0 {display:none}</style>’; }
  unset($lang);

    do_action(‘wp_footer’);
}

 

http://429006.com/article/technology/2132.htm

Setup WordPress AT Godaddy Free Space

  1. Create linux free space at godaddy
  2. Lunch the controller of free space
  3. Add the specified domain for free space.    eg:     host.zhenglei.net
  4. Create FTP User for Free Space
  5. Creat mysql database for woodspace,and record the info from edit/viewer
  6. Delete all default in free space
  7. Download latest wordpress from http://wordpress.org/, unzip/untar, and ftp all contents to the root of free space
  8. Launch the installation from web site:  http://host.zhenglei.net/wp-admin/install.php
  9. Finish the step 2 of installation