LinuxCNC on Linux Mint 19

  • BigJohnT
  • BigJohnT's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
More
03 Dec 2018 23:54 - 17 Jan 2019 13:02 #121786 by BigJohnT
LinuxCNC on Linux Mint 19 was created by BigJohnT
I've solved the issue with Linux Mint 19 and installing LinuxCNC.
The instructions are here:
gnipsel.com/linuxcnc/uspace/index.html

Thanks
JT
Last edit: 17 Jan 2019 13:02 by BigJohnT.
The following user(s) said Thank You: tivoi, MasterSpoon, dvn4life1972

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

More
04 Dec 2018 16:03 #121813 by islander261
Replied by islander261 on topic LinuxCNC on Linux Mint 19
JT

Just another data point. Last week I built Master on Linux 64 bit 4.9.130-2 real time on my Debian 9/LDME-3 hybrid system and it worked fine. I didn't try to installed documentation.

John

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

  • BigJohnT
  • BigJohnT's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
More
04 Dec 2018 20:25 #121822 by BigJohnT
Replied by BigJohnT on topic LinuxCNC on Linux Mint 19
Yea, I expect Debian to work fine as that it is the standard OS for LinuxCNC.

I built it on Linux Mint 18.3 this morning with full documents just fine. On Linux Mint 19 with/without documents I get the same error as above.

JT

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

More
05 Dec 2018 06:25 #121846 by cmorley
Replied by cmorley on topic LinuxCNC on Linux Mint 19
It's possible - I have a linuxcnc mint 19 - the kernel is older though.
It also locks up from time to time :(

I don't remember doing anything weird to do it.
I used the guide on the forum.

Chris M

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

More
05 Dec 2018 06:56 #121850 by tommylight
Replied by tommylight on topic LinuxCNC on Linux Mint 19
Good morning Chris, (or is it evening ??? I wonder.... )
Regarding locking,
- Linux Mint 18.3
- Linux HPi7 4.8.11-rt7 #1 SMP PREEMPT RT Sat May 5 10:50:35 CEST 2018 x86_64 x86_64 x86_64 GNU/Linux
- HP EliteDesk something or another
- AMD Radeon HD 8490
- Dual 23" monitors
Had 2 of the same PC
- one would hang completely as soon as i open Firefox with two windows and 10 to 15 tabs each
- the other hangs only if i open media player while everything else is opened ( audio or video ), the music or movie sound would continue to run but everything would halt.
Have no clue why this happens, i am using the latter for the last 4 months all day every day without any other issue.

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

More
07 Dec 2018 09:56 - 07 Dec 2018 10:01 #121994 by newbynobi
Replied by newbynobi on topic LinuxCNC on Linux Mint 19
I have build linuxcnc and glade 3.8.6 in a virtual machine with MINT 19 with success.

This are the steps I did:

Make our own linuxcnc system with MINT 19 (Tara)

first get the Image of Mint from
https://linuxmint.com/download.php

I choose the 64 bit release with Cinnamon

Install that release on your computer
My user is named linuxcnc and has the password linuxcnc,
please enter a password and select auto-login during setup!

so if you find in the following HowTo the user,
just replace with your name

with first reboot you will be asked to update your system,
please do so, update everything!

OK now your system is up to date,

Let's install the realtime preempt kernel

first we need to install some dependencies
sudo apt-get install build-essential kernel-package libncurses5-dev wget bzip2 libssl-dev

wget https://kernel.org/pub/linux/kernel/v4.x/linux-4.9.115.tar.xz 
wget https://www.kernel.org/pub/linux/kernel/projects/rt/4.9/patch-4.9.115-rt93.patch.gz
tar -xpf linux-4.9.115.tar.xz
gunzip patch-4.9.115-rt93.patch.gz
cp patch-4.9.115-rt93.patch linux-4.9.115
cd linux-4.9.115
cat patch-4.9.115-rt93.patch | patch -p1
cp /boot/config-`uname -r` ./.config
make oldconfig
make menuconfig

check for "Fully Preemptible Kernel(RT)"
and do activate this option
Exit with save!

in the terminal now enter:
make -j8

this will take a while, depending on your computer

go on with:
sudo make modules_install
sudo make install

After that step, I was forced to edit /etc/default/grub
as the grub menu did not appear and I was not able to select the realtime kernel.
I hat to comment :
#GRUB_TIMEOUT_STYLE=hidden

And then select the rt kernel

uname -a gave :
Linux linuxcnc 4.9.115-rt93 #1 SMP PREEMPT RT Sat Nov 24 17:09:54 CET 2018 x86_64 x86_64 x86_64 GNU/Linux

If this did work, you can delete the downloaded kernel packages in your home dir,
as they will occupy a lot of space and are not needed any more.

OK, lets get LinuxCNC from Source:

first need to install:
sudo apt-get install git git-gui gitk

and than clone the github
git clone https://github.com/LinuxCNC/linuxcnc.git linuxcnc-dev

as dpkg-checkbuilds needs assess to the source packages and as default the corresponding repositories are not enabled,
open synaptic from main menu, goto settings, packages and enable source code, check the corresponding box
close it and change to the terminal, enter
sudo apt-get update
cd linuxcnc-dev/debian
./configure uspace

you should get:
successfully configured for 'uspace-LinuxMint-18.2'-'uspace+xenomai'..
go on in the terminal
cd ..
dpkg-checkbuilddeps

should give you somethink like:
dpkg-checkbuilddeps: Fehler: Nicht erfüllte Bauabhängigkeiten: debhelper (>= 6) dh-python libudev-dev libxenomai-dev tcl8.6-dev tk8.6-dev libreadline-gplv2-dev asciidoc (>= 8.5) dblatex (>= 0.2.12) dvipng graphviz groff inkscape python-lxml source-highlight 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 w3c-linkchecker python-dev python-tk libxmu-dev libglu1-mesa-dev libgl1-mesa-dev | libgl1-mesa-swx11-dev libgtk2.0-dev intltool libboost-python-dev libmodbus-dev (>= 3.0) libusb-1.0-0-dev yapps2

just install all needed dependencies with:
sudo apt-get install debhelper dh-python libudev-dev libxenomai-dev tcl8.6-dev tk8.6-dev libreadline-gplv2-dev asciidoc dblatex dvipng graphviz groff inkscape python-lxml source-highlight 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 w3c-linkchecker python-dev python-tk libxmu-dev libglu1-mesa-dev libgl1-mesa-dev libgtk2.0-dev intltool libboost-python-dev libmodbus-dev libusb-1.0-0-dev yapps2

I had to install additionally:
sudo apt-get install bwidget
sudo apt-get install libtk-img

now go on with
cd src
./autogen.sh
./configure
make
sudo make setuid
cd ..
. ./scripts/rip-environment

linuxcnc
still not running, missed
sudo apt-get install python-gtkglext1
sudo apt-get install python-gtksourceview2
sudo apt-get install python-vte

OK we may need also glade 3.8.6 to make our own glade panels, so we need to install that:
If you followed this HowTo, you should not have installed glade, otherwise uninstall the official one
sudo apt-get remove glade
sudo apt-get install intltool python-gtk2-dev libxml2-dev gtk-doc-tools gnome-doc-utils liblablgtk2-gnome-ocaml-dev libglade2-dev python-gtkglext1 itstool
as we need an older version of libgladeui,

get it from here:
https://packages.ubuntu.com/trusty/amd64/libgladeui-1-11/download

and install with:
sudo dpkg --install /home/linuxcnc/Downloads/libgladeui-1-11_3.8.0-0ubuntu6_amd64.deb 
get the source of glade 3.8.6
in the terminal enter:
wget ftp://ftp.gnome.org/pub/GNOME/sources/glade3/3.8/glade3-3.8.6.tar.xz
tar -xpf glade3-3.8.6.tar.xz

cd glade3-3.8.6
./configure
make
sudo make install
type
glade-3

All OK?
Go On.

if that is also OK, we need to copy the hal widget glade catalog to the correct place.
backup the originals first
in the terminal enter:
sudo mkdir -p /usr/local/share/glade3/backup/catalogs
sudo mkdir -p /usr/local/share/glade3/backup/pixmaps
sudo cp /usr/local/share/glade3/catalogs/* /usr/local/share/glade3/backup/catalogs
sudo cp -r /usr/local/share/glade3/pixmaps/* /usr/local/share/glade3/backup/pixmaps

now copy/add the missing files to that dir with the following terminal commands
sudo cp ~/linuxcnc-dev/lib/python/gladevcp/*.xml /usr/local/share/glade3/catalogs
sudo cp ~/linuxcnc-dev/lib/python/gladevcp/*.png /usr/local/share/glade3/pixmaps

Now test in the terminal you did the command
cd
cd linuxcnc-dev
. ./scripts/rip-environment
just enter
glade-3

last is to make to start scripts:

first to start linuxcnc in rip mode:

just make a directory bin in your home folder and
add a file linuxcnc.sh with the following content
#!/bin/bash
cd /home/linuxcnc/linuxcnc-dev
. ./scripts/rip-environment
linuxcnc

Make that file executable

On your desktop make a starter

Name = linuxCNC
Command = /home/linuxcnc/linuxcnc.sh
Commend = Start LinuxCNC
And check the box "Start in Terminal"

A icon to be used may be:
/home/linuxcnc/linuxcnc-dev/linuxcncicon.png

Click OK and try that one out

lets do another starter for glade:

add a file glade-3.sh with the following content to the created bin folder
#!/bin/bash
cd /home/linuxcnc/linuxcnc-dev
. ./scripts/rip-environment
glade-3

Make that file executable

On your desktop make a starter

Name = Glade-3
Command = /home/linuxcnc/glade-3.sh
Commend = Start Glade 3.8.6
And check the box "Start in Terminal"

A beautifull icon to be used may be:
/usr/share/icon/Mint-X/apps/48/glade-3.png

Click OK and try that one out

Now be happy ;-)
Last edit: 07 Dec 2018 10:01 by newbynobi.
The following user(s) said Thank You: BigJohnT, tommylight, rodw, islander261, johnmc1, snoozer77

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

More
07 Dec 2018 11:04 #121999 by tommylight
Replied by tommylight on topic LinuxCNC on Linux Mint 19
Did install Mint 19 with Mate yesterday, installed a pre compiled RT kernel ( compiled on Mint 18.1 a long time ago, works even on Debian stretch), downloaded the plasmac version of git made by Phillc, everything works till building a deb for Linuxcnc, that fails with complaints about missing some xml and pdf files.

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

  • BigJohnT
  • BigJohnT's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
More
11 Dec 2018 12:45 #122204 by BigJohnT
Replied by BigJohnT on topic LinuxCNC on Linux Mint 19
newbynobi that is some very good instructions. I'm currently running Linux Mint 18.3 with a much newer kernel.
uname -a
Linux cave-mint18 4.19.1-rt3 #1 SMP PREEMPT RT Wed Dec 5 04:47:55 CST 2018 x86_64 x86_64 x86_64 GNU/Linux

JT

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

More
12 Dec 2018 22:17 #122319 by newbynobi
Replied by newbynobi on topic LinuxCNC on Linux Mint 19
Hallo John,

thanks for the kernel information, i will check on that and inform if the new kernel do work also with mint 19

Norbert

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

  • BigJohnT
  • BigJohnT's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
More
08 Jan 2019 23:28 #123801 by BigJohnT
Replied by BigJohnT on topic LinuxCNC on Linux Mint 19
Well I solved the problems with Linux Mint 19.1 and playing around with the RTD stuff posted all the Uspace info I had here . Still need to check some items but everything should work.

JT
The following user(s) said Thank You: KCJ, snoozer77

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

Time to create page: 0.184 seconds
Powered by Kunena Forum