How to’s

Change default editor linux

sudo update-alternatives –config editor There are 4 choices for the alternative editor (providing /usr/bin/editor). Selection Path Priority Status ———————————————————— * 0 /bin/nano 40 auto mode 1 /bin/ed -100 manual mode 2 /bin/nano 40 manual mode 3 /usr/bin/vim.basic 30 manual mode 4 /usr/bin/vim.tiny 10 manual mode Press enter to keep the…

Windows force group update to be applied

When you make a change to a Group Policy Object (GPO), the change takes place on a Windows 2000 domain controller. The change is replicated to all other domain controllers in the Active Directory. All Windows computers in the Active Directory check for modifications to GPOs at regular intervals. If they find changes, they apply…

Change default editor from nano to vi

Type sudo update-alternatives –config editor You will get a text like below. There are 4 choices for the alternative editor (providing /usr/bin/editor). Selection Path Priority Status ———————————————————— * 0 /bin/nano 40 auto mode 1 /bin/ed -100 manual mode 2 /bin/nano 40 manual mode 3 /usr/bin/vim.basic 30 manual mode 4 /usr/bin/vim.tiny 10…

How to add print template for Print Manager for WooCommerce

cd print-google-cloud-print-gcp-woocommerce/includes vi Templates.php class Templates { public function __construct() { self::registerTemplate(new \Zprint\Templates\Customer()); self::registerTemplate(new \Zprint\Templates\Details()); self::registerTemplate(new \Zprint\Templates\Order()); self::registerTemplate(new \Zprint\Templates\New());//added to use new template cd print-google-cloud-print-gcp-woocommerce/templates add new-html.php new-plain.php

Add multimedia support centos 7

Install Handbrake, VLC and smplayer cd /tmp wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install epel-release-latest-7.noarch.rpm yum -y install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm yum install vlc smplayer ffmpeg HandBrake-{gui,cli} yum install libdvdcss gstreamer{,1}-plugins-ugly gstreamer-plugins-bad-nonfree gstreamer1-plugins-bad-freeworld   Install Flash Plugin for Firefox yum -y install http://linuxdownload.adobe.com/linux/x86_64/adobe-release-x86_64-1.0-1.noarch.rpm yum install flash-plugin

SSH Login Without Password

root@local-host$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa):[Enter key] Enter passphrase (empty for no passphrase): [Press enter key] Enter same passphrase again: [Press enter key] Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. ssh-copy-id -i…