#kvm #libvirt #win10 #win8

Graphics Drivers for Win 8 guest on KVM

In the windows 8, the support for the XDDM (old windows display driver format) was removed. The format was replaced by WDDM and the “official” drivers won’t probably install. In order to have a higher resolutions than 1024×768 on Windows 8 (or windows 10) guest: – set the scrreen type to SPICE – set QXL as the video card – install drivers from: http://people.redhat.com/~vrozenfe/qxlwddm/qxlwddm-0.6.zip More info: https://bugzilla.redhat.com/show_bug.cgi?id=895356 http://en.wikipedia.org/wiki/Windows_Display_Driver_Model http://en.wikipedia.org/wiki/SPICE_(protocol)

#magento #sql

Magento change product meta data by SQL Queries

Editing contents of meta data for a big product base, can be very time consuming. But You can always use SQL… Get `atributte_id` for meta data: SELECT attribute_id,attribute_code FROM `eav_attribute` WHERE `attribute_code` LIKE '%meta%' The result should be similiar to: +--------------+------------------+--------------+| attribute_id | attribute_code | backend_type |+--------------+------------------+--------------+| 40 | meta_title | varchar || 41 | meta_keywords | text || 42 | meta_description | text || 76 | meta_title | varchar || 77 | meta_keyword | text || 78 | meta_description | varchar |+--------------+------------------+--------------+ We’ll use the attribute_id in the next query. ...

#beshell #gentoo #sabayon

BeShell (Be::shell) on Gentoo / Sabayon

How to intall: Currently BeShell is not avalaible in portage. More info could be found here: https://bugs.gentoo.org/show_bug.cgi?id=426946 mkdir -p /usr/portage/beshell cd /usr/portage/beshell wget https://bugs.gentoo.org/show_bug.cgi?id=426946 -o beshell-9999.ebuild ebuild beshell-9999.ebuild manifest echo "=x11-wm/beshell-9999 **" /etc/portage/package.keywords/package.keywords # or if on Sabayon #echo "=x11-wm/beshell-9999 **" /etc/portage/package.keywords/00-sabayon.package.keywords emerge -av beshell

#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" ...

#htaccess #apache #httpd

.htaccess – most common tasks

Redirect to non-www: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] Disable APC: php_flag apc.cache_by_default Off Compress certain types of files: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript Set expire date for certain types of files: ExpiresActive On ExpiresDefault "access plus 1 day" ExpiresByType text/html "modification plus 1 hour" ExpiresByType text/css "access plus 21 days" ExpiresByType application/javascript "access plus 31 days" ExpiresByType image/gif "access plus 8 days" ExpiresByType image/jpeg "access plus 8 days" ExpiresByType image/png "access plus 8 days" ExpiresByType image/x-icon "access plus 31 days" 5. ...

#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. ...