Thursday, November 25, 2010

Clear Address Line in Firefox with Xclear

This add-on places an X-icon at the end of the url. There are several other add-ons that do this, but this one is really lightweight and doesn't need any toolbar buttons. The functionality is more similar like the ones found in Konqueror.

Wednesday, November 24, 2010

Get a List of Installed Software in Chronological Order

There is a single log file that records all the apt activities, such as installs or upgrades, for the various package managers (dpkg, apt-get, synaptic, aptitude). It can be found here : /var/log/dpkg.log.
If you want to have a more comprehensive history of the installed packages, you can use:
cat /var/log/dpkg.log* | grep "\ install\ " | sort
The result is a chronological list of package installation events. (Note that if a package was installed and subsequently removed, it will still be on the list.)

It turns out that there used to be an apt-history package, but the creator gave it up -due to the fact that dpkg now does logging- in favor of a small script solution: http://redclay.altervista.org/wiki/doku.php?id=projects:old-projects .
Below is the bash function from that web site.

function apt-history(){
case "$1" in
install)
cat /var/log/dpkg.log | grep 'install '
;;
upgrade|remove)
cat /var/log/dpkg.log | grep $1
;;
rollback)
cat /var/log/dpkg.log | grep upgrade | \
grep "$2" -A10000000 | \
grep "$3" -B10000000 | \
awk '{print $4"="$5}'
;;
*)
cat /var/log/dpkg.log
;;
esac
}


The code should be added to /root/.bashrc.
To run apt-history, you need to become root. Entering apt-history with no parameter will simply dump the change log file. To select what activities you want to see, you can enter one of install, upgrade, remove, rollback as a single parameter to apt-history.

Another way to quickly extract informations from apt logs (term.log) is apt-log .
Some examples that would help understanding the common usage of apt-log : http://mavior.eu/apt-log/examples/

Edit : another way to list your installed packages is http://man.cx/apt-show-versions

Recreate Debian Packages with dpkg-repack

Dpkg-repack creates a .deb file out of a Debian package that has already been installed on your system. If any changes have been made to the package while it was unpacked (ie, files in /etc modified), the new package will inherit the changes.
This utility can make it easy to copy packages from one computer to another, or to recreate packages that are installed on your system, but are no longer available elsewhere.
Dpkg-repack should be run as root.
If you don't wish to run the rebuild as root, and you have the fakeroot package installed you can do so as follows: $ fakeroot -u dpkg-repack packagename.
Dpkg-repack will place the created package in the current directory.

Tuesday, November 16, 2010

Foobnix Player

Foobnix is a new linux music player for both local and online music. With the online music search feature you can download and save music from Vkontakte . WARNING! You can download the audio file at your own risk and only in accordance with the rules of the site VK.com and legislation in your country.
Besides this online music search feature, Foobnix also comes with a lot of radio stations integrated by default (around 3500), Last.fm support, lyrics, tree-like music list, album cover fetching ....
Sometimes the web search for music stops working, you can reset Foobnix by removing ~/.config/foobnix   : rm -r ~/.config/foobnix

Wednesday, November 10, 2010

AudioBox

AudioBox features a full featured desktop-like HTML 5 application right into your browser, the AudioBox.fm Cloud Web Player.  Accessing, streaming, organizing and storing your media files is easier than ever. Features : 1 GB of storage space for the free plan with unlimited streaming, integrated bridges towards third party services ( Last.fm, Twitter, YouTube and Dropbox). There is no need to install extra software to enjoy your media library in the cloud, just a normal web browser will work.

Run Spotify with Wine

Spotify is a digital music service that gives you access to millions of songs. They achieve this by licensing the tracks from record companies in a similar way to radio stations, and they pay for it with advertising. You hear the occasional advert between tracks, and there are also options to pay a monthly subscription for a premium account. They do have a preview version client for Linux which I installed, but everytime I try to log in I get the message Use of this device is not enabled for your account. From their site : As a preview release this version is still unsupported, but we’re running it ourselves and will try to make sure it keeps pace with its Mac and Windows siblings. As we haven’t found a reliable way to display ads yet, this version is only available to Spotify Premium subscribers.
Luckily it runs well under wine . With the open version you will get 20 hours per month of streaming ( free ).
There is a problem playing local files with wine though. A solution is not far away, what I used was :
wget http://webupd8.googlecode.com/files/winemp3.acm -O ~/.wine/drive_c/windows/system32/winemp3.acm
After that run winecfg and under the Libraries tab enter winemp3.acm under New override for library and click Add. Have fun with Spotify !

There's even Despotify , an open source client and library for Spotify’s streamed music platform. Spotify decided to block access for non-premium subscribers. !

 If you want to disable the spotify tray icon you should start reading here .