Saturday, July 1, 2017

How to set up your user account to Hibernate on critical battery level in Ubuntu

In this post I will show how to hibernate Ubuntu on critical battery level.
In the previous posts I had shown How to...
Set critical battery percentage using the command in terminal

gsettings get org.gnome.settings-daemon.plugins.power percentage-critical

To modify this value, set to 20% by using the below command in the terminal

How can I hibernate on Ubuntu 16.04?

In this post I will show how to Enable Hibernate in Ubuntu.

In the previous posts I had shown How to...
OutPut:

Cannot Start Omnisharp [ERROR] Error: spawn cmd ENOENT VS Code

In the previous posts I had shown How to...

As the title says Cannot Start Omnisharp [ERROR] Error: spawn cmd ENOENT VS Code in Windows 10, follow the below steps.

Press WindowsKey + x and select System as shown below

Sunday, June 11, 2017

How to create cron job in ubuntu

In this POST I will show how to create a cron job in Ubuntu. For this we will use python script to print current date and time in log file.

In the previous posts I had shown How to....
OutPut:

2017-06-10 21:35:01.655477
2017-06-10 21:36:01.686346
2017-06-10 21:37:01.711900
2017-06-10 21:38:01.740353
2017-06-10 21:39:01.767497
2017-06-10 21:40:01.792622
2017-06-10 21:41:01.823149

Saturday, June 10, 2017

How To Install WordPress, Apache, MySQL and PHP on Ubuntu 16.04

In this post I will show, how to install WordPress, Apache, MySQL and PHP on Ubuntu 16.04.

Install Apache:

When you’re done installing Apache2, the below commands allow you to start it up

sudo apt-get update
sudo apt-get install apache2

sudo systemctl start apache2
         OR
sudo service apache2 start

Failed to start mongod.service unit mongod.service not found. ubuntu 16.04

In this post I will show you how to resolve Failed to start mongod.service unit mongod.service not found.

Previously I had shown how to install MongoDB on Ubuntu & Windows

First Open Terminal and enter the below command.

sudo vim /etc/systemd/system/mongodb.service
Now it should look as shown below.























How to Install MongoDB on Ubuntu 16.04

In this post I will show how to Install MongoDB on Ubuntu 16.04.
Previously I had shown how to install MongoDB on Windows

Execute the following commands in the terminal one by one