Initial Ubuntu Server Setup for Beginners

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Matei Cezar

I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

13 Responses

  1. tal says:

    Thank you, very helpful. Just a question: you mentioned “Staring with Ubuntu 16.10 release, the default DNS resolver is now controlled by systemd-resolved service” and then you stop and disabled it.

    So how the system resolve dns queries? where can I find which dns is in use?


    • Ravi Saive says:


      Please read this line: “Running system-resolved caching DNS daemon on a production server can be dangerous due to the numerous number of DDOS attacks performed by malicious hackers against unsecured DNS servers.”

      So it’s depends on you whether you want to active or not..

  2. brent says:

    Ok having issues here following along and everything goes ok until the “cat /etc/hostname” = No such file or directory, If I continue i can get the public key generated but can not copy to remote, it says no such file. I am stopping here until I find out what is going on. Needing help.

    • Ravi Saive says:


      Have you set your Ubuntu hostname using following command?

      $ sudo hostnamectl set-hostname tecmint

      Also what output you getting when verifying hostname using these commands?

      $ hostname
      $ hostname -s

      How you copying the SSH key to remote server? have you used following command?

      $ ssh-copy-id [email protected]_server
      • Brent Norris says:

        I will try this later this evening but a couple of questions on the $ssh-copy-id [email protected]_server is the remote_server supposed to be the ip address of the remote server or just remote_server?

        I am new to the Linux.

      • Brent Norris says:

        Ok yes i have set the host name as brentcpr-server

        $ hostname  
        $ hostname -s 

        output is brentcpr-server.

        When I to the ssh-copy-id [email protected]_server it says ERROR: failed to copy ID file /home/bjn/.pub : No such file to install the contents of /home/bjn/.pub anyway look at the -f option.

        • Ravi Saive says:


          It seems the path is not correct, if you could try again generating SSH Key Pair using following commands.

          $ su - ubuntu_user
          $ ssh-keygen -t RSA -b 2048
          $ ssh-copy-id [email protected]_server
          • Brent Norris says:

            Thank you for your help, I was finally able to get past that part, I think, not on the part that says.

            $ cat ~/.ssh/

            It says no such file or directory

          • Ravi Saive says:


            That’s really great to hear, that you solved yourself…:)

          • Brent Norris says:

            Also after that,

            $ sudo ufw status verbose
            mine shows as
            TO                                  Action                                  From
            2345/tcp                      allow                                      anywhere
            80                                   allow                                     anywhere
            Anywhere                     allow                                      25,443/tcp
            2345/tcp (v6)               allow                                      Anywhere   (v6)
            80  (v6)                           allow                                      Anywhere (v6)
            Anywhere  (v6)            allow                                       25,443/tcp    (v6)

            I have went on to follow the rest of the instructions listed and will stop here, until I can get the other problem figured out and this one. Again thanks for any and all the help.

          • Ravi Saive says:


            UFW is in active state, means running fine..

  3. xABBAAA says:

    The very good thing, Thanks to the Great stuff.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.