Add steps to change timezone and set hosts file
Some checks are pending
Some checks are pending
This commit is contained in:
parent
7c9afdd686
commit
2346c1b569
1 changed files with 72 additions and 2 deletions
|
@ -333,7 +333,42 @@ sudo apt update && sudo apt upgrade -y
|
||||||
|
|
||||||
**Expected output**: A list of packages being updated, followed by completion messages.
|
**Expected output**: A list of packages being updated, followed by completion messages.
|
||||||
|
|
||||||
#### 1.2 Install Essential Packages
|
#### 1.2 Configure Timezone
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Configure timezone interactively
|
||||||
|
sudo dpkg-reconfigure tzdata
|
||||||
|
|
||||||
|
# Verify timezone setting
|
||||||
|
date
|
||||||
|
```
|
||||||
|
|
||||||
|
**What this does**: Opens an interactive dialog to select your timezone. Navigate through the menus to choose your preferred timezone (e.g., UTC, America/New_York, Europe/London, Asia/Tokyo).
|
||||||
|
|
||||||
|
**Expected output**: After selecting your timezone, the `date` command should show the current date and time in your selected timezone.
|
||||||
|
|
||||||
|
#### 1.3 Configure /etc/hosts
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Add localhost entries for both IPv4 and IPv6
|
||||||
|
echo "127.0.0.1 localhost" | sudo tee -a /etc/hosts
|
||||||
|
echo "::1 localhost ip6-localhost ip6-loopback" | sudo tee -a /etc/hosts
|
||||||
|
echo "YOUR_CI_CD_IPV4_ADDRESS localhost" | sudo tee -a /etc/hosts
|
||||||
|
echo "YOUR_CI_CD_IPV6_ADDRESS localhost" | sudo tee -a /etc/hosts
|
||||||
|
|
||||||
|
# Verify the configuration
|
||||||
|
cat /etc/hosts
|
||||||
|
```
|
||||||
|
|
||||||
|
**What this does**:
|
||||||
|
- Adds localhost entries for both IPv4 and IPv6 addresses to `/etc/hosts`
|
||||||
|
- Ensures proper localhost resolution for both IPv4 and IPv6
|
||||||
|
|
||||||
|
**Important**: Replace `YOUR_CI_CD_IPV4_ADDRESS` and `YOUR_CI_CD_IPV6_ADDRESS` with the actual IPv4 and IPv6 addresses of your CI/CD Linode obtained from your Linode dashboard.
|
||||||
|
|
||||||
|
**Expected output**: The `/etc/hosts` file should show entries for `127.0.0.1`, `::1`, and your Linode's actual IP addresses all mapping to `localhost`.
|
||||||
|
|
||||||
|
#### 1.4 Install Essential Packages
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt install -y \
|
sudo apt install -y \
|
||||||
|
@ -939,7 +974,42 @@ forgejo-runner list
|
||||||
sudo apt update && sudo apt upgrade -y
|
sudo apt update && sudo apt upgrade -y
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 12.2 Install Essential Packages
|
#### 12.2 Configure Timezone
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Configure timezone interactively
|
||||||
|
sudo dpkg-reconfigure tzdata
|
||||||
|
|
||||||
|
# Verify timezone setting
|
||||||
|
date
|
||||||
|
```
|
||||||
|
|
||||||
|
**What this does**: Opens an interactive dialog to select your timezone. Navigate through the menus to choose your preferred timezone (e.g., UTC, America/New_York, Europe/London, Asia/Tokyo).
|
||||||
|
|
||||||
|
**Expected output**: After selecting your timezone, the `date` command should show the current date and time in your selected timezone.
|
||||||
|
|
||||||
|
#### 12.3 Configure /etc/hosts
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Add localhost entries for both IPv4 and IPv6
|
||||||
|
echo "127.0.0.1 localhost" | sudo tee -a /etc/hosts
|
||||||
|
echo "::1 localhost ip6-localhost ip6-loopback" | sudo tee -a /etc/hosts
|
||||||
|
echo "YOUR_PRODUCTION_IPV4_ADDRESS localhost" | sudo tee -a /etc/hosts
|
||||||
|
echo "YOUR_PRODUCTION_IPV6_ADDRESS localhost" | sudo tee -a /etc/hosts
|
||||||
|
|
||||||
|
# Verify the configuration
|
||||||
|
cat /etc/hosts
|
||||||
|
```
|
||||||
|
|
||||||
|
**What this does**:
|
||||||
|
- Adds localhost entries for both IPv4 and IPv6 addresses to `/etc/hosts`
|
||||||
|
- Ensures proper localhost resolution for both IPv4 and IPv6
|
||||||
|
|
||||||
|
**Important**: Replace `YOUR_PRODUCTION_IPV4_ADDRESS` and `YOUR_PRODUCTION_IPV6_ADDRESS` with the actual IPv4 and IPv6 addresses of your Production Linode obtained from your Linode dashboard.
|
||||||
|
|
||||||
|
**Expected output**: The `/etc/hosts` file should show entries for `127.0.0.1`, `::1`, and your Linode's actual IP addresses all mapping to `localhost`.
|
||||||
|
|
||||||
|
#### 12.4 Install Essential Packages
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo apt install -y \
|
sudo apt install -y \
|
||||||
|
|
Loading…
Add table
Reference in a new issue