# Installation guide for OxOffice Online v4 Community on Rocky Linux 8 in PVE LXC

Please download "rocktlinux-8-default" LXC template on your PVE first

[![Select Rocky Linux 8 LXC Template.png](https://docs.ossii.com.tw/uploads/images/gallery/2022-08/scaled-1680-/select-rocky-linux-8-lxc-template.png)](https://docs.ossii.com.tw/uploads/images/gallery/2022-08/select-rocky-linux-8-lxc-template.png)

You can see Rocky Linux 8 LXC template in "CT templates" section

[![Rocky Linux 8 LXC Template.png](https://docs.ossii.com.tw/uploads/images/gallery/2022-08/scaled-1680-/rocky-linux-8-lxc-template.png)](https://docs.ossii.com.tw/uploads/images/gallery/2022-08/rocky-linux-8-lxc-template.png)

Create a new CT using "Create CT" button

[![Rocky Linux 8 LXC Setup.png](https://docs.ossii.com.tw/uploads/images/gallery/2022-08/scaled-1680-/rocky-linux-8-lxc-setup.png)](https://docs.ossii.com.tw/uploads/images/gallery/2022-08/rocky-linux-8-lxc-setup.png)

[![Rocky Linux 8 LXC Setup Finish.png](https://docs.ossii.com.tw/uploads/images/gallery/2022-08/scaled-1680-/rocky-linux-8-lxc-setup-finish.png)](https://docs.ossii.com.tw/uploads/images/gallery/2022-08/rocky-linux-8-lxc-setup-finish.png)

Start created CT, login as root and excute following commands to install needed programs and OxOOL Community edition:
```Shell
dnf config-manager --set-enabled powertools
dnf install vim openssh* net-tools unzip wget -y
cd /etc/yum.repos.d
wget http://www.oxoffice.com.tw/rpm/el/oxool-community-v4-el8.repo
dnf upgrade -y
dnf groupinstall "OxOOL Community Group" -y
```
Start OxOOL Community edition service when booting and reboot
```Shell
systemctl enable oxoolwsd
reboot
```
Check if OxOOL Community edition starts normally
```Shell
netstat -tlnp
```
You should get some results like this:
```Shell
tcp6     0    0    :::9980		      :::*   	LISTEN   644/oxool
```
P. S. When steps above are finished, you can use "More"→"Convert to template" to generate new LXC template that contains OxOOL Community edition.