get linux OS installation date

Posted: 28 October 2013 in Ubuntu

a quick way to find how old is your linux installation is finding when the root filesystem was created

dumpe2fs -h /dev/path_to_root_sd | grep -i created

recently i wanted to rename all cover.jpg files in a directory to folder.jpg .

To achieve this in bash all that i had to do is :

find . -name 'cover.jpg' -type f -exec bash -c 'mv -f "$1" "${1/cover/folder}"' -- {} \;

all done in pure bash :)

i’ve just installed latest banshee (v1.9) music player in my Ubuntu 10.10 from the unstable ppa.

Here is a way to push banshee played song to zeitgeist and from there you can use synapse (a gnome-do like tool written in vala with zeitgeist super powers!) to find the played songs !

Banshee-Zeitegeist Dataprovider

Synapse using Banshee-Zeitegeist Dataprovider

The method applying in this post assumes you are familiar with ubuntu ppa’s, command line and git. Also use the details below at your OWN RISK !!!

# get the required stuff
# latest banshee
sudo add-apt-repository ppa:banshee-team/banshee-unstable
sudo apt-get update && sudo apt-get install banshee banshee-community-extensions
# if you have already banshee just use
# sudo apt-get upgrade !
# OPTIONAL : get synapse (gnome-do like application with zeitgeist support)
sudo add-apt-repository ppa:synapse-core/ppa
sudo apt-get update && sudo apt-get install synapse
# get banshee development libs
sudo apt-get install git-core autoconf automake libtool intltool gcc make libgconf2.0-cil-dev libgconf2-dev && sudo apt-get build-dep banshee
# don't forget the zeitgeist-sharp lib so that you can use banshee.zeitgeist provider
sudo add-apt-repository ppa:manishsinha/experimental
sudo apt-get install libzeitgeist-cil-dev

# make temporary folder and get the banshee community extensions from source
mkdir temp_BCE
cd temp_BCE/
# install git if you don't have it already
sudo apt-get install git
# clone the source files
git clone git://gitorious.org/banshee-community-extensions/banshee-community-extensions.git banshee-community-extensions
cd banshee-community-extensions
# enable only the zeitgeist provider, the others are already installed from the banshee-unstable-ppa
./autogen.sh --disable-alarmclock --disable-ampache --disable-appindicator --disable-awn --disable-clutterflow --disable-coverwallpaper --disable-jamendo --disable-lastfmfingerprint --disable-lcd --disable-lirc --disable-liveradio --disable-lyrics --disable-magnatune --disable-mirage --disable-openvp --disable-radiostationfetcher --disable-randombylastfm --disable-soundmenu --disable-streamrecorder --disable-telepathy --disable-ubuntuonemusicstore
# _make_ and ... pray for no errors
make
# then to use the Banshee.ZeitgeistDataprovider copy the dll to the extensions folder
sudo cp bin/Banshee.ZeitgeistDataprovider.dll /usr/lib/banshee-1/Extensions/
# enjoy!!
# start banshee, enable the extension (Edit-> preferences -> extensions -> Zeitegeist Dataprovider)
# restart banshee, play a song, close banshee. activate Synapse, go to audio tab and hit down button and see the song you played before logged from zeitgeist!

you can get the instructions also at pastebin :

http://pastebin.ca/2008871

install flash player for x64 in ubuntu

Posted: 30 December 2009 in English, Ubuntu
Tags: ,

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

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

Update: 

this is the apt-get way to achieve the above easier :)

sudo apt-get install –reinstall ubuntu-desktop
sudo apt-get build-dep ubuntu-desktop

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

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!