DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th March 2016
jjstorm jjstorm is offline
Package Pilot
 
Join Date: Nov 2014
Location: Buenos Aires, AR
Posts: 144
Default k3b on OpenBSD

That worked perfectly. I can now mount both; my flashdrive and cd/dvd drive with a standard user account. Very intuitive write-up.

A couple of things however:

I had to set up permissions for sd1 and sd2 since OpenBSD assigns either of these two disklabels to the flashdrive. I am not sure how it chooses one or the other

Although the cd/dvd drive mounts perfectly fine now under the standard user account, k3b which is an authoring tool that I like, delivers the following message.

Quote:
K3b did not find any optical device in your system.
Solution: Make sure HAL daemon is running, it is used by K3b for finding devices.
How can I run the HAL daemon?

Thanks again.
Reply With Quote
  #2   (View Single Post)  
Old 25th March 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

To my knowledge you won't be able to use K3b with HAL, since HAL is a Linuxism which is not available.

See http://www.openbsd.org/faq/faq13.html#burnCD for guidance on optical drive writing.

Last edited by jggimi; 25th March 2016 at 02:55 PM. Reason: clarity
Reply With Quote
  #3   (View Single Post)  
Old 25th March 2016
jjstorm jjstorm is offline
Package Pilot
 
Join Date: Nov 2014
Location: Buenos Aires, AR
Posts: 144
Default

Quote:
Originally Posted by jggimi View Post
To my knowledge you won't be able to use K3b with HAL, since HAL is a Linuxism which is not available.

See http://www.openbsd.org/faq/faq13.html#burnCD for guidance on optical drive writing.

Hmm, I wonder why it's asking for it since it is an OpenBSD port? I'll see if I can find the solution in that link. I'll report back.


thanks...
Reply With Quote
  #4   (View Single Post)  
Old 25th March 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

K3b may be usable, just not with HAL. I have never used it.

While I don't have it or use it -- and no longer have any (working) optical drives -- I see that K3b installs with several binaries, including something called "k3bsetup" which might be used to point K3b to the applications it might use -- so the FAQ guidance may be helpful if you want to use cdio, cdrecord or growisofs from K3b.
Reply With Quote
  #5   (View Single Post)  
Old 26th March 2016
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

This thread has been split from its parent:

http://daemonforums.org/showthread.php?p=58451

...as that thread questioned access due to permission issues. Discussion here has shifted to multimedia/k3b.

We ask that members stay on the subject set up by the initial message in a thread. We welcome changes in subject, but please do so in a new thread.

Many of our members do not have English as their native language. Technical discussion can be difficult enough to follow without discussion simply meandering. Please be cognizant of others at different technical comprehensions by staying on the original subject.

Last edited by ocicat; 26th March 2016 at 03:57 AM. Reason: grammar
Reply With Quote
  #6   (View Single Post)  
Old 26th March 2016
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

If k3b doesn't work, maybe try ./multimedia/k3b-kde4.
Reply With Quote
  #7   (View Single Post)  
Old 26th March 2016
jjstorm jjstorm is offline
Package Pilot
 
Join Date: Nov 2014
Location: Buenos Aires, AR
Posts: 144
Default

Quote:
Originally Posted by e1-531g View Post
If k3b doesn't work, maybe try ./multimedia/k3b-kde4.
Yes, I was already looking at that. There is also another thread here that may have some useful information.
Reply With Quote
  #8   (View Single Post)  
Old 26th March 2016
jjstorm jjstorm is offline
Package Pilot
 
Join Date: Nov 2014
Location: Buenos Aires, AR
Posts: 144
Default Wrong version installed.

I initially installed 'k3b-kde4' (kde windows manager version), which is version 2.0.3a. I needed to install the 'k3b' package, which is version 1.0.4. I did not realize this until I looked at both packages in openports.se

k3b now sees the cd/dvd drive. Message being displayed is; 'no write access to /dev/rcd0c/. I think I can resolve this by simply adding the _user created when k3b was installed to the 'operator' group, since I already authorized the group to have rw access to /dev/rcd0c/. However, I can't find the _user account in /etc/groups/.

Last edited by jjstorm; 26th March 2016 at 07:12 PM.
Reply With Quote
  #9   (View Single Post)  
Old 26th March 2016
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

My device permissions in 5.8 for rcd0* devices
Code:
PooBear$ ls -al rcd0*
crw-r-----  1 root  operator   15,   0 Nov 12 06:08 rcd0a
crw-r-----  1 root  operator   15,   2 Nov 12 06:08 rcd0c
PooBear$ ls -al cd0*
brw-r-----  1 root  operator    6,   0 Nov 12 06:08 cd0a
brw-r-----  1 root  operator    6,   2 Nov 12 06:08 cd0c
On a native install, the operator only has read permissions.

There is a nice howto on mounting usb drives as a non-root user here. In the thread it describes how to add your user to the operator group and expand group permission on a specific usb port from read only to read/write. You can expand permissions on rcd0c the same way.
Reply With Quote
Old 26th March 2016
jjstorm jjstorm is offline
Package Pilot
 
Join Date: Nov 2014
Location: Buenos Aires, AR
Posts: 144
Default

Quote:
Originally Posted by shep View Post
My device permissions in 5.8 for rcd0* devices
Code:
PooBear$ ls -al rcd0*
crw-r-----  1 root  operator   15,   0 Nov 12 06:08 rcd0a
crw-r-----  1 root  operator   15,   2 Nov 12 06:08 rcd0c
PooBear$ ls -al cd0*
brw-r-----  1 root  operator    6,   0 Nov 12 06:08 cd0a
brw-r-----  1 root  operator    6,   2 Nov 12 06:08 cd0c
On a native install, the operator only has read permissions.

There is a nice howto on mounting usb drives as a non-root user here. In the thread it describes how to add your user to the operator group and expand group permission on a specific usb port from read only to read/write. You can expand permissions on rcd0c the same way.
I actually have already looked at that 'how to' and have added my non root account to the 'operator' group . The 'operator' group has already been given rw access to /dev/cd0/. I have done this all based on the instructions of that 'how to'. I believe all I need to do now is just add the _user account that was created when k3b was installed to the operator group, but I just can't find the account (assuming one was created), because it's not an obvious name.

Is there a command that will list the _user created when a program gets installed?

Last edited by jjstorm; 26th March 2016 at 07:14 PM.
Reply With Quote
Old 26th March 2016
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Quote:
The 'operators' group has already been given rw access to /dev/cd0/
Typically burners use the raw device, /dev/rcd0c, rather than the block device: /dev/cd0c.
Reply With Quote
Old 26th March 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Let me try to help clarify.

First, there is no userid created when k3b or k3b-kde4 are installed. New users are created for applications which have daemons, this application does not have one. To add a user, the packing-list in the port would indicate this with a @newuser instruction but one is not included with either /usr/ports/multimedia/k3b/pkg/PLIST or /usr/ports/multimedia/k3b-kde4/pkg/PLIST.

Second, burning of media is performed against the raw, character device, not against the block device: /dev/rcd0c rather than /dev/cd0c. This may be your permissions problem.

Please note: there is no /dev/cd0 special file (device node) configured on OpenBSD.
Reply With Quote
Old 26th March 2016
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

To add more information, the backend for dvd burning is growisofs. Since you are using growisofs (part of sysutils/dvd+rw-tools you will need read/write permissions to rcd0c
Quote:
EXAMPLES
Actual device names vary from one operating system to another. We use
/dev/dvd as a collective name or as symbolic link to the actual device
if you wish. Under Linux it will most likely be an ide-scsi device
such as "/dev/scd0." Under NetBSD/OpenBSD it has to be a character SCSI
CD-ROM device such as "/dev/rcd0c." Under Solaris it also has to be a
character SCSI/ATAPI CD-ROM device, e.g. "/dev/rdsk/c0t1d0s2" or
"/vol/dev/aliases/cdrom0." And likewise in HP-UX, IRIX and Mac OS X..
Linux users can use use alternative burning backends (libburnia and cdrkit).
Reply With Quote
Old 26th March 2016
jjstorm jjstorm is offline
Package Pilot
 
Join Date: Nov 2014
Location: Buenos Aires, AR
Posts: 144
Default

That was it. I just did the following:

To give the permission:

Code:
# chmod g=rw /dev/rcd0c
To confirm:
Code:
$ ls -l /dev/rcd0c

crw-rw----  1 root  operator   15,   2 Mar 22 15:32 /dev/rcd0c
I am a member of the 'operator' group of course.

Last edited by jjstorm; 26th March 2016 at 07:18 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:28 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick