Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Google Cloud

CentOS 7 Server Setup on Google Cloud Platform

by Cloudbooklet
5 years ago
in Google Cloud, Compute Engine
Centos 7 Server Setup On Google Cloud Platform
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

CentOS 7 Server Setup on Google Cloud Platform. When you first configure your VM Instance in Google Compute Engine, there are few steps to be done as a basic setup. Not using CentOS 7? Choose a different OS: ADVERTISEMENT Ubuntu 18.04 LTS You might also like How to Install Git on Linux 3 months ago […]

ADVERTISEMENT

CentOS 7 Server Setup on Google Cloud Platform.

When you first configure your VM Instance in Google Compute Engine, there are few steps to be done as a basic setup.

Not using CentOS 7? Choose a different OS:

ADVERTISEMENT

Ubuntu 18.04 LTS

CentOS 7

Debian 9

ADVERTISEMENT

This guide demonstrates how to manually configure your new CentOS 7 server in Compute Engine.

You might also like

How To Setup Ssh Keys On Ubuntu

How to Setup SSH Keys on Ubuntu 20.04

4 months ago
Draggan Ai Editing Tool Install And Use Draggan Photo Editor

DragGAN AI Editing Tool Install and Use DragGAN Photo Editor

4 months ago

Prerequisites

  1. Your Compute Engine Instance running.
  2. For setting up Compute Engine, see the Setting up Compute Engine Instance with CentOS 7.

Server Setup

Once your server is up and running, SSH into your VM Instance and perform the following steps.

ADVERTISEMENT

Once you create a VM Instance in Google Cloud a new user is created automatically by Google, so you need not to create a new user.

Update Packages

To begin, ensure your CentOS 7 system is up-to-date by typing the command below.

ADVERTISEMENT
sudo yum update

Install nano text editor using the command below.

sudo yum install nano

Setup Password

It’s recommended to setup a password for the user you currently logged in. This is because if you have locked out of your SSH or cannot access SSH, you need to use the serial port console to access your instance and recover your SSH.

ADVERTISEMENT

To access your instance your Serial Port Console you need to enter the username and password to log in. So let’s set up a password for your user with the following command.

sudo passwd

You will be prompted to enter password and confirm your password. Once done you can set up basic firewall.

Basic Firewall setup

Ubuntu can use the Uncomplicated Fire Wall (UFW) to allow connections to certain services. You can see all available applications with the following command.

Install UFW in CentOS 7

sudo yum install epel-release
sudo yum install ufw

Type the command below to allow all outgoing and deny or incoming requests.

sudo ufw default deny incoming
sudo ufw default allow outgoing

We need to make the firewall to allow SSH connections so that we can access the instance by SSH.

sudo ufw allow ssh

If you are running a web server, you should enable the http and https ports.

sudo ufw allow http
sudo ufw allow https

Once you have whitelisted all connections for your instance you can enable the firewall.

sudo ufw enable

Type y followed by Enter to enable UFW.

You can view the allowed connections with the following command.

sudo ufw status

Now Firewall is enabled and blocks all connections except SSH. So, if you install and configure additional services you need to allow connections to accept traffic.

Set up Fail2Ban

Fail2Ban is a tool which works alongside with Firewall and blocks the offending host for a period of time. It adds the IP Address which shows malicious host to your firewall rules.

sudo yum install fail2ban
sudo systemctl enable fail2ban

Configure Time Zone on Your CentOS 7 Server

You can check the default timezone settings with the below command.

sudo timedatectl

You need to set the correct time zone especially if you are running cron jobs on your CentOS 7 server. To list the available timezones, use the command below.

sudo timedatectl list-timezones

Next, set the time zone using the following command.

sudo timedatectl set-timezone America/Chicago

These are the initial setup to be done on your new CentOS server.

Done! Once this setup is done you install any applications on your CentOS 7 server in Google Cloud.

Tags: CentOSCompute Engine
Share1Tweet1SendShare
Cloudbooklet

Cloudbooklet

Leave a Reply Cancel reply

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

Related Posts

Set Up Deep Learning With Nvidia, Cuda, Cudnn On Ubuntu

How to Set Up Deep Learning with Nvidia, CUDA, cuDNN on Ubuntu 22.04

7 months ago
How To Install Or Upgrade Php 8.2 On Ubuntu 22.04

How to Install or Upgrade PHP 8.2 on Ubuntu 22.04

9 months ago
How To Change Timezone On Ubuntu 22.04

How to Change Timezone on Ubuntu 22.04

1 year ago
How To Install Ansible On Ubuntu 22.04

How to Install Ansible on Ubuntu 22.04

1 year ago

Follow Us

Trending Articles

Lyric Video Maker

7 Best Lyric Video Maker Software for Music Lovers

September 14, 2023

Validator AI: The AI Powered Business Idea Validator

5 Best TikTok Private Account Viewer in 2023

How to Use ChatGPT to Translate Your Website or Blog

Amazon Prime Big Deal Days 2023: Best Deals

5 Best Laptop for Minecraft in 2023: Top Picks for All Budgets

Popular Articles

Remove Objects

Top 10 Remove Object from Photo Tools and Apps Online Free

September 8, 2023

How to Create a Personal AI Assistant with LocalGPT

Notepad++ v8.5.7: What’s New and How to Download It

7 Best Deepswap AI Free Online Tools to Create FaceSwap Videos and Photos

Top 8 Anonymous Email Account Providers to Protect Your Online Identity

TinyLlama: A 1.1B Parameter Language Model Pre-trained on 3 Trillion Tokens

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.