Create Linux Swap File Used for compiling ROS on a Raspberry Pi
sudo dd if=/dev/zero of=/swapfile bs=128M count=8 sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile