> For the complete documentation index, see [llms.txt](https://bitskwela.gitbook.io/bitskwela-x-lido-cs-fleet-eth-home-staking-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bitskwela.gitbook.io/bitskwela-x-lido-cs-fleet-eth-home-staking-guide/installing-and-configuring-clients/ihanda-ang-operating-system.md).

# Ihanda ang Operating System

### I-configure ang pagbabantay ng oras

Kailangan nating tiyakin na ang oras sa ating aparato ay pareho sa lahat ng iba pang mga node upang magawa nating mag-sync sa lahat ng iba. Kung hindi tama ang pagbabantay natin sa oras, magsisimulang magkulang sa mga attestations (at mga gantimpala!). Tiyakin ito sa pamamagitan ng pagtakbo:

```bash
timedatectl
```

At siguruhing ang serbisyo ng NTP ay "aktibo". Tingnan ang screenshot sa ibaba.

<figure><img src="https://1470293057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxXCJiSup1jUVmQiAeAMS%2Fuploads%2FcW7nZ96W6f2tRsLrqP0G%2FUntitled%20(6).png?alt=media&amp;token=25692f84-c600-45d0-b15a-dd89385f1870" alt=""><figcaption></figcaption></figure>

Kung hindi, paganahin ito sa pamamagitan ng pagsasagawa ng:

```bash
sudo timedatectl set-ntp on
```

### Lumikha ng Swap Space

Ang swap space (espasyo ng "back-up" memory na nilikha mula sa espasyo ng disk) ay ginagamit upang maiwasan ang mga error sa labas ng memory.

Inirerekomendang espasyo ng swap:

```bash
RAM     Swap Size
  8GB           3GB
 12GB           3GB
 16GB           4GB
 24GB           5GB
 32GB           6GB
 64GB           8GB
128GB          11GB
```

Lumikha ng swap file:

```bash
sudo fallocate -l 6G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
```

Gawing tandaan ng iyong OS ang mga setting ng espasyo ng swap kahit pagkatapos ng reboot:

```bash
sudo cp /etc/fstab /etc/fstab.bak
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
sudo sysctl vm.swappiness=10
sudo sysctl vm.vfs_cache_pressure=50
sudo nano /etc/sysctl.conf
```

Add the following to the end of the `sysctl.conf` configuration file:

Idagdag ang mga sumusunod sa dulo ng configuration file ng `sysctl.conf`:

```bash
vm.swappiness=10
vm.vfs_cache_pressure=50
```

I-save at i-exit ang file gamit ang `CTRL + O, enter, CTRL + X`

Suriin ang iyong bagong espasyo ng swap gamit ang mga sumusunod na command.

```bash
htop
free -h
```

**Inaasahang output:**

<figure><img src="https://1470293057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxXCJiSup1jUVmQiAeAMS%2Fuploads%2FvIG65sWGhlMGz32Kn27I%2Fimage%20(37).png?alt=media&amp;token=780af05e-5adf-4d60-9771-0fe529b19784" alt=""><figcaption><p><code>htop</code></p></figcaption></figure>

<figure><img src="https://1470293057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxXCJiSup1jUVmQiAeAMS%2Fuploads%2Fzlg1cvXLvUv9WgX68I2x%2Fimage%20(38).png?alt=media&amp;token=7645d510-8898-4a73-9a99-c67a0da4b0a7" alt=""><figcaption><p><code>free -h</code></p></figcaption></figure>
