Apply for Amazon cloud server for free and use AWS to build Debian 11 system

Install Debian 11 on AWS I have written some tutorials on how to apply for free Amazon cloud, most of which are about how to install CentOS system on AWS. Today I will write about how to install a Debian11 operating system through AWS Amazon cloud. AWS can install a variety of different operating systems in the cloud server, including Amazon Linux, Ubuntu, Windows, Red Hat, SUSE Linux, Debian, etc.!

AWS install Debian 11 Apply for Amazon Cloud for free

I have written someMost of the tutorials are about how toInstallToday I will write about how to install a system through AWS Amazon Cloud.Operating system. AWS can install a variety of different operating systems in cloud servers. ,, , Red Hat, SUSE Linux, etc!

What is Debian

Before installing Debian11, first understand what is the Debian system

Debian is a UNIX-like operating system consisting entirely of free software. Most of the software it contains is licensed under the GNU General Public License and is packaged, developed and maintained by a team of Debian project participants. The Debian project was originally initiated by Ian Murdoch in 1993. Debian 0.01 was released on September 15, 1993, and its first stable version was released in 1996.

Apply for Amazon cloud server for free and use AWS to build Debian 11 system

Reasons to choose Debian

Debian is free software.
Debian consists of free and open source software, and will always remain 100% free. Everyone is free to use, modify, and distribute it. This is our main promise to our users. It is also free.
Debian is stable and secure.
Debian is a Linux-based operating system used on a wide range of devices, including laptops, desktops, and servers. We provide sensible default configurations for each package and provide regular security updates during the package's lifecycle.
Debian has a wide range of hardware support.
Most hardware is already supported by the Linux kernel. This means that Debian will also support it. Proprietary hardware drivers are also available if needed.
Debian provides a flexible installation program.
Users who wish to try Debian before installing can use our Live CD. It also includes the Calamares Installer, which makes it very easy to install Debian from a Live system. More experienced users can use the Debian Installer, which offers more fine-tuning options, including the ability to use automated network installation tools.
Debian provides smooth updates.
Keeping your operating system up to date is easy, whether you want to upgrade to a new release or just want to upgrade a single package.
Debian is the basis for many other distributions.
Many very popular Linux distributions, such as Ubuntu, Knoppix, PureOS and Tails, are based on Debian. We provide all the tools needed so that everyone can make their own packages if needed to supplement the packages not available in the Debian archives.
The Debian Project is a community.
Anyone can be part of the Debian community; you don't have to be a developer or system administrator. Debian has a democratic governance structure. Because all members of the Debian project have equal rights, Debian cannot be controlled by a single company. Our developers come from more than 60 countries, and Debian itself has been translated into more than 80 languages.

Apply for Amazon Cloud for free and register for AWS

Let’s take a look at how to apply for Amazon Cloud. For old users, applying for Amazon Cloud is very simple, but some novice users still need a detailed tutorial.

Apply for Amazon cloud server for free and use AWS to build Debian 11 system

AWS China official website: https://aws.amazon.com/cn/
Amazon Web Services official website: https://www.amazonaws.cn/

The world's largest cloud server provider is Amazon Web Services (AWS). AWS is a global cloud computing platform that provides a variety of services such as computing, storage, database, network, analysis, machine learning, artificial intelligence, mobile, development tools and enterprise applications. AWS has more than 200 regions and data centers in more than 70 countries/regions around the world.

In 2022, AWS's revenue was $54.05 billion, an increase of 37% from 2021. AWS is the world's most popular cloud computing platform with more than 3 million customers. AWS's customers include small, medium and large businesses, as well as government agencies and non-profit organizations.

Benefits of AWS include:

  • Wide range of services: AWS provides a wide range of services to meet the various needs of enterprises.
  • Reliability: AWS has the most reliable data center network in the world.
  • Security: AWS offers state-of-the-art security features.
  • Cost-effectiveness: AWS is very reasonably priced.

AWS has many free products, such as EC2 cloud servers, S3 cloud storage, CDN related products, VPS remote desktopWait, everyone can explore the Amazon cloud platform, and it’s free unless there are any unexpected events.

Next, sign up for a free 12-month Amazon EC2 cloud server.

Preparation before registration

Before you begin, you need to prepare the following checklist:

  • A mobile phone number that can normally receive verification codes (a domestic number is sufficient. If you want to register anonymously, you can consider using an overseas code receiving platform.SMS-Activate Overseas Code Receiving Platform
  • A mailbox (recommendedMail or MicrosoftMailbox to receive mail,2023 Latest Registration of Gmail Google Account
  • A foreign currency credit card VIAS/Mastercard (The credit card is used for verification. After deducting $1 and verifying that it is a real card, the amount will be returned in the same way.)

Apply for Amazon Cloud for free and start registering AWS

Click Create AWS AccountEnter your email address, which will be your login account after successful registration. Follow the instructions to complete the registration step by step, and fill in the pinyin address.

Apply for Amazon cloud server for free and use AWS to build Debian 11 system

The last step is credit card verification. Fill in the credit card. The credit card needs to support VISA/Mastercard foreign currency credit card.

Apply for Amazon cloud server for free and use AWS to build Debian 11 system

After the credit card is verified, if there is no problem, you will see this interface. Congratulations, thank you for signing up for AWS

Apply for Amazon cloud server for free and use AWS to build Debian 11 system

 

AWS Management Console Overview

After successful registration, enter the AWS management console. After entering, first select the address of the cloud server you want to activate in the upper right corner. When selecting the server region, there is no Hong Kong in the Asia-Pacific region. Hong Kong needs to be manually set up and activated in the region.

Apply for Amazon cloud server for free and use AWS to build Debian 11 system

After selecting the region, create a new cloud server and create an instance:

Apply for Amazon cloud server for free and use AWS to build Debian 11 system

Enter an instance name:

Apply for Amazon cloud server for free and use AWS to build Debian 11 system

Select the system in the quick start below. Here we choose Debian system and 64-bit architecture.

Apply for Amazon cloud server for free and use AWS to build Debian 11 system

In the firewall security group, a new security group is created by default, check,HTTP,HTTPS three options.

Apply for Amazon cloud server for free and use AWS to build Debian 11 system

In the storage configuration, select the hard disk size. Note: The free package only supports 30GB general-purpose SSD hard disks. The maximum size here can only be 30G. If it exceeds 30G, a fee will be charged. The hard disk type can only be GP2 and GP3 SSDs.

Apply for Amazon cloud server for free and use AWS to build Debian 11 system

Finally, create a key pair. The key pair is the default password used to log in to the server via SSH. You can modify the root login password after logging in using ssh.

It should be noted here that some systems do not support the .pem private key file format and need to be modified to the .ppk private key file format, such as some Contes systems.

Also, not all systems have root as their default administrator. This depends on the connection prompts for each operating system.

 

Apply for Amazon cloud server for free and use AWS to build Debian 11 system

After the key pair is created, click Launch Instance on the right and wait for a while. Your cloud server has been created successfully!

Apply for Amazon cloud server for free and use AWS to build Debian 11 systemApply for Amazon cloud server for free and use AWS to build Debian 11 systemApply for Amazon cloud server for free and use AWS to build Debian 11 system

 

Reinstall Debian 11

The default login method is actually the safest, but it is too inconvenient for us. We hope to be able to log in with a key anytime and anywhere. Let's completely reinstall the system of this machine.

Install using dd script(About 5-10 minutes)

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p "自定义root密码" -port "自定义ssh端口"

Changed the password to uzbox123, the SSH port was changed to 222

Just enter it directly into the command line.

AWS method to open other ports in firewall security group

By default, our machine opens ports 22, 80, and 443.

Only three ports are open on the server, we also need to open 222 Otherwise, SSH connection will fail.

Apply for Amazon cloud server for free and use AWS to build Debian 11 systemApply for Amazon cloud server for free and use AWS to build Debian 11 systemApply for Amazon cloud server for free and use AWS to build Debian 11 systemApply for Amazon cloud server for free and use AWS to build Debian 11 systemApply for Amazon cloud server for free and use AWS to build Debian 11 systemApply for Amazon cloud server for free and use AWS to build Debian 11 systemApply for Amazon cloud server for free and use AWS to build Debian 11 system

You now have a clean machine!

Precautions

  • The free server policy is 750 hours per month, which is 30 days per month. If you open multiple cloud servers, the bill will be deducted at the end of the month.
  • Instance timing is in hours. If you start/stop the server 5 times within an hour, you will be recorded for 5 hours.
  • During the use of the server, there is a free upper limit for traffic, I/O times and many other information. Generally, it is enough for personal learning and experiments. If you use it indiscriminately, there is a risk of having to pay.
  • The free period is 12 months. You must terminate the AWS services you are using within 12 months, otherwise you will be charged.
  • If you are not sure, don’t click on other services randomly, otherwise you will be charged without knowing why.
  • If it is your own credit card, remember to lock the daily limit of the credit card to avoid accidental deductions.

Here is a real case of AWS:

After losing $10,000 due to an AWS error, I successfully got my money back

I am an old user of AWS cloud services. I have been using and recommending AWS to my friends since 2014. There are two main reasons for this:

  • The cloud service products provided by AWS are basically the world's leading and most complete. I have acquired a lot of knowledge about cloud computing from using AWS. It can even be said that if you want to systematically understand the engines of the Fourth Industrial Revolution (cloud computing, big data, the Internet of Things, robots, artificial intelligence, etc.), these AWS product systems are basically the best teaching materials;
  • Many common AWS services can be used for free for one year, and you can continue to use them for free by registering with a different account. Such conscientious companies are rare in the world. Although limited to specified configurations, these configurations are sufficient for personal learning and use. Therefore, when I was engaged in popularizing programming knowledge, I often used AWS for teaching.

Misoperation resulted in loss of more than 10,000 yuan

However, last month I had a small project that needed to use PostgreSQL, so I naturally thought of using AWS RDS to create it (but after creating it, I actually didn't have time to use it). However, a wave of inadvertent mistakes made me receive the following error on the evening of August 2:$1,547.85I was totally stunned when I saw the bill.

Apply for Amazon cloud server for free and use AWS to build Debian 11 system
AWS Monthly Deduction

At first, when I received this deduction information, I was very confused. Was my previous freeloading discovered? Or was there some annual deduction policy for the AWS product I was using that I had not noticed?

When I downloaded the AWS Invoice, I found that the bulk of the charges were ($1,537.06) is fromAmazon Relational Database Service, which is the PostgreSQL service that was created previously but not used much.

Apply for Amazon cloud server for free and use AWS to build Debian 11 system
RDS fee deduction

Why can this service deduct so much in less than a month? It is incredible. After opening the RDS control panel, I was dumbfounded. I actually createddb.r6g.2xlarge, which is too luxurious for my small project, and I didn't pay attention to the configuration when I created it.

Apply for Amazon cloud server for free and use AWS to build Debian 11 system
PostgreSQL Deluxe

The responsibility lies with me, but I am a little unwilling

How could I be so careless? This is 11,000 RMB, and it’s been less than a month! What’s even more annoying is that I haven’t even used it!

I often heard that some people received inexplicable deductions because they did not understand AWS's free-use rules. I explained to them that AWS only offers free-use services for designated configurations, and that the free use time for a single service is 750 hours per month, which is 31.25 days. Obviously, you can enjoy free-use services seamlessly for 12 months. However, it is different if you create two or more EC2s.

Now it was my turn, and I suddenly felt unbalanced. Many services in the United States charge money after use, which means you use it first, and then the corresponding fees are charged directly from your credit card after consumption, without even having to enter your account number and password. This made me completely unaware of my mistake. If it was a domestic cloud service that charged money first and then consumed, this would not have happened to me.

The responsibility is indeed mine. How could I be so careless? But I still feel a little unwilling to lose 10,000 yuan without knowing why. Can I go to AWS customer service and ask them to refund me the money? Even a partial refund would be good? Am I being unreasonable?

So I looked up some comments online and found that many people said that AWS customer service was extremely slow. Yes, Americans are generally very inefficient in handling things. If I go to customer service, will it be a tug-of-war? And I may not be able to get a refund, which makes me a little hesitant.

Start your rights protection journey

After weighing the pros and cons for a whole night, I decided to contact AWS customer service on August 3. I didn’t know if the AWS customer service staff would be too slow. After I left a message, they didn’t reply until a few days later.

So I wrote down the situation in Chinese, and thenTranslated it into English (I found that the translation was indeed good, without any modification), and submitted a work order to AWS:

Hello, I am an old user of AWS for many years. Not long ago, I had a small project that needed to use PostgreSQL, so I naturally thought of using AWS. I had used Aurora of RDS before, because the service of RDS is cheap and easy to use, so I created a PostgreSQL instance of RDS.

Because I have been busy in recent days, I forgot to continue processing it, but on August 2, I received a deduction of up to $1,537.06, which shocked me. Because although I created the instance of this RDS service, I didn't use it for a minute.

I still habitually created the instance in the same way as I created Aurora before. The charges for this have always been very cheap, so I didn't look at it carefully. I didn't expect that the PostgreSQL instance created in the same way would use such a high server configuration.

$1,537.06 was too much for me. I was shocked when I saw the bill. Later I found out that the problem was with the configuration of the PostgreSQL instance, which I have now deleted.

Although I know that carelessness is my fault, I really haven't used this instance for a minute. I just created it. I don't know if part of the deduction can be refunded in this case.

After waiting for a few minutes, AWS customer service responded to me and had some simple exchanges:

Apply for Amazon cloud server for free and use AWS to build Debian 11 system
Communication with AWS Customer Service

Then I received an email and asked me to answer a few questions: How did you find out? Do you think you have the tools and knowledge to avoid this happening again? How long have you used this service? How did the error happen? Why did you wait so long to contact us? What are you doing now to prevent this from happening again? Finally, how much money do you want us to refund!

After answering these questions one by one, I still thought about how much money I should get back. RDS deducted $1,537.06 from me. I would be grateful if they could refund me $1,000.

Received a refund, praise AWS

Soon, AWS replied to me that the amount they refunded was not the amount deducted by RDS in July.$1,537.06, but the bill for the entire month of July$1,547.85(I am still using AWS's EC2, S3, Lambda, API Gateway and other products, and so many products cost only about US$10 a month.) Not only that, but there was an additional fee of US$91 for the three days in August, which will be given to me in the form of points.

Apply for Amazon cloud server for free and use AWS to build Debian 11 system
AWS refunded me

The refund will be returned to my bank card within 7 working days at most, but I received the refund after only one day. I was shocked by the efficiency of the service and the way it was handled. I thought it would be a long-term tug-of-war with no good results. Unexpectedly, even though I was the one who made the mistake, AWS not only returned the refund, but also more than 100 US dollars.

Apply for Amazon cloud server for free and use AWS to build Debian 11 system
Receive a refund

Very good and perfect. To sum it up with a popular saying in the second dimension: I am the dog of AWS. Woof! Woof!! Woof!!!

1/5 - (2 votes)

Leave a Reply

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