install flash player for x64 in ubuntu

•30 December 2009 • Leave a Comment

1) download the tar.gz flash version from here

http://labs.adobe.com/technologies/flashplayer10/64bit.html

2) purge existing flash :

sudo apt-get purge flashplugin-installer flashplugin-nonfree nspluginwrapper

3) cd ~/Downloads

4) tar zxvf libflashplayer-10.0.42.34.linux-x86_64.so.tar.gz

5) sudo cp libflashplayer.so /usr/lib/mozilla/plugins

6) restart firefox
7) done!
:-D

Re-install ubuntu-desktop metapackage and reinstall its dependencies

•27 September 2009 • Leave a Comment

Ubuntu-desktop is a meta-package in ubuntu that connects all the packages that are installed by default in a fresh ubuntu install. For that reason you can remove it without any damage to other packages or your system. It can be automatically removed if you remove ekiga or gnome-games.

But what if at some point you want to revert all the changes so you have the default packages reinstalled again?

Running :

sudo apt-get install --reinstall ubuntu-desktop

does not reinstall its dependencies. So the solution is :

sudo apt-cache depends ubuntu-desktop | awk -F ":" '{print $2}' | \
sed '/^$/d' | xargs sudo apt-get \
install --reinstall --install-recommends --yes

(yes this is one line :))

Enjoy

fix firefox 3.5 crash with full-screen flash

•22 July 2009 • 1 Comment

This is an annoying nvidia bug with the latest Firefox (Shiretoko) version 3.5.
To fix it you need to load the flash plugin before firefox.
To do this you have to find the firefox startup script (mine is in /usr/lib/firefox-3.5.1/firefox.sh) and add the following line at the beginning of it (be careful to not wipe the “#!/bin/sh” line!):

export LD_PRELOAD=/usr/lib/libGL.so.1

Now you can have full-screen videos again in youtube ;) 

Via:http://ubuntuforums.org/showpost.php?p=7487421&postcount=14

Create a list of installed packages for automatic re-install

•21 July 2009 • Leave a Comment

Here is how i create a package list with the current software installed :

dpkg --get-selections > package.list

To restore the list after a new clean install and automatically re-install the packages :

sudo dpkg --set-selections < package.list
 sudo apt-get dselect-upgrade

As simple as that!