Ubuntu 14.04 linuxcnc instructions

More
28 Nov 2015 19:56 - 04 Dec 2015 03:37 #65969 by Razor_keen
How to install linuxcnc on ubuntu 14.04 64bit.. this script does not yet work. pls refer to ubuntu 14.04.1
linuxcnc help for a working method provided by tj march. (end of page 6 for 64 bit.) also works on fresh 14.04.1 or mint 17.2
This works after a fresh install of ubuntu 14.04.1

First go to kernel.ubuntu.com/~kernel-ppa/mainline/v3.18.24-vivid

download three files

0001-base-packaging.patch
0002-debian-changelog.patch
0003-configs-based-on-Ubuntu-3.18.0-7.8.patch

Then open terminal

cd ~
sudo apt-get update
sudo apt-get install build-essential bin86 kernel-package libqt4-dev libncurses5
-dev pkg-config
mkdir rtkernel
cd rtkernel
wget ftp://ftp.kernel.org/pub/linux/kernel/v3.x/linux-3.18.24.tar.xz
wget ftp://ftp.kernel.org/pub/linux/kernel/pr....18.24-rt22.patch.gz
tar -xpf linux-3.18.24.tar.xz
gunzip patch-3.18.24-rt22.patch.gz
cp patch-3.1824-rt22.patch linux-3.18.24
cd linux-3.18.24
cat patch-3.18.24-rt22.patch | patch -p1

at this point go to your folders icon and then go into the download folder. copy the three files you downloaded into the new folder linux-3.18.24 located in the rtkernel folder you created earlier.

continue in terminal

cat 0001-base-packaging.patch | patch -p1
cat 0002-debian-changelog.patch | patch -p1
cat 0003-configs-based-on-Ubuntu-3.18.0-7.8.patch | patch -p1

the next step is the configuration part. you will need to do some research on how to configure the rt kernel.

make xconfig
make
sudo make modules_install
sudo make install
sudo reboot

If you are doing this on a dell d830, the wifi will no longer work at this point. go back to terminal

sudo apt-get update
sudo apt-get install firmware-b43-installer
sudo apt-get remove bcmwl-kernel-source
sudo reboot

This should have fixed the wifi.

if you wish to not have to report the kernel change you can upgrade to 14.04.3 and download the kernel, which will get rid of the splash errors, but you will have to remember to go to the advanced options in grub and select your rt kernel at bootup. Before doing this revert to your original kernel in advanced options in grub

sudo apt-get dist-upgrade
sudo apt-get install linux-generic-lts-vivid

there will be one splash error but it will be related to the change we made to fix the wifi. Go ahead and click on it then deselect the check box and hit ok.

cd ~
sudo apt-get install git-core gitk git-gui
sudo apt-get install autoconf libmodbus-dev libusb-1.0-0-dev libudev-dev
sudo apt-get build-dep linuxcnc ___For some reason this one doesn't work...So use this next line...
sudo apt-get install cvs build-essential fakeroot debhelper libpth-dev libgtk2.0-dev kernel-wedge tcl8.6-dev tk8.6-dev bwidget python-old-doctools python-tk python-dev libglu1-mesa-dev libgtk2.0-dev libncurses5-dev libxaw7-dev gettext libreadline6-dev lyx texlive-extra-utils imagemagick texinfo groff qt4-dev-tools tclx libboost-all-dev libglib2.0-dev libtk-img
git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc-dev
cd linuxcnc-dev
git checkout 2.7
git pull
cd src
./autogen.sh
./configure --with-realtime=uspace
make
sudo make setuid
cd ..
. scripts/rip-environment

If you run accross this because of a google search, make sure to sign up for a linuxcnc account and hit thanks under my name if it works for you. There will be more later one configuring the bios and changing other settings on the d830 to make it an effective machine controller

P.s. if this doesnt work for you pls post in my other posting entitled ubuntu 14.04.1 linuxcnc help. thx
Last edit: 04 Dec 2015 03:37 by Razor_keen. Reason: notification of incomplete script
The following user(s) said Thank You: Zazakas

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

Time to create page: 0.285 seconds
Powered by Kunena Forum