How to install a Debian update manually?

As a best practice, we should keep all the server patch with latest update. This tutorial tells i will demonstrate how to patch your Debian server with the latest updates. You need to use either apt-get command or apt command to apply patches to Debian Linux server.

Step:

i. Connect to your Debian system via SSH. Once you are in the terminal, enter the following commands:-

apt-get update

apt-get update command is used to download package information from all configured sources

Continue reading

How to show line number in vi editor

I believe everyone facing this problem before there is no line number show in the long configuration file. Example: below screenshot, there is an syntax error at line 27 and it will take sometime to identify that particular line.

Did your guys know we can display the line number in vi text editor

Below are the steps:

  1. Press the Esc key if you are currently in insert or append mode.
  2. Press : (the colon). The cursor should reappear at the lower left corner of the screen next to a : prompt.
  3. Enter the following command:

set number

4. A column of sequential line numbers will appear at the left side of the screen. Each line number references the text located directly to the right.

🙂

Mac OS X – WARNING: UNPROTECTED PRIVATE KEY FILE!: “Permissions 0755 for ‘id_rsa.pub’ are too open.”


When i transfer my private key file to my new Mac OS X, i got an error message below:-

If you are getting this error then you probably reset the permissions on your hidden .ssh directory in your user folder.

So, the solution for this is, make that file(id_rsa) readable or writable only for the owner with private key. Below is the command

sudo chmod 600 ~/.ssh/id_rsa

After change the permission, my problem is solved.