Definitive guide to installing MX Linux, Probe Basic and LinuxCNC 2.9

More
22 Oct 2021 11:28 - 27 Oct 2021 19:10 #223906 by spi
This guide is based on the excellent guide by snowgoer540 here www.forum.linuxcnc.org/9-installing-linu...rd-new-windows-users.

The important difference is that instead of installing MX Linux 19.4 we will install the 21 Release Candidate. This is to get a recent enough QT version (5.15, requirement is 5.12 and MX 19.4 comes with 5.11).

Install MX Linux 21 from here mxlinux.org/blog/mx-21-release-candidate...or-testing-purposes/

This is a pure Python3 environment so there shouldn't be dependency issues with Python 2

Please note that the dot in 'python3 -m pip install --editable .' is very important.

After installing MX Linux 21, follow these steps install LinuxCNC run-in-place:
sudo apt update
sudo apt upgrade
uname -a
sudo apt install linux-image-rt-amd64
Go to MX Menu -> MX Tools -> MX Boot Options
    In “Boot to” select the one with rt and without systemd
    Reboot
    Check with uname -a that the rt kernel is loaded
cd ~
git clone git://github.com/linuxcnc/linuxcnc.git linuxcnc-dev
sudo apt install debhelper-compat libudev-dev tcl8.6-dev tk8.6-dev libtk-img bwidget tclx libeditreadline-dev asciidoc dblatex docbook-xsl dvipng graphviz groff inkscape source-highlight w3c-linkchecker xsltproc texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-lang-cyrillic texlive-lang-french texlive-lang-german texlive-lang-polish texlive-lang-spanish texlive-latex-recommended asciidoc-dblatex python3-dev python3-tk libxmu-dev libglu1-mesa-dev libgtk2.0-dev libgtk-3-dev gettext intltool autoconf libboost-python-dev libmodbus-dev libusb-1.0-0-dev yapps2 libepoxy-dev python3-xlib
Optional (To generate the dependency list above):
    cd linuxcnc-dev/debian
    ./configure uspace
    Copy the result to text editor and remove version strings etc
cd ~/linuxcnc-dev/src
./autogen.sh
./configure --with-realtime=uspace
make
sudo make setuid
sudo apt install python3-pip
source ~/linuxcnc-dev/scripts/rip-environment
For Axis UI:
    pip3 install pyopengl
Run LinuxCNC
    ~/linuxcnc-dev/scripts/linuxcnc

Then, let's move on to installing Probe Basic
sudo apt install python3-pyqt5 python3-dbus.mainloop.pyqt5 python3-pyqt5.qtopengl python3-pyqt5.qsci python3-pyqt5.qtmultimedia python3-pyqt5.qtquick qml-module-qtquick-controls gstreamer1.0-plugins-bad libqt5multimedia5-plugins pyqt5-dev-tools python3-dev python3-setuptools python3-wheel python3-pip qttools5-dev qttools5-dev-tools
git clone git://github.com/kcjengr/qtpyvcp qtpyvcp
qtpyvcp master is already Python 3, no need to check out a branch
cd qtpyvcp
This is the part I haven't been able to figure out an elegant solution for
    featherpad setup.py
    Enable line numbers in: Options-> Line Numbers
    Modify line #62 to read version='0.4.0',
python3 -m pip install --editable .
cp ~/qtpyvcp/scripts/.xsessionrc ~/
Log Out / Log In
cd ~
git clone git://github.com/kcjengr/probe_basic.git
cd probe_basic
git checkout python3
Probe Basic master is not yet Python 3 so need to check out a branch
qcompile .
python3 -m pip install --editable .
cp -r ~/probe_basic/probe_basic/fonts/ ~/.local/share/
mkdir ~/linuxcnc
mkdir ~/linuxcnc/configs
cp -r ~/probe_basic/config/probe_basic/ ~/linuxcnc/configs/
cd ~
git clone git://github.com/kcjengr/qtpyvcp.conversational-gcode.git
cd qtpyvcp.conversational-gcode.git
git checkout python3
Conversational GCode master is not yet Python 3 so need to check out a branch
python3 -m pip install --editable .
Run some tests:
    pip3 list
        Check that qtpyvcp version is still
        If not, you might need to install it again, I think probe_basic overwrites it with a stock 0.3.9 version.
    qtpyvcp -v
        Should report python3_master+99.g8023f415.dirty (or similar depending on the newest commit)
    editvcp mini
        Should run nominally in QT Designer
    editvcp probe_basic
        Should run nominally in QT Designer
If you get unable to import ini from linuxcnc
    source ~/linuxcnc-dev/scripts/rip-environment

Now you should be able to run ~/linuxcnc-dev/scripts/linuxcnc again, choose Probe Basic from My Configurations.
Please let me know any comments/feedback. I've had a friend run through the guide twice but there might still be some errors.
Last edit: 27 Oct 2021 19:10 by spi. Reason: Fix a couple of errors and removed formatting that messed up the post.
The following user(s) said Thank You: tommylight, Clive S, anfänger, Aciera, snowgoer540, spumco

Please Log in or Create an account to join the conversation.

More
24 Oct 2021 12:46 #224088 by davidimurray
Thanks for documenting this - jusy working through it now

Noticed that -

git clone github.com/linuxcnc/linuxcnc.git linuxcnc-dev
needs to be
git clone git://github.com/linuxcnc/linuxcnc.git linuxcnc-dev

Please Log in or Create an account to join the conversation.

More
24 Oct 2021 14:57 #224093 by davidimurray
Also should -

cd ~/linuxcnc-dev

be

cd ~/linuxcnc-dev/src

Please Log in or Create an account to join the conversation.

More
24 Oct 2021 14:58 #224095 by davidimurray
Also

git clone github.com/kcjengr/qtpyvcp qtpyvcp

needs to be

git clone git://github.com/kcjengr/qtpyvcp qtpyvcp

Please Log in or Create an account to join the conversation.

More
24 Oct 2021 15:18 #224099 by davidimurray
seem to hit a deadend when i issue
python3 -m pip install --editable

output is :-

Usage:
/usr/bin/python3 -m pip install [options] <requirement specifier> [package-index-options] ...
/usr/bin/python3 -m pip install [options] -r <requirements file> [package-index-options] ...
/usr/bin/python3 -m pip install [options] [-e] <vcs project url> ...
/usr/bin/python3 -m pip install [options] [-e] <local project path> ...
/usr/bin/python3 -m pip install [options] <archive url/path> ...

--editable option requires 1 argument

Please Log in or Create an account to join the conversation.

More
24 Oct 2021 18:42 #224112 by davidimurray
Found the issue - missed the . off the end

Please Log in or Create an account to join the conversation.

More
24 Oct 2021 19:30 #224117 by spi
Thanks so much! I would edit my post but merely editing it seems to mess up the formatting. I'll see what I can do.

Please Log in or Create an account to join the conversation.

More
24 Oct 2021 19:31 #224118 by davidimurray
I ran through the process and apart from the git calls it seem to work.

Only thing is, i can open and edit probe-basic in vcp - but it doesn;t show up in the linuxcnc start list. Any ideas?

Thanks

Dave

Please Log in or Create an account to join the conversation.

More
24 Oct 2021 19:33 #224119 by spi
I haven't yet played with the editvcp part... I really don't know how it's supposed to work.

Please Log in or Create an account to join the conversation.

More
25 Oct 2021 03:23 #224172 by spumco
Thanks, this has gotten me closer to 2.9 & Probe Basic than anything else in the past few weeks.

As usual with anything Linux, I've run in to a snag.

Installed MX21 and followed all the steps above, including editing the various line to git clone git://...

LCNC starts and runs with axis, but probe basic (and any other GUI) fails with error messages.

I've attached the two pop-up unhandled exception windows as erroe01 and error02 text files, as well as the linuxcnc_debug and linuxcnc_print files.

Anyone have an idea what I screwed up?

Thx,
Ralph
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: KCJLcvette
Time to create page: 0.297 seconds
Powered by Kunena Forum