Jump to content
kennethharder

How to "cm activateuser" on Linux

Recommended Posts

Hi,

I have manually installed plastic 5.4 on a Debian 9.3 machine recently and I am in doubt of how to manage which user has license access. I found this comment "Just install plasticscm-client-core" here http://blog.plasticscm.com/2016/01/how-to-manage-plastic-scm-licenses.html, however, that does not make sense that I need the client version of plastic in order to manage user licenses and I am afraid that I will get version mismatch if I use apt-get to install the client?

I have found that each repository in the database has a table for user access and I think that is it, however, I would like to know whether there is another way than manually writing some queries to alter the tables, if that is even what I need to do :D?

Side question is whether there is an option to install older versions of plastic using apt-get or similar if I have to do another time?

Share this post


Link to post
Share on other sites

I found a workaround to my license problem. Executing "cm" commands from a Windows machine configured to use the Linux machine as plastic server. I am still interested in hearing whether there is another option on Linux and the answer to my side question :)

Share this post


Link to post
Share on other sites

No, I'm afraid you will need to upgrade in order to get the webadmin.

Still in 5.4!? Move to 6! :)

Share this post


Link to post
Share on other sites

I am not. But sometime down the line we need more than the ~20 licenses anyway and when that is the case it makes sense to update, however, that might be as much as a year from now.

Out of curiosity is this the way to manage the licenses for a Linux server or is there another way?

On 2/2/2018 at 2:24 PM, kennethharder said:

Executing "cm" commands from a Windows machine configured to use the Linux machine as plastic server. I am still interested in hearing whether there is another option on Linux and the answer to my side question :)

And I am also very interesting in how I should go about installing Plastic another time on Linux.

On 2/2/2018 at 1:51 PM, kennethharder said:

Side question is whether there is an option to install older versions of plastic using apt-get or similar if I have to do another time?

 

Share this post


Link to post
Share on other sites

I hope you'll reach the 20 licenses target, that will mean your business is running fine :)

2 hours ago, kennethharder said:

Out of curiosity is this the way to manage the licenses for a Linux server or is there another way?

Right now there's no other way than using the "cm" tool. We did the "WebAdmin" in order to solve that restriction, among others.

2 hours ago, kennethharder said:

Side question is whether there is an option to install older versions of plastic using apt-get or similar if I have to do another time?

It will depend on your package manager but for apt something like this will work: sudo apt-get install plaspticscm-complete=X

The last 5.4 release available is the 5.4.16.918

Share this post


Link to post
Share on other sites
20 hours ago, manu said:

I hope you'll reach the 20 licenses target, that will mean your business is running fine :)

Thanks :D

20 hours ago, manu said:

It will depend on your package manager but for apt something like this will work: sudo apt-get install plaspticscm-complete=X

The last 5.4 release available is the 5.4.16.918

With the default setup from https://www.plasticscm.com/plastic-for-linux/index.html I get "Version '5.4.16.918' for 'plasticscm-complete' was not found". Might it be that I should add another line in sources.list like "https://www.plasticscm.com/plasticrepo/5.4/debian ./"?

Running apt-cache policy plasticscm-complete shows only one version available "6.0.16.1765"

Share this post


Link to post
Share on other sites

Mmmm I think that's because you are using the new packages site -> "https://www.plasticscm.com/plasticrepo/stable/debian/" right?

Try the old ones:

wget https://www.plasticscm.com/plasticrepo/plasticscm-common/Ubuntu_14.04/Release.key -O Release.key
apt-key add Release.key
rm Release.key
wget https://www.plasticscm.com/plasticrepo/plasticscm-latest/Ubuntu_14.04/Release.key -O Release.key
apt-key add Release.key
rm Release.key
echo deb https://www.plasticscm.com/plasticrepo/plasticscm-common/Ubuntu_14.04/ ./ >> /etc/apt/sources.list
echo deb https://www.plasticscm.com/plasticrepo/plasticscm-latest/Ubuntu_14.04/ ./ >> /etc/apt/sources.list
apt-get install apt-transport-https -y
apt-get update -y
apt-get install plasticscm-complete=5.4.16.918 plasticscm-client-complete=5.4.16.918 plasticscm-server-complete=5.4.16.918 plasticscm-client-core=5.4.16.918 plasticscm-client-gtk=5.4.16.918 plasticscm-theme=5.4.16.918 plasticscm-server-core=5.4.16.918 plasticscm-theme=5.4.16.918

Hope it helps.

Share this post


Link to post
Share on other sites

That works perfectly, @manu. Thank you! I assume that I should use Ubuntu_14.04 even though I am on Debian 9.3?

Also do you know whether I can install plastic using apt-get on top of the zip install without issue? Do you know whether it will delete the .conf files or reset other things if I do?

Share this post


Link to post
Share on other sites
20 hours ago, kennethharder said:

That works perfectly, @manu. Thank you! I assume that I should use Ubuntu_14.04 even though I am on Debian 9.3?

Yes, that should work :)

20 hours ago, kennethharder said:

Also do you know whether I can install plastic using apt-get on top of the zip install without issue? Do you know whether it will delete the .conf files or reset other things if I do?

It's 100% safe as the zip installers are not containing any .conf files, there's 0 risk of overriding yours :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×