#gentoo #opera #sabayon

Opera 26 install on Gentoo/Sabayon

Download the .deb file from here: http://www.opera.com/download/get/?partner=www&opsys=Linux&product=Opera%20Developer&utm_medium=sm&utm_source=desktop_blog&utm_campaign=developer Copy it to .distfiles cp opera-developer_26.0.1632.0_amd64.deb /usr/portage/distfiles/opera-developer_26.0.1632.0_amd64.deb Create an ebuild in /usr/local/portage/www-client/opera-developer/opera-developer_26.0.1632.0.ebuild # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 CHROMIUM_LANGS="af ar az be bg bn ca cs da de el en_GB en_US es_LA es fi fr_CA fr fy gd hi hr hu id it ja kk ko lt lv me mk ms nb nl nn pa pl pt_BR pt_PT ro ru sk sr sv sw ta te th tl tr uk uz vi zh_CN zh_TW zu" ...

#gentoo #opera #sabayon

Install Opera 24/25 on Gentoo or Sabayon

A month ago Opera for Linux 24 was released. Unfortunately it was released only as a 64 bit deb package. Thats not a problem because an ebuild was already written (details: bug#514696). On Sabayon: Add PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/local/portage/" to /etc/make.conf # make an ebuild mkdir -p /usr/local/portage/www-client/opera-developer cd /usr/local/portage/www-client/opera-developer wget -O opera-developer-24.0.1558.21.ebuild https://bugs.gentoo.org/attachment.cgi?id=381750 ebuild opera-developer-24.0.1558.21.ebuild manifest # install: emerge -av opera-developer # correct symbolic link to libudev rm /usr/lib64/opera-developer/lib/libudev.so.0 ln -s /usr/lib64/libudev. ...

CentOs shortcuts trick and more…

Synchronize time and date service ntpd stop ntpdate us.pool.ntp.org hwclock –systohc mv /etc/localtime /etc/localtime.bak ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime service ntpd start Configure network on CentOS Go and edit /etc/sysconfig/network-scripts/ifcfg-IFACENAME. You can check Yours iface name by ifconfig -a. Example configuration for static IP address: DEVICE=eth0 HWADDR=52:54:00:0D:00:01 TYPE=Ethernet UUID=be1cbf14-ff67-4b8b-aab9-xxxxxxxxx ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=static IPADDR=192.168.X.Y NETMASK=255.255.255.0 GATEWAY=192.168.X.Y Update Yum & install some tools yum update yum upgrade yum install vim top nettop iotop screen yum-utils svn git Save and restore iptables state #save iptables-save /root/working. ...

#joomla #migration

Joomla – migration from 1.5 to 2.5

Joomla migration Unfortunately Joomla upgrade is not automatic in any way. So if you are trying to update you Joomla version from the last LTS (1.5) release to the current LTS (2.5) prepare for trouble. Many framework changes in Joomla! like nested categories and new ACL system make the migration very painfull, for a complicated Joomla installation. Semi – Automatic migration with JUpgrade First of all upgrade to the latest Joomla 1. ...

#joomla #php

Joomla get POST data from form using jinput

As from Joomla! 1.5 retrieving POST data through JRequest::getVar('var_name'); or JRequest::get('post'); is deprecated. The new approach to get the whole $_POST array : $input = JFactory::getApplication()-input; $post_array = $input-getArray($_POST); Retrieving single value from $_POST: $input = JFactory::getApplication()-input; $my_val = $jinput-get('my_val'); The Jinput class provides the capability of filtering data. Avaible filters are: INT, INTEGER – Matches the first, signed integer value. UINT – Matches the first unsigned integer value. FLOAT, DOUBLE – Matches the first floating point number. ...