Author name: Md Fazla Rabby

Full Name: Md Fazla Rabby Azim Place of Birth: Dhaka, Bangladesh Nationality: Bangladesh Current Residence: Dubai, United Arab Emirates Marital Status: Married Children: Two daughters Education: Md Fazla Rabby attended his Bachelor of Computer Science at the International Islamic University Chittagong. Professional Career: Md Fazla Rabby is currently serving as a System Administrator (Remote) at Syscomed - Sistemas y Control del Mediterráneo S.L., based in Spain. In his role, he is responsible for managing and maintaining the company's IT infrastructure, ensuring the smooth operation of systems, and supporting IT-related projects. Past Positions: Details of his past positions and key responsibilities can be found on his LinkedIn profile, which outlines his professional journey and experiences in the IT sector. Personal Interests and Hobbies: While specific personal interests and hobbies are not detailed, Md Fazla Rabby’s career and family life reflect a dedicated professional and family-oriented individual. For more detailed information about his professional background and achievements, please visit his LinkedIn profile: https://www.linkedin.com/in/kuasha48

How to Install Let’s Encrypt SSL on Proxmox hostname

Installing an SSL on Proxmox hostname using Let’s Encrypt involves the following steps: eapt-get install certbot -y certbot certonly –standalone -d cp /etc/letsencrypt/live/<hostname>/fullchain.pem /etc/pve/pve-ssl.pem cp /etc/letsencrypt/live/<hostname>/privkey.pem /etc/pve/pve-ssl.key systemctl restart pveproxy Please note that the above steps are general guide and the actual steps may vary depending on the version of proxmox you are running. You can visit our YouTube channel for more interesting video https://www.youtube.com/@trainbrain007

How to Install Let’s Encrypt SSL on Proxmox hostname Read More »

How to Install Memcached on cPanel Linux server

follow these steps to install Memcached on cPanel or Linux-based cPanel server # yum install memcached -y # chkconfig memcached on If you need to edit the memcache settings: # vi /etc/sysconfig/memcached If needed, restart the memcache service (as root/sudo): # service memcached restart Memcached installed successfully. You can check the service status using following command: # ps afux | grep memc Check in CLI/SSH Memcached  Service # memcached-tool 127.0.0.1:11211 display # memcached-tool 127.0.0.1:11211 stats # telnet 127.0.0.1 11211 YouTube channel for more tutorial: https://www.youtube.com/@trainbrain007

How to Install Memcached on cPanel Linux server Read More »

How to Disabled NetworkManager on CentOS7

Follow these steps to disabled networkmanager on centos 7. lets start.. # nmcli device status # systemctl stop NetworkManager # systemctl disable NetworkManager # systemctl list-unit-files | grep NetworkManager NM_CONTROLLED=”no” nameserver [server 1]nameserver [server 2] # systemctl enable network # systemctl restart network Check the Network Status again. # nmcli device status Watch the video tutorial for better understanding. YouTube channel: https://www.youtube.com/@trainbrain007

How to Disabled NetworkManager on CentOS7 Read More »

How to Disable SELinux

Following this article you can disable SELinux in your Linux Server. Edit the /etc/selinux/config file to set the SELINUX parameter to disabled, after that reboot the server. Change the parameter enable to disabled SELINUX=disabled Press Ctrl+X and enter (if you use nano editor). now use restart command just type # reboot YouTube channel: https://www.youtube.com/@trainbrain007 You can watch the video for better understanding.

How to Disable SELinux Read More »

How to Enable and Disable Comment in WordPress Pages and Posts Without Plugin!!

Following this article you can disable comment in WordPress on all your published posts and pages for few clicks. You can do it without using plugin. More plugin using slowing your website. So try to avoid use plugin. Login to your WordPress admin panel ang go to Posts » All Posts to see all your articles. Now select all the posts, choose Edit from the Bulk Actions dropdown box, and click on Apply. Now you able to perform bulk actions including updating the author name and turning off comments for all the selected posts. Select Do not allow from the comments dropdown box and click on Update. This action will disable comments of all selected posts. You can follow the same steps to turn off comments on your WordPress pages. YouTube channel: https://www.youtube.com/@trainbrain007

How to Enable and Disable Comment in WordPress Pages and Posts Without Plugin!! Read More »

How to change permissions of folder and its subfolders and files using command line

If you want to change permissions of folder or directories to 755 and either leave the files alone or set them to 644. You can use the find command. For example: To change all the directories to 755 (drwxr-xr-x): To change all the files to 644 (-rw-r–r–): YouTube channel: https://www.youtube.com/@trainbrain007

How to change permissions of folder and its subfolders and files using command line Read More »

mysql Access denied for ‘root’ With All Privileges

This tutorial shows you, how to solve mysql Access denied for ‘root’ With All Privileges First, Identify the user you are logged in as: select user(); select current_user(); The result for the first command is what you attempted to login as, the second is what you actually connected as. Confirm that you are logged in as root@localhost in mysql. Grant_priv to root@localhost. Here is how you can check. You can see that the Grant_priv is set to N for root@localhost. This needs to be Y. Below is how to fixed this: Now you can continue your project. the problem mysql Access denied for ‘root’ With All Privileges solved. Good Luck!! YouTube channel for video tutorial: https://www.youtube.com/@trainbrain007

mysql Access denied for ‘root’ With All Privileges Read More »

How to move all files and folders from one directory to another directory in Linux

Execute this command in your Linux terminal (Change the directory path): This command will move all the files and folders from directory1 folder to directory2 folder. To move all files, but not folders: If you are interested in moving all files (but not folders) from directory1 folder to directory2 folder, use this command To move only files from the directory1 folders, but not from sub-folders: If you want to move all files from the directory1 folder, but not any files within folders in the directory1 folder, use this command: here, -maxdepth option specifies how deep find should try, 1 means, only the directory specified in the find command. You can try using 2, 3 also to test.

How to move all files and folders from one directory to another directory in Linux Read More »

How to Setup SSH Key on CentOS 7

Secure Shell (SSH) is an encrypted key used by Linux users to connect to remote servers. Normally, two ways users can access to their servers – password based authentication or public key based authentication. Public key based authentication is highly recommended, as a safer alternative to passwords authentication. Here I will show you the steps how to generate and setup SSH key on CentOS 7. I also show you how to connect remote server using ssh key and How to disable password authentication. If the remote server already has SSH, the command shows you which version is running. Currently, my version is OpenSSH_7.4p1. We will create SSH Key on local machine. Here I will show how to create SSH key on Windows machine and how to create SSH key on Linux machine. Creating SSH key on Windows machine (Windows based user) I am using putty key generator for creating ssh key. (You can download puttygen from this link: https://www.puttygen.com/download-putty) Open the software Putty key generator and click Generate button. Move your cursor continually from various angle till you get the key. Once you get the key, go to Key passphrase and give some number. (Here I use 123456). Now click Save public key and again save private key on your local directory. Done! Creating SSH key on CentOS (Linux based user) Step 1: Generate SSH Key 1. I going to create 2048-bit RSA key pair using the command: If you want to tighten up more security, you can create a 4096-bit key by adding the -b 4096 flag: 2. After previous command, you should see something like that: 3. Save the file in suggested directory, press Enter. Otherwise, you can specify another location. 4. Next, use some number for passphrase: (Creating a passphrase isn’t mandatory, but it is highly advisable.) 5. Finally, the output ends by providing the following information: Now, you need to add public key to the remote CentOS server. Step 2: Copy Public Key to CentOS Server You can copy the public SSH key on the remote server using several different methods: The easiest and fastest method is ssh-copy-id. If the option is available, I recommend you to use it. Otherwise, try other method. Copy Public Key Using ssh-copy-id 1. Use following command, specifying the SSH user account, and the IP address of the remote server: If it is the first time you accessing that remote server from your local machine you will receive the following output: 2. Confirm the connection – type yes and press Enter. 3. Once the id_rsa.pub key creates on the local machine, it will ask you to provide the password for the remote account. Type in the password and press Enter. 4. Once the connection has been established, the public key adds on the remote server. This is done by copying the ~/.ssh/id_rsa.pub file to the remote server’s ~/.ssh directory. You can locate it under the name authorized_keys. 5. Finally, the output tells you the number of keys added, and give you instructions on what to do next: Copy Public Key Using Secure Copy 1. First, setup an SSH connection with the remote user: 2. Next, create the ~/.ssh directory as well as the authorized_keys file: 3. Use chmod command to change the file permission: chmod 700 makes the file executable, while chmod 600 allows the user to read and write the file. 4. Now, open a new terminal session, on the local machine. 5. Copy the content from id_rsa.pub (the SSH public key) to the previously created authorized_keys file on the remote server by typing the command: This way, the public key has been safely stored on the remote account. Copy Public Key Manually  1. This way you can manually add the public SSH key to the remote server, first need displays the key data from the ~/.ssh/id_rsa.pub file: 2. As the following image, the key starts with ssh-rsa and ends with the username of the local computer and hostname of the remote server: 3. Copy the content of the file. 4. Now, connect to the remote server where you wish to copy the public key. Use the following command to connect with the remote server: 5. Create a ~/.ssh directory and authorized_keys file on the remote CentOS server by following command: 6. Change the file permission: 7. Next, open the authorized_keys file with an editor. Here I open it with Nano command, type: 8. Paste the public key, you copied in step 2, in a new line in (under the existing content). 9. Save the file (for nano Ctrl+X, Y and press enter to save and close the file). 10. Finally, login to remote server to verify that everything is setup perfectly. Step 3: Using SSH Keys connect to Remote Server Once you have finished the previous steps (creating an RSA Key Pair and copying the Public Key to the CentOS remote server), now you will be able to connect to the remote server without typing the password for the remote account. All you need to do by following command: If you didn’t specify a passphrase while creating the SSH key pair, you will automatically log in the remote server. Otherwise, type in the passphrase you supplied in the initial steps and press Enter. Once it confirms the key automatically, it will open a new session for direct communicate with the remote server. Step 4: How to Disable Password Authentication It is important to Disable Password Authentication for remote Linux server, it still has a password authentication system running on the remote server. Password Authentication may increase the risk of brute force attack. Password authentication should disable by following steps: [Note: I prefer you to follow these steps through a non-root user account with sudo privileges, as an additional safety.] 1. Using the SSH key, log into the remote CentOS server which has administrative privileges: 2. Next, open the SSH daemon configuration file using a text editor of your choice: 3. Look for the following line in the file: 4. Copy the line and give # in front of (#PasswordAuthentication yes) paste the line bellow the line and change the yes value to no: 5. Save the ssh file and exit the text editor. 6. To enable the changes, restart the sshd service using the command: 7. Verify the SSH connection to the server is still functioning correctly.

How to Setup SSH Key on CentOS 7 Read More »

Scroll to Top