Skip to content

This repository contains a script that can be used to set up an environment for web development and mail server.

Notifications You must be signed in to change notification settings

0xbaha/env-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Environment Setup

This repository contain a script that can be used to set up an environment for:

  1. web development, includes:
  2. mail server, includes:
    • set up a mail server in cloud

Virtual Machine

The virtual machine that will be used is VirtualBox.

Desktop

  1. Download and install2 the guest OS.
  2. User Setup in the guest.
  3. Install VBox Guest in the guest.
  4. Download this project using the host.
  5. Enable the Shared Folders from host to guest, then copy the downloaded file and extract it.
  6. Run command sudo ./setup.sh and choose option 1. Vbox (Desktop) to initiate the setup, install the required applications, and end up the setup.

Server

  1. Download and install3 the guest OS.
  2. User Setup in the guest.
  3. Fix Error in the guest.
  4. Clone this project and open the folder.
    git clone https://github.com/ba1x/env-setup.git
    cd env-setup
  5. Run command sudo ./setup.sh and choose option 2. Vbox (Server) to initiate the setup, install the required applications, and end up the setup.

Cloud

Make sure to add the SSH keys in the Client Area before starting the setup below.

DigitalOcean

  1. Create a new droplet with the required specification and choose SSH Keys (that already added) for the Authentication.
  2. Login to the server.
    ssh root@SERVER_IP_ADDRESS     # login using SSH
  3. Clone this project and open the folder.
    git clone https://github.com/ba1x/env-setup.git
    cd env-setup
  4. Run command ./setup.sh and choose option 3. Cloud (DigitalOcean/Hostwinds) to initiate the setup, install the required applications, and end up the setup.

Hostwinds

  1. Create an unmanage Linux VPS hosting with the required specification and choose SSH Keys (that already added) for the Authentication.

  2. Log in to the server using SSH:

     ssh root@SERVER_IP_ADDRESS     # login using SSH
  3. Download and install the prerequisite apps (Git and UFW).

    sudo apt update && sudo apt install git ufw -y
  4. Clone this project and open the folder.

    git clone https://github.com/ba1x/env-setup.git
    cd env-setup
  5. Run command ./setup.sh and choose option 3. Cloud (DigitalOcean/Hostwinds) to initiate the setup, install the required applications, and end up the setup.

Physical Server

  1. Download and install4 the OS.
  2. User Setup.
  3. (Optional) Proxy Setup.
  4. Clone this project and open the folder.
    git clone https://github.com/ba1x/env-setup.git
    cd env-setup
  5. Run command sudo ./setup.sh and choose option 4. Physical Server to initiate the setup, install the required applications, and end up the setup.

(Optional) After Finish Setup

  1. SSH manual setup for using the existing key.
  2. Clear bash history if necessary.

Footnotes

Footnotes

  1. VirtualBox 6.1.26 r145957 (Qt5.6.2)

  2. Minimal Installation

  3. Partition for 10 GB HDD/SSD and 1 GB RAM.

    /        7.0 GB  ext4
    /boot    500 MB  ext4
    /home    500 MB  ext4
    /var     1.0 GB  ext4
    SWAP     1.0 GB  swap
    
  4. Partition for 1 TB HDD/SSD and 8GB RAM.

    /           240 GB  ext4
    /boot       2.5 GB  ext4
    /home       500 GB  ext4
    /srv        2.5 GB  ext4
    /usr        100 GB  ext4
    /var         20 GB  ext4
    /var/lib     50 GB  ext4
    SWAP         16 GB  swap
    

Releases

No releases published

Packages

No packages published

Languages