Linux
Install Perl Modules Using CPAN
Comprehensive Perl Archive Network (CPAN) is a directory of Perl modules. To install a perl module, run cpan In the cpan command…
Load balancer
Load Balancer is used to distribute incoming traffic to multiple backend servers. Here are some of the popular software load balancers https://nginx.org/…
CentovaCast change MySQL password
CentovaCast is a control panel to manage online streaming services. It support shoucast, liqudsoap and icecast streaming servers. To change MySQL Password…
Can’t locate version.pm in @INC
I got error “Can’t locate version.pm in @INC” running awk. [root@vmi431969 /]# ack mp3pdjSu5B0 Can’t locate version.pm in @INC (@INC contains: /usr/local/lib64/perl5…
Wildcard DNS zone in bind
Wildcard DNS zone will act as authoritative DNS for any domain name. This is useful when you have a service like domain…
Disable sshd start on boot in ubuntu
On my local computer, i have installed openssh-server, but i don’t want it always enabled. To disable openssh-server from auto start on…
Upgrade centovacast
To upgrade centovacast installation, run /usr/local/centovacast/sbin/update If you don’t want to upgrade shotcast/icecast/luquidsoap, you can run for f in /usr/local/centovacast/etc/update.d/80*; do mv…
journalctl
To see systemd logs, run To see a service specific logs (example postfix) To see logs for a specific service, run Logs…
Install elasticsearch on CentOS 7
To install elasticsearch, first install java yum -y install java-1.8.0-openjdk Import key rpm –import https://artifacts.elastic.co/GPG-KEY-elasticsearch Create file vi /etc/yum.repos.d/elasticsearch.repo Paste following [elasticsearch]…
Change PHP version in Virtualmin Server
To change PHP version for a web site hosted in Virtualmin, click on the Virtualmin tab. Select the domain from drop down…
Protecting files with noclobber
To protect files on Linux by accidently overwritten by > operator, you can use set -o noclobber Now if you try to…