SCP Command Syntax Rumi, March 14, 2019 Before going into how to use the scp command, let’s start by reviewing the basic syntax. The scp utility expressions take the following form: scp [OPTION] [user@]SRC_HOST:]file1 [user@]DEST_HOST:]file2 OPTION – scp options such as cipher, ssh configuration, ssh port, limit, recursive copy ..etc [user@]SRC_HOST:]file1 – Source file. [user@]DEST_HOST:]file2 – Destination… Continue Reading
Configure Apache With Self-Signed TLS/SSL Certificate on Ubuntu 16.04 Rumi, February 10, 2019 Step 1: Generating the certificate First, let’s create a place to store the file. mkdir ~/certificates cd ~/certificates Generate CSR and private key. openssl req -x509 -newkey rsa:4096 -keyout apache.key -out apache.crt -days 365 -nodes It will ask for information for the certificate request. Complete with the appropriate information. Country… Continue Reading
Upgrade PHP version to 7.2 from 7.0 on Ubuntu 16.04 Rumi, February 9, 2019 Check your PHP version installed Before we start, we can simply type the following command to check the existing PHP version installed on the server. $ php -v If you installed Ubuntu 16.04 LTS, you will get PHP 7.0.30 installed on your server by running installation script from VestaCP. In… Continue Reading
Install MariaDB on CentOS 7 Rumi, February 9, 2019 MariaDB is an open source relational database management system, backward compatible, binary drop-in replacement of MySQL. It is developed by some of the original developers of the MySQL and by many people in the community. With the release of CentOS 7, MySQL was replaced with MariaDB as the default database… Continue Reading
SSH Tunnel on PuTTY Rumi, January 5, 2019 Most of you have probably used a tunnel with an SSH connection. What you probably weren’t aware of is that you can use a dynamic tunnel to access all remote infrastructure. Furthermore, you can specify a port and a destination IP to have direct access. This process is achieved through… Continue Reading
Clean up boot partition – Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64 Rumi, December 27, 2018 Case I: if /boot is not 100% full and apt is working 1. Check the current kernel version $ uname -r It will shows the list like below: 3.19.0-64-generic 2. Remove the OLD kernels 2.a. List the old kernel $ sudo dpkg –list ‘linux-image*’|awk ‘{ if ($1==”ii”) print $2}’|grep… Continue Reading
DNS Forwarder and Transfer using Bind and Webmin Rumi, June 29, 2018 To point your BIND based DNS server to use OpenDNS resolvers for external resolution you need to modify the named.conf.options and add the OpenDNS resolvers as forwarders. This can be done in two ways: via the command line, Shell\SSH via a GUI if you have Webmin installed on your BIND server Shell\SSH… Continue Reading
Bind DNS Auto Slave Using Webmin Rumi, June 13, 2018June 13, 2018 The latest webmin has bug! In this tutorials I’m using webmin verison 1.801- that actually works. Don’t know if webmin team really knows are aware of the bug 🙁 So, let’s start. But before that, it’s assumed that you have webmin installed in both the servers. Configuring Webmin Server Continue Reading
PHP Session test Script Rumi, May 6, 2018May 6, 2018 I’ve just found a quality script to test php session- unless you’re in dark after some php.ini session tweaking done. To check if sessions really work you can use this code: <?php // Start Session session_start(); // Show banner echo ‘<b>Session Support Checker</b><hr />’; // Check if the page has… Continue Reading
How to disable Network Manager on Linux Rumi, May 4, 2018March 8, 2019 First Check if NetworkManager is running on Ubuntu / Debian Usually you should be using NetworkManager by default (Ubuntu 14.04), just in case you want to be sure, use this command to verify: dpkg –get-selections | grep network-manager In case there is some output like: network-manager install it is installed,… Continue Reading