K3b: Difference between revisions
WIP - Creation of the article |
WIP - Creation of the article |
||
| Line 8: | Line 8: | ||
This will effectively install the software, but there are further configuration changes required before any disc burning can take place. | This will effectively install the software, but there are further configuration changes required before any disc burning can take place. | ||
=== | === <code>cdrom</code> group === | ||
To allow K3b and the disc writing tools appropriate permissions to the optical drive, the user(s) need to be in the <code>cdrom</code> group, as well as the optical drive itself. | To allow K3b and the disc writing tools appropriate permissions to the optical drive, the user(s) need to be in the <code>cdrom</code> group, as well as the optical drive itself. | ||
==== Adding a user to the | ==== Adding a user to the <code>cdrom</code> group ==== | ||
In your configuration, add <code>cdrom</code> to the <code>extraGroups</code> of the user:<syntaxhighlight lang="nix"> | In your configuration, add <code>cdrom</code> to the <code>extraGroups</code> of the user:<syntaxhighlight lang="nix"> | ||
users.users.YourUserHere.extraGroups = [ ... "cdrom" ] | users.users.YourUserHere.extraGroups = [ ... "cdrom" ] | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Adding the optical drive(s) to the | ==== Adding the optical drive(s) to the <code>cdrom</code> group ==== | ||
For the group to have any meaning, the group (and subsequently the users within it | For the group to have any meaning, the group (and subsequently the users within it will be given the permissions to access the drive. | ||
Add the following to your configuration:<syntaxhighlight lang="nix"> | Add the following to your configuration:<syntaxhighlight lang="nix">services.udev.extraRules = '' | ||
services.udev.extraRules = '' | |||
# Optical Drive access for K3b | # Optical Drive access for K3b | ||
KERNEL=="sr[0-9]*", GROUP="cdrom", MODE="0660" | KERNEL=="sr[0-9]*", GROUP="cdrom", MODE="0660" | ||
''; | '';</syntaxhighlight>''▶ Tip: This is a multi-line string, which allows for more udev rules down the line.'' | ||
</syntaxhighlight> | |||
<code>KERNEL=="sr[0-9]*"</code> matches the device files <code>sr0</code> up to <code>sr9</code> if you have more than one optical drive to work with. | |||
<code>GROUP="cdrom"</code> assigns the device to the group, allowing unprivileged access. | |||
<code>MODE="0660"</code> sets read/write permissions to the device for the owner and <code>cdrom</code> group | |||
'''<u>For the udev rules to apply, your computer needs to be reboot.</u>''' | |||
== Post-Installation == | |||
After the reboot, open K3b for post installation configuration within the software. | |||
[[File:K3b Post-Installation - Opening K3b Configuration dialog.png|alt=Settings >> Configure K3b...|left|thumb|474x474px|1. Open the K3b Configuration dialog]] | |||