How I make my Ubuntu 16.04 boot 34 seconds faster?

I recently thought about the booting speed of my Ubuntu. Below is what I did step by step.

At first, I checked the boot time with

I got something around 1 min 19.281s.

So, I did

systemd-analyze blame

I checked the list and thought about removing mysql and postgres. After removing both of them completely I got around 30 seconds faster booting.

Not only this, I edited the grub configuration. Β I removed the plymouth boot screen and switched to basic command line interface for both grub boot menu and booting progress.

Also, you can enable the driver profiling. Restart and remove the driver profiling.


sudo vim /etc/default/grub

Check this file it is pretty simple. If you want some more explanation comment below. I will update this later.

Note: Don’t forget to run

sudo update-grub2

after you edit the /etc/default/grub file.

Thats all for today. Thanks.

Using cmus, a command line music player


cmus is a command line music player.

It is very easy to use. If you have some experience with vim, that would be great.

Best way to learn using cmus is :

$ man cmus-tutorial


Everything is there.


Userful keys:

v – stop playback

b – next track

z – previous track

c – pause playback

s – toggle shuffle

m – switch between artist/album/all playlist

x – restart

/ – searching like in vim

– reduce 10% volume

+ – increase 10% volume




People I would like to thank in my Life. :) Except FAMILY

NOTICE: OrderΒ  of name doesn’t meant someone is preferred over other.

Rupesh Singh

Sumeet Sharma

Sonu Vaai – Awesome Chat Maker πŸ™‚ – Said “Jey Himmat Nahi Harni Chaiye, Saali Jindagi Main Jo Ho Jaye πŸ˜€ ” When I told him that what to do there are some problems in my life πŸ™‚

Aama from Dhunche: Helped her when she fell from cliff πŸ™‚ Taught me the value of life of a wife to a husband πŸ™‚ Long story if you are interested mail me πŸ™‚

Driver who took me to dhunche πŸ™‚

Problem Learning Rails

#Help #asap #cucumber #bdd
Hello there. I am learning BDD with Cucumber. I have following problem. If someone can help that would be great.

Feature: Show blog list
As a blog visitor
I can see list of posted blogs

Scenario: Show blog list
Given there are already 4 posts
And I am on the blog homepage
Then I can see list of 4 posted blogs

Then /^I can see list of (\d) posted blogs$/ do |count|
page.should have_selector (“table#posts-list>tr:eq(#{count})”)

Given(/^I am on the blog homepage$/) do

And /^there are already (\d) posts$/ do |count|
count.to_i.times do |n|
Post.create!({ :title => “Title #{n}”, :content =>
“Content #{n}”, :post_time => })


Listing Posts

Title Content Post time


Now when I run
cucumber features/show_blog_post.feature

I get error like below:

Using the default profile…
Feature: Show blog list
As a blog visitor
I can see list of posted blogs

Scenario: Show blog list # features/show_blog_list.feature:5
Given there are already 4 posts # features/step_definitions/common_steps.rb:5
And I am on the blog homepage # features/step_definitions/common_steps.rb:1
DEPRECATION: Using `should` from rspec-expectations’ old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` with `config.expect_with(:rspec) { |c| c.syntax = :should }` instead. Called from /home/bishisht/learn/bdd/blog/features/step_definitions/show_blog_list_steps.rb:2:in `block in ‘.
Then I can see list of 4 posted blogs # features/step_definitions/show_blog_list_steps.rb:1
expected to find css “table#posts-list>tr:eq(4)” but there were no matches (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/show_blog_list_steps.rb:2:in `/^I can see list of (\d) posted blogs$/’
features/show_blog_list.feature:8:in `Then I can see list of 4 posted blogs’

Failing Scenarios:
cucumber features/show_blog_list.feature:5 # Scenario: Show blog list

1 scenario (1 failed)
3 steps (1 failed, 2 passed)