The current on going experiment on this blog is to run a full node for Bytecoin (bytecoind) on a server 24/7 including the RPC remote service. The node will strengthen the P2P network and offers users to option to connect their desktop wallets directly to the node. Connecting directly to a remote node greatly decrease to time to setup a new Bytecoin installation.
During the experiment the node would stop working after a couple of days (4-5 days) while the server didn’t run out of resources. To resolve this issue one should setup a swap disk.
To setup the disk run
sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=1000;sudo mkswap /var/swap.img;sudo swapon /var/swap.img;sudo chmod 0600 /var/swap.img;sudo chown root:root /var/swap.img;sudo nano /etc/fstab
This will open the nano editor. Append the last line with the following and save.
/var/swap.img none swap sw 0 0
Most likely you will need to reboot your server for the changes to become effective.