# On Raspberry Pi 2, how do I get beyond the 'Product Activation' dialog?

**URL:** <https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896>\
**Category:** Questions\
**Tags:** mathematica, tuning-and-debugging, raspberry-pi\
**Created:** [February 19, 2015, 10:37am UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896 "2015-02-19T10:37:50Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam1](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@sam1](https://community.wolfram.com/u/sam1)\
**Post date:** [February 19, 2015, 10:37am UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/1 "2015-02-19T10:37:50Z")

</div>

Raspberry Pi 2, Jan 2015 Raspbian image. Launching Mathematica results in a ‘Wolfram Product Activation’ dialog and I’m asked for an Activation Key. What do I enter at this point so that I can click ‘Activate’?

---

<div class="post-metadata">

**Author:** ![davidcampagna](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/davidcampagna/32/36739_2.png) [@davidcampagna](https://community.wolfram.com/u/davidcampagna)\
**Post date:** [February 19, 2015, 3:13pm UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/2 "2015-02-19T15:13:41Z")

</div>

I’m having the same problem.

---

<div class="post-metadata">

**Author:** ![sam1](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@sam1](https://community.wolfram.com/u/sam1)\
**Post date:** [February 19, 2015, 3:33pm UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/3 "2015-02-19T15:33:20Z")

</div>

I’ve tried uninstall and reinstall, unsuccessfully. I found file ‘/opt/Wolfram/WolframEngine/10.0/Configuration/Licensing/mathpass’ which contains what looks like an activation key, and entered that, but it appears to have expired. How is anyone using Mathematica on Raspberry Pi if no licensing and activation information is available?

---

<div class="post-metadata">

**Author:** ![sam1](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@sam1](https://community.wolfram.com/u/sam1)\
**Post date:** [February 19, 2015, 3:50pm UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/4 "2015-02-19T15:50:42Z")

</div>

Aha! It works for ‘root’. Permissions problem somewhere, then. Investigation continues…

---

<div class="post-metadata">

**Author:** ![iliang](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/iliang/32/11263_2.png) [@iliang](https://community.wolfram.com/u/iliang)\
**Post date:** [February 19, 2015, 4:12pm UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/5 "2015-02-19T16:12:00Z")

</div>

What user are you running Mathematica as? Is that user a member of the ‘video’ group?

```
sudo usermod -a -G video myuser

```

should do the trick.

---

<div class="post-metadata">

**Author:** ![sam1](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@sam1](https://community.wolfram.com/u/sam1)\
**Post date:** [February 19, 2015, 4:25pm UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/6 "2015-02-19T16:25:14Z")

</div>

The user wasn’t a member of the ‘video’ group, but it is now, and now Mathematica works. Thanks! So… What was going on there, then? There appears to be nothing on the entire RPi filesystem with that GID, as far as I can tell.

---

<div class="post-metadata">

**Author:** ![davidcampagna](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/davidcampagna/32/36739_2.png) [@davidcampagna](https://community.wolfram.com/u/davidcampagna)\
**Post date:** [February 19, 2015, 4:32pm UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/7 "2015-02-19T16:32:47Z")

</div>

yup, adding the user to the video group did the trick for me as well. Thanks!

---

<div class="post-metadata">

**Author:** ![iliang](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/iliang/32/11263_2.png) [@iliang](https://community.wolfram.com/u/iliang)\
**Post date:** [February 19, 2015, 4:33pm UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/8 "2015-02-19T16:33:53Z")

</div>

Mathematica needs appropriate permissions to talk to the GPU hardware, and the ‘video’ group can access the corresponding device in /dev.

---

<div class="post-metadata">

**Author:** ![sam1](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@sam1](https://community.wolfram.com/u/sam1)\
**Post date:** [February 19, 2015, 4:36pm UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/9 "2015-02-19T16:36:08Z")

</div>

Mathematica on 2nd Pi2 fixed the same way. We can but hope there are enough good keywords in this thread to bring other sufferers to this solution. I’d still quite like to know why, though.

Thanks again, Ilian!

---

<div class="post-metadata">

**Author:** ![sam1](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@sam1](https://community.wolfram.com/u/sam1)\
**Post date:** [February 19, 2015, 4:40pm UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/10 "2015-02-19T16:40:34Z")

</div>

OK, so, if Mathematica can’t access /dev/fb0 and/or /dev/vchiq, it reports this as a problem with licence activation. Forgive me if I seem crashingly naive, but this makes no sense at all!

---

<div class="post-metadata">

**Author:** ![iliang](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/iliang/32/11263_2.png) [@iliang](https://community.wolfram.com/u/iliang)\
**Post date:** [February 19, 2015, 4:51pm UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/11 "2015-02-19T16:51:00Z")

</div>

I agree it is a counterintuitive way to fail. The appropriate developers have been made aware of this issue.

---

<div class="post-metadata">

**Author:** ![sam1](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@sam1](https://community.wolfram.com/u/sam1)\
**Post date:** [February 19, 2015, 4:54pm UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/12 "2015-02-19T16:54:24Z")

</div>

Ha! Excellent. Thanks.

---

<div class="post-metadata">

**Author:** ![arnoudb](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/arnoudb/32/41177_2.png) [@arnoudb](https://community.wolfram.com/u/arnoudb)\
**Post date:** [February 19, 2015, 5:01pm UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/13 "2015-02-19T17:01:09Z")

</div>

To add a user that can run the Wolfram Language:

```auto
pi@test-pi ~ $ sudo adduser pi2
Adding user `pi2' ...
Adding new group `pi2' (1004) ...
Adding new user `pi2' (1001) with group `pi2' ...
Creating home directory `/home/pi2' ...
Copying files from `/etc/skel' ...
[...]

```

Add it to the ‘video’ group (required as part of a number of checks that the Wolfram Language is running on a Raspberry Pi):

```auto
pi@test-pi ~ $ sudo usermod -a -G video pi2

```

Switch to ‘pi2’ account, and run the wolfram engine:

```auto
pi@test-pi ~ $ su - pi2
pi2@test-pi ~ $ wolfram
Wolfram Language (Raspberry Pi Pilot Release)
Copyright 1988-2015 Wolfram Research
Information & help: wolfram.com/raspi

In[1]:=

```

---

<div class="post-metadata">

**Author:** ![peterdpm47](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@peterdpm47](https://community.wolfram.com/u/peterdpm47)\
**Post date:** [March 11, 2015, 10:04am UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/14 "2015-03-11T10:04:31Z")

</div>

I am new to Linux and Raspberry Pi (and need to stop saying that).

This worked for me. Just following the insructions worked.

Thank you Arnoud.

It is just a matter of finding the right expert at the right time.

peter mason

---

<div class="post-metadata">

**Author:** ![robertdylanstewart](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@robertdylanstewart](https://community.wolfram.com/u/robertdylanstewart)\
**Post date:** [October 21, 2020, 3:36pm UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/15 "2020-10-21T15:36:50Z")

</div>

The problem still exists as of 12.1.1:

```
➜ ~ wolfram
Mathematica 12.1.1 Kernel for Linux ARM (32-bit)
Copyright 1988-2020 Wolfram Research, Inc.

Mathematica 12.1.1 Kernel cannot find a valid password.

For automatic Web Activation enter your activation key
(enter return to skip Web Activation): 

You will need to get a password from your
license certificate or from Wolfram Research
(http://register.wolfram.com).
Machine name:	raspi2
MathID:	4703-79205-43531

You will need a valid activation key and password in order
to proceed. Go to http://user.wolfram.com to
register your activation key and obtain the password.

Enter your Activation key [format xxxx-xxxx-xxxxxx]: 

Enter your password: 

The password you entered is not valid.
Please press Enter to quit.

```

Adding the user to the `video` group fixed it for me. I figure adding full command output as above may help others (like a future me, once I’ve forgotten this) find this thread.

**Edited to add** : To fix the problem for the current user (regardless of that user’s name), you can use:

`sudo usermod -a -G video $(whoami)`

---

<div class="post-metadata">

**Author:** ![rcfa](https://avatars.discourse-cdn.com/v4/letter/r/e79b87/32.png) [@rcfa](https://community.wolfram.com/u/rcfa)\
**Post date:** [January 19, 2021, 4:21pm UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/16 "2021-01-19T16:21:01Z")

</div>

Great, so I’m not completely alone…

I have the same symptoms: Mathematica/wolfram work for root user, but not for anyone else.  
Unfortunately the adding to the video group doesn’t help, but also, I’m running Kali, rather than Raspian

Any ideas on how to debug this? Potentially this would require entries to the policy kit database somewhere below /etc/polkit-1/localauthority/… ???

---

<div class="post-metadata">

**Author:** ![rcfa](https://avatars.discourse-cdn.com/v4/letter/r/e79b87/32.png) [@rcfa](https://community.wolfram.com/u/rcfa)\
**Post date:** [January 19, 2021, 4:33pm UTC](https://community.wolfram.com/t/on-raspberry-pi-2-how-do-i-get-beyond-the-product-activation-dialog/4896/17 "2021-01-19T16:33:03Z")

</div>

OK, to solve my own question: turns out only /dev/fb0 is (under Kali) owned by root:video while /dev/vchiq is owned root:root.  
Further, /dev/vchiq is NOT group read/writable.

Changing ownership from root:root to root:video and adding rw permissions for group to /dev/vchiq “solves” the issue, i.e. it allows Mathematica to work.  
While that’s good, there are two things that are NOT good:  
a) the failure mode is absolutely horrid.  
b) what are the security implications of allowing regular users read write access to low level hardware?  
To make such permissions a requirement for Mathematica is, shall we say it politely, questionable.
