MX on Linux: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
→‎Preparing for an install: formatting steps for changing swapfile size
m (→‎Preparing for an install: Correction of another contributor's edit that made all commands run together)
m (→‎Preparing for an install: formatting steps for changing swapfile size)
If you are installing onto a Pi zero, or similar slow computer, please ensure the size of the swapfile is as big as possible, as the mono-complete we will install is large. In linux, we type <code>free -m</code> to see our RAM size and our swapfile size.
 
To change swapfile size on the Raspberry Pi (''Can contributors add details for other Linux computers''):
To change swapfile size on the Raspberry Pi, you need to edit a file <code>sudo nano /etc/dphys-swapfile</code>. Move the cursor down line by line until it reaches '''CONF_SWAPSIZE=100'''. That is showing that the swapfile is only 99 mb by default in the Raspberry Pi Operating System. Now move the cursor to the 100, and change it to "512" which is enough for mono even on a Pi zero. Next, stop, and restart the relevant service using <code>sudo /etc/init.d/dphys-swapfile stop && sudo /etc/init.d/dphys-swapfile start</code>. That should complete quickly, and we can type <code>free -m</code> again to see the 99 we saw previously has been replaced by 511.
# Edit a file <code>sudo nano /etc/dphys-swapfile</code>.
# Move the cursor down line by line until it reaches '''CONF_SWAPSIZE=100'''. That is showing that the swapfile is only 99 mb by default in the Raspberry Pi Operating System.
# Now move the cursor to the 100, and change it to "512" which is enough for mono even on a Pi zero.
# Next, stop, and restart, the relevant service using <code>sudo /etc/init.d/dphys-swapfile stop && sudo /etc/init.d/dphys-swapfile start</code>.
# That should complete quickly, and we can type <code>free -m</code> again to see the 99 we saw previously has been replaced by 511.
 
=== USB HID ===
5,838

edits

Navigation menu