понедельник, 16 февраля 2009 г.

Manage extra software channels in RHEL

It's not difficult, really.

Try to manage package channels (aka repositories, repos), but not standalone packages, when you installing something outside your main channel. This save you from dependencies hell and make your updates rather smooth.

For example let's update RHEL 5.2 to 5.3 and make all your media playable with standard gstreamer engine via Totem/Rhythmbox players.
  1. Disconnect all extra channels during update, you can update them later
  2. During update you can have dependencies problems, just remove problem packages
  3. After update you can plug in extra repos and restore removed packages

    To have your media playable you need 2 additional packages (not distributing in main channel be course US still have software patents) with necessarily plugins:
    gstreamer-plugins-bad
    gstreamer-plugins-ugly

  4. Connecting extra RPMforge channel (former DAG, more RHEL friendly then Livna)

    This extra channels not support latest RHEL updates and using "Just works" method. So we need to make downgrades packages from main channel to work with them. You don't need mix several channels with packages duplicates - this can give you only extra headache.
    So let's install packages, resolving conflicts with managing channels.

  5. First, install gstreamer-plugins-bad:

    yum install gstreamer-plugins-bad
    it's conflicting with libdvdread.so.3 library, let's see wich package provides it:

    yum provides libdvdread.so.3
    we got libdvdread package, we need to downgrade it.

  6. Let's remove it to replace with extra channel version.

    yum remove libdvdread
    this can give us some more dependacies. You are going just replace it with older version, so you can be free to ignore them:

    rpm -e --nodeps libdvdread

    Now you can continue installation:
    yum install gstreamer-plugins-bad


    This installs libdvdread from RPMforge channel by dependencies. First done.

  7. Next, let's install gstreamer-plugins-ugly:

    yum install gstreamer-plugins-ugly

    we got conflict with latest gstreamer-plugins-good package from main channel.
    Reason - main channel have 0.10.9 gstreamer version, extra channel using 0.10.3.
    Solution - with help of RHN or RPM Search we can find close 0.10.4 version in RHEL 5.2.

    Let's downgrade this package to RHEL 5.2 version.

  8. To downgrade package gstreamer-plugins-good you need remove current version:

    rpm -i --nodeps gstreamer-plugins-good

    Then download package from RHN or here and install it with:

    rpm -i --nodeps gstreamer-plugins-good-0.10.*.el5.i386.rpm

    And restrict future RHEL updates of this package. Just add line to /etc/yum.conf:
    exclude=gstreamer-plugins-good
Done. Now you have system configuration, which have extra gstreamer plugins packages with necessary codecs and ready for updates.

понедельник, 1 декабря 2008 г.

Using alternatives in linux

We use alternatives command to install San Java mozilla plugin. Ofcource this is still low usablity level, but more usable then create simlinks manualy.
  1. Download Java SE Runtime Environment (JRE)
  2. Run it with administrator permissions, FE:
    #./jre-X-linux-i586-rpm.binCreate simlink, FE:
    #ln -sf /usr/java/latest/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
  3. Create a java.sh script:
    #gedit /etc/profile.d/java.sh
    Add:
      export JAVA_HOME=/usr/java/latest
    export PATH=$JAVA_HOME/bin:$PATH
    #source /etc/profile.d/java.sh
  4. Add new java alternative:
    #alternatives --install /usr/bin/java java /usr/java/latest/bin/java 2
  5. Choose it from alternatives list:
    #alternatives --config java
Couple usefull options:

To remove old alternatives from list if nessasory:
  #alternatives --remove java /opt/jdk1.6.0/bin/java
To display current alternative:
  #alternatives --display java
Ref

воскресенье, 30 ноября 2008 г.

Multimedia codecs

Can we watch any multimedia content, using only standart Gnome players Totem and Rhythmbox?

Almost, little tricky with WMA and WMV. Packages provides this:

Main repo
gstreamer
gstreamer-tools
gstreamer-python
gstreamer-plugins-base
gstreamer-plugins-good
gstreamer-plugins-pulse
gstreamer-plugins-farsight
gstreamer-plugins-schroedinger

Multimedia repo (Livna, DAG, Multiverse)
gstreamer-ffmpeg
gstreamer-plugins-ugly
gstreamer-plugins-bad
gstreamer-plugins-bad-extras

Mplayer WM codecs
w32codecs
gstreamer-pitfdll

среда, 2 января 2008 г.

10 причин выбора Ubuntu вместо Vista

  1. В сети еще безопаснее
    Навигатор Firefox позволит вам избавится от страха при серфинге в Интернете.
  2. Ноутбук больше не привязан
    Беспроводной Интернет Wi-Fi в Ubuntu настраивается гораздо проще.
  3. Компьютер сам о себе позаботится
    Никаких проверок, дефрагментаций файловой системы и перезагрузок компьютера.
  4. Можно запечатлить мгновенья
    Помечая тегами в поиске Tracker фотографии и видео, вы мгновенно их находите в медиа-библиотеке F-Spot.
  5. Мы ведь всегда спешим
    Все больше корманных компьютеров и планшетов могут синхронизироваться с компьютером.
  6. Найдется все что есть
    С поиском Tracker можно искать и группировать ваши материалы по содержимому, а не только по названию.
  7. Знакомая картина в новых красках
    Рабочий стол GNOME все краше и быстрее с помощью 3D-эффектов Compiz Fusion.
  8. Самая безопасная версия
    Безопасность и контроль над компьютером обеспечены без надоедливых предупреждений.
  9. Музыкой можно управлять пультом
    Возможности домашнего медиа-центра обеспечены
    Myth TV.
  10. Пользоваться компьютером просто как дышать
    Ubuntu просто работает. Без установки на компьютер. Теперь даже бабушка сможет пользоваться компьютером.

Microsoft’s top 10 reasons to upgrade to Ubuntu Linux, not Vista