Every now and then you will be required to read or analyse video files on a server that is running on CentOS or you may be using it docker container. Here are the steps to install ffmpeg on your linux machine:
sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
sudo yum update -y
sudo yum install ffmpeg ffmpeg-devel -y
You can install and setup Go with the following simple commands:
Recently I upgraded to Ubuntu 16.04 on my machine and just for curiosity I wanted to improve the boot time.
So to identify the slow services I used:
jahans:~# sudo systemd-analyze blame
18.944s docker.service (I create containers on servers, don't need to start on boot)
12.833s dev-sda8.device (Root Parition)
11.523s teamviewerd.service (Just used it one off, dont create a service for it!)
7.828s postfix.service (Good to have, but I don't send emails with spoofed addresses)
5.946s bluetooth.service (Never used it)
I went through the list and identified the services that I didn’t use on daily basis and improved the boot time significantly. So to disable the services I didn’t use I ran:
systemctl disable docker
systemctl disable teamviewerd
systemctl disable postfix
systemctl disable bluetooth
To understand the dependencies of the services you can also use the following for a graphical view:
sudo systemd-analyze plot > srv.test ; eog srv.test
– Do you use putty?
– Do you use vim?
– Do you “have to” use windows at times?
Well this post is for you. You must have found yourself in an annoying issue when you cant use num pad in vim. Fortunately you can fix that:
Open Putty window and in the configuration, go to Terminal->Features and check "Disable application keypad mode". Save the settings.
Now restart that session you were working with and enjoy vim!