Lubuntu 19.04 RT Preempt¶
Install Lubuntu 19.04 and build and install the RT-PREEMPT kernel for LinuxCNC Uspace.
Testing for accuracy so stand by!
Download Lubuntu 19.04 and burn to a DVD. I used http://cdimage.ubuntu.com/lubuntu/releases/19.04/release/lubuntu-19.04-desktop-amd64.iso
- Boot from the DVD then select Install from the Desktop
After installing remove the DVD and restart.
From the menu open the Software Sources
On the Ubuntu Software tab check Source code
On the Updates tab change Show new distribution releases: to Never.
If you have limited bandwith check Only notify about available updates
From the System Tools open a terminal and download the kernel and rt patch
sudo apt update
sudo apt install -y build-essential bin86 kernel-package libssl-dev
# just press enter at the prompt
sudo apt install -y libqt4-dev libncurses5-dev pkg-config flex bison
sudo apt dist-upgrade
mkdir rtlinux
cd rtlinux
wget https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.0.14.tar.xz
wget https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/5.0/older/patch-5.0.14-rt9.patch.gz
Now extract and patch the kernel
tar -xpf linux-5.0.14.tar.xz
gunzip patch-5.0.14-rt9.patch.gz
cp patch-5.0.14-rt9.patch linux-5.0.14
cd linux-5.0.14
cat patch-5.0.14-rt9.patch | patch -p1
make xconfig
- 5.0.19-rt11 does not boot up
- wget https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.0.19.tar.xz wget https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/5.0/patch-5.0.19-rt11.patch.gz
Now extract and patch the kernel
tar -xpf linux-5.0.19.tar.xz
gunzip patch-5.0.19-rt11.patch.gz
cp patch-5.0.19-rt11.patch linux-5.0.19
cd linux-5.0.19
cat patch-5.0.19-rt11.patch | patch -p1
make xconfig
Click on General Setup and select Fully Preemptible Kernel(RT) in the right window. Save and close
Find out how many processors you have with the following:
grep processor /proc/cpuinfo
Now build the kernel with -j processors + 1.
make -j5
Go take a nap or have a cup of coffee… then install the kernel.
sudo make modules_install
sudo make install
Finally add the grub customizer.
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt update
sudo apt install grub-customizer
Go to Menu > Admininstration > Grub Customizer Go to the General Settings tab and select Advanced Options for Ubuntu>Ubuntu, with Linux 4.19.1-rt3. Save and close.
Restart
Open a terminal
uname -a
... 4.19.1-rt3 #1 SMP PREEMPT RT ...
For a light weight but powerful text editor install Geany.
sudo apt install geany
Next Install LinuxCNC Uspace Linux Mint 19 LinuxCNC