[HOW TO] delete password Linux user

Sometimes you need to reset password Linux user, and the question appears: how to delete Linux user password?

The answer is simple.

Firstly all user encrypted passwords are stored in /etc/shadow file. You login as a root user. You type the following command to delete a user password:

passwd --delete user_name
or
passwd -d user_name

Above command will make password empty.

Tiến Phan - R0039

Knowledge is Endless

Sharing for Success

[HOW TO] change font type and font size pantheon terminal elementary OS

I look in the terminal windows in Elementary OS. Font size looks like small, so it makes the eyelids feel less tired.

What is going on? I need to resize of the terminal font.

Finally I found the method to do it, I use below command:

gsettings set org.pantheon.terminal.settings font 'Roboto Mono 12'

And I look over the terminal, wow already changed the font size.

gsettings - GSettings configuration tool
gsettings offers a simple commandline interface to GSettings. It lets you get, set or monitor an individual key for changes.

You should "man gsettings" to get a bit more knowledge about gsettings. It will help you know exactly what are you doing.

Tiến Phan - R0039

Knowledge is Endless

Sharing for Success

[HOW TO] fix HAPROXY Setting tune.ssl.default-dh-param to 1024 by default, if your workload permits it you should set it to at least 2048

Error:

Starting haproxy: [WARNING] 052/161359 (16821) : Setting tune.ssl.default-dh-param to 1024 by default, if your workload permits it you should set it to at least 2048. Please set a value >= 1024 to make this warning disappear.
                                                           [  OK  ]

How to resolve:
Step 1: ssh into serverStep 2: use vi to edit haproxy configuration /etc/haproxy/haproxy.cfgStep 3: In global section, add value: tune.ssl.default-dh-param 2048Step 4: Restart haproxy

Tiến Phan - R0039

Knowledge is Endless
 
Sharing for Success

[HOW TO] validate haproxy configuration

I just changed haproxy.cfg. I want to ensure haproxy.conf is valid before restarting haproxy service.

So I check haproxy manual
$man haproxy

I see paremetter -c -V and -f which validate the syntax.

Finally I use this to validate
haproxy -c -V -f /etc/haproxy/haproxy.cfg

I hope this helps anyone looking to check the synctax haproxy.cfg

Tiến Phan - R0039

Knowledge is Endless

Sharing for Success

[HOW TO] determine the serial number of a computer linux

Q: Hello, Do you want help me get the Laptop's serial number?
A: Easy :D wait me 
Q: Nice!
A: Ping ping!!! please open terminal and run below execute command 
"sudo dmidecode -t system | grep Serial"
Q: Thank you so much guys

Tiến Phan - R0039

Knowledge is Endless

Sharing for Success