Complete HOW-TO Linux Mint 18.1 32/64 RTAI or PREEMPT with RIP install or deb

  • ozzyrob
  • New Member
  • New Member
More
8 years 4 months ago #111514 by ozzyrob
There are 2.7 uspace packages available to install.

Download the Linuxcnc 2.7 iso.

Then do this:

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install linuxcnc-uspace

Job done.

Or if you want I can guide you through how to compile 2.8 for wheezy. There is even a script to install the few extra packages needed.

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

More
8 years 4 months ago #111517 by Sparky961

ozzyrob wrote: There are 2.7 uspace packages available to install.
Download the Linuxcnc 2.7 iso.

Then do this:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install linuxcnc-uspace


Indeed, this does look like the easier route. I'm in the process of doing exactly this right now to see how well it works. At the same time I'm seeing what it takes to get the equivalent working with Mint, though I don't see an advantage to one over the other so the easiest setup will win for me.

Maybe you can answer a related question while we're at it: Is 'apt-get dist-upgrade' a completely safe and reliable thing to do after installing a new distribution? It seems to be very invasive and download a lot of data. I'm on a slower rural ground-based wireless ISP and I just let it run overnight because it was taking so long. At some point the connection must have been dropped, or reset, or otherwise failed because I had to restart them (running both VirtualBox sessions at the same time) when I woke up this morning. The LinuxCNC 2.7 install has since completed, while Mint 17.1 is still going.

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

  • ozzyrob
  • New Member
  • New Member
More
8 years 4 months ago #111534 by ozzyrob
Yeah it's safe, I don't know if you noticed but when you first boot the Linuxcnc install in the top right there is a message about 300 or so updates available. The version of Linuxcnc that is installed is 2.7.0.

I think you'll find the Linuxcnc 2.7 install is the easiest, no need to compile a kernel. apt-get does it all.

You may want to look at this available for both debian & Linux Mint:
aptoncd.sourceforge.net/

Should save you a bit of time when you decide to do an install of your cnc computer. Allows you to save all the updates and and extras you install on a cd. I usally add geany + geany-plugins (a tabbed text editor), midnight commander and gftp (a gui ftp client) to any install I do.

One thing I will do when I get my new MB is do some comparison testing between XFCE & LXDE on latency......on one machine I was testing on LXDE seemed to have lower latencies........but that was with an install of a Slackware based distro, with a self compiled kernel and install of Linuxcnc.

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

More
8 years 4 months ago #111546 by Sparky961

ozzyrob wrote: There are 2.7 uspace packages available to install.
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install linuxcnc-uspace

Job done.


Or not... This is the part of linux that gets frustrating for anyone less than an advanced user. I did this, plus a few other things that will be listed below, and ended up with an error. I've been logging each command executed and the result thereof so that I could post it when I ran into a problem.

Here it is:
Code:
LinuxCNC 2.7 Wheezy (linuxcnc-2.7-wheezy.iso) sudo apt-get update --> Seemed to work - lots of scrolling terminal output, no obvious errors sudo apt-get upgrade-dist --> wow, that takes a long time and does a lot of scary stuff... but otherwise seemed to work uname -r --> 3.4.9-rtai-686-pae tested linuxcnc --> axis sim works (RTAPI ERROR: Unexpected realtime delay on task 1 - likely due to running in VirtualBox) tested glade --> version 3.8.0, preferences window has GtkBuilder (default) and Libglade, HAL Python and VCP Actions widget panels are displayed install VirtualBox Guest Additions with instructions at: https://www.linuxbabe.com/desktop-linux/how-to-install-virtualbox-guest-additions-on-debian-step-by-step sudo apt-get install build-essential module-assistant sudo m-a prepare [mount cd image] sudo sh /media/cdrom/autorun.sh --> Seemed to build kernal module ok. Restart --> VirtualBox Guest Additions isn't working properly, based on auto-resize guest window not working. Not a problem, but annoying. sudo apt-get install linuxcnc-uspace --> "Package linuxcnc-uspace is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'linuxcnc-uspace' has no installation candidate' "

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

More
8 years 4 months ago #111548 by Sparky961
According to these instructions ( linuxcnc.org/docs/html/getting-started/g...th_preempt_rt_kernel ) there's an important step that was missed. It looks like I need to install a preempt-rt kernel first. See #4 at above link.

I'm waiting for 80+ MB now and will try continuing through those instructions to see if I get positive results.

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

  • ozzyrob
  • New Member
  • New Member
More
8 years 4 months ago - 8 years 4 months ago #111551 by ozzyrob
Installing uspace will also install the kernel no need to build one.

if not try:
Code:
sudo apt-get --install-recommends linuxcnc-uspace

Do you have a
Code:
/etc/apt/sources.list.d/linuxcnc.list

Mine is as such, if you edit yours to match make sure to do
Code:
sudo apt-get update
Code:
deb http://linuxcnc.org/ wheezy base 2.7-rtai deb-src http://linuxcnc.org/ wheezy base 2.7-rtai deb http://linuxcnc.org/ wheezy 2.7-uspace deb-src http://linuxcnc.org/ wheezy 2.7-uspace #deb http://buildbot.linuxcnc.org/ wheezy master-rt #deb-src http://buildbot.linuxcnc.org/ wheezy master-rt #deb http://buildbot.linuxcnc.org/ wheezy 2.7-rt #deb-src http://buildbot.linuxcnc.org/ wheezy 2.7-rt

Just checked and seems to be working.
Last edit: 8 years 4 months ago by ozzyrob.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum