# install Ubuntu 22.04 LTS # install with legacy (not UEFI/auto) set in BIOS # use LVM option when setting the install storage # activate pro version, to install rt kernel sudo apt update sudo apt upgrade sudo apt install -y ubuntu-advantage-tools sudo pro attach "insert ubuntu-Pro activation code here" sudo pro enable realtime-kernel # install pip wget https://bootstrap.pypa.io/get-pip.py python3 get-pip.py # install tools sudo apt install -y git sudo apt install -y dpkg-dev # clone githubs mkdir -p ~/dev/linuxcnc cd ~/dev/linuxcnc git clone https://github.com/LinuxCNC/linuxcnc.git rip cd ~/dev git clone https://github.com/kcjengr/qtpyvcp git clone https://github.com/kcjengr/probe_basic.git # get min dependencies sudo apt install -y debhelper dh-python libudev-dev docbook-xsl asciidoc imagemagick asciidoc-dblatex bwidget intltool libboost-python-dev libepoxy-dev libgl1-mesa-dev libglu1-mesa-dev libgtk-3-dev libmodbus-dev libgpiod-dev libusb-1.0-0-dev libxmu-dev po4a python3-dev python3-tk python3-xlib tcl8.6-dev tclx tk8.6-dev xvfb yapps2 dvipng fonts-dejavu graphviz groff inkscape python3-lxml source-highlight texlive-font-utils texlive-lang-cyrillic texlive-lang-european texlive-lang-french texlive-lang-german texlive-lang-polish texlive-lang-spanish w3c-linkchecker intltool libeditreadline-dev mesa-utils python3-opengl python3-configobj libgtksourceview-3.0-dev tclreadline # build linuxcnc cd ~/dev/linuxcnc/rip/debian/ ./configure uspace no-docs cd ~/dev/linuxcnc/rip/ dpkg-buildpackage -b -uc cd ~/dev/linuxcnc/ sudo dpkg -i linuxcnc-uspace_2.10.0~pre0_amd64.deb # fix missed dependencies sudo apt --fix-broken install ###################################################### # build qtpyvcp ###################################################### cd ~/dev/qtpyvcp python3 -m pip install --editable . cp scripts/.xsessionrc ~/ pip install docopt pip install psutil pip install qtpy pip install serial pip install hiyapyco pip install pyudev pip install deepdiff pip install sqlalchemy pip install markupsafe pip install vtk pip install simpleeval pip install pyqtgraph # check installation # qtpyvcp -i cd ~/dev/qtpyvcp/pyqt5designer/Qt5.15.2-64bit/python3.9/ sudo ./install.sh cp -r ~/dev/qtpyvcp/linuxcnc ~/ cd ~/dev/probe_basic/ qcompile . pip install -e . cp -r ~/dev/probe_basic/fonts/ ~/.local/share/ cp -r ~/dev/probe_basic/configs/probe_basic/ ~/linuxcnc/configs/ cp -r ~/dev/probe_basic/configs/probe_basic_lathe/ ~/linuxcnc/configs/ pip install git+https://github.com/kcjengr/qtpyvcp_conversational_gcode.git sudo apt install -y python3-pyqt5.qtquick ###################################################### # MISC ###################################################### ## test latency, maybe isolate cpus # glxgears ## firefox scrolling #env MOZ_USE_XINPUT2=1 firefox ##sudo apt-get install -y libcanberra-gtk3-module ##sudo apt-get install -y libcanberra-gtk-module ## install alacarte for editing system menu (add shortcut to linuxcnc) ## NAS: #sudo apt install -y samba #sudo apt install -y nfs-common echo 'restart if pyvcp iis not working repeat this part of the iinstall and build'