Linux

Configure Redis-Cache in Magento 2

To use redis for caching in magento2 I added the following part in app/etc/env.php: ‘cache’ => array ( ‘frontend’ => array ( ‘default’ => array ( ‘backend’ => ‘Cm_Cache_Backend_Redis’, ‘backend_options’ => array ( ‘server’ => ‘127.0.0.1’, ‘port’ => ‘6379’, ‘persistent’ => ”, ‘database’ => ‘0’, ‘force_standalone’ => ‘0’, ‘connect_retries’ => ‘1’, ‘read_timeout’ => ’10’, ‘automatic_cleaning_factor’ […]

Configure Redis-Cache in Magento 2 Read More »

Magento Update Script

To Update massive amounts of data in magento without going directly into the database I found an interesting piece of code under http://www.mydons.com/writing-custom-magento-shell-script/: <?php require_once ‘abstract.php’; /** * Mydons Inventoryupdate Shell Script * * @author Mydons */ class Mydons_Shell_Inventory extends Mage_Shell_Abstract { /** * Run script * */ public function run() { Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); $file_handle =

Magento Update Script Read More »

docker as normal user under Fedora 23

See https://docs.docker.com/v1.6/installation/fedora/ “The docker command line tool contacts the docker daemon process via a socket file /var/run/docker.sock owned by root:root. Though it’s recommended to use sudo for docker commands, if users wish to avoid it, an administrator can create a docker group, have it own /var/run/docker.sock, and add users to this group.” sudo groupadd docker

docker as normal user under Fedora 23 Read More »

Install nvidia GTX980 driver in Fedora 23/22/21

I found a good and working tutorial unter http://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/. Here my notes for Fedora 23 and my GTX980: # all commands have to be run as root # remove nouceau driver dnf clean all dnf update dnf install kernel-devel kernel-headers gcc dkms acpid echo “blacklist nouveau” >> /etc/modprobe.d/blacklist.conf # append rd.driver.blacklist=nouveau to GRUB_CMDLINE_LINUX in /etc/sysconfig/grub

Install nvidia GTX980 driver in Fedora 23/22/21 Read More »

Install Docker in Ubuntu 12.04 Precise

First make sure you have the latest version and an actual kernel running. Execute theses commands as root: apt-get update apt-get dist-upgrade reboot Then install docker with the following lines as root: #!/bin/bash apt-key adv –keyserver hkp://pgp.mit.edu:80 –recv-keys 58118E89F3A912897C070ADBF76221572C52609D echo “deb https://apt.dockerproject.org/repo ubuntu-precise main” > /etc/apt/sources.list.d/docker.list apt-get update apt-get purge lxc-docker* apt-cache policy docker-engine apt-get

Install Docker in Ubuntu 12.04 Precise Read More »

docker on Linux Mint 17.2 Rafaela

There seem to be some missing dependencies in docker.io package. Here are the steps to get docker running in Linux Mint 17.2: sudo su apt-get install apparmor lxc cgroup-lite echo “deb https://apt.dockerproject.org/repo ubuntu-trusty main” > /etc/apt/sources.list.d/docker.list apt-get update apt-get install docker.io If you want to use docker as simple user you have to add this

docker on Linux Mint 17.2 Rafaela Read More »