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…
How you remove a domain that’s no longer on a server for SSL renewal
#list certificates certbot certificates certbot delete –cert-name (certificate name) https://eff-certbot.readthedocs.io/en/latest/using.html#certbot-command-line-options
Install Ubuntu GUI
sudo apt update && sudo apt upgrade sudo apt install tasksel sudo tasksel install ubuntu-desktop
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
Exfat Support Centos 7
yum search exfat yum install -y exfat-utils.x86_64 fuse-exfat.x86_64
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…
Replace character with new line vi
:s/,/,^M/g To get the ^M character, type ctrl-v and hit enter. Under Windows, do ctrl-q enter.