RSS2.0

Monday, March 16, 2009

Daily xine RPMS - Linux DVD player

Daily xine RPMS (Linux DVD player)

update notice: this server has been updated recently (rh7.3 to fc4) but i still haven\'t been able to adjust the build scripts with the new configuration. the last cvs rpms will remain the same in the meantime.

This is an "unofficial" xine release. "Unofficial" just because the xine project does not officially distribute any binary or compiled packages. xine is free software and the source code is always available and licensed under GPL. "Linux DVD Player" is here so you can google for it ;-)

The provided RPMS are built automatically everyday from xine's Sourceforge CVS. This is all you need to play DVDs in linux (with full menu support) and the other media formats xine can handle. For more information please check the xine homepage.

The xine developers do not support CSS descrambling. The use of this software for watching your legally purchased DVDs may be illegal in your country.

You need to install libdvdcss rpm besides xine-lib and xine-ui. Without libdvdcss you won't be able to watch encrypted DVDs, that is, most of them.

If the files below are some days old that means cvs changes have broken my daily building. Also note that sourceforge public CVS access is getting worse everyday, and if the scripts cannot get the latest version, packages won't be updated.

These rpms are build in a RedHat Linux 7.3 server. Some care is taken to keep them portable across different distros, so they should also work on RH 7.x, 8.0, 9.0, Fedora, Mandrake, Suse, Conectiva...

Important notes:
  1. Dependencies for libxine rpm are manually set to a minimum. The package will not require libraries used by specific plugins, such as ALSA, to be available in order to be installed.
  2. Ogg/Vorbis version 1.0 is statically linked.
  3. To watch asf/avi files encoded with win32 dlls just install w32codec rpm. This rpm includes the old Video for Windows (vfw) codecs, Windows Media Video 8 (WMV8), WMV9 and Quicktime 6 codecs. these codecs will be used by xine as needed (that is, when native ones aren't available).

  4. If you install the RealPlayer8/9 rpm you will be able to watch Real Networks streams (.rm). xine plays Real streams with less cpu utilization than RealPlayer itself and works on sound cards without 44.1Khz support. Do not use RealPlayer10, xine will not be able to use their libraries since they changed the binary interfaces. fortunately, Real10 streams can be decoded perfectly using the Real9 libraries.
  5. libdvdcss 1.2.8 provided here is patched with network support. this makes possible to watch dvds from a remote dvdrom drive. check xine-lib/doc/README.network_dvd (ignore the steps to build 'cdda_server' as the same utility is included here as 'dvdcss_server').
  6. xine-ui is statically linked to libcurl. press (control+d) while running xine-ui to download new skins.
  7. libpng is now statically linked to keep dependencies low.
  8. Travis England kindly sent me x86_64 rpms for suse-9.1. These files are available here. Note: don't ask me about these rpms, I have not tested them. Check the readme file for more information.

Step by step guide to run xine

  1. You need to download the xine engine (libxine). Get the libxine rpm which more closely matches yourCPU:

      libxine1-(version)-xxxxxx.i586.rpm for Pentium/Pentium MMX
    libxine1-(version)-xxxxxx.i686.rpm for Pentium II/III/IV
    libxine1-(version)-xxxxxx.k6.rpm for AMD K6
    libxine1-(version)-xxxxxx.k7.rpm for AMD Athlon/Duron

    If you don't know your CPU just get the i586 package.

  2. Download xine-ui:

    xine-ui-(version)-xxxxxx.i586.rpm for any CPU.
  3. Install the packages (you need to be root):

    # rpm -U libxine1* xine-ui*
  4. If you want full DVD support download and install libdvdcss:

    libdvdcss-1.2.8-1.network.i386.rpm

    By default, xine expects to find your DVD-ROM at /dev/dvd. Creating a symbolic link to your device is recommended (for example, /dev/hdc or /dev/scd0). The command below should work for most users:

      # ln -s /dev/cdrom /dev/dvd

    Make sure the DMA is enabled for your DVD-ROM, otherwise playback will be 'jumpy'.

      # hdparm -d1 /dev/cdrom
  5. If you want full Windows Media Video and Quicktime support download and install:

    w32codec-0.52-1.i386.rpm
  6. If you want full Real Media support download and install:

    RealPlayer9-9.0.7.151-4.i386.rpm newest version
    (alternative rpm for fedora core: RealPlayer9-9.0.7.151-6.fdr.0.i386.rpm), or
    RealPlayer8-8.0.3.412-5.i386.rpm older version (if you have problems instaling RealPlayer9)
    obs: Depending on your distro, you might need /usr/sbin/update-alternatives or libXm.so.2
  7. Type 'xine' at your console window and enjoy...

    Hint: consider reading the xine FAQ.

  8. To try an experimental Netscape/Mozilla plugin using xine to play embedded videos, download and install:

    xine-mozilla-plugin-(version)-xxxxxx.i586.rpm xine plugin for Netscape/Mozilla.

    This plugin was not officialy released, it might hang/crash/freeze/burn. in case of trouble just uninstall.

You can find the Daily Xine RPMs Here:

Daily Xine RPMs

Daily xine RPMS (Linux DVD player)

Daily xine RPMS (Linux DVD player)

update notice: this server has been updated recently (rh7.3 to fc4) but i still haven\'t been able to adjust the build scripts with the new configuration. the last cvs rpms will remain the same in the meantime.

This is an "unofficial" xine release. "Unofficial" just because the xine project does not officially distribute any binary or compiled packages. xine is free software and the source code is always available and licensed under GPL. "Linux DVD Player" is here so you can google for it ;-)

The provided RPMS are built automatically everyday from xine's Sourceforge CVS. This is all you need to play DVDs in linux (with full menu support) and the other media formats xine can handle. For more information please check the xine homepage.

The xine developers do not support CSS descrambling. The use of this software for watching your legally purchased DVDs may be illegal in your country.

You need to install libdvdcss rpm besides xine-lib and xine-ui. Without libdvdcss you won't be able to watch encrypted DVDs, that is, most of them.

If the files below are some days old that means cvs changes have broken my daily building. Also note that sourceforge public CVS access is getting worse everyday, and if the scripts cannot get the latest version, packages won't be updated.

These rpms are build in a RedHat Linux 7.3 server. Some care is taken to keep them portable across different distros, so they should also work on RH 7.x, 8.0, 9.0, Fedora, Mandrake, Suse, Conectiva...

Important notes:
  1. Dependencies for libxine rpm are manually set to a minimum. The package will not require libraries used by specific plugins, such as ALSA, to be available in order to be installed.
  2. Ogg/Vorbis version 1.0 is statically linked.
  3. To watch asf/avi files encoded with win32 dlls just install w32codec rpm. This rpm includes the old Video for Windows (vfw) codecs, Windows Media Video 8 (WMV8), WMV9 and Quicktime 6 codecs. these codecs will be used by xine as needed (that is, when native ones aren't available).

  4. If you install the RealPlayer8/9 rpm you will be able to watch Real Networks streams (.rm). xine plays Real streams with less cpu utilization than RealPlayer itself and works on sound cards without 44.1Khz support. Do not use RealPlayer10, xine will not be able to use their libraries since they changed the binary interfaces. fortunately, Real10 streams can be decoded perfectly using the Real9 libraries.
  5. libdvdcss 1.2.8 provided here is patched with network support. this makes possible to watch dvds from a remote dvdrom drive. check xine-lib/doc/README.network_dvd (ignore the steps to build 'cdda_server' as the same utility is included here as 'dvdcss_server').
  6. xine-ui is statically linked to libcurl. press (control+d) while running xine-ui to download new skins.
  7. libpng is now statically linked to keep dependencies low.
  8. Travis England kindly sent me x86_64 rpms for suse-9.1. These files are available here. Note: don't ask me about these rpms, I have not tested them. Check the readme file for more information.

Step by step guide to run xine

  1. You need to download the xine engine (libxine). Get the libxine rpm which more closely matches yourCPU:

      libxine1-(version)-xxxxxx.i586.rpm for Pentium/Pentium MMX
    libxine1-(version)-xxxxxx.i686.rpm for Pentium II/III/IV
    libxine1-(version)-xxxxxx.k6.rpm for AMD K6
    libxine1-(version)-xxxxxx.k7.rpm for AMD Athlon/Duron

    If you don't know your CPU just get the i586 package.

  2. Download xine-ui:

    xine-ui-(version)-xxxxxx.i586.rpm for any CPU.
  3. Install the packages (you need to be root):

    # rpm -U libxine1* xine-ui*
  4. If you want full DVD support download and install libdvdcss:

    libdvdcss-1.2.8-1.network.i386.rpm

    By default, xine expects to find your DVD-ROM at /dev/dvd. Creating a symbolic link to your device is recommended (for example, /dev/hdc or /dev/scd0). The command below should work for most users:

      # ln -s /dev/cdrom /dev/dvd

    Make sure the DMA is enabled for your DVD-ROM, otherwise playback will be 'jumpy'.

      # hdparm -d1 /dev/cdrom
  5. If you want full Windows Media Video and Quicktime support download and install:

    w32codec-0.52-1.i386.rpm
  6. If you want full Real Media support download and install:

    RealPlayer9-9.0.7.151-4.i386.rpm newest version
    (alternative rpm for fedora core: RealPlayer9-9.0.7.151-6.fdr.0.i386.rpm), or
    RealPlayer8-8.0.3.412-5.i386.rpm older version (if you have problems instaling RealPlayer9)
    obs: Depending on your distro, you might need /usr/sbin/update-alternatives or libXm.so.2
  7. Type 'xine' at your console window and enjoy...

    Hint: consider reading the xine FAQ.

  8. To try an experimental Netscape/Mozilla plugin using xine to play embedded videos, download and install:

    xine-mozilla-plugin-(version)-xxxxxx.i586.rpm xine plugin for Netscape/Mozilla.

    This plugin was not officialy released, it might hang/crash/freeze/burn. in case of trouble just uninstall.

rpm command cheat sheet for Linux

rpm command cheat sheet for Linux

rpm is a powerful Package Manager for Red Hat, Suse and Fedora Linux. It can be used to build, install, query, verify, update, and remove/erase individual software packages. A Package consists of an archive of files, and package information, including name, version, and description:

Syntax Description Example(s)
rpm -ivh {rpm-file} Install the package rpm -ivh mozilla-mail-1.7.5-17.i586.rpm
rpm -ivh --test mozilla-mail-1.7.5-17.i586.rpm
rpm -Uvh {rpm-file} Upgrade package rpm -Uvh mozilla-mail-1.7.6-12.i586.rpm
rpm -Uvh --test mozilla-mail-1.7.6-12.i586.rpm
rpm -ev {package} Erase/remove/ an installed package rpm -ev mozilla-mail
rpm -ev --nodeps {package} Erase/remove/ an installed package without checking for dependencies rpm -ev --nodeps mozilla-mail
rpm -qa Display list all installed packages rpm -qa
rpm -qa | less
rpm -qi {package} Display installed information along with package version and short description rpm -qi mozilla-mail
rpm -qf {/path/to/file} Find out what package a file belongs to i.e. find what package owns the file rpm -qf /etc/passwd
rpm -qf /bin/bash
rpm -qc {pacakge-name} Display list of configuration file(s) for a package rpm -qc httpd
rpm -qcf {/path/to/file} Display list of configuration files for a command rpm -qcf /usr/X11R6/bin/xeyes
rpm -qa --last Display list of all recently installed RPMs rpm -qa --last
rpm -qa --last | less
rpm -qpR {.rpm-file}
rpm -qR {package}
Find out what dependencies a rpm file has rpm -qpR mediawiki-1.4rc1-4.i586.rpm
rpm -qR bash

{package} - Replace with actual package name

Linux Kernel Magic SysRq keys in openSUSE for crash recovery




The
Linux Kernel offers you something that allows you to recover your
system from a crash or at the least lets you to perform a proper
shutdown using the Magic SysRq Keys. The magic SysRq key is a select
key combination in the Linux kernel which allows the user to perform
various low level commands regardless of the system’s state using the
SysRq key. It is often used to recover from freezes, or to reboot a
computer without corrupting the filesystem.



The magic Sysrq key basically has a key combination of <ALT>
+ <SysRq or Prnt Scrn> + <Command key>
.


The command key can be one
of the following providing a specific functionality:




  • ‘b’ - Will
    immediately reboot the system without syncing or unmounting your disks.



  • ‘c’ - Will perform
    a kexec reboot in order to take a crashdump.



  • ‘d’ - Shows all
    locks that are held.



  • ‘e’ - Send a
    SIGTERM to all processes, except for init.



  • ‘f’ - Will call
    oom_kill to kill a memory hog process.



  • ‘g’ - Used by kgdb
    on ppc and sh platforms.



  • ‘h’ - Will display
    help (actually any other key than those listed here will display help.
    but ‘h’ is easy to remember :-)



  • ‘i’ - Send a
    SIGKILL to all processes, except for init.



  • ‘k’ - Secure
    Access Key (SAK) Kills all programs on the current virtual console.
    NOTE: See important comments below in SAK section.



  • ‘m’ - Will dump
    current memory info to your console.



  • ‘n’ - Used to make
    RT tasks nice-able



  • ‘o’ - Will shut
    your system off (if configured and supported).



  • ‘p’ - Will dump
    the current registers and flags to your console.



  • ‘q’ - Will dump a
    list of all running timers.



  • ‘r’ - Turns off
    keyboard raw mode and sets it to XLATE.



  • ’s’ - Will attempt
    to sync all mounted filesystems.



  • ‘t’ - Will dump a
    list of current tasks and their information to your console.



  • ‘u’ - Will attempt
    to remount all mounted filesystems read-only.



  • ‘v’ - Dumps
    Voyager SMP processor info to your console.



  • ‘w’ - Dumps tasks
    that are in uninterruptable (blocked) state.



  • ‘x’ - Used by xmon
    interface on ppc/powerpc platforms.



  • ‘0′-’9′ - Sets the
    console log level, controlling which kernel messages will be printed to
    your console. (’0′, for example would make it so that only emergency
    messages like PANICs or OOPSes would make it to your console.)



The most useful combination is the <ALT>+<SysRq
or Prnt Scrn> + R-E-I-S-U-B


The above basically means while you Press and Hold
<ALT>+<SysRq or Prnt Scrn> Press R, E, I,
S, U, B giving sufficient time between each of these key to ensure they
perform the required job.


REISUB will:




  • Release the Keyboard of the XServer control (in
    the event your XServer crashes)



  • Try to gratiously shutdown processes (SIGTERM)



  • Forcibly shutsdown the processes (SIGKILL)



  • Sync the mounted File Systems immediatly



  • Umount the mounted File Systems



  • Reboot the system



This could avert or atleast reduce the impact of system
crashes.


Magic SysRq key
is not enabled by default in openSUSE
.


To enable SysRq in openSUSE, click Computer and
YaST
.



Click System and Kernel Settings.



Click the Kernel Settings tab and place a
tick in “Enable SysRq Keys” and click Finish.


Alterntaively, click System - “/etc/sysconfig
editor
“. Navigate down to “System - Kernel
- ENABLE_SYSRQ
” and set it to “Yes” and click Finish.



Another option would be to edit the



/etc/sysctl.conf file and add “kernel.sysrq =
1″



or edit



/etc/sysconfig/sysctl and set
ENABLE_SYSRQ=”yes”



To temporarily enable SysRq at runtime,



opensuse11:~ # echo “1″ >
/proc/sys/kernel/sysrq



To disable



opensuse11:~ # echo “0″ >
/proc/sys/kernel/sysrq



The possible values you can
pass are:




  • 0: disable sysrq completely

  • 1: enable all functions of sysrq

  • >1 bitmask of allowed sysrq functions:

  • 2 - enable control of console logging level

  • 4 - enable control of keyboard (SAK, unraw)

  • 8 - enable debugging dumps of processes etc.

  • 16 - enable sync command

  • 32 - enable remount read-only

  • 64 - enable signalling of processes (term, kill, oom-kill)

  • 128 - allow reboot/poweroff

  • 256 - allow nicing of all RT tasks






Tuesday, March 3, 2009

Linux Foundation Launches Linux Training Program

Here's some news I though was interesting and wanted to share with all of my faithful blog followers/subscribers out there :

The Linux Foundation, the nonprofit organization dedicated to accelerating the growth of Linux, has announced the Linux Foundation Training Program. The Linux server market is predicted to reach $50 billion in three years, and the embedded and mobile Linux markets continue to explode, which increases the demand for developers and users with Linux expertise.

The Linux Foundation, the nonprofit organization dedicated to accelerating the growth of Linux, has announced the Linux Foundation Training Program, which will kick off with courses taught at the Linux Foundation’s Annual Collaboration Summit April 8-10 in San Francisco.
The effort comes at a time when developers in other sectors are being cut from work rosters and laid off due to the recession. Yet the Linux server market is predicted to reach $50 billion in three years, and the embedded and mobile Linux markets continue to explode, Linux Foundation officials said.

In fact, the freelance marketplace Odesk recently reported that the number of Linux-related jobs posted on its boards has increased more than 1,400 percent since 2006. The Linux Foundation’s Training Program will help meet this demand for industry and provide the tools for a new generation of programmers.

Resource Library:
Microsoft and Novell: Customer Success through a Ground-breaking Partnership
Heterogeneous Virtualization: Optimization for Effective Cost Reduction
Reduce Cost and Complexity in your IT Environment with Microsoft System Center C
Drive down IP storage costs: Effortlessly Secure, Monitor AND Control file share
“We’ve received consistent feedback from companies worldwide that the rising number of Linux deployments is putting new demands on a talent pool that needs more Linux-related developers,” said Jim Zemlin, executive director at the Linux Foundation. “We believe the Linux Foundation can provide a vendor-neutral forum in which students can learn from the community’s most influential contributors in order to drive their careers in more lucrative directions.”

Built in concert with its Technical Advisory Board -- which comprises leading maintainers from the Linux community -- the Linux Foundation's Training Program will feature courses taught by some of the community developers. The Linux Foundation's Training program will be vendor-neutral. The Training Program will debut with the following classes: Essential Linux Device Driver Development Skills, Creating Applications for Linux and Kernel Debugging and Performance.

The Training Program will consist of in-person courses at the Linux Foundation’s events, including its Collaboration Summit, End User Summit and LinuxCon, in-person classes in cities around the United States and onsite, custom courses for companies that want to ensure their developer core remains current.

Students who register for these first program offerings will get an automatic attendee pass for the Collaboration Summit. For more details, please visit: http://events.linuxfoundation.org/training