Posts by ServerOk

Change MySQL root password in Virtualmin

virtualmin mysql password

To change MySQL root password in Virualmin server, login to virtualmin, navigate to

Click on “Change Administration Password” button. On next page, it will show current MySQL root password and provide option to change MySQL root password. See Virtualmin […]

Read More…


The setfacl utility sets Access Control Lists (ACLs) of files and directories. To install setfacl on Ubuntu/Debian, run

Here is an example, where we create 2 users, one user will be given access to folder inside another users home directory.

in setfacl, -m option is used to modify. u specify user, if you […]

Read More…


cryptsetup is used to encypt disk on Linux. I used TrueCrypt before this. After TrueCrypt stopped the project, i started using cryptsetup for my encrypted drive. To mount an encrypted disk, run


See mount […]

Read More…

Elasticsearch failed to start on CentOS 7

After installing elasticsearch on CentOS 7, it failed to start with error

On checking journalctl, i get

To fix this, edit file

At end of the file, add

Now elasticsearch will start

Verify service is running with

To confirm elasticsearch is running, use command

See elasticsearch […]

Read More…

Install dnsmasq on Ubuntu

dnsmasq is a very powerful tool that can provide basic dns services/caching, act as dhcp server and also as tftp server. To install dnsmasq, run

When you start dnsmasq, if it complain about port 53 alreay in use

This is because some other service is running on port 53. To find what service […]

Read More…

Maildev – Fake SMTP server for development

maildev fake smtp server

maildev is a fake SMTP server + interface to read the mail. It is useful for web developers during development stage where they don’t want email sents to read email address. To run maildev using docker, run

Now you will be able to access web interface to read emails on port 1080

Fake […]

Read More…


oneinstack is a free hosting management software available at Documentation available at To find MySQL root password, run

Nginx configuration files

Restart Nginx

See Hosting Control Panels […]

Read More…