Test and Measurement Forum

Not (yet)possible to install on my Linux O.S.

Discussion forum for the new Picoscope Linux software

Not (yet)possible to install on my Linux O.S.

Postby AnalogueMan » Thu Feb 23, 2017 10:50 am

Hello, first timer here. :)
Because my linux O.S. has Synaptic as package manager, the distro I am using PCLinuxOS. has
rpm-based package management and not deb-based as is normally assumed by PicoScope concerning Linux.
But I read somewhere that also .rpm install files are available and I visited

https://labs.picotech.com/rpm/x86_64

and downloaded

picomono-2.10.8-1r02.x86_64.rpm

using terminal to install this, I navigated to the directory were I put the file and did :

#rpm -ivh https://labs.picotech.com/rpm/x86_64/

then I imported the public key with:

#wget -O - http://labs.picotech.com/debian/dists/p ... se.gpg.key | gpg --import

and got the impression that everything went well exept for the message that it was written to 'stdout' [959/959]. Which I did not understand.
Then I did:

#apt-get install picoscope

and got the message that 'deb' was unknown so nothing happened.
I am stuck now and do not know how to act further.
Can sombody help me please?

Here my command sequence:
Attachments
PicoScope-install-problem-1.jpg
Last edited by AnalogueMan on Sat Feb 25, 2017 7:36 pm, edited 1 time in total.
AnalogueMan
Newbie
 
Posts: 0
Joined: Tue Feb 21, 2017 11:25 am

Re: Not (yet)possible to install on my Linus O.S.

Postby Martyn » Thu Feb 23, 2017 11:45 am

All the rpm files are available from one level up PicoScope is noarch and the device drivers are in the directory you found our version of mono.
Martyn
Technical Support Manager
Martyn
Site Admin
Site Admin
 
Posts: 2716
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Not (yet)possible to install on my Linus O.S.

Postby AnalogueMan » Thu Feb 23, 2017 1:07 pm

Martyn wrote:All the rpm files are available from one level up PicoScope is noarch and the device drivers are in the directory you found our version of mono.


Thanks Martyn for your quick reply. But I do need some more help please.
Yes, If I go to noarch I see the rpm files ( I think I need the last one)but in order to not stuck again can you please give me the appropriate steps to execute?
For instance, I had problems with the terminal command for importing the public key especially after the pipe:
| apt-key add -
because PCLinuxOS bash did not recognize this command (complaint something about the hyphen -). Had to do a internet search to get it working (?) with
| gpg --import
but I am still in doubt due to that mysterious comment given by bash after executing this command line.
For the record my O.S. is KDE4-64bit
Thanks in advance.
AnalogueMan
Newbie
 
Posts: 0
Joined: Tue Feb 21, 2017 11:25 am

Re: Not (yet)possible to install on my Linus O.S.

Postby AnalogueMan » Fri Feb 24, 2017 2:27 pm

Well, I hope that is Forum isn't letting me down on this subject... :(
AnalogueMan
Newbie
 
Posts: 0
Joined: Tue Feb 21, 2017 11:25 am

Re: Not (yet)possible to install on my Linus O.S.

Postby Martyn » Fri Feb 24, 2017 10:24 pm

Download the latest one and then install the rpm from the terminal as you did with our Pico version of mono.
Martyn
Technical Support Manager
Martyn
Site Admin
Site Admin
 
Posts: 2716
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Not (yet)possible to install on my Linus O.S.

Postby AnalogueMan » Sat Feb 25, 2017 2:58 pm

Martyn wrote:Download the latest one and then install the rpm from the terminal as you did with our Pico version of mono.


Did what you wrote in your recent response. Downloaded and tried to install

# rpm -ivh picoscope-6.11.13-4r3.noarch.rpm

Then there was a complain about a lot of missing dependences which were displayed in a list and I downloaded and installed them all.
After then I again executed steps

#wget -O - http://labs.picotech.com/debian/dists/p ... se.gpg.key | gpg --import

#apt-get install picoscope

And again I got the complained :

E: Type 'deb' is not known in on line 1 in source list /etc/apt/sources.list.d/picoscope.list
E: The list of sources cpuld not be read.


Looking into that list I see on line 1 (there is only one line in that list):

deb http://labs.picotech.com/debian/ picoscope main

Do I have to change this into something where a reference to rpm is made?
AnalogueMan
Newbie
 
Posts: 0
Joined: Tue Feb 21, 2017 11:25 am

Re: Not (yet)possible to install on my Linux O.S.

Postby Martyn » Mon Feb 27, 2017 7:05 am

You are trying to use the Debian based instructions, try opening up the section Fedora 20 / CentOS 6 (yum), on this page

Otherwise just download each package and install manually using rpm, you will need

PicoScope 6.11
PicoMono
and all the lib files for the pico devices
Martyn
Technical Support Manager
Martyn
Site Admin
Site Admin
 
Posts: 2716
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Not (yet)possible to install on my Linux O.S.

Postby AnalogueMan » Mon Feb 27, 2017 11:34 am

Martyn wrote:You are trying to use the Debian based instructions, try opening up the section Fedora 20 / CentOS 6 (yum), on this page

Otherwise just download each package and install manually using rpm, you will need

PicoScope 6.11
PicoMono
and all the lib files for the pico devices


But I DID download each package inclusive those lib files.
Installing those does not give problems.
The problem appears AFTER I execute the command

#apt-get install picoscope

The I am again facing that stupid

E: Type 'deb' is not known in on line 1 in source list /etc/apt/sources.list.d/picoscope.list
E: The list of sources cpuld not be read.


And I get stuck
I think I will give up if I do not get any help to get over this last problem :(
AnalogueMan
Newbie
 
Posts: 0
Joined: Tue Feb 21, 2017 11:25 am

Re: Not (yet)possible to install on my Linux O.S.

Postby Martyn » Mon Feb 27, 2017 1:32 pm

#apt-get install picoscope

this is part of the debian install instructions, you need to forget these totally, they will only work on a Debian system.

Please goto "Fedora 20 / CentOS 6 (yum)" section, to open up the instructions that will work with rpm based systems, it will hide the debian ones.

Code: Select all
Debian / Ubuntu / Mint (apt-get)

OpenSUSE 12/13 (zypper)

Fedora 20 / CentOS 6 (yum)

Add repository to the updater
sudo curl -o /etc/yum.repos.d/picoscope.repo http://labs.picotech.com/rpm/picoscope.repo
Import public key
sudo rpmkeys --import http://labs.picotech.com/rpm/repodata/repomd.xml.key
Update package manager cache
sudo yum check-update
install PicoScope
sudo yum install picoscope
To fully support PicoScope 6 on Linux your system has to provide Mono installation 2.10.8 or newer. On information how to get Mono installed on CentOS 6 follow instruction in this forum thread.
Martyn
Technical Support Manager
Martyn
Site Admin
Site Admin
 
Posts: 2716
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Not (yet)possible to install on my Linux O.S.

Postby AnalogueMan » Mon Feb 27, 2017 7:04 pm

At last, I almost gave up, I managed to get the PicoScope software installed on my PCLinuxOS MATE 64 bit computer and it looks like the demo is working although I am not that sure because I had several hangs during the fiddling with the demo ( I am waiting to purchase until I get the software running).
Because "sudo" is not used in PCLinuxOS, I worked directly in Konsole from root.

First I made a directory /home/analogueman/PicoScope.
Then worked from the command line in root.

The command line to add the repository to package manager Synaptic did not work on first run because bash returned complaining that "etc/yum.repos.d was not found".
Then I tried to solve this by making that directory myself in /etc, and named it "yum.repos.d" (without quotes) and after the command

# curl -o /etc/yum.repos.d/picoscope.repo http://labs.picotech.com/rpm/picoscope.repo

bash did not complain.
Then importing that public key did not work with the given command:

# rpmkeys --import http://labs.picotech.com/rpm/repodata/repomd.xml.key

because "rpmkeys" was an unknown bash command and I fiddled out that this command line :

# wget -O - http://lab.picotech.com/rpm/repodata/repomd.xml.key | gpg --import

did the job.

The next step was navigating to /home/analogeman/PicoScope and installed there all the necessary
dependencies inclusive picomono 2.10.8 and picoscope 6.11.13.
The dependencies with :

# rpm -ivh <name of dependency>.rpm

One of the dependencies is for instance : libpicoipp-1.1.2-4r56.x86_64.rpm

And picoscope and picomono with :

# apt-get install picomono-2.10.8-1r02.x86_64.rpm
# apt-get install picoscope-6.11.13-4r3.noarch.rpm


And finally got PicoScope running.
AnalogueMan
Newbie
 
Posts: 0
Joined: Tue Feb 21, 2017 11:25 am

Re: Not (yet)possible to install on my Linux O.S.

Postby Martyn » Tue Feb 28, 2017 2:03 pm

That's good news.

Thank you for documenting the steps, hopefully others will benefit from this.
Martyn
Technical Support Manager
Martyn
Site Admin
Site Admin
 
Posts: 2716
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Not (yet)possible to install on my Linux O.S.

Postby AnalogueMan » Tue Feb 28, 2017 2:57 pm

Martyn wrote:That's good news.

Thank you for documenting the steps, hopefully others will benefit from this.


You are welcome.
Leaves me with one question left: Why is a key necessary when the key is "public"?
AnalogueMan
Newbie
 
Posts: 0
Joined: Tue Feb 21, 2017 11:25 am

Re: Not (yet)possible to install on my Linux O.S.

Postby Martyn » Tue Feb 28, 2017 3:13 pm

The software is signed with a private key, the public key is used to verify that we actually provided the software, and that it is not bogus.
Martyn
Technical Support Manager
Martyn
Site Admin
Site Admin
 
Posts: 2716
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Not (yet)possible to install on my Linux O.S.

Postby AnalogueMan » Mon Mar 06, 2017 8:34 pm

If have a last question here on this subject:
When executing the " curl -o <........> http://labs.picotech.com/rpm/picoscope.repo "
to add the picoscope repo to my package manager Synaptic, is it possible that one of the downloaded
packages, if not in my PCLinuxOS repo, be included there?
It is my serious concern that, if so, it will break my system when picoscope replaces some of the packages there
which can come in conflict.
I had the opinion that the picoscope repo does not such a thing but I want to be sure.
Hope I made myself clear enough.
Thanks in advance for your response.
AnalogueMan
Newbie
 
Posts: 0
Joined: Tue Feb 21, 2017 11:25 am

Re: Not (yet)possible to install on my Linux O.S.

Postby Martyn » Tue Mar 07, 2017 7:04 am

The only non Pico package is our packaged version of Mono, PicoMono, as we were finding different versions of Mono would break our software.

All other dependencies will be picked up through your usual repositories.
Martyn
Technical Support Manager
Martyn
Site Admin
Site Admin
 
Posts: 2716
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Next

Return to PicoScope for Linux

Who is online

Users browsing this forum: No registered users and 0 guests