Install Phalcon PHP framework in openSUSE

Phalcon is a web framework implemented as a C extension offering high performance and lower resource consumption”. From the benchmark page, “The compiled nature of Phalcon offers extraordinary performance that outperforms all other frameworks measured in these benchmarks”. Personally i find it very easy to work with, less dirs and files for the project. And it’s documentation is quite organized and useful. Installation in Linux distros is quite easy for most of the parts. Let’s install in openSUSE 12.3 and 13.1. 1st of all let’s thank Mariusz Łączak for his useful work to provide repositories. Fire up a terminal and become root by su – .

If you are on openSUSE 12.3, add this repo:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

zypper ar -f http://download.opensuse.org/repositories/home:/mruz/openSUSE_12.3/ Phalcon

[/cc]

For openSUSE 13.1:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

zypper ar -f http://download.opensuse.org/repositories/home:/mruz/openSUSE_13.1/ Phalcon

[/cc]

zypper-add-repo-phalcon

Refresh the repos:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

zypper ref

[/cc]

It will ask for the key to trust for the new repo, just type a to trust always. We are almost there.

Before installation of phalcon, we need to make sure that these dependencies are installed: mbstring, mcrypt, opensll, pdo/MySQL

If not, no worries install it by using this command:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

zypper in php5-mbstring mcrypt openssl php5-pdo

[/cc]

Time to install phalcon:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

zypper in php5-phalcon

[/cc]

And that’s it, but before jumping to your web dir to start a demo project, restart apache:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

systemctl restart apache2.service

[/cc]

Phalcon documentation are self explanatory and easy to follow. Start here for a test project.

Install Nodejs in openSUSE 12.3

Nodejs is quite in news now a days and for good. Let’s not go to details here, straight to install process and get it working. The 1st thing is to fire a terminal and become root by su – . Let’s add a repository for the latest Nodejs packages, default openSUSE repos have Nodejs but old version (.8.12):

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

zypper ar -f http://download.opensuse.org/repositories/home:/kwk:/orientdb/openSUSE_12.3/ Nodejs

[/cc]

After that refresh the repos:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

zypper ref

[/cc]

And now installation time:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”4″ tab_size=”4″]

zypper install nodejs nodejs-devel

[/cc]

Latest Nodejs has npm packaged with it, so we should be good by installing Nodejs package.

And that should be it for now, keep checking i will write about how to use it and install some plugins, framework to work with.

Artha: offline dictionary for linux

Artha is nice and well written dictionary application for Linux. The good thing about it is that it can work offline, which means it will pull the database during installation so that it can work offline. So next time if you are not connected to internet and want to search some word meaning, Artha will do the job well.

Artha-offline-dict

How to install it in elementary/Ubuntu, fire up terminal and type:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

sudo apt-get install artha

[/cc]

How to install it in openSUSE, type in terminal after became root by su – :

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

zypper install artha

[/cc]

And there you have it.

openSUSE 12.3 is OUT!

And the news is that openSUSE 12.3 is out a while ago. What more i would say than go and get it while it’s HOT. Let’s summarize some of the key features it have:

  • Kernel 3.7.10
  • KDE 4.10.00
  • Gnome 3.6.2
  • Enlightenment 17
  • UEFI support for x86_64 hardware and experimental support for Secure Boot enabled hardware.
  • MariaDB an alternative to MySQL
  • Improved notification system
  • Virtualbox 4.2
  • Complete packages for OpenStack
  • Faster and more stable Nouveau NVidia driver, supporting newer hardware
  • Rewritten zypp PackageKit
  • LibreOffice 3.6 stack

Read the announcement page for more..

Download it from here. Before writing it, please check the md5sum of the downloaded ISO file. Fire up a terminal and type:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

md5sum /path/to/downloaded_iso_file

[/cc]

And compare it with the md5sum in the download page.

openSUSE-12.3-desktop-1

openSUSE-12.3-desktop-2

openSUSE-12.3-desktop-3

Have fun!

 

Upgrade to KDE 4.10 in openSUSE 12.2

KDE 4.10 is out and some users waited for it eagerly might had already updated to it, but if not yet it’s time to upgrade.

http://kde.org/announcements/4.10/

plasma-tasks
This how to will cover openSUSE 12.2, there are no repos for 12.1 at the time of writing this.
Open terminal, become root by su –  and type to add the following repos.
Before adding the repos, please disbale the other KDE repos like KDE 4.9 etc.

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”6″ tab_size=”4″]

zypper ar -f http://download.opensuse.org/repositories/KDE:/Release:/410/openSUSE_12.2/ KDER410
zypper ar -f http://download.opensuse.org/repositories/KDE:/Extra/KDE_Release_410_openSUSE_12.2/ KDE-ExtraR410

[/cc]

Now run ref to refresh the repos:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”4″ tab_size=”4″]

zypper ref

[/cc]

Upgrade by either:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”4″ tab_size=”4″]

zypper dup

[/cc]

OR

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”4″ tab_size=”4″]

zypper dup –from KDER410
zypper dup –from KDE-ExtraR410

[/cc]

And that’s it.

Mount Google(LG) Nexus 4 in openSUSE 12.2 Gnome 3.6.x

In Gnome we will use jmtpfs for mounting, which will do most of the jobs. So we no need to use mtpfs or install its libs.

Download jmtpfs for your OS from here:
http://software.opensuse.org/package/jmtpfs?search_term=jmtpfs

After downloading click on the downloaded rpm file and it will automatically install it for you.

After installation let’s mount the device.

Create a dir anywhere you want like in mnt/ or home/ or any other folder. I mounted it in

/backup/Downloads/nexus4 . If you are going to mount it in mnt/, please set the correct permissions [777].

I will suggest to mount it under home/ or any dir which is under the logged in user. So you will not need any

permissions to set.

Open terminal and type:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”4″ tab_size=”4″]
mkdir /backup/Downloads/nexus4
[/cc]
Now type:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”4″ tab_size=”4″]
jmtpfs /backup/Downloads/nexus4/
[/cc]
Note: Before mounting it, unlock your phone. Go to nexus4 dir and you will see the mounted folders.

In-files-nexus4

In files

In-terminal-nexus4

In terminal

Mount Google(LG) Nexus 4 in openSUSE 12.1 KDE 4.9.x