# Useful scripts for VPS VPN Servers

Below there are some useful script that you can run to your Linux VPS or VPN or what ever Linux machine or server you have.

##### Unattended Upgrades Debian - Ubuntu

To install these packages, run the following command as root:

```bash
apt-get install -y unattended-upgrades apt-listchanges
```

more information at page [Unattended Upgrades Debian - Ubuntu](https://docs.greenhome.stream/books/tutorials/page/unattended-upgrades-debian-ubuntu "Unattended Upgrades Debian - Ubuntu")

##### Auto Update - Upgrade a Linux machine

The below script is to auto update - upgrade - remove - clean a Linux machine or Server.

Attachment Link [**os-update.sh**](https://docs.greenhome.stream/attachments/3 "os-update.sh")

more information at page [Auto Update - Upgrade a Linux machine](https://docs.greenhome.stream/books/scripts/page/auto-update-upgrade-a-linux-machine "Auto Update - Upgrade a Linux machine")

##### Empty ALL LOGs

The below script scan all files with extension .log then empty all log files.

Attachment Link [**empty\_log\_files.sh**](https://docs.greenhome.stream/attachments/2 "empty_log_files.sh")

more information at page [Empty ALL LOGs on a Linux Server](https://docs.greenhome.stream/books/scripts/page/empty-all-logs-on-a-linux-server "Empty ALL LOGs on a Linux Server")

<span style="color: rgb(224, 62, 45);">**Ins0mniA**</span>