Showing posts with label virtual_server. Show all posts
Showing posts with label virtual_server. Show all posts
Prime Techie

How to install NGINX web server in oracle Linux cloud instance?

 

Step 1:

Login to oracle Linux instance using SSH client.

Step 2:

Enter the NGINX installation command as follows.

> sudo yum install nginx


If you face 'No package nginx available' error, we need to install the 'EPEL' repository.

To install the EPEL repo, use the below command.

> sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm


We can install NGINX server once EPEL is installed .

Enter the command  'sudo yum install nginx' again.


Wait until the installation is complete.

Step 3:

We need to start the NGINX server once the installation is complete.

Also, we need to make NGINX startup as a service.So that we don't need to start the NGINX server manually after reboot.

Command to make the NGINX as a service is as follows.

> sudo systemctl enable --now nginx.service


Step 4:

Verify the NGINX server status using the following command.

> sudo systemctl status nginx


Step 5:

Add the HTTP firewall for port 80 using the below command.

> sudo firewall-cmd --add-service=http --permanent

Step 6:

Reload the firewall configuration using the following command.

> sudo firewall-cmd --reload



Step 7:

Go back to browser and enter the cloud linux public IP address in URL and press enter.

You can see the default HTML index page of the NGINX web server.

You will access the web server using the internet through public IP.



Please click and subscribe to the below channel to see this tutorial in video format.

https://www.youtube.com/channel/UCtzdDJIXhQX6v3-8iXCJWQw?sub_confirmation=1





Read More
Prime Techie

How to create Linux instance with 24 GB RAM 4 CPU using Oracle cloud server?

This tutorial will see how to create an oracle cloud Linux compute instance with 24 GB RAM and 4 CPUs.



We will not use Putty keys to create and connect the Linux instance in this method.


We will be using a public key /Private key generated by Oracle.


Step 1. 

Log in to your Oracle Cloud account and navigate to compute instance menu.




Step 2.

Click the Edit option in the Image and Shape section.




Step 3.

You can see 'AMD' shape is preselected.

Click on Change Shape.



Select 'AMPERE ARM-Based processor.'

Click on the Shape name and choose the required CPU and memory.

After finishing, click the 'select shape' button.


Step 4:

In the Add SSH keys part, select the 'Generate a key pair for me' option.




Save private and public keys.


Click the create button once keys are saved in the drive.


Wait for a few seconds until the instance status shows as RUNNING.


Verify the memory and CPU count in Shape configuration.



Step 5:


Download and install Mobaxterm SSH client from below url.

https://mobaxterm.mobatek.net/download.html


Step 6:

Open the Mobaxterm SSH client and click the Sessions menu in top left corner.



Step 7:

Input the IP address in the remote host text box.

Then click advanced SSH settings.

Click the 'Use private key' checkbox and browse the private key we saved while creating the Linux instance. Private Key name will be ending with .key extension.



Then click OK.

Step 8:

Enter the username as opc.



That's it. You can see Linux cloud instance is connected with the SSH client.



Now oracle Linux GUI is connected remotely.

Please click and subscribe to the below channel to see this tutorial in video format.

https://www.youtube.com/channel/UCtzdDJIXhQX6v3-8iXCJWQw?sub_confirmation=1


Please post your questions in the comment section.


Read More
Prime Techie

How to access oracle Linux GUI through TigerVNC/TightVNC viewer

In this tutorial, We will see how to access the Oracle cloud Linux GUI through TightVNC Server.

We have a private key(.ppk) created during the Putty key generation process.


We need to make an SSH connection between our local PC and remote Linux server.


To create an SSH connection, we need to convert the .ppk key to the OpenSSH key.


If we use the private key directly, we will get the 'Invalid format' error.


Follow the below steps to convert the PPK to the OpenSSH key.


Open the PUTTY Key generator and load the private key.







Enter the passphrase.



Go to conversions and click 'Export OpenSSH key.'



Save the key in the drive.



I have kept the key in D: Drive.


If we keep the key in D: drive, we will get the "Permissions for the key is too open" error.





That's because D: drive is accessible to everyone. So, we are getting this error.

So, copy the file to C:/users/<our user name> folder.



Now Open the command prompt and enter the following command.


> C:\Users\HP>ssh -L 5901:localhost:5901 opc@<remote_linux_server_ip> -i VNC_GUI_KEY



Enter the passphrase we have created during the Putty key generator process.


Linux server is connected now.


We need to install the TightVNC viewer desktop application for windows. Install it from the below link.


https://www.tightvnc.com/download.php


Open TightVNC application after the installation.



Enter the URL as 'localhost:5901'.

While installing the VNC server in Linux, we have created the password. 

Use that password. (Refer to the previous post for this)



Now oracle Linux GUI is connected remotely.



Please click and subscribe to the below channel to see this tutorial in video format.




Read More
Prime Techie

How to Install Tiger VNC server GUI in oracle cloud Linux?

 

This tutorial will see how to install a Graphical user interface for Linux and access the cloud Linux from our PC.

Connect the Linux instance using the PUTTY server and login into the terminal.

After login, We will install the required software using the Linux terminal.

First, We need to install “Server With GUI” using sudo command.

> sudo yum groups install “Server With GUI”




It might take some time to install all required packages.

We need to install tigervnc-server using sudo command once “Server With GUI” installation is completed.

>sudo yum install tigervnc-server


We need to start the vncserver after the installation is completed.

>vncserver


We need to set the password for vncserver. We will use this password to login using the vnc client on our PC.

 For the view-only password prompt, select ‘No’.

 Now vnc server is ready. In our following tutorial, we will see how to connect to this vnc server using the VNC client.

Please click and subscribe to the below channel to see this tutorial in video format.



Read More
Prime Techie

How to create Linux instance using Oracle cloud server?

In this tutorial, We will see how to create a Linux instance using oracle free cloud infrastructure.


First, we need to create a public key and private keys using Putty key generator. Public key is used while creating the Linux instance.


Private key is used to connect the Linux instance using any SSH client.





Install Putty keygen using this link.  https://www.puttygen.com/download-putty


Step 1: Open Putty KeyGen and click generate button.





Step 2: Once the key generated, copy the key to a text file and save the text file as  .pub extension. This .pub ( Public key) is used while creating the Linux instance.





Step 3: Next, we need to save the private key as below. Enter the key phrase and confirm the key phrase again. Note down this key phrase somewhere. Later this key phrase is used along with private key (.ppk) to access the linux instance using any SSH client.





Step 4: Log in to your oracle cloud instance. Oracle cloud dashboard will look like below. Click the 'Create VM instance' menu.





Step 5: Below screen will be loaded after clicking 'Create VM instance'.




Step 6: We need to use the public key we created in Step 2. Click the create button after loading the public key.





Step 7:  Once the Linux instance created, verify whether it's running as below. It may take a few minutes. Copy the public IP and use it to connect to the SSH client.




Step 8: Open the Putty SSH client. In the Host Name box, Paste the copied IP address in Step 7.




Step 9: Load the private key created in Step 3 using the below option.




Step 10: Click the Open button after the above step. You can see the below screen. Click Yes in the alert.




Step 11:  Use the key phrase we noted in Step 3 and click enter.




That's all we need to do. You will be connected to Linux terminal.


Please click and subscribe to the below channel to see this tutorial in video format.


https://www.youtube.com/channel/UCtzdDJIXhQX6v3-8iXCJWQw?sub_confirmation=1


Click this link for youtube video tutorial.




Please post your questions in the comment section.


Read More