How to Easily Deploy Zdir File Sharing on Amazon Lightsail

amazon lightsailzdir file sharingvps setupaws free tierlinux server
Published·Modified·

Amazon Lightsail is a simplified virtual private server (VPS) service provided by Amazon Web Services. It offers pre-configured virtual server instances and a range of convenient features, enabling users to quickly create, manage, and scale server instances for applications and workloads of various sizes. New users can also enjoy a 3-month free trial to experience its powerful features and fully understand its value.

0742ce091ade03a6.png

Zdir is a versatile private storage program that integrates file indexing, online preview, and sharing capabilities. It supports WebDAV and will soon introduce offline download functionality. This article demonstrates how to easily deploy the Zdir file sharing program using Amazon Web Services.

Register an Amazon Web Services Account

Before using S3 object storage, you need to register an Amazon Web Services account. You will need the following:

  • A frequently used email address
  • A frequently used phone number
  • A UnionPay/VISA/MasterCard credit card

Click the link: Amazon Web Services to register. During registration, be sure to select the "Amazon Web Services Overseas Region," as overseas regions do not require enterprise certification.

9488c3363d1ca794.png

Enter your email and account name.

c9edc2cd83a2ea78.png

Enter the verification code sent to your email by Amazon Web Services to verify your account.

cf59c3ea4eb77411.png

Continue to set your account password.

3e47634f1c8cdace.png

Next, fill in your contact information. Please note:

  1. Select "Individual" or "Business" based on your actual situation (the author selected "Individual").
  2. Ensure that your full name, phone number, address, and other information are filled in truthfully. Do not fabricate information, as this may trigger risk control measures.

9b5cc1f6d8c1349a.png

You will also need to verify your account using a credit card. UnionPay/VISA/MasterCard/American Express cards are supported. Fill in your credit card, name, and address information according to your actual situation. A temporary hold of up to $1 will be applied during verification and will be refunded upon successful verification.

12f2c67d56d1c15b.png

Continue to verify your phone number.

5e91003286ee8c5f.png

In the final step, select the "Support Plan." The author selected "Basic Support - Free."

15b76f71725b11d3.png

After registration, wait for the account verification to be completed before starting to experience the free tier provided by Amazon Web Services.

Create an Amazon Lightsail Instance

Next, go to the Amazon Lightsail Console and click Create Instance.

c5cf4f3c74045489.png

Region: Choose based on your situation. The author selected Tokyo, Japan.

19c9b52f7acd857c.png

Platform: Select Linux/Unix. Switch the blueprint to OS Only. Choose a system you are familiar with. If you are unsure, you can choose Debian 11.x, the same as the author.

723e2a00ae5f9cf6.png

Download the Default Key to your local machine for backup. Select Dual Stack for the network type. Choose the size according to your needs. Since the first 3 months are free, the author selected the 12$/month specification (specifications exceeding this are not free).

ed6ecfbe403c668f.png

Finally, click Create Instance and wait a few seconds for it to be created.

8f85be223444c7eb.png

Install Zdir on Amazon Lightsail

Once the Amazon Lightsail instance is created, click the Terminal icon.

18f191c4c56870fb.png

After entering the terminal, the first step is to reset the root password (since installing Zdir requires the root user). Use the command sudo passwd root to reset it.

2547c113bcd79316.png

After setting the root password, enter the command su - to switch to the root user.

1eba8bf9ba5d48ed.png

Next, enter the command apt-get update && apt-get install -y curl to update the system software.

bcc0e3a9a5ec4af8.png

Continue by entering the command curl -s "http://soft.xiaoz.org/zdir/sh/install.sh" | bash -s install to start the one-click installation of Zdir.

6fdeef4d5f85ed90.png

After Zdir installation is complete, you will be prompted to visit http://IP:6080. However, you may find that it does not open. Do not worry; this is because the Amazon Lightsail firewall is blocking it. You need to allow port 6080 in the firewall.

85c683f38bb81464.png

Go to the Amazon Lightsail management page, switch to Networking >> IPv4 Firewall >> Add Rule.

e38ed34be56c8d99.png

Enter port 6080 and create the rule.

529cd636d9484f94.png

Now, when you visit http://IP:6080 again, the Zdir initialization interface should open successfully.

7f25e5b062088cf0.png

Important Notes

New Amazon Web Services users can enjoy a 3-month free trial of Amazon Lightsail, but:

  1. If you stop using the service after 3 months, remember to delete the server in advance to avoid charges.
  2. Pay attention to the specifications of the trial machine you activated. If the monthly traffic exceeds the limit, additional fees will be charged.

Conclusion

If you are interested in other free services provided by Amazon Web Services, you can visit the AWS Free Tier page to learn more details. Through these free services, you can further explore and utilize various cloud solutions from Amazon Web Services to improve your work efficiency and business capabilities.