2008-09-17

MPD: Music Player Daemon

About:

Music Player Daemon (MPD) allows remote access for playing music (MP3, Ogg Vorbis, FLAC, AAC, Mod, and wave files) and managing playlists. MPD is designed for integrating a computer into a stereo system that provides control for music playback over a local network. It also makes a great desktop music player, especially if you are a console junkie, like frontend options, or restart X often.

@ MPD homepage

Overview:

I wont explain what it is - everyone knows it's a media player - ops i just did it.
I'm here to show you how to install it. It can be a little bit confusing.

Installation/Configuration:

# apt-get install mpd sonata
Now, the hard tash. It's necessary to configure mpd before any use of it. To start, edit the file /etc/mpd.conf. I recomend to make a backup copy just in case.
# cp /etc/mpd.conf /etc/mpd.conf.backup
# nano /etc/mpd.conf

  1. REQUIRED PATHS & OPTIONAL PATHS
    In this step it's necessary to configure the respective directories where are locatedyour music files. In the field music_directory add your music's directorie (it's only to possible to add one) and in the rest cpy the exemple.
    ######################## REQUIRED PATHS ########################
    # You can put symlinks in here, if you like. Make sure that
    # the user that mpd runs as (see the 'user' config parameter)
    # can read the files in this directory.
    music_directory “/home/os.meus.documentos/music”
    playlist_directory “~/.mpd/playlists”
    db_file “~/.mpd/tag_cache”
    log_file “~/.mpd/mpd.log”
    error_file “~/.mpd/errors.log”
    pid_file “~/.mpd/pid”

    ################################################################
    #
    ######################## OPTIONAL PATHS ########################
    #
    # If specified, MPD will save its current state (playlist,
    # current song, playing/paused, etc.) at exit. This will be
    # used to restore the session the next time it is run.
    #
    state_file “~/.mpd/state”
    #
    ################################################################
  2. DAEMON OPTIONS
    Add you user(in my case it's qaz) in the field user. Uncomment the rest.
    ######################## DAEMON OPTIONS ########################
    #
    # If started as root, MPD will drop root privileges and run as
    # this user instead. Otherwise, MPD will run as the user it was
    # started by. If left unspecified, MPD will not drop root
    # privileges at all (not recommended).
    #
    user “qaz”
    #
    # The address and port to listen on.
    #
    bind_to_address “localhost”
    port “6600″

    #
    # Controls the amount of information that is logged. Can be
    # “default”, “secure”, or “verbose”.
    #
    log_level “default”
    #
    ################################################################
  3. AUDIO OUTPUTS & MIXER
    Uncomment the the text lines wich represent your audio output. Im my case it's alsa.
    ########################## AUDIO OUTPUT ########################
    #
    # MPD supports many audio output types, as well as playing
    # through multiple audio outputs at the same time. You can
    # specify one or more here. If you don't specify any, MPD will
    # automatically scan for a usable audio output.
    #
    # See
    # for examples of other audio outputs.
    #
    # An example of an ALSA output:
    #
    audio_output {
    type “alsa”
    name “My ALSA Device”

    # device “hw:0,0″ # optional
    # format “44100:16:2″ # optional
    }
    #
    # An example of an OSS output:
    #
    #audio_output {
    # type “oss”
    # name “My OSS Device”
    # device “/dev/dsp” # optional
    # format “44100:16:2″ # optional
    #}
    #
    # An example of a shout output (for streaming to Icecast):
    #
    #audio_output {
    # type “shout”
    # name “My Shout Stream”
    # host “localhost”
    # port “8000″
    # mount “/mpd.ogg”
    # password “hackme”
    # quality “5.0″
    # bitrate “128″
    # format “44100:16:1″
    # user “source” # optional
    # description “My Stream Description” # optional
    # genre “jazz” # optional
    # public “no” # optional
    #}
    #
    # Force all decoded audio to be converted to this format before
    # being passed to the audio outputs.
    #
    #audio_output_format “44100:16:2″
    #
    ################################################################
    #
    ############################# MIXER ############################
    #
    # MPD needs to know what mixer settings to change when you
    # adjust the volume. If you don’t specify one here, MPD will
    # pick one based on which ones it was compiled with support for.
    #
    # An example for controlling an ALSA mixer:
    #
    mixer_type “alsa”
    mixer_device “default”
    mixer_control “PCM”

    #
    # An example for controlling an OSS mixer:
    #
    #mixer_type “oss”
    #mixer_device “/dev/mixer”
    #mixer_control “PCM”
    #
    # If you want MPD to adjust the volume of audio sent to the
    # audio outputs, you can tell it to use the software mixer:
    #
    #mixer_type “software”
    #
    ################################################################
  4. OTHER OPTIONS
    Uncomment this two lines:
    ######################### OTHER OPTIONS ########################
    #
    # The metadata types MPD will recognize.
    #
    metadata_to_use “artist,album,title,track,name,genre,date,composer,performer,disc”
    #
    # Enable this if you wish to use your MPD created playlists in
    # other music players.
    #
    save_absolute_paths_in_playlists “no”
    #
    ################################################################
  5. Outher configurations
    Stay as they are. To avoid any doubts,here is my final result.

Now, add your user( mine is qaz) at mpd group (can't explain why this step).

# groupadd mpd
# gpasswd -a qaz mpd

Make sure the folder ~/.mpd doesn't need root privileges.

To create data base (this can take a while):
$ mpd --create-db
In this moment we have mpd completed instaled and configurated.
$ mpd

Frontend:

We still need a frontend. I choose Sonata.

Sonata is an elegant GTK+ music client for the Music Player Daemon (MPD).

@ Sonata Homepage

Sonata's Screenshot. Click in the image to see more pics.

Sonata also needs some configuration. But first let us open it:
$ sonata
Go to Preferences, in the tab MPD add you datasi. My case:

  • Name: qaz
  • Host: localhost
  • Port: 6600
  • Password: (em branco)
  • Music dir: /home/os.meus.documentos/music/

If necessary kill both process (killall) e start mpd & sonata again.

References:
» Techzone/Zwame
» ArchLinux Wiki
» MPD homepage

My files:
» http://dotfiles.org/~uterrorista/%2Fetc%2Fmpd.conf

FeedBack:
Have a question? Please submit a comment :P

2008-09-13

Flash Player9 in a 64-bit machine

Here it is a tutorial do install Flash Player 9 in a 64-bit Gnu/Linux machine:
$ wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_9_linux.tar.gz
$ tar -zxf install_flash_player_9_linux.tar.gz
$ mkdir ~/.mozilla/plugins/
$ mv install_flash_player_9_linux/flashplayer.xpt install_flash_player_9_linux/libflashplayer.so ~/.mozilla/plugins/
$ nspluginwrapper -i ~/.mozilla/plugins/libflashplayer.soLinks:» Source: Japan Shah

Playdeb - Games repositorie (Ubuntu)

Playdeb is a gaming repository for Ubuntu - aimed to provide titles already available on getdeb.net in an easier to install and update format.

This list features some old known games and also some news.

For who uses other distros, you can follow the link to the homepage of the games and follow the presented instructions.

Links:
»Playdeb
»GetDeb

2008-04-21

Flash Linux


What is "Flash Linux"
It's a FREE (GPL-2) customised Linux distribution initially designed to be run directly off a 256Mb USB key or other (similar) forms of bootable flash memory. It has subsequently (also) become a Linux distribution that runs directly from a CDROM, typically known as a Live-CD.


About Gentoo
Flash Linux is based on Gentoo Linux and new versions / bugfixes should track the stable Gentoo tree. Whereas Gentoo is a source distribution, this is a binary only distribution. If you need the source code or want to make modifications - please take a look at the Gentoo home page.

Links:
»Homepage: http://flashlinux.org.uk/

2008-04-20

How to install (JRE) Java in Ubuntu (8.04)

I'm trying to install Java at my new Ubuntu and I'm getting some difficulties.
I was scrolling Synaptic Package Monitor for a while and i couldn't find it.

So i Google it..

There are these packages:

sun-java6-bin sun-java6-fonts sun-java6-jre sun-java6-src
sun-java6-demo sun-java6-javadb sun-java6-plugin
sun-java6-doc sun-java6-jdk sun-java6-source


All you (probably) need is:
$ sudo apt-get install sun-java6-jre sun-java6-fonts sun-java6-plugin

Note: The package sun-java6-plugin contain the Firefox plugin.

2008-04-17

Foxmarks beta (for Firefox beta)

Foxmarks don't have a compatible version with Firefox 3 beta5.
But there is the Beta version of Foxmarks!
Read more!


Instructions:
  1. Go here, and sign with your nick and password.
  2. Then sign up to Beta tester.
  3. They will sent you an email - this may take some days..
  4. Then, follow the link and sign in and download the plugin.
Don't know what is Foxmarks?

The Foxmarks Bookmark Synchronizer automatically synchronizes your bookmarks between two or more computers running Firefox. It also lets you access your bookmarks from any computer anytime via my.foxmarks.com. An easy-to-use wizard guides you through the quick startup process. Then Foxmarks works silently in the background to keep your bookmarks up-to-date on all your computers.

Simple. Solid. Free. And ready to use.


Homepage: http://www.foxmarks.com/

2008-04-16

Shockwave Player and Plugin for Linux

As you already know, there is no such player/plugin! And the only solution is firefox.exe running through wine.

But, there's some hope. Sign here an online petition..
The Shockwave Player and Plugin for Linux Petition to Macromedia was created by members of the Linux Community and written by Rob Jensen...

2008-04-15

History - terminal tip

With the new meme's fashion:
history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
Did anyone just typed history in terminal?

If you try it, you can see the list of the last commands used.

Instead of pressing upper arrow hundred times to see the command that we used in the previous day, just type history

$ history

Check also the manual:

$ man history

Archlinux 2008.04-RC

Looks like we're gonna have a Live CD Archlinux's version..
The latest news:
A new batch of install images is currently syncing to mirrors.
FTP images have been made available tonight, while CORE images
will be pushed tomorrow night in order to distribute the load.

This marks the first release (well ok... release candidate)
based on a true live Arch system. That is, what's on the
images is just a plain old base installation which just
happens to boot off of a CD or USB stick.

Whoah... did you just say USB stick? Why yes I did! That's
right, from here on out we'll be offering bootable USB disk
images that can act as a live system or installer.

The installer script itself is roughly the same as it's always
been. The most noticable change is the use of UUIDs instead of
sdX/hdX entries by default. A more detailed changelog
should be visible on projects.archlinux.org soon-ish.

If you get the chance, please give the images a spin. You can
find them on our mirrors, in the
iso directory. Please file bugs if you encounter any problems.

By the way, the "RC" status of these images should not be a
turn-off if you're looking to install Arch, there's a very
good chance they'll work just fine for you.


Links:
»Homepage: ArchLinux

2008-04-14

One step forward, two steps back

In Feisty, agere et131x - Ethernet card of my LG P1 - was automatically installed.
Today with Hardy 8.04 and new versions of kernel, there is no 'out of the box'!

One step forward, two steps back! Hrr

To install it:

Download et131x-1.2.3-2.tar.gz (or more recent ) here.

$ sudo apt-get install build-essential linux-headers-$(uname -r)
go to the unpackaged et131x folder
$ make
$ sudo make modules_install
$ insmod et131x.ko
$ sudo depmod
$ sudo modprobe et131x


There might me some errors... close your eyes!
Reboot.

The audio card - Realtek LC880 - was never fixed. I only have audio on phones!

Create new file:
$ sudo gedit /etc/modprobe.d/snd-hda-intel
Paste and save:
options snd-hda-intel model=lg
Reboot!

Links:
»Drivers: et131x

2008-04-12

Pytube - download videos from Youtube

PyTubes is a multimedia converter program.

Features:

  • Downloads videos from Youtube, GoogleVideos, Metacafe, MySpaceTV... And converts them to ogm, mpg, avi, flv, gif, mp4, 3gp, amv, mp3, ogg and wav files.
  • Encode Videos to formats previously mentioned.
  • Search Youtube's videos.
  • Multimedia Tools - Apply audio track to video files, Generate ringtones, Merge videos, Resize videos, Rotate videos.

Screenshot:

Links:
»Homepage: http://bashterritory.com/pytube
»Download page: http://bashterritory.com/

Terminal History

I'm a sudo addicted. :)

$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head

245 sudo
34 cd
24 ls
23 ping
19 sh
13 cmake
12 make
9 ./pk2
9 exit
8 e-U

2008-04-11

Linux Distribution Chooser

If you have doubt's about choosing the best Gnu/Linux distribution to you, this site can help.
It will ask you some questions, inquiring you about your experience and preferences with Linux.

If you wanna see some screenshots of the different distros, go here!

PS: if you make the test, let me know about the result!
I got Ubuntu, Debian and Xubuntu! I already use Ubuntu :D !

Links:
»Linux Distribution Chooser: Homepage
»Linux Screenshots: The coding studio

2008-04-01

Pidgin 2.4.1 (new)

Pidgin

Links:
Homepage: Pidgin

2008-03-09

Emesene - IM client

Index:


About


Emesene is a instant messenger (IM) client for the Windows Live Messenger (tm) network.
It runs at Linux, Windows and Mac OSX.
Is is very simple to use, has no ads, is compatible with Messenger Plus, allows file transfer, lots of plugins, etc...

Screenshots


[screenshots - click]
screenshot #1 screenshot #2screenshot #3

Install


  • Debian based systems:
    1. Add repositories to source list:
      $ sudo gedit /etc/source.list

      Add:
      deb http://apt.emesene.org/ ./
      deb-src http://apt.emesene.org/ ./
    2. Update
      $ sudo apt-get update

    3. Install
      $ sudo apt-get install emesene

  • Installation from tar.gz (latest stable archive)
    1. Go to:
      http://sourceforge.net/project/showfiles.php?group_id=168206
    2. Download the latest version (eg:):
      $ wget http://downloads.sourceforge.net/emesene/emesene-r999.tar.gz

  • SVN version
    1. Visit this page for instructions:
      http://emesene.org/trac/wiki/SVN


Conclusion


I already tried Pidgin, Amsn but it's Emesene i like best.
Is is simple, attractive design.
It has lots of cool plugins, eg:
  • Youtube video's screenshot before the link to it.
  • Countdown to specific date (I'm using this one - countdown to christmas :D )
  • Messenger plus
  • GmailNotify
  • Etc.
Just try it and have your own idea about it..

2008-03-08

Openbox - introduction/customization

Overview: At the end your system may have this look:

[screenshots - click]

screenshot #1 screenshot #2

Intro:

Openbox is a windows manager (just like Metacity, sort of..), extremely light and customizable, known for its minimalistic appearance, as indicated for machines with poor performance.

The Openbox allows perform the last/all* applications that are designed/made to Gnome/Kde without any need to run these (Gnome/Kde). You can also run the Openbox within the Gnome/Kde thus combining their features. It allows us to make the desktop cleaner and faster.


Installation:

Check the homepage, or install the version available in the repositories:
# aptitude install openbox
# aptitude install obconf openbox-themes #RECOMMENDED_EXTRAS

To run Openbox:
  • Logout;
  • Choose the session type: (1) Gnome/Openbox; (2) openbox-kde.desktop or (3) Openbox Session;
  • Login.

Option (3) runs only the Openbox, but future Gnome/Kde's applications could be executed (eg: gnome-panel)

Note: I recommend that you only [re]login (at openbox session) when thou finish the tutorial completely!


Customization:

If you choose option (3) above, you will find out that your desktop is empty, and no kind of bar is displayed. Don't stress out :D

  1. Double the configuration files:

    $ mkdir -p ~/.config/openbox/
    $ cp /etc/xdg/openbox/rc.xml ~/.config/openbox/rc.xml
    $ cp /etc/xdg/openbox/menu.xml ~/.config/openbox/menu.xml


    The rc.xml file is responsible for the configuration of shortcuts, themes, virtual desktop, etc. .. While the menu.xml file is only responsible for setting the menu that appears when you click with the right mouse button on the desktop - edit this file in text mode can be boring and complicated, ahead there is a solution easier.

  2. Alt+F2:

    The shortcut Alt + F2 aka gnome-panel-control - run-dialog does not work for Openbox. I think this command essential in any Linux distribution, so let's find an alternative solution: gmrun - installation:

    # aptitude install gmrun

    Define Alt-F2 as gmrun's shortcut:
    $ gedit ~/.config/openbox/rc.xml
    Add the following code before;</keyboard>

    <keybind key="A-F2">
    <action name="execute">
    <execute>gmrun</execute>

    </action>

    </keybind>

    Note: If you noticed, the last shortcut existing in rc.xml is 'W-e', which launches Konqueror. I replaced this with Nautilus. I like it best.

    <keybind key="W-e">
    <action name="Execute">
    <startupnotify>
    <enabled>true</enabled>
    <name>Nautilus</name>
    </startupnotify>
    <command>nautilus</command>
    </action>
    </keybind>


    Note2:
    In my case, i had re-login the session for the shortcuts work correctly.

  3. Add a panel:

    I think that all of us like to have some kind of panel. To see minimized windows, icon tray and some shortcuts.
    There are several alternatives such as: pypanel , fbpanel, gnome-panel, xfce4-panel, etc.
    I'll choose pypanel:

    $ aptitude install pypanel

    • Pypanel Customization:
      The configuration file is ~/.pypanelrc. Before change/edit him I recommend to backup it:
      $ cp ~/.pypanelrc ~/.pypanelrcbackup

      Now, take this code (link) a save it at:
      $ gedit ~/.pypanelrc

  4. Add pypanel to startup(or some other application):

    $ gedit ~/.config/openbox/autostart.sh

    Paste this text:
    # Run the system-wide support stuff
    . $GLOBALAUTOSTART
    # Programs to launch at startup
    pypanel &
    #/opt/wicd/tray.py & #WICD
    #conky & #CONKY
    # all commands must end with: " &"


    Follow the example to add some other applications.

  5. Edit Openbox's theme:

    As I earlier explain, it's possible to edit Openbox's theme at the file menu.xml. But there is a solution more user friendly: obmenu. To install obmenu:

    $ wget http://switch.dl.sourceforge.net/sourceforge/obmenu/obmenu-1.0.tar.gz
    $ tar xvzf obmenu-1.0.tar.gz
    $ cd obmenu-1.0/
    # python setup.py install

    Open obmenu:
    $ obmenu

    The you can add/remove/edit any kind of shortcuts, etc.
    Note: To add a new menu, in the end you need to add a shortcut at Openbox 3 menu. Watch with some attention the available examples..

Conclusion:

This tutorial gives you the main ideas how to customize your system. Of course the are more applications you might use at Openbox, but these were my choice.


Other references:

»Openbox homepage
»Pypanel homepage
»Obmenu homepage
»Archlinux wiki - openbox
»Debian wiki - openbox some interesting key shortcuts.
»Box-Look.org - themes

»Used wallpaper!

My files:
There might be some differences with the screenshot displayed.
»http://dotfiles.org/~uterrorista/.pypanelrc
»http://dotfiles.org/~uterrorista/.autostart.sh
»http://dotfiles.org/~uterrorista/menu.xml
»http://dotfiles.org/~uterrorista/rc.xml

2008-03-07

Set the battery in conky correctly

Configure the battery at Conky can be a nightmare looking for this solution at web 'cus there isn't very information about it. I already had this problem...


ACPI battery number is given as argument, at 'funtions' battery, battery_bar and battery_percent. By default the argument is BAT0. But if it doen't work, let's find out the correct argument:

  • Open the terminal and type:
$ ls /proc/acpi/battery

  • There can be various kind of output:
CMB0
BAT1
BAT0
...etc

My output was: CMB0

  • Open the .conkyrc file and edit to (examples):
${battery CMB0}
${battery_bar CMB0}
${battery_percent CMB0}


Obviously, replace CMB0 with the output you received earlier.

2008-03-04

Get new Gimp's version @ Ubuntu

Today i found out that Ubuntu (& family) don't have access to the latest version of Gimp through repositories.

We're stuck with version 2.4.2 instead the new version 2.4.5.

Only Hardy Heron (8.04) will have access to it..
So lets make this happen sonner :D

  • Edit the souce list:
$ sudo gedit /etc/apt/sources.list

  • And add:
deb http://apt.schmidtke-hb.de gutsy main
deb-src http://apt.schmidtke-hb.de gutsy main

  • Save and close, return to the terminal and type:
$ wget apt.schmidtke-hb.de/aptrepository.asc
$ sudo apt-key add aptrepository.asc
$ sudo apt-get update
$ sudo apt-get upgrade

  • If you don't have Gimp yet installed, just type:
$ sudo apt-get install gimp

That's it!

Links:
»Homepage: Gimp

2008-03-01

Debian - NVIDIA drivers

A quick and easy tutorial about how to install NVIDIA drivers as simply as possible.

Prerequisites:

As a starting point, download the latest stable drivers.

Then you’ll need to install a few packages :

$ sudo apt-get install build-essential linux-headers-$(uname -r)
Debian Sarge users have to replace linux-headers with kernel-headers.


Installation:

First you’ll need to kill the X server. You can do that by switching to console #1 : press CTRL-ALT-F1 simultaneously.

Once there, log in with your username and password.

Stop the graphical login manager :

$ sudo /etc/init.d/gdm stop
Then install the drivers :

$ sudo sh NVIDIA-Linux-x86-1.0-9755-pkg1.run
and follow the installation process.

Make sure you tell the installer to automatically modify your /etc/X11/xorg.conf file so you’ll end up using the NVIDIA drivers.


Xorg.conf:

If you haven’t, then you simply have to make a few changes to your /etc/X11/xorg.conf file. Here they are. Debian Sarge users have to modify /etc/X11/XF86Config-4 instead.

In Section “Modules” comment the dri and GLcore modules :

#Load "dri"
#Load "GLcore"

In Section “Device” make sure you use the NVIDIA driver :

Driver "nvidia"

And finally comment the whole Section “DRI” :

#Section "DRI"
# Mode 0666
#EndSection

Here is an example xorg.conf file with the proper changes made.


X:

Once done, load the NVIDIA module :

$ sudo modprobe nvidia
And restart the graphical login manager, which will bring back X :

$ sudo /etc/init.d/gdm start

Tips:

If you happen to update your kernel, then you don’t need to reinstall the whole NVIDIA driver, but only the kernel module. So running this command will do the trick :

$ sudo sh NVIDIA-Linux-x86-1.0-9755-pkg1.run -K

2008-02-19

Geek Joke

  1. Eight bytes walk into a bar. The bartender asks:
    » "Can I get you anything?"
    » "Yeah," reply the bytes, "Make us a double!".

  2. Two bytes are sitting in a bar. One says:
    » "I'm not feeling so well. I think I might have a parity error."
    » "Yeah," says the other, "I thought you looked a bit off."

2008-02-17

My fonts @ Arch Linux

Screenshot:



Need to install:

pacman -S artwiz-fonts ttf-ms-fonts
# artwiz-fonts is not really necessary but is a 'nice pack'.


Attention:
Installing ttf-ms-fonts gives me a damm big bug! My fonts at the login became huge. Size 100 at lest. Use at you own risk...

2008-02-16

Yaourt

What is it?
"A pacman frontend for Archlinux"
Yaourt is a command line interface program which complete pacman for installing software on Archlinux. Written by Julien Mischkowitz.

Screenshots:



Installation:
  • Edit:
    # nano /etc/pacman.conf
  • And add:
    [archlinuxfr]
    Server = http://repo.archlinux.fr/i686

    Or
    [archlinuxfr]
    Server = http://repo.archlinux.fr/x86_64
  • Update & install:
    # pacman -Sy yaourt
Yaourt + sudo:
  • Edit:
    # nano /etc/sudoers
  • Edit it to something like this:
    # User alias specification
    User_Alias POWERUSER=user

    # Cmnd alias specification
    Cmnd_Alias YAOURT=/usr/bin/pacman, /usr/bin/pacdiffviewer

    # User privilege specification
    root ALL=(ALL) ALL
    POWERUSER ALL=(ALL) YAOURT
Utilization:
  • Search and install
    yaourt [keywords]: quick search + install
    yaourt -S [packages] : install package, Compile it from AUR if needed
    yaourt -Ss [keywords] : search on repos and on AUR (with notice for already installed packages)
    yaourt -Sb [packages] : install a packages by compilation from sources (abs)
    yaourt -Sl [repos] : prompt for packages of the selected repos (emphasize those already installed)
    yaourt -Qs [keywords] : colorized ouput of installed packages and the repos where they come from
    yaourt -Qo [progname] or [filename] : shows the package which provides the program or the file
  • Updgrade:
    yaourt -Syu : complete update and upgrade of the system (onlys from repos)
    yaourt -Syu --aur : complete update and upgrade, even for packages coming from AUR
    yaourt -Sybu --aur : complete update and upgrade by compilation of all packages (repos and AUR)
    yaourt -Su --devel : update and upgrade of cvs/svn/mercurial/git packages
  • Cleaning:
    yaourt -C : editing and merging of .pacnew/.pacsave
    yaourt -Cc : removal of all .pacnew/.pacsave
    yaourt -Qt : search for orphaned packages
    yaourt -Cd : search for obsolete repos
  • Other options:
    --export [directory] : exports compiled packages for gensync
    yaourt -S --aur [packages] : forces compilation from AUR for a packages which is also in repos
    yaourt -G [packages] : retrive PKGBUILD and local sources in current directory.
    yaourt -B : backup the pacman database
Read more at:
» http://archlinux.fr/yaourt-en/
» http://wiki.archlinux.fr/howto:archlinux:yaourt

2008-02-11

New Template

I've already stop searching for more templates.
This is the one. It's very web2.0 and eye candy..


There are still some minor details do change (banner, etc) but this will be the essence of the blog.

We hope you enjoyed ;)

2008-02-10

Layout Testing

We're testing and searching new template.
Sorry for any inconvenience caused..

2008-02-06

Java + Compiz

Start by downloading this patch for the jre engine, and then move it to the path of the folder and uncompress it.

$ cd /path/of/the/patch/
$ tar -xf patch.tar
$ cd patch


Now You will do a backup off rt.jr. Usually the path to rt.jr is /usr/lib/jvm/java-6-sun/jre/lib/. I suppose that you are using the latest sun java version.

$ sudo cp /usr/lib/jvm/java-6-sun/jre/lib/rt.jar /usr/lib/jvm/java-6-sun/jre/lib/rt.jar.old
$ sudo cp /usr/lib/jvm/java-6-sun/jre/lib/rt.jar rt.zip



Now you will apply the patch:

$ zip -f rt.zip sun/awt/X11/*
$ sudo cp rt.zip /usr/lib/jvm/java-6-sun/jre/lib/rt.jar


After that you will be able to run any application who use java, like mercury messenger.

2008-01-15

meplace.net » Já estou com a Apple até aos cabelos!

Fica aqui também escrito o meu post fabricado no meplace.net apenas para que os planetários (PlanetGeek) e outros possam ler:



Venho agora do PlanetGeek e deparo-me que metade dos posts existentes são sobre a Apple. Ou é sobre um novo hardware, um novo update de um programa ou gadget, ou novidades que não existem... Bah. Estou farto!



Sim gosto muito dos Mac, iPhone, iPod, etc, e adorava ter um de cada, pois são extremamente apetecíveis, são práticos, bonitos, boa qualidade de construção, excelentes detalhes em tornar o produto fácil de manusear para o utilizador, ETC!


Mas será que há necessidade de apresentar todas as novidades do mundo da Apple? Dá a sensação que só existe portáteis Mac, telemóveis iPhone, leitores de mp3 iPod touch e estes são idolatrados por todos e o resto é m*rda!


Não estou contra estes posts sobre Apple, mas sim com o abuso de publicidade grátis que esta tem..



Quantas vezes vocês já viram notícias sobre iPhone ou sobre o Archos?
Archos, possivelmente vocês nem sabem o que é um Archos..

Quantas vezes vocês já viram notícias sobre os MacBook ou sobre Lenovo?
Lenovo - "Epahh também não conheço essa.."

Isto são apenas dois exemplos de duas marcas com bons produtos, que a maioria das pessoas desconhece. Apenas desconhecidos porque ninguém escreve artigos/noticias sobre eles - Porque? Porque só conhecem Macs e afins..


Por isso peço aos bloggers/escritores de Portugal que olhem um bocado para o lado, descobram novas marcas, novos produtos que por vezes são melhores e são inclusive mais baratos, quem ensinem e instruam os vossos leitores sobre uma panorama geral dos produtos tecnológicos existentes.


E vocês leitores, protestem - sejam exigentes.



PS: Considerem este post como uma crítica construtiva e não como um ataque!

2008-01-13

Better looking amsn - antialiasing

The new versions of tcl/tk 8.5 allows better antialiasing:


[with(right) and without(left) antialiasing]

How to

Download:

  1. First, go to Synaptic and uninstall all versions of tcl and tk..
  2. Now compile tcl and tk - unrar downloaded files and enter the directory: ‘unix, then:
    $ sudo ./configure && sudo make && sudo make install
  3. Compile amsn: unrar downloaded source...:
    $ ./configure --prefix=/usr --with-tcl=/usr/local/lib --with-tk=/usr/local/lib
    $ sudo make && sudo make install

Note:
  • If the error: “/usr/local/bin/amsn: line 3: exec: wish: not found” appears, type:
    $ sudo ln -s /usr/local/bin/wish8.5 /usr/local/bin/wish

[Portuguese version of tutorial - here]

2008-01-05

Solution for Compiz + Matlab

  • * You only need to edit the matlab bin file by paste just after the "#!/bin/sh" command:
export MATLAB_JAVA=/usr/lib/jvm/java-6-sun/jre/
  • You will find the matlab bin file on:
/path to matlab/bin/matlab
  • Now edit matlab bin file:
$ gedit /path to matlab/bin/matlab
  • The result after editing the file would be something like this:
#!/bin/sh
export MATLAB_JAVA=/usr/lib/jvm/java-6-sun/jre/
#
# Name:
# matlab script file for invoking MATLAB
#
bla bla bla

  • Save and run Matlab ;)