Atom dependencies on openSUSE

An RPM package is provided for download on the Atom website, however, installing it on openSUSE Tumbleweed won’t install all of its dependencies. Running it from the console will give:

/usr/share/atom/atom: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

According to the error message installing gconf2 will be required too.

sudo zypper install gconf2

After that Atom should work on openSUSE.

H.264 on openSUSE (round 2)

My previous post about this may be useful, but this one also works with gstreamer.

First from the official wiki for giving Firefox H.264 capabilities:

sudo zypper addrepo -f -n packman http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/ packman 

adding the packman repositories

sudo zypper install libavcodec56 libavcodec57 libavformat56 libavformat57 libavdevice56 libavdevice57

installing the codecs.
Now this only makes it available for Firefox so we also need (inspired by the unofficial multimedia codec guide):

sudo zypper install gstreamer-plugins-libav 

enables it for gstreamer too.

H.264 on openSUSE

I’ve installed openSUSE Tumbleweed.

For some licensing reasons it doesn’t contain the necessary codecs for playing H.264 files. Following neither the official, nor the unofficial documentation solved this problem for me, so for future reference, here are the exact steps that helped for me:

    1. Adding the Packman repositories:
      sudo zypper ar -f -n packman http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/ packman
    2. Installing mplayer and all its dependencies:
      sudo zypper install mplayer

But this is still not enough, there are still errors like


==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.64.101 (external)
Cannot find codec 'h264' in libavcodec...
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Cannot find codec 'h264' in libavcodec...
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Cannot find codec 'h264_crystalhd' in libavcodec...
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Cannot find codec 'h264_vda' in libavcodec...
VDecoder init failed :(
Requested video codec family [coreavcwindows] (vfm=dshow) not available.
Enable it at compilation.
Cannot find codec matching selected -vo and video format 0x34363248.
==========================================================================

  1. Doing a full repository vendor change, whatever that is:
    sudo zypper dup --from packman

mplayer is able to play all kind of files now on my system. For a bit easier control I’m using gnome-mplayer:
sudo zypper install gnome-mplayer

Using Selenium with a virtual framebuffer

I needed to run my Selenium tests on a virtual machine, on RedHat Enterprise Linux 6.6 in a multi-screen environment and this messed up the screenshots that the tests took. Virtual frame buffer to the rescue:

First I had to install it,

wget http://vault.centos.org/6.2/os/x86_64/Packages/xorg-x11-server-Xvfb-1.10.4-6.el6.x86_64.rpm

sudo yum localinstall xorg-x11-server-Xvfb-1.10.4-6.el6.x86_64.rpm 

then I could start it,

Xvfb :1 -screen 5 1024x768x8 &

make that terminal session use it,

export DISPLAY=:1.5

and I could finally run my tests, with the screenshots working fine.

Setting up my Apache with Zend Framework on Xubuntu 12.10

This is just a slight modification of my other post for achieving the same thing on Debian Wheezy.
I have a fresh install of Xubuntu 12.10. (Since it is based on Ubuntu, this should work just fine with Ubuntu 12.10 as well.) I use the official repositories. I’m configuring it for Zend Framework development. Other tutorials on the web describe all this a little bit differently but I am trying to set up Zend Framework for my own needs, so if this works to you then fine, if not then just look for another tutorial.

First I install Zend Framework itself.

sudo apt-get install zend-framework zend-framework-bin

I’ll also need MySQL support and xdebug.

sudo apt-get install php5-mysql php5-xdebug

Let’s see if Zend works, and create a test project.

zf create project ~/workspace/testproject testproject

It also suggest that I should create my VHOST file. Let’s add the suggested lines to the file:

/etc/apache2/sites-available/testproject

The file needs to be enabled in Apache:

sudo a2ensite testproject

I’ll also need to add the testproject domain to my /etc/hosts file.

Zend will also need mod_rewrite, so I enable it too:

sudo a2enmod rewrite

For xdebug I’ll also need the necessary settings in the php.ini file. I’ll just use the settings from this xdebug tutorial. Except that I didn’t install xdebug through PECL, so I’ll use

zend_extension=/usr/lib/php5/xdebug.so

And then finally I restart Apache.

sudo service apache2 restart

And while on Debian this worked just fine at this point, on Ubuntu I also have to create a symbolic link for the Zend library to use all my projects that I work on:

sudo ln -s /usr/share/php/libzend-framework-php/Zend/ /usr/share/php/Zend

(I don’t know if this is due to the projects’ settings, or a Zend thing, but I’m not interested in finding it out, because changing the project settings could break things on other team members’ computers.)

Setting up my Apache with Zend Framework on Debian Wheezy

I have a fresh install of Debian Wheezy. I use the official repositories. I’m configuring it for Zend Framework development. Other tutorials on the web describe all this a little bit differently but I am trying to set up Zend Framework for my own needs, so if this works to you then fine, if not then just look for another tutorial.

First I install Zend Framework itself.

sudo apt-get install zendframework zendframework-bin

I’ll also need MySQL support, and PHPUnit.

sudo apt-get install php5-mysql phpunit

Let’s see if Zend works, and create a test project.

zf create project ~/workspace/testproject testproject

It also suggest that I should create my VHOST file. Let’s add the suggested lines to the file:

/etc/apache2/sites-available/testproject

The file needs to be enabled in Apache:

sudo a2ensite testproject

I’ll also need to add the testproject domain to my /etc/hosts file.

Zend will also need mod_rewrite, so I enable it too:

sudo a2enmod rewrite

I’ll also need xdebug, but it’s already installed so I only need the necessary settings in the php.ini file. I’ll just use the settings from this xdebug tutorial. Except that I didn’t install xdebug through PECL, so I’ll use

zend_extension=/usr/lib/php5/xdebug.so

And then finally I restart Apache.

sudo service apache2 restart