# Scdrand systemd service (and Gentoo ebuild)

**URL:** https://support.nitrokey.com/t/scdrand-systemd-service-and-gentoo-ebuild/1164
**Category:** Nitrokeys
**Created:** [June 12, 2018, 8:14am UTC](https://support.nitrokey.com/t/scdrand-systemd-service-and-gentoo-ebuild/1164 "2018-06-12T08:14:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![comio](https://support.nitrokey.com/user_avatar/support.nitrokey.com/comio/32/211_2.png) [@comio](https://support.nitrokey.com/u/comio)
#### Post date: [June 12, 2018, 8:14am UTC](https://support.nitrokey.com/t/scdrand-systemd-service-and-gentoo-ebuild/1164/1 "2018-06-12T08:14:15Z")

</div>

Hi Folks,

In order to use the Nitrokey Pro’s TRNG, I implemented a stupid systemd unit file (associated to a selfmade Gentoo ebuild) that uses scdrand tool from scdtools:

[https://raw.githubusercontent.com/comio/comio-overlay/master/app-crypt/scdtools/files/scdrand.service](https://raw.githubusercontent.com/comio/comio-overlay/master/app-crypt/scdtools/files/scdrand.service)

To use, after the scdrand installation with suid or CAP\_SYS\_ADMIN capabilities:

- copy the previous file into /etc/sysemd/user or /lib/systemd/user or, again, /usr/lib/systemd/user
- systemctl --user daemon-reload
- systemctl --user enable scdrand
- systemctl --user start scdrand

You can find the complete ebuild package here:

> **[comio-overlay/app-crypt/scdtools at master · comio/comio-overlay](https://github.com/comio/comio-overlay/tree/master/app-crypt/scdtools)**
>
> master/app-crypt/scdtools

Enjoy

ciao

luigi

---

<div class="post-metadata">

### Author: ![nitroalex](https://support.nitrokey.com/user_avatar/support.nitrokey.com/nitroalex/32/133_2.png) [@nitroalex](https://support.nitrokey.com/u/nitroalex)
#### Post date: [June 14, 2018, 7:32am UTC](https://support.nitrokey.com/t/scdrand-systemd-service-and-gentoo-ebuild/1164/2 "2018-06-14T07:32:04Z")

</div>

Hey,

thank you very much. I did a small note [here](https://www.nitrokey.com/documentation/frequently-asked-questions#can-i-use-nitrokey-as-a-true-random-number-generator-trng). Please let me know if you see another place where this information might be useful as well.

Kind regards  
Alex

---

<div class="post-metadata">

### Author: ![comio](https://support.nitrokey.com/user_avatar/support.nitrokey.com/comio/32/211_2.png) [@comio](https://support.nitrokey.com/u/comio)
#### Post date: [June 14, 2018, 8:13am UTC](https://support.nitrokey.com/t/scdrand-systemd-service-and-gentoo-ebuild/1164/3 "2018-06-14T08:13:31Z")

</div>

Thank you too.

It’s fine for me.

ciao

luigi

---

<div class="post-metadata">

### Author: ![nitroalex](https://support.nitrokey.com/user_avatar/support.nitrokey.com/nitroalex/32/133_2.png) [@nitroalex](https://support.nitrokey.com/u/nitroalex)
#### Post date: [June 14, 2018, 10:01am UTC](https://support.nitrokey.com/t/scdrand-systemd-service-and-gentoo-ebuild/1164/4 "2018-06-14T10:01:05Z")

</div>

To avoid confusions: This now moved to [the documentation](https://www.nitrokey.com/documentation/applications#p:nitrokey-pro&os:linux&a:true-random-number-generator-trng).
