Install LinuxCNC

From EuSurplusWiki
Jump to: navigation, search


It will be installed the latest version of LinuxCNC 2.6 on Debian Wheezy. The best way to install is create a usb installation flash pen. We find that using Lili USB creator software for Windows (free, small) is a very good and friendly solution to create the bootable pen.

To proceed the installation of linuxcnc, insert and boot from usb live pen, and this time choose Install (Graphical)

Snapshots of installation process

Upgrade Debian

After the installation process, its recommended to upgrade the system in first place


Latency results after install

After a permanent install of LinuxCNC, its time to check again the latency its time to check again the latency.

Were are the results:


This results are slighting worst compared to the previous one, but we will try to improve them.

Isolcpus Boot Parameter

As described on the LinuxCNC documentation, changing the isolcpus parameter should can improve the latency performance if the system is not single core.

By following the tutorial, press rigth click on this link (07_rtai) and choose "save link as". Save it in your Downloads folder.

Open the terminal emulator, and place the following commands:

$ sudo cp ./Downloads/07_rtai /etc/grub.d
$ sudo chmod +x /etc/grub.d/07_rtai
$ sudo update-grub


Now restart the PC and choose the isolcpus=1 on the grub.

20150205 102711.jpg

After open several youtube videos and put some stress on the PC, although the fist impressions are of a significant reduction on latency, it had latency peaks.


Text editor

Have a good text editor is a need, notepad++ is a great editor, and can be installed in Linux systems using wine.

For simple stand alone files, gedit is a good editor, and can be be easily installed typing

$ sudo apt-get install gedit

Configuring GRUB

Its important to have the right configuration on GRUB, so that every time the machine is restarted, it boots the right kernel.

In this tutorial is explained how to make the needed changes to GRUB.

Enable auto login

Auto login can be enabled by editing
Navigate to line 78 and you and you should find
Remove the "#" and place your username, for example:

Touchscreen support

If the user uses a touchscreen monitor and it's not enabled by default, most touchscreens are supported by "hid_multitouch" module.

To find if is supported by this module, open the terminal and place:

$ sudo modprobe hid_multitouch

It should start working immediately.

To make this permanent place it on /etc/modules by making:

$ sudo gedit /etc/modules

and after "loop" place


Save, exit and reboot. The touchscreen should be working after this.