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

More
03 Jun 2018 18:23 #111534 by InMyDarkestHour
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
03 Jun 2018 20:14 #111546 by Sparky961

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:
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
03 Jun 2018 20:22 #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.

More
03 Jun 2018 20:33 - 03 Jun 2018 20:40 #111551 by InMyDarkestHour
Installing uspace will also install the kernel no need to build one.

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

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

Mine is as such, if you edit yours to match make sure to do
sudo apt-get update
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: 03 Jun 2018 20:40 by InMyDarkestHour.

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

More
03 Jun 2018 21:02 #111556 by Sparky961
So in the meantime, as I'm working and posting at the same time, I did install the preempt-rt kernel and everything seems to be working with that. Maybe I'll have to uninstall that later, and I hope it's as easy as installing - because that was truly painless.

My /etc/apt/sources.list.d/linuxcnc.list does not match what you provided. I have not manually altered it from the initial install, so I see two possibilities: 1. you or some other application has added the -uspace lines to yours 2. some other application has removed the -uspace lines from mine. ;)



So now I have to decide which of the two instruction sets to keep following....

(Aside: Sorry if this is to be considered "thread hijacking". It started out related but has taken a different direction than I anticipated. Feel free to tell me to take it elsewhere.)

On a related note, the dist-upgrade for my Mint install is STILL running. I'm not far off from 24 hours of run time on that now. It has until tomorrow morning to finish, then I'll have to restart it at work. On the plus side, my work network is blazing fast in comparison to home.
Attachments:

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

More
03 Jun 2018 21:08 #111558 by InMyDarkestHour
Yeah sorry I added the uspace lines, should have mentioned that.

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

More
03 Jun 2018 21:14 #111559 by Sparky961
No need to apologize. If I'm not used to conflicting and incomplete information by now I really shouldn't be doing this. :P

I wonder if step #8 in the "Getting LinuxCNC" article will alter that file in the same way. It seems it's doing the same thing. I'll check if this file is altered after I'm done.

linuxcnc.org/docs/html/getting-started/g...th_preempt_rt_kernel

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

More
03 Jun 2018 21:19 #111560 by InMyDarkestHour
I didn't even see that, I just added the sources and went ahead on my own.....note to self RTFM ;)

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

More
03 Jun 2018 21:42 #111562 by Sparky961
Yup, seems that what it did. The only difference being it replaced the lines rather than adding them.

Attachments:

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

More
04 Jun 2018 06:43 #111576 by AGK
wiki.linuxcnc.org/cgi-bin/wiki.pl?Translation - The next. 4. Building the Document I do this:

agk@debian:~$ cd linuxcnc-dev/src
agk@debian:~/linuxcnc-dev/src$ ./autogen.sh
agk@debian:~/linuxcnc-dev/src$ ./configure --enable-build-dokumentation >> /home/debian/Desktop/configure.txt 2>&1
bash: /home/debian/Desktop/configure.txt: Datei oder Verzeichnis nicht gefunden
and:
agk@debian:~/linuxcnc-dev/src$ ./configure --enable-build-dokumentation >> /home/debian/Desktop?/configure.txt 2>&1
bash: /home/debian/Desktop?/configure.txt: Datei oder Verzeichnis nicht gefunden

What is wrong?

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

Time to create page: 0.248 seconds
Powered by Kunena Forum