Post
Topic
Board Hardware
Re: GekkoScience 2Pac BM1384 Stickminer Official Support Thread
by
sidehack
on 30/07/2018, 13:00:37 UTC

Yeah I hear you man, if only that incredibly common problem were answered in the FAQ section of the first post.

...oh wait


Q. How to get past "USB init, open device failed" ... "you don't have privilege to access" error.
Code:
cd ~/git/vthoang/cgminer/
sudo usermod -G plugdev -a `whoami`
sudo cp 01-cgminer.rules /etc/udev/rules.d/
sudo reboot




Or maybe if it was solved in the README file, like the error message specifically states the user should check?

...oh wait

Code:
LINUX:

The short version:

 sudo cp 01-cgminer.rules /etc/udev/rules.d/


The long version:

On linux, the direct USB support requires no drivers at all. However due to
permissions issues, you may not be able to mine directly on the devices as a
regular user without giving the user access to the device or by mining as
root (administrator). In order to give your regular user access, you can make
him a member of the plugdev group with the following commands:

 sudo usermod -G plugdev -a `whoami`

If your distribution does not have the plugdev group you can create it with:

 sudo groupadd plugdev

In order for the USB devices to instantly be owned by the plugdev group and
accessible by anyone from the plugdev group you can copy the file
"01-cgminer.rules" from the cgminer archive into the /etc/udev/rules.d
directory with the following command:

 sudo cp 01-cgminer.rules /etc/udev/rules.d/

After this you can either manually restart udev and re-login, or more easily
just reboot.


Don't accuse "the big guys" of not giving you enough info. Rather, start paying attention.