LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-01-2022, 09:17 PM   #1
sjhebrock
LQ Newbie
 
Registered: Feb 2022
Posts: 5

Rep: Reputation: 0
Question Command assistance


I'm completely new to Linux, and am trying to install some hardware on my Linux machine that runs LinuxCNC (a CNC machining control program). Problem is, I don't understand the following from the hardware instruction sheet -

2. Put Makefile, vc-m1 and 99-vistacnc-pendant.rules to “src” under home directory ~/src$. If there is a Makefile in that directory, name that make file to different name, like Makefile_old.

Can anyone please explain where these files are to go, and if there's something more complicated about it than just copying the files to that location (wherever "that location" is!)?

Many thanks!
 
Old 02-01-2022, 09:29 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
That sounds like instructions for installing from sources (that is, source code). This is a good tutorial about how to do that: https://www.linux.com/news/how-insta...-source-linux/

To install from sources, you need to have kernel headers installed; most distros do not include them in a base install to save space in the installation *.iso, but you can find them in the repos.

What distro version are you running?

Oh, and welcome to LQ.

Last edited by frankbell; 02-01-2022 at 09:31 PM.
 
1 members found this post helpful.
Old 02-01-2022, 09:30 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Yep, it's just that simple. But note my sigline.
"that location" is a directory (folder to Windows users) that appears to exist - the "~/src$" will resolve automatically to your users directory; something like /home/sjhebrock/src$/ for example.

If using a GUI file manager simply drag and drop - after renaming that old Makefile if neccessary (right-click the file). Note that in linux, file (and directory) names are case sensitive.
 
1 members found this post helpful.
Old 02-01-2022, 09:36 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

it may help us if we can know exactly what you are trying to install and if we can actually see the "hardware instruction sheet"? Is it online somewhere?
Maybe here: http://vistacnc.com/a03_download/download.htm?

But roughly it seems that it wants you to do something like:
Code:
mkdir ~/src
cp Makefile vc-m1 99-vistacnc-pendant.rules ~/src/
Or if ~/src already exists:
Code:
mv ~/src/Makefile ~/src/Makefile_old
cp Makefile vc-m1 99-vistacnc-pendant.rules ~/src/
Evo2.
 
1 members found this post helpful.
Old 02-02-2022, 07:23 AM   #5
sjhebrock
LQ Newbie
 
Registered: Feb 2022
Posts: 5

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by evo2 View Post
Hi,

it may help us if we can know exactly what you are trying to install and if we can actually see the "hardware instruction sheet"? Is it online somewhere?
Maybe here: http://vistacnc.com/a03_download/download.htm?

But roughly it seems that it wants you to do something like:
Code:
mkdir ~/src
cp Makefile vc-m1 99-vistacnc-pendant.rules ~/src/
Or if ~/src already exists:
Code:
mv ~/src/Makefile ~/src/Makefile_old
cp Makefile vc-m1 99-vistacnc-pendant.rules ~/src/
Evo2.
Yes, the instruction sheet is on that page under "M1 Driver and Installation Package v1.20." As you've probably already seen, this is for what's called a "jog pendant" - a handheld USB controller that emulates keyboard strokes to control the machine.

Specifically, I'm baffled by what the "src" and "~/src$" mean. I'm an MSDOS/Windows guy, and these baffle me!

Also, there are two file folders included in the installation package for 32-bit and 64-bit Linux OS, but no mention of them in the installation instructions - another mystery!

Sincere thanks for your assistance!
 
Old 02-02-2022, 05:09 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by sjhebrock View Post
Yes, the instruction sheet is on that page under "M1 Driver and Installation Package v1.20." As you've probably already seen, this is for what's called a "jog pendant" - a handheld USB controller that emulates keyboard strokes to control the machine.
Ok, it seems that you are reading 'M1 LinuxCNC Installation Instruction.pdf' from
http://vistacnc.com/manual_download/...1_linuxCNC.zip
Quote:
Originally Posted by sjhebrock View Post
Specifically, I'm baffled by what the "src" and "~/src$" mean. I'm an MSDOS/Windows guy, and these baffle me!

Also, there are two file folders included in the installation package for 32-bit and 64-bit Linux OS, but no mention of them in the installation instructions - another mystery!

Sincere thanks for your assistance!
The installation instructions are on the first page of the pdf. Here I'll assume that you are using a 64-bit OS with kernel 2.8 or later.

Step "2."
If you're used to dos then you should have no problem on the command line. Assuming that you are in the same directory as the files extracted from the zip file:
Code:
mkdir ~/src/
cp Makefile ~/src/
cp vc-m1-64bit/vc-m1 ~/src/
cp 99-vistacnc-pendant.rules ~/src/
cd ~/src/

Step "3."
The next step requires you to be root or using su or sudo. I don't know how your system is configured, but one of the following should work

Option a)
Code:
sudo make install
You'll be prompted for *your* password.

Option b) (if option 1 didn't work)
Code:
su -l
make install
exit
With this, you'll be prompted for the *root* password.

Step "4."
You are supposed to copy vm-m1.hal file to somewhere. It specifies the same location as the ".ini" file. I have no idea what or where that is.
But assuming you know or can find out. Let's call it "/foo/bar/". You'd do:
Code:
cp 'vc-m1 HAL for 2.8 and above/vc-m1.hal' /foo/bar/
The instructions in steps 5. and 6. again refer to the .ini file an to another file that I again know nothing of: custom_postgui.hal.

Perhaps you know something about these files?

Evo2.

P.S. I just realised that the "2.8 and above" may be referring to the version of LinxCNC and not the version of the Linux kernel.

Last edited by evo2; 02-02-2022 at 05:36 PM. Reason: P.S.
 
1 members found this post helpful.
Old 02-02-2022, 08:15 PM   #7
sjhebrock
LQ Newbie
 
Registered: Feb 2022
Posts: 5

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by evo2 View Post
Here I'll assume that you are using a 64-bit OS with kernel 2.8 or later.
What you sent is wonderful, Evo2, and I very much appreciate the time you spent writing out the instructions.

But now I'm hung up on trying to figure out whether I need the 32-bit or 64-bit files. The computer is running UBUNTU 10.04 LTS, which apparently has both 32-bit and 64-bit versions according to the web, and I don't know how/where to determine which files to install. Can you shed any light on this?

Thanks!
 
Old 02-03-2022, 12:10 AM   #8
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,768

Rep: Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192
Code:
uname -a
arch
hostnamectl
Or examine a binary executable
Code:
file /bin/ls
If that is a symlink then examine its target!

Last edited by MadeInGermany; 02-03-2022 at 05:17 AM.
 
1 members found this post helpful.
Old 02-03-2022, 01:38 AM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by sjhebrock View Post
What you sent is wonderful, Evo2, and I very much appreciate the time you spent writing out the instructions.
No problem, we all had to start somewhere.
Quote:
Originally Posted by sjhebrock View Post
But now I'm hung up on trying to figure out whether I need the 32-bit or 64-bit files. The computer is running UBUNTU 10.04 LTS,
LOL, that's quite a dinosaur! I'm assuming it is not connected to the internet.

Quote:
Originally Posted by sjhebrock View Post
which apparently has both 32-bit and 64-bit versions according to the web, and I don't know how/where to determine which files to install. Can you shed any light on this?
See MadeInGermany's post for the answer.

Cheers,

Evo2.
 
1 members found this post helpful.
Old 02-03-2022, 07:52 AM   #10
sjhebrock
LQ Newbie
 
Registered: Feb 2022
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you everyone, for your insights and assistance. I did manage to get everything installed per the instructions, but (of course!) now the program just crashes...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need some assistance with the find command jim.thornton Linux - Newbie 4 05-04-2013 07:35 AM
Command Assistance stevo520 Linux - Newbie 2 06-26-2012 05:38 PM
[SOLVED] Command Expansion Assistance hattori.hanzo Programming 1 11-02-2010 01:59 AM
Alias command assistance to simplify norto Linux - Newbie 1 09-11-2008 01:55 AM
Perl script assistance; paste word into external command bru Programming 3 02-21-2007 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration