Hi Guys, Welcome to Proto Coders Point. In this Article let’s Install ubuntu on windows by using Windows Subsystem for Linux (WSL).
So basically WSL will install the complete Ubuntu Linux Terminal envirnoment into your windows Operation System as a subsystem.
By installing WSL you can access Linux terminal & it’s file system on Windows and develop cross platform application without leaving windows.
Time needed: 2 minutes
Below are the Step to use WSL to Install ubuntu Terminal in Windows.
Windows OS Requirement to install WSL
To use WSL and install ubuntu, you need to first check your system OS specification 1. OS – Windows 10 & above. 2. Wins Build version should be 19041 and higher.
Update Windows
If installed version of Windows is less then 19041 then you need to update Windows, So To update to latest windows version -> In Search box search for Windows Update, open it and Check for Update.
Open command Prompt
Now Open cmd, and make sure you run it as adminstration.
Install Ubuntu on Windows
Now, In cmd prompt, you just need to type below WSL command.
wsl --install
This will Download and Install virtual machine with ubuntu on windows
Restart your Computer
Now, Once ubuntu is been installed in windows, To affect the changed you need to restart your Computer.
Ubuntu setup on windows
Then, After restarting, a ubuntu cmd will get opened automatically, On that window it will say “Installing ubuntu, Please wait for few minutes”. Once it get completed… It will ask you to enter username & password. Now you have successfully installed Ubuntu on Windows using WSL.
Hi Guys, Welcome to Proto Coders Point. This Article is on how to download and install redis on windows, I found out redis windows installer a .msi file by which, in just one click “install redis”.
Video Guide
What is Redis
Redis stands for “Remote Directory Server”, It’s an open source & fastest in-memory data storage CLI + Server, basically we can store data in redis in key-value pair, and is used by many developers to manage database, cache message broker & streaming engine.
When should we use Redis
Most of the time redis is used as an caching layer, As it’s an in-memory DB, That means, It keep the given data in-memory & is much faster if compared with MYSQL or NOSQL (Mongodb) query executions.
Redis can’t be used to store large data then 1/3 of RAM size, So it’s better not to use it to store huge data collections.
Can data Stored in Redis get lost
Yes, Data stored in Redis can get deleted but only when server instance is rebooted or terminated and in local PC if you shutdown you system.
Offically, Redis not provide any direct installer file to install it on windows operating system but Microsoft has build a installer version of redis by which windows users can easily install redis on windows with just one click.
Hi Guy’s Welcome to Proto Coders Point. In this flutter Article let’s learn how to add border to images in flutter.
In this Article will cover 4 example:
Flutter image with Border all side.
Flutter Image with rounded/circular borders
Flutter Image with one side border
Different border color at each side
As you all know to display Image in flutter we make use of Image Widget, But Flutter Image widget do not provide any properties to set a border to a image. To achieve border to any widget we can use Container widget in which we use decoration properties to set border.
This Example will create a Border around Image widget by using container, Inside container widget I have used decoration properties with BoxDecoration which has border property and then set Border on all the sides on child widget.
Hi Guys, Welcome to Proto Coders Point. In this AWS tutorial let check how to get access to aws server instance if you have lost the private key (ppk file).
Amazon Web Services never keep copy of your private key on their end, If you lost the private there was no way to recover it. But now I have found out the way to access ec2 instance without using pem file and recover/regain access to your EC2 instance server from amazon instance dashboad itself.
How to access aws instance without key pair (PEM/PPK)
Video Tutorial
Time needed: 2 minutes
How To Connect To An AWS EC2 Instance Without Key Pair
Login into Amazon Web Service Dashboad
Select the AWS ec2 instance
Now on AWS dashboard, navigate to EC2 and then select a instance.
Click on AWS ‘Connect’ button
EC2 instance Connect
On selected instance page, you will get a Connect button, Use it to Connect to your instance, It will open a terminal, by which you can play with you server.
Connected to instance ternimal through browser itself
Now you have successfully connected to AWS service instance without using any PEM/PPK. Directly access instance terminal from AWS console itself.
Hi Guys, Welcome to Proto Coders Point. In this AWS article let’s learn how to discontinue a PEM/PPK file by which a user can connect to server – basically remove access for using a particular PEM/PPK file (aws instance change key pair).
Why and when you should stop using old PEM/PPK file
Assume you work as a full stack developer in a startup company along with a colleague on a project where you both manage a server. Both you and your colleague are now given a pem or ppk to connect to an AWS server.
After 1-2 years of working in the same company, your colleague may resign or be fired by the company CEO.
Now your manager has asked you to collect all of the necessary documents, such as a pem or ppk file, from colleague who has a pem file and can access the server instance.
The pem file copies can be made right, and anyone with a pem/ppk file can easily gain access to and hijack your server instance.
As a result, it is preferable to phase out the old pem/ppk file (change key pair).
Now, let’s remove the old pem/ppk key file to gain access to the server by following the procedures below.
In AWS, How do I delete/deactivate the existing PEM file and generate a new one
Video Tutorial
Replace public key from aws server / change key pair ec2 Instance
Here is a simple Solution
On your server EC2 instance inside authorized_keys file the public_key is been stored, all you need to do is simply replace the existing public key with new key pair.
To do so, find the authorized_keys file in this path (/home/ubuntu/.ssh/authorized_keys) for ubuntu instance and (/home/ec2-user/.ssh/authorized_keys) for Amazon Linux instance.
Step by Step Guide to change key pair of aws server instance
Open PuttyGen, Click on Load button and browse to newly created pem file.
Now we have successfully got pubic key from freshly created PEM file.
Step 4: Open the public key and copy the openssh key
Now as you have the public key file created in above step using puttygen.
Open the file in any editor
Convert this key text into a single line and Copy the marked key character.
We need copy this key in authorized_keys file on server .ssh folder.
Step 5: Replacing old PEM key with new PEM key
Now the final step.
Using FileZilla or Winscp tools to connect to server.
We have to edit/replace old public key with new public in authorized_keys, To do so navigate to /home/ubuntu/.ssh in .ssh folder you will find authorized_keys file Open it in any editor or using putty terminal (vim or gedit).
Then in authorized_keys file, you have to add new public key that you create by pem key pair using puttygen in above steps.
This is the format to ssh-rsa <public key>.
In above image, you see I have old key, down of it I added new public. (Note: you can add as many as ssh-rsa public key you want).
Here I my case I want to discontinue usage of old pem/ppk file to access server. Therefore from above image I have to remove old public key from authorized_keys file from server.
Now save the file.
Warning: Before removing old ssh-rsa public key from authorized_key file, make sure that the newly added ssh-rsa public key(.pem key pair) is working and giving you access to the server.
Step 6: Verify that is new .pem is working
Now, you have added newly created pem file public key in authorized key file, It’s time verify if new .pem key is working or no.
Therefore, We have successfully removed old pem/ppk file authority to access AWS server and created a new pem file to access the same server instance.