About this ebook
Read more from Davide Gatti
Mastering Photoshop Made Easy Rating: 0 out of 5 stars0 ratingsPope Francis: A Life of Faith, Leadership, and Legacy Rating: 0 out of 5 stars0 ratingsAmplify Your Art: The Ultimate Guide to Mastering Artist Channels Rating: 0 out of 5 stars0 ratingsThe Crimson Cycle: A Dracula Chronicle Rating: 0 out of 5 stars0 ratingsThe Echoed World: A Journey Through Memory and Reality Rating: 0 out of 5 stars0 ratings
Related to Vps Toolkit
Related ebooks
Instant Debian - Build a Web Server Rating: 0 out of 5 stars0 ratingsPractical Linux Security Cookbook Rating: 0 out of 5 stars0 ratingsWebmin Administrator's Cookbook Rating: 0 out of 5 stars0 ratingsEasy Linux For Beginners Rating: 2 out of 5 stars2/5Squid Proxy Server 3.1 Beginner's Guide Rating: 3 out of 5 stars3/5I am Linux : Being A Ultra Linux User Rating: 0 out of 5 stars0 ratingsLinux System Administrator Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsTroubleshooting CentOS Rating: 0 out of 5 stars0 ratingsWorking with Linux – Quick Hacks for the Command Line Rating: 5 out of 5 stars5/5Mastering Linux: From Basics to Expert Proficiency Rating: 0 out of 5 stars0 ratingsMastering NGINX - Second Edition Rating: 0 out of 5 stars0 ratingsNagios Core Administration Cookbook Rating: 5 out of 5 stars5/5Learning zANTI2 for Android Pentesting Rating: 0 out of 5 stars0 ratingsSELinux System Administration Rating: 0 out of 5 stars0 ratingsLinux Networking Cookbook Rating: 0 out of 5 stars0 ratingsCentOS Stream 9 Essentials: Learn to Install, Administer, and Deploy CentOS Stream 9 Systems Rating: 0 out of 5 stars0 ratingsTroubleshooting Ubuntu Server Rating: 0 out of 5 stars0 ratingsLinux: A complete guide to Linux command line for beginners, and how to get started with the Linux operating system! Rating: 0 out of 5 stars0 ratingsEmbedded Linux Projects Using Yocto Project Cookbook Rating: 5 out of 5 stars5/5Linux Interview Questions: Open Source Operating Systems Interview Questions, Answers, and Explanations Rating: 5 out of 5 stars5/5Ubuntu 22.04 Essentials: A Guide to Ubuntu 22.04 Desktop and Server Editions Rating: 0 out of 5 stars0 ratingsThe Ubuntu Desktop Beginner's Guide: Second Edition Rating: 5 out of 5 stars5/5Nginx HTTP Server - Third Edition Rating: 0 out of 5 stars0 ratingsCentOS: The Commercial Grade Linux Desktop Rating: 0 out of 5 stars0 ratingsCodeIgniter Web Application Blueprints Rating: 0 out of 5 stars0 ratingsSELinux Cookbook Rating: 0 out of 5 stars0 ratingsProfessional Guide to Linux System Programming: Understanding and Implementing Advanced Techniques Rating: 0 out of 5 stars0 ratingsCompTIA Linux+ Practice Tests: Exam XK0-004 Rating: 0 out of 5 stars0 ratingsLinux Services Deployment Rating: 0 out of 5 stars0 ratingsGitLab Cookbook Rating: 0 out of 5 stars0 ratings
Computers For You
The ChatGPT Millionaire Handbook: Make Money Online With the Power of AI Technology Rating: 4 out of 5 stars4/5Elon Musk Rating: 4 out of 5 stars4/5Mastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 4 out of 5 stars4/5UX/UI Design Playbook Rating: 4 out of 5 stars4/5Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5Procreate for Beginners: Introduction to Procreate for Drawing and Illustrating on the iPad Rating: 5 out of 5 stars5/5Becoming a Data Head: How to Think, Speak, and Understand Data Science, Statistics, and Machine Learning Rating: 5 out of 5 stars5/5Computer Science I Essentials Rating: 5 out of 5 stars5/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5The Innovators: How a Group of Hackers, Geniuses, and Geeks Created the Digital Revolution Rating: 4 out of 5 stars4/5The Self-Taught Computer Scientist: The Beginner's Guide to Data Structures & Algorithms Rating: 0 out of 5 stars0 ratingsStorytelling with Data: Let's Practice! Rating: 4 out of 5 stars4/5CompTIA Security+ Get Certified Get Ahead: SY0-701 Study Guide Rating: 5 out of 5 stars5/5Data Analytics for Beginners: Introduction to Data Analytics Rating: 4 out of 5 stars4/5The Data Warehouse Toolkit: The Definitive Guide to Dimensional Modeling Rating: 0 out of 5 stars0 ratingsMicrosoft Azure For Dummies Rating: 0 out of 5 stars0 ratingsDeep Search: How to Explore the Internet More Effectively Rating: 5 out of 5 stars5/5The Musician's Ai Handbook: Enhance And Promote Your Music With Artificial Intelligence Rating: 5 out of 5 stars5/5A Quickstart Guide To Becoming A ChatGPT Millionaire: The ChatGPT Book For Beginners (Lazy Money Series®) Rating: 4 out of 5 stars4/5Fundamentals of Programming: Using Python Rating: 5 out of 5 stars5/5Technical Writing For Dummies Rating: 0 out of 5 stars0 ratingsCompTIA IT Fundamentals (ITF+) Study Guide: Exam FC0-U61 Rating: 0 out of 5 stars0 ratingsThe Professional Voiceover Handbook: Voiceover training, #1 Rating: 5 out of 5 stars5/5Learn Typing Rating: 0 out of 5 stars0 ratings
Reviews for Vps Toolkit
0 ratings0 reviews
Book preview
Vps Toolkit - Davide Gatti
VPS TOOLKIT
Ubuntu Server LTS 2014 Edidion
VPS TOOLKIT
Ubuntu Server LTS 2014 Edidion
Edited by Davide Gatti
deewhy_logo.jpgCopyright © 2014 by Davide Gatti
All rights reserved. This book or any portion thereof may not be reproduced or used in any manner whatsoever without the express written permission of the publisher and/or the author except for the use of brief quotations in a book review or scholarly journal.
First Printing: 2014
ISBN 978-1-326-07963-5
DeeWHY
London, United Kingdom
www.deewhy.org
Ordering:
Special discounts are available on quantity purchases by corporations, associations, educators, and others. For details, contact the publisher at the above listed address.
http://deewhy.org/contacts/
e-mail: [email protected]
Dedication
Ciao amico mio.
Sempre sul cuore.
Forewords
This guide is intended for webmasters who wish to overcome the limitations of traditional hosting space. The use of a Virtual Private Server allows to increase productivity in terms of time, total control of the filesystem and often let lower management costs. The VPS also allows to use all those applications which require server-side rooting control.
Particular attention will be dealt with the part relating to security, developing the critical settings at the same time in every steps of the server configuration.
All the arguments will be treated with examples and commands using Linux Ubuntu Server 14.04.1 LTS, but from the logical point of view the concepts may be completely withheld in any recent Linux Server OS in a simple and fast way.
Introduction
What’s a VPS ?
A Virtual Private Server is Virtual Machine that permit to get over the classic commercial hosting space because it allows full control of on the server side - it’s often used for development and testing purposing too.
When a pure VPS is ready to be accessed online after the purchase from the service-provider or after a freshly re-installation, it comes with some features and basically IP address to be reached to connect it on, so as a minimum we should have:
- Root access credentials;
- IPv4 address and sometime IPv6 address / VPS Host Name;
plus some kind of Online Keyboard Replication to simulate the fact the user is virtually directly present onto the remote machine; that could be done throw a KVM server for keyboard remote simulation or a Remote Control Server i.e. RealVNC, TeamViewer or other in case of a GUI interface is installed (not so often on a VPS).
:: 1 :: Preliminary Steps
Remote connection to the new VPS
So let’s connect to the VPS with an SSH Client. In a Windows OS environment in most cases is necessary to download the SSH Client form the external i.e. PuTTY, using LINUX – MacOSX just run the Terminal and run the command ‘ssh’ with the appropriate options. The standard port to connect throw is the number 22, we can use the VPS IP address for now but if there’s a DNS Server somewhere that can resolve the VPS Host Name (and there’s it in almost all cases) or if we’ve already imposed the right redirection for a domain name, it’s possible to use that as well.
from the Terminal:
ssh 192.168.1.11 or ssh 192.168.1.11 –l root (to directly put the UserID / fit the same using PuTTY for Windows)
:: pay attention to the fact, when prompting the password nothing will be showed for security reasons ::
Starting the VPS configuration - Preliminary steps
The first thing to do when accessing a new VPS is check the network configuration, to do it type:
ifconfig
and annotate in particular what network adapters are configured and associated to the public IP addresses. Then make the OS up to date:
apt-get update && apt-get upgrade
confirming ‘Yes’ :: literally, case sensitive :: when asked to proceed.
On a new server, there are a few configuration steps that you should take early on as part of the basic setup. This will increase the security, usability and will gives a solid foundation for subsequent actions.
Root Login: clarifications
To log into the server initially, you will need to know your server's public IP address and the password for