Archives for Linux - Page 10
How to secure File Sharing (Samba) on Ubuntu/Linux?
If you have multiple servers connecting to internet, these servers use Samba to share file with each other. Normally, you will Samba server for this purpose. After you install...
Ubuntu: How to get the hard disk serial number?
Just imagine, you manage a server remotely. The server has many disks, one day one of the disk could be failure. How can you tell the onsite engineer which...
How to check if my SSL certificate is SHA2 ?
Simply run this command, replace with your actual certificate file: $ openssl x509 -noout -text -in Certificate: Data: Version: 3 (0x2) Serial Number: .. Signature Algorithm: sha256WithRSAEncryption...
How to check if my CSR is SHA2 ?
It’s simple, just run this command $ openssl req -noout -text -in | grep 'Signature Algorithm' Signature Algorithm: sha256WithRSAEncryption If the value is sha256WithRSAEncryption, the certificate is using...
Port forwarding for windows filesharing & samba
You need to setup port forwarding for 3 ports : 135-139 for windows , 445 for samba in Linux.
How to set/check my DNS setting on Debian/Ubuntu Linux System?
The DNS server setting for Ubuntu is located on / $ cat / # Dynamic (5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE...
Apache: How to force download a file using .htaccess ?
I have some videos that i want other people to download it instead of playing it on the browsers. First, i just try to upload that file to my...
How to create SSL Certificate Request – CSR ?
Login to your Ubuntu, and run the following command: openssl req -nodes -newkey rsa:2048 -sha256 -keyout -out It then will ask you some information for the certificate,...
ipvsadm – load balancer – it changes the weight automatically
Do you have this problem ? – you made the changes in / , – restart ipvsadm : / restart you see the changes : ipvsadm -L But after...
Mysql server – How to disable replication on slave ?
Sometimes, you want to remove the replication , it could be because the replication no longer works, or you don’t want to replicate. Here are some commands that you...