Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
equipment:cnc:mill:simulator [2025/03/12 21:05] – created robert.simpson190equipment:cnc:mill:simulator [2025/03/30 16:22] (current) robert.simpson190
Line 1: Line 1:
-====== Installing LinuxCNC  ======+====== Installing LinuxCNC for Testing/Simulation  ======
  
-There are several options for running LinuxCNC:+If you want to run LinuxCNC without an actual CNC machine for learning the interface, testing etc., there are a few options:
  
   * Raspberry PI   * Raspberry PI
Line 18: Line 18:
 If you want to run on a Windows PC, the recommended method is to use Virtual Box. If you want to run on a Windows PC, the recommended method is to use Virtual Box.
  
-====  ====+==== Installing LinuxCNC on VirtualBox on a Windows PC ==== 
 + 
 +  * Install VirtualBox from https://www.virtualbox.org/ 
 +  * If necessary, enable Virtualization in the BIOS and under 'Turn Windows features on and off'
 +      * It should work if Hyper-V is enabled but if not, try disabling it. 
 +  * Download LinuxCNC from https://linuxcnc.org/downloads/. You need this one: LinuxCNC 2.9.4 Debian 12 Bookworm PREEMPT-RT ISO. It's a complete image including the OS and the LinuxCNC application. 
 +  * In VirtualBox, use the 'New' button to create a new virtual machine. 
 +      * Give it a name e.g. Linux CNC 
 +      * Select the ISO file downloaded above. 
 +      * Set type to 'Linux'. Should be selected automatically. 
 +      * Set version to Debian (64 bit). Should be selected automatically. 
 +      * Select 'Skip unattended installation' 
 +      * (Optional) Under Hardware, extend the memory from the default 2GB to 4GB (for light usage) or up to 8GB for more complex designs. 
 +          * 2GB may cause LinuxCNC to run slowly. The memory can be increased later but you have to stop the VM first. 
 +      * (Optional) Under Hard Disk, increase the size of the virtual hard disk. 
 +      * Click on Finish. 
 + 
 +==== Running LinuxCNC ==== 
 + 
 +The LinuxCNC app should appear in the applications menu under CNC. Running it should produce 
 + 
 +{{:equipment:cnc:mill:linuxcnc-run-configs.png?600|}} 
 + 
 +The first time linuxcnc is run, you will need to select a configuration from 'Sample Configurations'. You will then be asked if you want to copy the configuration. Select 'Yes'. On subsequent runs, they will appear under 'My Configurations'. If you need to delete them, you can find them in linuxcnc/configs. Just use e.g. 'rm -R sim.gmoccapy' to remove them. 
 + 
 +You can try out the various cnc types and styles of user-interfaces but if you want the look and feel of the actual CNC, you should choose sim.gmoccapy -> gmoccapy 
 + 
 +(Note there is a lot of bad info online about installing configurations. For gmoccapy and QtDragon, everything is already there. You don't need to 'apt install' anything or copy over files or edit .ini files. Also ChatGPT will tell you complete nonsense.) 
 + 
 +There is a proposal to change the UI to use QtDragon: 
 + 
 +{{:equipment:cnc:mill:linuxcnc-qtdragon.png?600|}} 
  • equipment/cnc/mill/simulator.1741813530
  • Last modified: 7 weeks ago
  • by robert.simpson190