Author Topic: Off topic ... Some help with Linux please  (Read 14507 times)

Offline therecklessengineer

  • Administrator
  • Oil obsessive
  • *****
  • Posts: 648
Re: Off topic ... Some help with Linux please
« Reply #15 on: December 09, 2013, 11:38:55 PM »
julian@julian-HP:~$ unzip reprap-mendel-20120421.zipcd reprap-mendel-20120421
unzip:  cannot find or open reprap-mendel-20120421.zipcd, reprap-mendel-20120421.zipcd.zip or reprap-mendel-20120421.zipcd.ZIP.

This bit should be two lines

Code: [Select]
unzip reprap-mendel-20120421.zip
then

Code: [Select]
cd reprap-mendel-20120421
and finally

Code: [Select]
./reprap

Offline Julian

  • Administrator
  • Oil baron
  • *******
  • Posts: 6391
    • Used Cooking Oil Collection website
  • Location: East Surrey, UK.
Re: Off topic ... Some help with Linux please
« Reply #16 on: December 09, 2013, 11:40:36 PM »
Oh, sorry ... I'll try again
Used Cooking Oil Collection website ... http://www.surreyusedcookingoilcollection.palmergroup.co.uk

Offline therecklessengineer

  • Administrator
  • Oil obsessive
  • *****
  • Posts: 648
Re: Off topic ... Some help with Linux please
« Reply #17 on: December 09, 2013, 11:41:13 PM »
isnt he logged on as root?

(my days of linux ended arround red hat 6 time - for years i had a box doing 'stuff' that had no gui, and not even a monitor or keyboard attached - but its all very hazy now!)

No, he's alternating between running a new shell as root and running as Julian. I can't quite pin down the exact problem here, but that is I think where it lies. Specifically with the command to run a new shell in the script.

Offline therecklessengineer

  • Administrator
  • Oil obsessive
  • *****
  • Posts: 648
Re: Off topic ... Some help with Linux please
« Reply #18 on: December 09, 2013, 11:42:38 PM »
You know you can use the tab key to autfill most of this?

Quote
unzip re
followed by the tab key should fill in the rest.

Offline Julian

  • Administrator
  • Oil baron
  • *******
  • Posts: 6391
    • Used Cooking Oil Collection website
  • Location: East Surrey, UK.
Re: Off topic ... Some help with Linux please
« Reply #19 on: December 09, 2013, 11:48:31 PM »
Code: [Select]
julian@julian-HP:~$ unzip reprap-mendel-20120421.zip
Archive:  reprap-mendel-20120421.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of reprap-mendel-20120421.zip or
        reprap-mendel-20120421.zip.zip, and cannot find reprap-mendel-20120421.zip.ZIP, period.
julian@julian-HP:~$ cd reprap-mendel-20120421
bash: cd: reprap-mendel-20120421: No such file or directory
julian@julian-HP:~$ ./reprap
bash: ./reprap: Is a directory
julian@julian-HP:~$


Sorry for the delay, forum seen to be locking up, other pages are ok.

Didn't know about the tab key ... remember you're dealing with a 10 year old with the typing skills of s chimp!
Used Cooking Oil Collection website ... http://www.surreyusedcookingoilcollection.palmergroup.co.uk

Offline therecklessengineer

  • Administrator
  • Oil obsessive
  • *****
  • Posts: 648
Re: Off topic ... Some help with Linux please
« Reply #20 on: December 09, 2013, 11:51:05 PM »
Yup, sorry. Screwed up slightly.

Despite downloading a .zip file - it's empty.

I'll write it out again in the morning.

Offline Julian

  • Administrator
  • Oil baron
  • *******
  • Posts: 6391
    • Used Cooking Oil Collection website
  • Location: East Surrey, UK.
Re: Off topic ... Some help with Linux please
« Reply #21 on: December 09, 2013, 11:56:34 PM »
I've just checked. I do have a directory "reprap" c/w all files already in "Home" and a new "bin" directory containing the file "reprap".  Are they of any use?

On thing I did  notice was a discrepancy (there appear to be two version on the reprap wiki) in the reprap file in the bin directory.  I tried both versions to  o avail.   Is it possible to work out from the files in the reprap directory what the reprap file in the bin directory should be?

These were the two versions ...

Code: [Select]
#!/bin/sh
cd /usr/local/reprap-nnnnnn-yyyymmdd
./reprap

Code: [Select]
#!/bin/sh
cd /usr/local/reprap 64bit-mendel-20100719
./reprap

Used Cooking Oil Collection website ... http://www.surreyusedcookingoilcollection.palmergroup.co.uk

Offline Julian

  • Administrator
  • Oil baron
  • *******
  • Posts: 6391
    • Used Cooking Oil Collection website
  • Location: East Surrey, UK.
Re: Off topic ... Some help with Linux please
« Reply #22 on: December 09, 2013, 11:57:45 PM »
Yup, sorry. Screwed up slightly.

Despite downloading a .zip file - it's empty.

I'll write it out again in the morning.

OK, no problem, thanks ever so much for your help tonight.
Used Cooking Oil Collection website ... http://www.surreyusedcookingoilcollection.palmergroup.co.uk

Offline Julian

  • Administrator
  • Oil baron
  • *******
  • Posts: 6391
    • Used Cooking Oil Collection website
  • Location: East Surrey, UK.
Re: Off topic ... Some help with Linux please
« Reply #23 on: December 10, 2013, 12:01:43 AM »
Sorry, copied the files wrong.

One was ...

reprap 64bit-mendel-20100719

and the other

reprap 20100719

I think!
Used Cooking Oil Collection website ... http://www.surreyusedcookingoilcollection.palmergroup.co.uk

Offline therecklessengineer

  • Administrator
  • Oil obsessive
  • *****
  • Posts: 648
Re: Off topic ... Some help with Linux please
« Reply #24 on: December 10, 2013, 07:29:52 AM »
Having a bin directory is only necessary if it's in /usr/local/

If the folders are in your home directory then you don't need a bin or the script file.

I'm not sure where we are now exactly. You should remove any reprap directories, bin directories that you've created, and script files before doing the below.

First check we're in the home directory

Code: [Select]
cd ~/
Then we get the file (we have to get the master .zip from github which gives us an extra step)

Code: [Select]
wget https://github.com/reprap/release/archive/master.zip
Extract the .zip

Code: [Select]
unzip master.zip
cd into the created directory

Code: [Select]
cd release-master
unzip the file we should have got before

Code: [Select]
unzip reprap-mendel-20120421.zip
Now, we're one directory deep so we'll move the directory just created to your home folder and rename it to something a little more friendly at the same time

Code: [Select]
mv reprap-mendel-20120421 ~/reprap
So now we have the files in the folder "reprap" inside your home directory

Finally we cd into our new directory:

Code: [Select]
cd ~/reprap/
And run the program

Code: [Select]
./reprap

Offline Julian

  • Administrator
  • Oil baron
  • *******
  • Posts: 6391
    • Used Cooking Oil Collection website
  • Location: East Surrey, UK.
Re: Off topic ... Some help with Linux please
« Reply #25 on: December 10, 2013, 09:19:04 AM »
I did a lot of playing last night based on what you said about being easier to run all this from the home folder and ended up with a load of, what appeared to be Java warnings.  At one point unzipping the 2012 reprap file I got messages that the file was corrupt and found a 2010 file that seemed OK, however I'll clear all the stuff I put in the home folder and proceed as you suggest.
Used Cooking Oil Collection website ... http://www.surreyusedcookingoilcollection.palmergroup.co.uk

Offline Julian

  • Administrator
  • Oil baron
  • *******
  • Posts: 6391
    • Used Cooking Oil Collection website
  • Location: East Surrey, UK.
Re: Off topic ... Some help with Linux please
« Reply #26 on: December 10, 2013, 09:27:37 AM »
Hmm, very similar to what I got last night ....

Code: [Select]
julian@julian-HP:~/reprap$ ./reprap
java.lang.UnsatisfiedLinkError: /home/julian/reprap/librxtxSerial.so: /home/julian/reprap/librxtxSerial.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) thrown while loading gnu.io.RXTXCommDriver
Exception in thread "RepRap" java.lang.UnsatisfiedLinkError: /home/julian/reprap/librxtxSerial.so: /home/julian/reprap/librxtxSerial.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
at java.lang.Runtime.loadLibrary0(Runtime.java:844)
at java.lang.System.loadLibrary(System.java:1051)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
at org.reprap.comms.GCodeReaderAndWriter.openSerialConnection(Unknown Source)
at org.reprap.comms.GCodeReaderAndWriter.init(Unknown Source)
at org.reprap.comms.GCodeReaderAndWriter.<init>(Unknown Source)
at org.reprap.machines.GCodeRepRap.<init>(Unknown Source)
at org.reprap.machines.MachineFactory.create(Unknown Source)
at org.reprap.Main.<init>(Unknown Source)
at org.reprap.Main$12.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:673)
at java.awt.EventQueue.access$300(EventQueue.java:96)
at java.awt.EventQueue$2.run(EventQueue.java:634)
at java.awt.EventQueue$2.run(EventQueue.java:632)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:108)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:643)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
julian@julian-HP:~/reprap$
Used Cooking Oil Collection website ... http://www.surreyusedcookingoilcollection.palmergroup.co.uk

Offline Julian

  • Administrator
  • Oil baron
  • *******
  • Posts: 6391
    • Used Cooking Oil Collection website
  • Location: East Surrey, UK.
Re: Off topic ... Some help with Linux please
« Reply #27 on: December 10, 2013, 09:32:08 AM »
There is some stuff at the bottom of this page ...

http://reprap.org/wiki/Installing_RepRap_on_your_computer

That covers using the software with 64 bit Ubuntu (which is what I'm running).  Is that worth a try?


« Last Edit: December 10, 2013, 09:33:48 AM by Julian »
Used Cooking Oil Collection website ... http://www.surreyusedcookingoilcollection.palmergroup.co.uk

Offline therecklessengineer

  • Administrator
  • Oil obsessive
  • *****
  • Posts: 648
Re: Off topic ... Some help with Linux please
« Reply #28 on: December 10, 2013, 09:55:03 AM »
Yes, quite correct. You don't make it easy for yourself!  :o

Try

Code: [Select]
cd ~/reprap/
we'll install the 64 bit version of the necessary Java libraries

Code: [Select]
sudo apt-get install libjava3d-jni
And point the symbolic link (think 'shortcut' in Windows terms) at the new library version

Code: [Select]
ln -sf /usr/lib/jni/libj3dcore-ogl.so

Offline therecklessengineer

  • Administrator
  • Oil obsessive
  • *****
  • Posts: 648
Re: Off topic ... Some help with Linux please
« Reply #29 on: December 10, 2013, 10:02:02 AM »
I have assumed that you've installed Java?

Code: [Select]
sudo apt-get install openjdk-7-jre if you haven't