SilverWav's Journal

The best is yet to come…

Archive for May 2010

Note: Dashboard for mozilla and chromium daily builds

leave a comment »

Written by SilverWav

May 30, 2010 at 12:25 am

Note: Proper font smoothing in Firefox

leave a comment »

This setting is key, by default (20) its almost never used.

As I wanted text to be optimized for display quality I set

browser.display.auto_quality_min_font_size = 0

Possible values and their effects

A non-negative integer, specifying device pixels. Text rendered at this size or larger is optimized for display quality rather than display speed. Default is 20.
Caveats

* Text in chrome (the UI) is always rendered with the high-quality path.
* Web pages can override the effects of this preference by specifying the text-rendering CSS property.

Recommended settings

To use the highest quality display and legibility settings for all rendered text, set this preference to 0. Conversely, setting this preference to a very high number will cause Mozilla to use the fastest rendering methods for all text.

http://kb.mozillazine.org/Browser.display.auto_quality_min_font_size

Written by SilverWav

May 17, 2010 at 11:45 am

Posted in Notes

Tagged with , , , ,

One Daily A Month – The latest firefox without the update hassle.

leave a comment »

One downside of using ubuntu-mozilla-daily is the number of updates offered.
Another is that packages other than Firefox are present in the PPA.

This is my solution.
________________________________________

One daily a month from ubuntu-mozilla-daily.
The latest firefox without the update hassle
.

  • One ppa for each Firefox.
  • Updated at the start of each month.
  • Tested in a virtual machine.

Firefox-3.6.5 or Firefox-3.7a5(aka Firefox-4) via One Daily A Month.

Firefox-3.6 – one-daily-a-month-0 – Lucid
Firefox-3.7 – one-daily-a-month-1 – Lucid
Firefox-3.6 – one-daily-a-month-2 – Karmic
Firefox-3.7 – one-daily-a-month-3 – Karmic
________________________________________

Add a PPA:

Firefox-3.6 – One Daily A Month #0 – Lucid

sudo add-apt-repository ppa:silverwave/one-daily-a-month-0
sudo apt-get update
sudo apt-get install firefox

Firefox-3.7 – One Daily A Month #1 – Lucid

sudo add-apt-repository ppa:silverwave/one-daily-a-month-1
sudo apt-get update
sudo apt-get install firefox-3.7

Firefox-3.6 – One Daily A Month #2 – Karmic

sudo add-apt-repository ppa:silverwave/one-daily-a-month-2
sudo apt-get update
sudo apt-get install firefox

Firefox-3.7 – One Daily A Month #3 – Karmic

sudo add-apt-repository ppa:silverwave/one-daily-a-month-3
sudo apt-get update
sudo apt-get install firefox-3.7

Firefox 3.6 will be found under the name “Namoroka” in Applications > Internet.
Firefox 3.7 will be found under the name “Minefield 3.7 Web Browser”.

Disclaimer: Use at your own risk, no guarantees.

Written by SilverWav

May 13, 2010 at 7:07 pm

Firefox 3.6.5 3x Faster with html5.enable=True

with 3 comments

Interesting update to the Firefox Speed Test feature I did a while back.

In Firefox 3.6.5 if you set html5.enable to true via about:config then you get some inpressive gains on the test case load times.

Down to 13 seconds from 37 seconds!

Wow way to go guys :-)

Note: Filter time obviously haven’t moved as this is a parser replacement nothing to do with js,

Firefox 4: the HTML5 parser – inline SVG, speed and more

______________________________

Test Results – Linux

 

Reload

Browser OS Times Slower
Firefox 3.6.4 Lucid 0:37 0:37 0:37 7.4 x
Firefox 3.7.a4 Lucid 0:38 0:38 0:35 7.4 x
FF.3.6.5 html5.enable    Lucid    0.13 0:13 0:13    2.6 x   
Chromium 5.0. Lucid 0.05 0:05 0:05

 

Filter

Browser OS Times Slower
Firefox 3.6.4 Lucid 2:07 2:05 42.0 x
Firefox 3.7.a4 Lucid 0:28 0:28 9.3 x
FF.3.6.5 html5.enable    Lucid    2:08 2:03   
Chromium 5.0. Lucid 0:03 0:03

 

Filter word: Platypus

______________________________

Henri Sivonen wrote on May 11th, 2010 at 10:50 am:

@jpvincent, It’s highly unlikely that this would get backported to 3.6.x.

@jng, Flipping the pref in Firefox 3.6.x exposes you to known bugs inlcuding crashers. The snapshot of the parser in 3.6 is from June 2009 before the parser had had any testing by our community of users of nightly builds. I recommend getting a trunk nightly if you want to run the HTML5 parser and not enabling it on 3.6.x.

Written by SilverWav

May 11, 2010 at 10:47 pm

Posted in News

Tagged with , , , , ,

Handbreak – Just use the PPA and save yourself some pain

leave a comment »

Ubuntu Nightly Builds

sudo add-apt-repository ppa:stebbins/handbrake-snapshots
sudo apt-get update
sudo apt-get install handbrake-gtk

Bugs

If you find broken things in these builds–which you will– please wait a few days (and try a newer build) then post a thorough bug report in the bugs forum.

Builds for Ubuntu can be found at LaunchPad other disto builds here.

HandBreak

HandBrake is an open-source, GPL-licensed, multiplatform, multithreaded video transcoder, available for MacOS X, Linux and Windows.

Supported Sources:

Any DVD-like source: VIDEO_TS folder, DVD image or real DVD (unencrypted–protection methods including CSS are not supported internally and must be handled externally with third-party software and libraries), and some .VOB and .TS files
Most any multimedia file it can get libavformat to read and libavcodec to decode.
Outputs:

File format: MP4 and MKV
Video: MPEG-4, H.264, or Theora
Audio: AAC, CoreAudio AAC (OS X Only), MP3, or Vorbis. AC-3 pass-through, DTS pass-thorugh (MKV only)
Misc features:

Chapter selection
Subtitles
Integrated bitrate calculator
Picture deinterlacing, cropping and scaling
Live Video Preivew

Written by SilverWav

May 10, 2010 at 6:25 pm

Note: Adding Blank Lines in WordPress

leave a comment »

<div style="height:20px;"></div> <p>&nbsp;</p> </b>

Written by SilverWav

May 8, 2010 at 8:35 pm

Posted in Notes

Tagged with ,

Notify-osd – Now with 70% Less Annoy :-)

with 5 comments

Reduce the notify-osd time-out to 3 seconds, rather than the default 10.

Its amazing how much this changed my appreciation of the notifications…
I have found the annoyance is mainly based on them being on screen too long.

Tested on Lucid 10.04 64bit – experimental.

Quick Fix: Add the PPA and update:

sudo add-apt-repository ppa:silverwave/apps-0
sudo apt-get update
sudo apt-get install notify-osd

______________________________

If you:
Want to create your own package…
Would like to see a worked example…
Want to see how to alter an existing package…
Or would like an explanation of how to Publish a package to your PPA.
…carry on reading.

______________________________

Packaging

Install Packaging Tools

sudo apt-get install devscripts build-essential fakeroot debhelper gnupg pbuilder dh-make ubuntu-dev-tools diff patch cdbs quilt lintian

Create a folder to work in

sil:~$ mkdir pak
sil:~$ cd pak
sil:~/pak$ ls
sil:~/pak$


Test the display time of notify-osd

sudo apt-get install libnotify-bin
notify-send "test" "Write some notify-osd  text on screen... for How Long?!"

Download the source for notify-osd

sil@hyd:~/pak$ apt-get source notify-osd

Reading package lists... Done
Building dependency tree
Reading state information... Done
NOTICE: 'notify-osd' packaging is maintained in the 'Bzr' version control system at:
http://bazaar.launchpad.net/~ubuntu-desktop/notify-osd/ubuntu
Please use:
bzr get http://bazaar.launchpad.net/~ubuntu-desktop/notify-osd/ubuntu
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 623kB of source archives.
Get: 1 http://gb.archive.ubuntu.com/ubuntu/ lucid/main notify-osd 0.9.29-0ubuntu2 (dsc) [1,305B]
Get: 2 http://gb.archive.ubuntu.com/ubuntu/ lucid/main notify-osd 0.9.29-0ubuntu2 (tar) [608kB]
Get: 3 http://gb.archive.ubuntu.com/ubuntu/ lucid/main notify-osd 0.9.29-0ubuntu2 (diff) [14.4kB]
Fetched 623kB in 2s (227kB/s)
gpgv: Signature made Wed 14 Apr 2010 11:59:03 BST using DSA key ID A2D7D292
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./notify-osd_0.9.29-0ubuntu2.dsc
dpkg-source: info: extracting notify-osd in notify-osd-0.9.29
dpkg-source: info: unpacking notify-osd_0.9.29.orig.tar.gz
dpkg-source: info: applying notify-osd_0.9.29-0ubuntu2.diff.gz
dpkg-source: info: upstream files that have been modified:
 notify-osd-0.9.29/autogen.sh
 notify-osd-0.9.29/data/org.freedesktop.Notifications.service.in
 notify-osd-0.9.29/m4/python.m4
 notify-osd-0.9.29/src/bubble.c
 notify-osd-0.9.29/src/send-test-notification.sh
 notify-osd-0.9.29/tests/notifyosd.py
 notify-osd-0.9.29/tests/tests.suppression
sil@hyd:~/pak$

List the files and folders

sil@hyd:~/pak$ ls
notify-osd-0.9.29
notify-osd_0.9.29.orig.tar.gz
notify-osd_0.9.29-0ubuntu2.diff.gz
notify-osd_0.9.29-0ubuntu2.dsc

Setup .bashrc example

sil@hyd:~$ gedit .bashrc

Add these lines:

export DEBFULLNAME="silverwave (Launchpad OpenPGP Key)"
export DEBEMAIL="silverwav@gmail.com"

Setup .pbuilderrc example

sil@hyd:~$ gedit .pbuilderrc

Add these lines:

COMPONENTS="main restricted universe multiverse"

______________________________

Update Package

Change notify-osd time-out value

sil@hyd:~/pak$ cd notify-osd-0.9.29
sil@hyd:~/pak/notify-osd-0.9.29$ gedit src/defaults.c

Find:

#define DEFAULT_ON_SCREEN_TIMEOUT    10000

Change to:

#define DEFAULT_ON_SCREEN_TIMEOUT    3000

Save and close gedit.

Update the debian changelog with debchange (dch -i)

sil@hyd:~/pak/notify-osd-0.9.29$ dch -i

Update Version Number:

0.9.29-0ubuntu2ppa1

Add Change Details:

  * src/defaults.c:
    - Changed DEFAULT_ON_SCREEN_TIMEOUT from 10000 to 3000

Note: Your email needs to be perfect…

This is correct for me:

 -- silverwave (Launchpad OpenPGP Key) <silverwav@gmail.com>  Sat, 08 May 2010 18:50:00 +0100

This would cause gpg to fail later when attempting to sign the files.
 -- silverwave <silverwav@gmail.com>  Sat, 08 May 2010 18:50:00 +0100

Save and close nano (ctrl+x).

Update the source package (debuild -S -sa)

sil@hyd:~/pak/notify-osd-0.9.29$ debuild -S -sa

You will be asked for your gpg passphrase twice.
Then you should see a success message.

Successfully signed dsc and change files

Updated Files

sil@hyd:~/pak/notify-osd-0.9.29$ cd ..
sil@hyd:~/pak$
sil@hyd:~/pak$ ls
notify-osd-0.9.29
notify-osd_0.9.29-0ubuntu2.diff.gz
notify-osd_0.9.29-0ubuntu2.dsc
notify-osd_0.9.29-0ubuntu2ppa1.diff.gz
notify-osd_0.9.29-0ubuntu2ppa1.dsc
notify-osd_0.9.29-0ubuntu2ppa1_source.build
notify-osd_0.9.29-0ubuntu2ppa1_source.changes
notify-osd_0.9.29.orig.tar.gz

Pbuilder initial environment setup

sil@hyd:~/pak$ sudo pbuilder create

Build package with pbuilder

sil@hyd:~/pak$ sudo pbuilder build notify-osd_0.9.29-0ubuntu2ppa1.dsc

Once pbuilder has completed the build you can see the .deb here:

/var/cache/pbuilder/result

______________________________

Uploading a package to a PPA

sil@hyd:~/pak$ dput ppa:silverwave/apps-0 notify-osd_0.9.29-0ubuntu2ppa1_source.changes

Checking signature on .changes
gpg: Signature made Sat 08 May 2010 18:54:45 BST using RSA key ID 03187548
gpg: Good signature from "silverwave (Launchpad OpenPGP Key) <silverwav@gmail.com>"
Good signature on /home/sil/pak/notify-osd_0.9.29-0ubuntu2ppa1_source.changes.
Checking signature on .dsc
gpg: Signature made Sat 08 May 2010 18:53:20 BST using RSA key ID 03187548
gpg: Good signature from "silverwave (Launchpad OpenPGP Key) <silverwav@gmail.com>"
Good signature on /home/sil/pak/notify-osd_0.9.29-0ubuntu2ppa1.dsc.
Package includes an .orig.tar.gz file although the debian revision suggests
that it might not be required. Multiple uploads of the .orig.tar.gz may be
rejected by the upload queue management software.
Uploading to ppa (via ftp to ppa.launchpad.net):
  Uploading notify-osd_0.9.29-0ubuntu2ppa1.dsc: done.
  Uploading notify-osd_0.9.29.orig.tar.gz: done.    
  Uploading notify-osd_0.9.29-0ubuntu2ppa1.diff.gz: done.  
  Uploading notify-osd_0.9.29-0ubuntu2ppa1_source.changes: done.
Successfully uploaded packages.
sil@hyd:~/pak$ 

Email confirmation

[PPA silverwave-apps-0] [ubuntu/lucid] notify-osd 0.9.29-0ubuntu2ppa1 (Accepted)

Launchpad PPA
 to me
	
show details 11:30 PM (9 minutes ago)
	
Accepted:
 OK: notify-osd_0.9.29.orig.tar.gz
 OK: notify-osd_0.9.29-0ubuntu2ppa1.diff.gz
 OK: notify-osd_0.9.29-0ubuntu2ppa1.dsc
    -> Component: main Section: x11

Format: 1.8
Date: Sat, 08 May 2010 18:50:00 +0100
Source: notify-osd
Binary: notify-osd
Architecture: source
Version: 0.9.29-0ubuntu2ppa1
Distribution: lucid
Urgency: low
Maintainer: DX Team <dx-team@lists.ubuntu.com>
Changed-By: silverwave (Launchpad OpenPGP Key) <silverwav@gmail.com>
Description:
notify-osd - daemon that displays passive pop-up notifications
Changes:
notify-osd (0.9.29-0ubuntu2ppa1) lucid; urgency=low

 * src/defaults.c:
   - Changed DEFAULT_ON_SCREEN_TIMEOUT from 10000 to 3000
Checksums-Sha1:
e51a110171de8622c325ab56c598ba15322e3e9b 1613 notify-osd_0.9.29-0ubuntu2ppa1.dsc
795ecc42602b46390437c3787f3eb94f6fd562fc 607576 notify-osd_0.9.29.orig.tar.gz
650adb6b4695a50da86fe46f7c877ada1defe0a1 14612 notify-osd_0.9.29-0ubuntu2ppa1.diff.gz
Checksums-Sha256:
17e7c4c6e4d41a2d321ad6a23a2671f854c299b656bb22e6894edeeda65ee83c 1613 notify-osd_0.9.29-0ubuntu2ppa1.dsc
7b8d79fc6dce7002fb3639ae7e9ad85e5f5063fbcc62fe27b80700142a0d7fd7 607576 notify-osd_0.9.29.orig.tar.gz
02903f5080d5a58bf89f6220294e62a30e342a202f8e67fd7f80fa7c5e609f25 14612 notify-osd_0.9.29-0ubuntu2ppa1.diff.gz
Files:
79e54b412cf3029013b4cdbef8ae01ce 1613 x11 optional notify-osd_0.9.29-0ubuntu2ppa1.dsc
13df20eb3c6d06c17eef07400e1650d8 607576 x11 optional notify-osd_0.9.29.orig.tar.gz
9c8f64588ed44e0c93142bd4cf5c52f2 14612 x11 optional notify-osd_0.9.29-0ubuntu2ppa1.diff.gz


--
You are receiving this email because you are the uploader of the above
PPA package.

Check the PPA

https://launchpad.net/~silverwave/+archive/apps-0/+builds?build_state=built

1  → 2  of 2 results
[FULLYBUILT] 	i386 build of notify-osd 0.9.29-0ubuntu2ppa1 in ubuntu lucid RELEASE
Build started 18 minutes ago on samarium (virtual) and finished 13 minutes ago taking five minutes — see the log
[FULLYBUILT] 	amd64 build of notify-osd 0.9.29-0ubuntu2ppa1 in ubuntu lucid RELEASE
Build started 20 minutes ago on americium (virtual) and finished 15 minutes ago taking five minutes — see the log 

https://launchpad.net/~silverwave/+archive/apps-0/+packages

Expanding the package you may see this message:

Note: Some binary packages for this source are not yet published in the repository.

You will need to wait until the binary packages are build before testing.

Add PPA

sil@hyd:~/pak$ sudo add-apt-repository ppa:silverwave/apps-0
[sudo] password for sil: 
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 4E0614F88874AF754D66E9C1EBD6062C6DE6117C
gpg: requesting key 6DE6117C from hkp server keyserver.ubuntu.com
gpg: key 6DE6117C: "Launchpad PPA for SilverWav" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

Check policy

sil@hyd:~/pak$ sudo apt-get update
...
sil@hyd:~/pak$ apt-cache policy notify-osd
notify-osd:
  Installed: 0.9.29-0ubuntu2
  Candidate: 0.9.29-0ubuntu2ppa1
  Version table:
     0.9.29-0ubuntu2ppa1 0
        500 http://ppa.launchpad.net/silverwave/apps-0/ubuntu/ lucid/main Packages
 *** 0.9.29-0ubuntu2 0
        500 http://gb.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

Install notify-osd – Now with 70% Less Annoy :-)

sil@hyd:~/pak$ sudo apt-get install notify-osd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  notify-osd
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 177kB of archives.
After this operation, 0B of additional disk space will be used.
Get: 1 http://ppa.launchpad.net/silverwave/apps-0/ubuntu/ lucid/main notify-osd 0.9.29-0ubuntu2ppa1 [177kB]
Fetched 177kB in 0s (416kB/s)    
(Reading database ... 185774 files and directories currently installed.)
Preparing to replace notify-osd 0.9.29-0ubuntu2 (using .../notify-osd_0.9.29-0ubuntu2ppa1_amd64.deb) ...
Unpacking replacement notify-osd ...
Setting up notify-osd (0.9.29-0ubuntu2ppa1) ...

Done!

Note: Here is a link to a video that’s a great help, Learning MOTU – Upgrading Packages

Written by SilverWav

May 8, 2010 at 2:39 pm

Copy Packages from ‘ubuntu-mozilla-daily’ to your PPA with Python

leave a comment »

Now that the Lucid rush is over and all the builders have been reassigned to the PPA duties I can get on with finishing this little project :-)

Quick and Dirty code for Displaying packages in a PPA, Then Copy from PPA ‘A’ to PPA ‘B’.

Bear in mind that the posted code is just a place holder and will be getting updated.

lp-getPubSo-and-Copy_odam-test.py

#! /usr/bin/env python

#123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
#         1         2         3         4         5         6         7         8
#silverwave OpenPGP key 03187548
#
print
print 'Connect to Service and Register Application.'
from launchpadlib.launchpad import Launchpad
lp_ = Launchpad.login_with('sapp2', 'edge')
print
print 'Check Configuration.'
this_distro = lp_.distributions[&quot;ubuntu&quot;]
print 'Distribution: ' + this_distro.display_name
umd_achive = lp_.people['ubuntu-mozilla-daily'].archive
print 'Copy From Archive: '
print umd_achive.displayname
print

# function #0 - confirm
## {{{ http://code.activestate.com/recipes/541096/ (r1)
def confirm(prompt=None, resp=False):
    &quot;&quot;&quot;prompts for yes or no response from the user.
    Returns True for yes and False for no.
    'resp' should be set to the default value

    &gt;&gt;&gt; confirm(prompt='Create Directory?', resp=True)
    Create Directory? [y]|n:
    True
    &gt;&gt;&gt; confirm(prompt='Create Directory?', resp=False)
    Create Directory? [n]|y:
    False
    &gt;&gt;&gt; confirm(prompt='Create Directory?', resp=False)
    Create Directory? [n]|y: y
    True

    &quot;&quot;&quot;

    if prompt is None:
        prompt = 'Confirm'

    if resp:
        prompt = '%s [%s]|%s: ' % (prompt, 'y', 'n')
    else:
        prompt = '%s [%s]|%s: ' % (prompt, 'n', 'y')

    while True:
        ans = raw_input(prompt)
        if not ans:
            return resp
        if ans not in ['y', 'Y', 'n', 'N']:
            print 'please enter y or n.'
            continue
        if ans == 'y' or ans == 'Y':
            return True
        if ans == 'n' or ans == 'N':
            return False
## end of http://code.activestate.com/recipes/541096/ }}}

# function #1 - getps
def getps(this_seriesname, this_source):
    get_this_series = this_distro.getSeries(name_or_version = this_seriesname)

    last_pubapp = umd_achive.getPublishedSources(
		exact_match=True,
		source_name=this_source,
		distro_series=get_this_series
		)[0]
    result = last_pubapp.source_package_version

    print result
    return result

# function #2 - copypackage
def copypackage(copy_to_this_ppa,copy_this_souce,copy_this_version):
    target = lp_.me.getPPAByName(name=copy_to_this_ppa)

    target.syncSource(
    source_name=copy_this_souce,
    version=copy_this_version,
    from_archive=umd_achive,
    include_binaries=True,
    to_series=None,
    to_pocket='Release',
    )

    print 'Copied to: ' + target.displayname
    print 'Package: ' + copy_this_souce + ' - ' + copy_this_version
    print

print 'Retrieve the list of Published Packages.'
print

# Main
print 'Copy To TEST Archive:'
print 'Firefox-3.6 Lucid: ' + 'ppa:silverwave/one-daily-a-month'
print 'Firefox-3.7 Lucid: ' + 'ppa:silverwave/one-daily-a-month'
print 'Firefox-3.6 Karmic: ' + 'ppa:silverwave/ppa'
print 'Firefox-3.7 Karmic: ' + 'ppa:silverwave/ppa'
print

'''http://releases.ubuntu.com/releases/lucid/

ubuntu-10.04-desktop-amd64.iso
ubuntu-10.04-desktop-i386.iso

    1. Copy to 'one-daily-a-month' which is the Testing PPA for Lucid.
    2. TestDrive in Lucid amd64 (add ppa and install updates).
    3. TestDrive in Lucid i386  (add ppa and install updates).'''

# List and Copy Lucid
if confirm(prompt='List UMD - FF3.6 *Lucid?', resp=True):
    applff36 = getps('lucid','firefox')
    applxu92 = getps('lucid','xulrunner-1.9.2')
    print
    if confirm(prompt='Copy to odam?', resp=False):
        copypackage('one-daily-a-month','firefox', applff36)
        copypackage('one-daily-a-month','xulrunner-1.9.2', applxu92)
    else : print

if confirm(prompt='List UMD - FF3.7 *Lucid?', resp=True):
    applff37 = getps('lucid','firefox-3.7')
    applxu93 = getps('lucid','xulrunner-1.9.3')
    print
    if confirm(prompt='Copy to odam?', resp=False):
        copypackage('one-daily-a-month','firefox-3.7', applff37)
        copypackage('one-daily-a-month','xulrunner-1.9.3', applxu93)
    else : print    

'''http://releases.ubuntu.com/releases/lucid/

ubuntu-10.04-desktop-amd64.iso
ubuntu-10.04-desktop-i386.iso

    1. Copy to 'ppa' which is the Testing PPA for Karmic.
    2. TestDrive in Karmic amd64 (add ppa and install updates).
    3. TestDrive in Karmic i386  (add ppa and install updates).'''
# List and Copy Karmic
if confirm(prompt='List UMD - FF3.6 Karmic?', resp=True):
    appkff36 = getps('karmic','firefox')
    appkxu92 = getps('karmic','xulrunner-1.9.2')
    print
    if confirm(prompt='Copy to ppa?', resp=False):
        copypackage('ppa','firefox', appkff36)
        copypackage('ppa','xulrunner-1.9.2', appkxu92)
    else : print

if confirm(prompt='List UMD - FF3.7 Karmic?', resp=True):
    appkff37 = getps('karmic','firefox-3.7')
    appkxu93 = getps('karmic','xulrunner-1.9.3')
    print
    if confirm(prompt='Copy to ppa?', resp=False):
        copypackage('ppa','firefox-3.7', appkff37)
        copypackage('ppa','xulrunner-1.9.3', appkxu93)
    else : print

print 'done.'

lp-getPubSo-and-Copy_odam-prod.py

#! /usr/bin/env python

#123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
#         1         2         3         4         5         6         7         8
#silverwave OpenPGP key 03187548
#
print
print 'Connect to Service and Register Application.'
from launchpadlib.launchpad import Launchpad
lp_ = Launchpad.login_with('sapp3', 'edge')
print
print 'Check Configuration.'
this_distro = lp_.distributions[&quot;ubuntu&quot;]
print 'Distribution: ' + this_distro.display_name
umd_achive = lp_.people['ubuntu-mozilla-daily'].archive
print 'Copy From Archive: '
print umd_achive.displayname
print

# function #0 - confirm
## {{{ http://code.activestate.com/recipes/541096/ (r1)
def confirm(prompt=None, resp=False):
    &quot;&quot;&quot;prompts for yes or no response from the user.
    Returns True for yes and False for no.
    'resp' should be set to the default value

    &gt;&gt;&gt; confirm(prompt='Create Directory?', resp=True)
    Create Directory? [y]|n:
    True
    &gt;&gt;&gt; confirm(prompt='Create Directory?', resp=False)
    Create Directory? [n]|y:
    False
    &gt;&gt;&gt; confirm(prompt='Create Directory?', resp=False)
    Create Directory? [n]|y: y
    True

    &quot;&quot;&quot;

    if prompt is None:
        prompt = 'Confirm'

    if resp:
        prompt = '%s [%s]|%s: ' % (prompt, 'y', 'n')
    else:
        prompt = '%s [%s]|%s: ' % (prompt, 'n', 'y')

    while True:
        ans = raw_input(prompt)
        if not ans:
            return resp
        if ans not in ['y', 'Y', 'n', 'N']:
            print 'please enter y or n.'
            continue
        if ans == 'y' or ans == 'Y':
            return True
        if ans == 'n' or ans == 'N':
            return False
## end of http://code.activestate.com/recipes/541096/ }}}

# function #1 - getps
def getps(this_seriesname, this_source):
    get_this_series = this_distro.getSeries(name_or_version = this_seriesname)

    last_pubapp = umd_achive.getPublishedSources(
		exact_match=True,
		source_name=this_source,
		distro_series=get_this_series
		)[0]
    result = last_pubapp.source_package_version

    print result
    return result

# function #2 - copypackage
def copypackage(copy_to_this_ppa,copy_this_souce,copy_this_version):
    target = lp_.me.getPPAByName(name=copy_to_this_ppa)

    target.syncSource(
    source_name=copy_this_souce,
    version=copy_this_version,
    from_archive=umd_achive,
    include_binaries=True,
    to_series=None,
    to_pocket='Release',
    )

    print 'Copied to: ' + target.displayname
    print 'Package: ' + copy_this_souce + ' - ' + copy_this_version
    print

print 'Retrieve the list of Published Packages.'
print

# Main
print 'Copy To PROD Archive:'
print 'Firefox-3.6 Lucid: ' + 'ppa:silverwave/one-daily-a-month-0'
print 'Firefox-3.7 Lucid: ' + 'ppa:silverwave/one-daily-a-month-1'
print 'Firefox-3.6 Karmic: ' + 'ppa:silverwave/one-daily-a-month-2'
print 'Firefox-3.7 Karmic: ' + 'ppa:silverwave/one-daily-a-month-3'
print

# Copy to 'one-daily-a-month-0' which is the FF3.6 PPA for Lucid.
# Copy to 'one-daily-a-month-1' which is the FF3.7 PPA for Lucid.

# List and Copy Lucid
if confirm(prompt='List UDM - FF3.6 *Lucid?', resp=True):
    applff36 = getps('lucid','firefox')
    applxu92 = getps('lucid','xulrunner-1.9.2')
    print
    if confirm(prompt='Copy to ODAM0?', resp=False):
        copypackage('one-daily-a-month-0','firefox', applff36)
        copypackage('one-daily-a-month-0','xulrunner-1.9.2', applxu92)
    else : print

if confirm(prompt='List UDM - FF3.7 *Lucid?', resp=True):
    applff37 = getps('lucid','firefox-3.7')
    applxu93 = getps('lucid','xulrunner-1.9.3')
    print
    if confirm(prompt='Copy to ODAM1?', resp=False):
        copypackage('one-daily-a-month-1','firefox-3.7', applff37)
        copypackage('one-daily-a-month-1','xulrunner-1.9.3', applxu93)
    else : print    

# Copy to 'one-daily-a-month-2' which is the FF3.6 PPA for Karmic.
# Copy to 'one-daily-a-month-3' which is the FF3.7 PPA for Karmic.

# List and Copy Karmic
if confirm(prompt='List ODAM2 - FF3.6 Karmic?', resp=True):
    appkff36 = getps('karmic','firefox')
    appkxu92 = getps('karmic','xulrunner-1.9.2')
    print
    if confirm(prompt='Copy to ODAM2?', resp=False):
        copypackage('one-daily-a-month-2','firefox', appkff36)
        copypackage('one-daily-a-month-2','xulrunner-1.9.2', appkxu92)
    else : print

if confirm(prompt='List ODAM3 - FF3.7 Karmic?', resp=True):
    appkff37 = getps('karmic','firefox-3.7')
    appkxu93 = getps('karmic','xulrunner-1.9.3')
    print
    if confirm(prompt='Copy to ODAM3?', resp=False):
        copypackage('one-daily-a-month-3','firefox-3.7', appkff37)
        copypackage('one-daily-a-month-3','xulrunner-1.9.3', appkxu93)
    else : print

print 'done.'

Written by SilverWav

May 8, 2010 at 10:25 am

Lucid 10.04 – All the stuff people forget to tell you – Flash, Codecs, Medibuntu, Packages, Fixes.

with 19 comments

All the stuff you need in one place so you don’t have to go looking.

  • Add Codecs and Packages.
    Add Medibuntu repository.
    Install favourite packages from a list.
  • Buttons not working on iPlayer, Flash.
    Confirmed workaround.
  • Add PPA’s
  • Light-themes: panel-background isn’t scaling.
    Confirmed workaround.
  • Customise Theme.
    Tooltips, Window Border.

______________________________

Here We Go.

Set-up:

Download: 10.04-desktop-amd64.iso or 10.04-desktop-i386.iso

  • Use TestDrive to do a dry run in a vm.
  • Backup (Recommended).
  • Burn CD with K3b at 4 speed and check integrity.
  • Check md5 sum.
    md5sum ubuntu-10.04-desktop-amd64.iso >check.md5
  • Get Partition Screenshots (send to Web or Gmail).
    Use GParted or Systems Monitor.

  • Boot the CD and hold down shift key.
    Choose language. Choose test integrity.
  • Reboot, Choose “Try Ubuntu”.

Clean Install:

  • I am performing a Clean Install not an Upgrade.
    I was previously running Karmic 9.10 64bit.
  • My /home is on its own partition.
    This enables me to keep 99% of my configuration information.
    (Application Settings, Desktop, Panels, etc.) and is a huge time saver.

Installing:

  • Wait for the CD files to be uncompressed and loaded.
    This will take a while if you don’t have a Linux swap.
  • On the desktop click the short-cut “Install”.
  • As you can see below the Lucid Installer is open on the left and Firefox on the right.
    This allows you to consult the previously saved screenshot of your partitions.

  • Double checking is a good idea at this point.
    Have you set the correct file system for each partition?
    That tick box marked “format”, are you sure?
  • Reboot when the installer is finished.

______________________________

Post Install Set-up.

If needed, install the NVIDIA, or other restricted driver, then reboot.

Add Codecs and Packages

1. Add medibuntu repository

sudo wget http://www.medibuntu.org/sources.list.d/lucid.list  --output-document=/etc/apt/sources.list.d/medibuntu.list

sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update

2. Reinstall all of your favourite packages from a list.

Download the following files:

cleanstart-packages.list.sh

packages.list

This is a list of the best/most useful packages I use.
Note that I have a 64bit system and Nvidia graphics.
You may have to adjust the list for your system.
I test it in a vm first, (via TestDrive). Details here.

3. Make the script executable.

cd /home/sil/Downloads
ls
chmod +x ./cleanstart-packages.list.sh

4. Run the script and install the packages.

sudo ./cleanstart-packages.list.sh 

Note: Change …/sil/… to your user name.
______________________________

Buttons not working on iPlayer, Flash.

gksudo gedit /usr/lib/nspluginwrapper/i386/linux/npviewer

Add this line:

export GDK_NATIVE_WINDOWS=1

Before this line:

. /usr/lib/nspluginwrapper/noarch/npviewer

Example:

#!/bin/sh
TARGET_OS=linux
TARGET_ARCH=i386
export GDK_NATIVE_WINDOWS=1
. /usr/lib/nspluginwrapper/noarch/npviewer

____________________________

Add PPA Repositories.

Only add these if you want the very latest features.

Low safety, daily packages have not undergone any quality assurance.
Sometimes very safe but sometimes may not work at all.

Firefox-3.6 Lucid:

sudo add-apt-repository ppa:silverwave/one-daily-a-month-0

Firefox-3.7 Lucid:

sudo add-apt-repository ppa:silverwave/one-daily-a-month-1

sudo apt-get update
sudo apt-get install firefox
sudo apt-get install firefox-3.7

Or

sudo add-apt-repository ppa:ubuntu-mozilla-daily

And possibly one of these

sudo add-apt-repository ppa:chromium-daily/beta
sudo add-apt-repository ppa:chromium-daily/dev
sudo add-apt-repository ppa:chromium-daily/ppa

sudo apt-get update
sudo apt-get install chromium-browser

____________________________

Light-themes: panel-background isn’t scaling.

Bug #532309
Confirmed workaround1:

If confident with image resizing you can just resize the panel_bg.png to whatever size you have set the panel to.

Below are examples of resizing to 32 pixels using Gwenview.

R32 ><

/usr/share/themes/Radiance/gtk-2.0

A32><

/usr/share/themes/Ambiance/gtk-2.0

Confirmed workaround2:

This is more involved but doesn’t require any image manipulation.

sudo gedit /usr/share/themes/Ambiance/gtk-2.0/gtkrc
sudo gedit /usr/share/themes/Radiance/gtk-2.0/gtkrc

Comment out:

bg_pixmap[NORMAL] = &quot;panel_bg.png&quot;

e.g.

#bg_pixmap[NORMAL] =  &quot;panel_bg.png&quot;

Set “fit”, “stretch” and “rotate” to true:

gconftool-2 --type bool --set /apps/panel/toplevels/top_panel_screen0/background/fit true

gconftool-2 --type bool --set /apps/panel/toplevels/top_panel_screen0/background/rotate true

gconftool-2 --type bool --set /apps/panel/toplevels/top_panel_screen0/background/stretch true

Right Click Panel > properties > Background Tab > Select Background image: > panel_bg.png

Log out then Log in again.

______________________________

Customise Theme.

  • I now use Radiance, with the Ambiance Window Border.
    Right Click on Desktop > Change Desktop Background.
    Theme (Ambience) > Customise > Window Border.
  • Set Theme Tooltips to yellow (#F5F5B5) with black text (#000000).
    Right Click on Desktop > Change Desktop Background.
    Theme (Ambience) > Customise > Colour >Tooltips.
  • Set background to the Simple Ubuntu Purple.

______________________________

Errata:

There are a couple of packages that I need to add to the Package List for next time:

ushare – lightweight UPnP A/V Media Server (x-box)
mplayer-gui – movie player for Unix-like systems
gwenview – image viewer for KDE 4
bbe – sed-like editor for binary files
normalize-audio – adjusts the volume of files to a standard volume level
mpeg4ip-server – end-to-end system to explore streaming multimedia

Manual install needed for this:

NeroDigitalAudio.zip (Details here).

Written by SilverWav

May 1, 2010 at 5:53 pm

Follow

Get every new post delivered to your Inbox.