Showing posts with label tutorial. Show all posts
Showing posts with label tutorial. Show all posts

Goggles Music Manager - Overview and Installation in Ubuntu Maverick

Friday, November 26, 2010 | 0 comments

Goggles Music Manager (or GMM for short) is a music player written using the FOX toolkit, with support for Ogg Vorbis, FLAC, MP3, MP4, ASF and Musepack. FOX is a fast toolkit for creating graphical interfaces (another application which I reviewed in the past which uses FOX is Xfe - review here - a file manager for Linux).

Note: If you don't want to read the review you can skip directly to the installation instructions below, which show how to compile and install GMM in the latest Ubuntu release, Maverick Meerkat.

Among the features Goggles comes with are:
- support for AlbumArt - embedded in file or separate image on disk
- tag editing - including support for multiple file editing
- smart sorting
- playlists support - including importing/exporting from/to XSPF, M3U, PLS, CSV
- drag and drop support - KDE and GNOME
- uses xine engine
- configurable user interface, including changing default icons
- Last.fm and Libre.fm support
- Replay gain support

Goggles uses SQLite database for the music collection, and it seems to be very fast when it comes to scanning a music collection, at least compared to most of the other existing players with support for music collection.

Regarding the interface, it's plain and simple:

Goggles Music Manager in Ubuntu 10.10

It also supports a so-called Mini Player, which takes up very little desktop space:


System tray support is included too, and Goggles can be configured to show/hide the tray icon and close the application or just minimize it to tray when the main window close button is clicked.

Drag and drop from Nautilus will also work, and the user will be presented with an importing window for the new files to be added to the playlist.

Goggles successfully fetched all the local album covers, however showing them is disabled by default, so you have to set it in Preferences and restart the application.

The playlist can be sorted using various criteria, and the columns can be shown/hidden and rearranged in a different order.

The Preferences window allows to configure the Last.fm and Libre.fm accounts, although when switching from one another in the drop down list the account username and password seem to be lost so you will have to enter them again. Here you can also customise the tray icon, control buttons location (top or bottom), appearance and audio driver to use.


Installation in Ubuntu 10.10 Maverick Meerkat

Follow these steps:

1. Download the source
Get the source code from the official Google Code page, here (direct link here). At the time of writing the version is 0.11.5, for which this tutorial was made.

2. Uncompress the package
Open up the Terminal and make sure the current working directory is the one where you saved the archive (use pwd and cd to view the current directory and to navigate to your downloads directory e.g. cd; cd Downloads) and uncompress the source tarball using the following command:

tar -xjf gogglesmm-0.11.5.tar.bz2

3. Install the needed dependencies
Type the following two commands:

sudo apt-get install build-essential
sudo apt-get install libfox-1.6-dev libsqlite3-dev libghc6-curl-dev libtag1-dev libxine-dev libdbus-1-dev


The first command will install the tools needed to compile the application, while the second fetches and installs the development packages of various libraries needed by GMM.

4. Install GMM
Type the following commands:

./configure
make

sudo make install


This should be all. To run Goggles, just type gogglesmm in a terminal or press Alt+F2 and type gogglesmm in the run box that appears.

Alternate installation prefix
Alternately, you can specify an installation prefix and install as normal user:

./configure --prefix=/home/USER/usr
make

make install


In which case you will need to include /home/USER/usr (or the prefix of your choice and replacing USER with your username) in your $PATH, by editing the file ~/.bashrc and adding a line like this:

export PATH=/home/USER/usr:$PATH

Then issue:

. ~/.bashrc

Collection of 18 Popular APT & DPKG Tips for Debian and Ubuntu

Monday, September 20, 2010 | 0 comments

This is a guide containing the most popular and useful ways of using the APT and DPKG commands, and it applies to both Ubuntu and Debian (and their derivatives). I mentioned where super user privileges are required, the ones without a mention can be executed as normal user. If you're using Ubuntu, precede a command with sudo in order to gain root privileges (and enter your user password); on Debian, type su, enter the root password, and then type in the commands as shown below.

dpkg -L package_name
This command will show what files package_name installed on your computer. Notice that this works only for already installed packages. Example:

embryo@debian:~$ dpkg -L vorbis-tools

/.

/usr

/usr/bin

/usr/bin/ogg123


apt-get build-dep package_name

(needs root privileges)
This is a very useful command, which will install all the development libraries needed by an application. So if you need to compile a newer version of a program than the one included in the repositories, use this command to fetch the dependencies. Notice that the libraries installed will be for the current version coming with the repositories, so you may need to install additional libraries if needed. However, this usually works for most of the applications. Example:

apt-get build-dep wesnoth


This will fetch all the development packages needed for Wesnoth. Keep in mind that your sources repositories must be enabled (they are enabled by default in Ubuntu).

apt-get clean (and apt-get autoclean)
(needs root privileges)
This command will remove the archives installed on your system. Whenever you install a package, it is downloaded and the DEB package is kept inside the /var/cache/apt/archives/ directory. This command removes those packages, freeing up space.

apt-get clean
apt-get autoclean


Regarding apt-get autoclean: this command will remove only the archives which are no longer available in the repositories, and will keep the ones which are currently available. Helpful if you want to get rid of old archives which have been updated, but still want to keep the upgraded ones just in case. To see how much space the archive occupy, use du -h (the -h argument stands for human readable, so it will show sizes in human readable format):

du -h /var/cache/apt/archives/


apt-cache show package_name
Will show information about any package in the repository. You only have to type in the name of it, not the entire name and version. Example:

embryo@debian:~$ apt-cache show vorbis-tools

Package: vorbis-tools

Priority: optional

Section: sound

Installed-Size: 580

...


apt-cache search pattern
Will search and list all the packages which contain pattern in their name or in their description. You can pipe this with grep for more relevant results:

embryo@debian:~$ apt-cache search gnome terminal|grep terminal

gmfsk - MFSK, RTTY and other digital mode terminal for HF/amateur radio

gnome-terminal-data - Data files for the GNOME terminal emulator

gnome-terminal - The GNOME 2 terminal emulator application


apt-get update && apt-get upgrade
(needs root privileges)
This is a one-liner to update your packages list and upgrade your system. Since it requires root privileges, if your distribution is Ubuntu use sudo apt-get update && sudo apt-get upgrade. Notice that the second command (after the double ampersand) is executed only if the first one was successful, so if fetching any of the lists fails, the second command will not be executed. If you're running a testing or beta release, use instead the following:

sudo apt-get update && sudo apt-get dist-upgrade


This will fetch updates even if they depend on newer packages.

dpkg --get-selections

This command will list all the packages installed on a system using the package manager. Example:

embryo@debian:~$ dpkg --get-selections

acpi-support-base install

acpid install

adduser install

akregator install

...


dpkg -S filename
Will list the packages which install filename. Example:

embryo@debian:~$ dpkg -S oggenc
vorbis-tools: /usr/share/man/man1/oggenc.1.gz
vorbis-tools: /usr/bin/oggenc

embryo@debian:~$


apt-get autoremove
(needs root privileges)
This command will remove unnecessary packages (e.g. orphaned packages), which are no longer needed by any of the packages installed in the system. This happens often after you uninstall a certain application, and its dependencies still remain installed on the system. Use this command to get rid of them.

apt-cache dump
This command will list every package in the cache.

apt-cache depends package_name
A very useful command which lists every dependency a package has, including recommended packages.

embryo@debian:~$ apt-cache depends vorbis-tools
vorbis-tools

Depends: libao2

Depends: libc6

Depends: libcurl3-gnutls

...


apt-cache rdepends package_name
Will show dependencies in reversed order, that is, it will list all the packages which depend on the specified package.

apt-cache rdepends mplayer

apt-cache policy package_name
This will list the repository in which a package is located. In Ubuntu, there are four such repositories: main, restricted, universe and multiverse. Debian has main, contrib and non-free. There is a certain policy for each package, and depending on that, the package is included in one of the specified repositories.

apt-cache policy amarok
apt-cache policy sun-java6-jre


apt-cache showsrc package_name
Will show information about a package source.

apt-get -f install
(needs root privileges)
Will try to fix broken dependencies. This usually comes in handy if you try to manually install a DEB package without installing first its dependencies. Run apt-get -f install to fix the missing dependencies and try to install the package again.

apt-cdrom add
(needs root privileges)
Will add a CD ROM to your sources, so you can install packages from it. This command is mostly useful if you have some ISO images, which you don't want to burn to a CD. In order to scan the ISO images, use:

apt-cdrom -d=/cdrom add

This will mount the ISO image inside the /cdrom directory, and then add its contents to the sources.list. Notice that the /cdrom directory has to be empty. You can use any empty directory for this:

apt-cdrom -d=/home/USER/mydir

dpkg -c local_file.deb
The -c argument tells dpkg to list the contents of a DEB package. Example:

embryo@debian:~$ dpkg -c google-chrome-stable_current_i386.deb
...

drwxr-xr-x root/root 0 2010-07-30 23:54 ./usr/share/man/man1/

-rwxr-xr-x root/root 3098 2010-07-30 23:54 ./usr/share/man/man1/google-chrome.1

lrwxrwxrwx root/root 0 2010-07-30 23:54 ./usr/bin/google-chrome -> /opt/google/chrome/google-chrome


dpkg -f local_file.deb
This shows the control file for a binary package. A control file is a file which provides information to the package manager about dependencies, maintainer, homepage, description, and more.

embryo@debian:~$ dpkg -f google-chrome-stable_current_i386.deb
Package: google-chrome-stable

Version: 5.0.375.126-r53802

...


These are the most popular uses of APT and DPKG. Have some more? Please, share them!

How-To: Install Dillo Web Browser in Ubuntu Maverick Beta

Saturday, September 18, 2010 | 0 comments

Dillo is a simplistic, minimal web browser built using the FLTK2 (Fast Light Toolkit) library, designed especially for a minimal load on resources. It is used successfully by various distributions out there that aim to stay small and fast (the last time I checked it was included in Damn Small Linux for example).

Dillo 2.2 - the minimalist and fast web browser for Linux

I decided to make a review of Dillo (in the past I reviewed version 2.0 here) but realized that currently Dillo is not included in the Ubuntu Maverick repositories. So this is why I set out to make first a short how-to on how to install it in Maverick. Considering you will also need to compile and install FLTK2 in order to compile Dillo (because the repositories include FLTK 1.1, but not FLTK 2.0), we will use a DEB package to install it. Just follow the steps below.

Download the DEB package from the Dillo PPA archive (direct link) and save it somewhere on your hard disk. Now open a terminal, make sure the currently working directory is the one where you saved it (use the pwd command to print the working directory) and type:

sudo dpkg -i dillo_2.2-0+dillo1~karmic1_i386.deb

That's it! To start Dillo, press Alt+F2 and type dillo in the run box that appears.


Note: This tutorial probably applies for older Ubuntu releases too.

KDocker: Dock Any Application in the System Tray in KDE, GNOME & Xfce

| 0 comments

I bet at one point or another you felt you missed the system tray integration feature in some application, be it xterm, an audio player, a file manager or any other program. Well, KDocker is just the thing which comes to help: a simple, yet practical docking application built for KDE4 (older KDE3 version can be found here), but not only. Let me tell you how to use this program in a productive and useful manner.

KDocker 4.3 docking an xterm instance

KDocker is a docking application for KDE4 which allows you to dock any application in the system tray. The great thing about KDocker is that it works not only in KDE, but also in GNOME, Xfce and other window managers which are compliant with the NET WM standard.

The project is hosted on Launchpad, being actively developed, with the latest version (4.4) released earlier this year, on July 17. To install it in Ubuntu, type in a terminal sudo apt-get install kdocker, then launch it by pressing Alt+F2 and typing kdocker in the run dialogue window that appears.

Here's how to use: first, start it, then select the window which you want to dock. Below is a screenshot of xterm docked in the system tray using KDocker:

Here are several options KDocker provides besides only docking applications:
- it allows to skip the taskbar or the pager (so the application is not shown on the taskbar/pager)
- make the window sticky
- iconify when minimized/obscured or focus is lost or on close
- show a balloon when the window title changes

KDocker options

Now, one of the real uses KDocker provides is the ability to run it as a command, e.g. kdocker application_name and eventually create a desktop shortcut to this command, or make it start at the login. For example, creating a desktop shortcut in KDE to automatically start Konsole and put it in the system tray can be done like this:

First, create a file on the desktop (well, on the Desktop Folder widget actually) called anything.desktop (or whatever name you like, but with the .desktop extension). Put the following content in it:

[Desktop Entry]
Exec=kdocker konsole
Icon=konsole
Name=Konsole (Docked)
Type=Application
Comment=Console

Create a .desktop launcher to anything you want to dock

And save the file. Now, you can click that desktop shortcut to launch Konsole in the system tray.


Let's say you want to launch a terminal-based application inside Konsole, which should be docked in the system tray. The example that follows is for Midnight Commander, the powerful file manager with a text user interface:

[Desktop Entry]
Exec=kdocker konsole -e mc
Icon=konsole
Name=Konsole (Docked)
Type=Application
Comment=Console

The -e argument tells Konsole to execute the command mc after starting.

Launching Midnight Commander in Konsole and docking it in the system tray

Have some more uses for KDocker? Please share in the comments below.

Guide to Using Finch - Terminal-Based Chat Client

| 0 comments

Finch is a TUI (text user interface) IM client for Linux which uses libpurple, the same library on which the GNOME IM client Pidgin is based on. Usually, if you have Pidgin installed, you should have Finch too, unless Pidgin was compiled with the text interface option disabled. In addition to this, Finch supports every protocol that Pidgin supports, and even though it is a terminal-based application, it offers enough configuration options, and more can be done using the .gntrc configuration file, which is discussed later in this guide. If not, installing the latest Finch release, even from source, should be easy.

To install it in Ubuntu, open a terminal and type sudo apt-get install finch or use the Ubuntu Software Centre to search for it and install it. On Debian, you can install the older version from the repositories, or use this guide to compile and install the latest version. Yahoo! for example changed its protocol, so the version which comes included in Debian Lenny is not able to connect to it.

A little about installing as a normal user, using a different prefix. I have Pidgin (and Finch for that matter) 2.7.3 installed in Debian Lenny under the /home/embryo/usr prefix, so my binaries are located in /home/embryo/usr/bin/ and the manual pages in /home/embryo/usr/share/man/man1/finch.1/ and /home/embryo/usr/share/man/pidgin.1/ respectively. So in order to launch them I need to include the first path into my $PATH variable. To do so, edit your ~/.bashrc file using a text editor, and add this line at the end:

export PATH=$PATH:/home/USER/usr/bin

Replace USER with your username (and the full path if your prefix was different). Now, I don't know if there is another workaround for this, but i noticed that man finch or man pidgin do not work after installing in a different path than the standard ones. The manual pages for them actually exist, but in the directory /home/embryo/usr/share/man/man1/. So, to access them, use these commands:

man -l /home/USER/usr/share/man/man1/finch.1
man -l /home/USER/usr/share/man/man1pidgin.1

The -l argument tells man to open a manual page (and format it) for a custom file provided by the user.

Now that Finch is properly installed, let's get to work. First, type finch in a console to fire it up:

Navigation
Finch is built using the ncurses toolkit, which is a library designed especially to built text user interfaces. To navigate in a Finch window, use Tab to focus the next widget (option, tickbox, button), Shift+Tab to focus the previous one, Space in order to tick/untick an option, and Enter to 'click' a button. You will also need to press Esc to exit from menus such as the Actions menu.

The first time it starts, Finch automatically opens the accounts window, so you can now select the Add button and press Enter. In the window that appears - New Account - use the arrows to select the desired protocol, and then use Tab to navigate to the next field, fill it in with your data, and so on:

Creating a new Yahoo! account

Next, save your newly created account. Now, to close the Accounts window, press Alt+C. You should be now able to see your contact lists since Finch will try to automatically connect to the protocol you specified.


New mail notification

Now, before moving on to configure Finch, first let me list the most important keyboard shortcuts which are useful to navigate, customize and use this application.

Moving around

Alt+Q - just so you know this quits Finch, getting back to console

Alt+A - opens the Actions menu, which contains everything you need to configure Finch: accounts, buddy lists, file transfers, plugins, sounds, preferences and statuses; use the Esc key to close this menu when you're done

Alt+C - closes the currently opened window

Alt+N - switch to the next window; you will need this to switch between chats, and other openend windows

Alt+P - switch to the previous window

Moving and resizing windows
There are two important shortcuts here, which will help you to:

1. Move windows in Finch
For this, use the Alt+M keyboard shortcut. This will highlight the currently selected window so you will be able to use the arrow keys in order to move it anywhere inside the terminal; use Esc to deselect it when you're done.

2. Resize windows in Finch
Press Alt+R in order to highlight the currently selected window, then use the arrow keys to resize it; press Esc to deselect it when you're done.

Configuring Finch
To configure Finch, press Alt+A, which will open the Actions menu. Here you can edit accounts, enable/disable plugins or configure general Finch preferences. For now we will focus on the the Preferences entry:


As you can see, you can configure the:
- Buddy List - to turn on/off showing idle times or offline buddies
- Conversations - to show timestamps or notify buddies when you are typing them a new message
- Logging - the log format, which can be plain text or HTML (formatted), also which types of events to log
- Idle - which will report idle time based only on the last time you typed something in Finch (anywhere in Finch) or since the last message you send; also the number of minutes before becoming idle

Configure this to your liking. A little more about configuration options: they are kept in the same directory for both Finch and Pidgin, and changes done to one of them affect the other. The configuration files and the logs can be found inside the ~/.purple/ directory, where ~ is your home directory. Notice that .purple is a hidden directory, so make sure that your file manager will list those (or use ls -a in console to view them).

Plugins
Finch comes bundled with several useful plugins, like Buddy Notes, TinyURL or the Log Reader:


To open the above window, press Alt+A and go to the the Plugins entry. Configure those as you wish.

The ~/.gntrc file
This file allows you to configure Finch in more detail, including colors for its interface, re-binding keys, change keys for various Finch actions, and even enable mouse support.

Here's how to enable mouse support. Open up a text editor and edit (or create if it doesn't already exist - and it probably won't) the ~/.gntrc file:

nano ~/.gntrc # or gedit ~/.gntrc

Next, add the following lines in this file, then save it:

[general]
mouse = 1

This is all. Notice that if the file is already created, you should find the section [general] and set the mouse option to 1 (true). Although the manual page says the mouse support is still experimental, I found no issues with it. However, manipulating Finch actually seems harder with a mouse after using it exclusively from the keyboard.

Why use Finch at all?
Well, don't if you want avatars and all the beauty a graphical client offers! Use Pidgin, Empathy, Kopete or something else! But if you need for some reason (speed, lack of memory etc) a terminal-based application for instant messaging, then give Finch a try.

This should be all for today. I hope you'll enjoy Finch as much as I do!

Further reading
Don't forget man finch - it has all the info you need (and more about all the ~/.gntrc file, which couldn't be covered in this guide). The official homepage and guide:
Using Finch
Finch homepage

Tutorial: Install Clementine Music Player in Kubuntu 10.10 Maverick Beta

Thursday, September 16, 2010 | 0 comments

Clementine is a KDE4 port of the beloved music player Amarok 1.4. Although Clementine still needs work done in order to reach Amarok's functionality - like support for scripts, or for example I couldn't get it to add a whole music directory to the playlist - is there a way to do it? - it comes with pretty decent features up to now:

- equalizer
- Last.fm song submission, love/ban buttons
- music library
- file browser
- radio support
- cover manager


Installing Clementine in Kubuntu 10.10 Maverick Meerkat Beta
We will use the packages in the Clementine PPA in order to install it on Maverick. Fire up a terminal and type:

sudo add-apt-repository ppa:riccetn/clementine

This command will add the Clementine PPA repository inside your /etc/apt/sources.list.d/ directory.


Notice that the current version in the PPA is 0.3. If you already have an older version of Clementine installed on your system, it is best to remove it first:

sudo apt-get remove --purge clementine

Now update the packages list:

sudo apt-get update

And finally, install Clementine by typing:

sudo apt-get install clementine

And you're done! To start it up, press Alt+F2 and type clementine followed by Enter.

Cover manager

Clementine Homepage
Clementine at Google Code
Clementine PPA at Launchpad.net
 
© Copyright 2011-2012 the best car 2011 All Rights Reserved.
Template Design by the best car 2011 | Published by Bloggers Templates | Powered by Blogger.com.