Page 1 of 1

Problem installing my Nvidia Graphic Card

Posted: 2018-02-14 11:32
by wpeovwei
Hi, i'm on latest Debian Testing, and i have two problems with my graphic cards. I have a MSI laptop which has a GTX 850M along with a Intel HD 4600 chipset.

First problem is when i use graphical application as normal user it runs fine, but if i launch it as root(i need it for some applications) i get :

No protocol specified
No protocol specified
java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

;

But if i run "xhost +", i can run the application as root, so the system think i'm a remote user ?

The second problem is that i can't manage to install my GTX 850M, i tried installing the official drivers from the Nvidia site, or installing the drivers from debian repository, added bumblebee-nvidia and edited the conf of bumblebee, but when using GPU tools (hashcat), it does not detect my card. Some users have the same card as me and yet don't have any problem, is it the MSI motherboard that is causing problem ? Because i noticed its really bad on linux, the MSI support is null, i have to push hold the power button to shut down the laptop, touchpad is bad etc

Any help appreciated thanks

Re: Problem installing my Nvidia Graphic Card

Posted: 2018-02-14 18:19
by stevepusser
Trying to install the .run website Nvidia drivers first may have messed things up, but if you now have the Debian versions, give the full output of

Code: Select all

# dpkg-reconfigure nvidia-kernel-dkms
which is supposed to rebuild and reinstall the driver.

Re: Problem installing my Nvidia Graphic Card

Posted: 2018-02-14 19:20
by wpeovwei
Thanks, i had fresh debian install when i posted, and i need to say that my first problem is present immediatly after installation, and is not fixed after installing any drivers.

So i did as you said, installed the package "nvidia-driver" and ran the command you gave me as sudo, the ouput =>

Code: Select all

$sudo dpkg-reconfigure nvidia-kernel-dkms

-------- Uninstall Beginning --------
Module:  nvidia-current
Version: 387.34
Kernel:  4.14.0-parrot13-amd64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia-current.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.14.0-parrot13-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-current-modeset.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.14.0-parrot13-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-current-drm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.14.0-parrot13-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-current-uvm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.14.0-parrot13-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 387.34
completely from the DKMS tree.
------------------------------
Done.
Loading new nvidia-current-387.34 DKMS files...
Building for 4.14.0-parrot13-amd64
Building initial module for 4.14.0-parrot13-amd64
Done.

nvidia-current:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.14.0-parrot13-amd64/updates/dkms/

nvidia-current-modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.14.0-parrot13-amd64/updates/dkms/

nvidia-current-drm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.14.0-parrot13-amd64/updates/dkms/

nvidia-current-uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.14.0-parrot13-amd64/updates/dkms/

depmod...

DKMS: install completed.

Re: Problem installing my Nvidia Graphic Card

Posted: 2018-02-14 19:30
by debiman
"parrot" kernel - is this actually debian?

Re: Problem installing my Nvidia Graphic Card

Posted: 2018-02-14 19:31
by wpeovwei
It's a distro based on Debian testing, only the kernel is different.

Re: Problem installing my Nvidia Graphic Card

Posted: 2018-02-14 21:54
by sunrat
wpeovwei wrote:It's a distro based on Debian testing, only the kernel is different.
Highly unlikely that is the only difference. A different kernel does not really qualify as a different distro.

Nevertheless, a very similar thread today may have the answer you seek - http://forums.debian.net/viewtopic.php?f=7&t=136541

Re: Problem installing my Nvidia Graphic Card

Posted: 2018-02-14 22:06
by wpeovwei
Yes, the DE is different, there is IDS, many pre-installed applications/tools etc but theses can be added on Debian too, only the kernel makes it different from Debian.

Thanks for the link, i had already checked the recent topic about Nvidia problems, none worked in my case.

Re: Problem installing my Nvidia Graphic Card

Posted: 2018-02-14 22:18
by bw123
wpeovwei wrote:...only the kernel makes it different from Debian.
Like sunrat said that is highly unlikely. There are also configs for just about everything, in /etc are you sure they are all the same as debian defaults?
First problem is when i use graphical application as normal user it runs fine, but if i launch it as root(i need it for some applications) i get :

No protocol specified
That's normal. There are some options to su that might help, but you're likely to trash the system before you figure it out, because running X apps as root isn't a good idea. I know you won't take my word for it, and that's fine. You can do it however you want, just research it before arguing about it, okay?

https://wiki.archlinux.org/index.php/Ru ... ps_as_root

Re: Problem installing my Nvidia Graphic Card

Posted: 2018-02-14 22:38
by wpeovwei
@bw123 Thanks for the advice, my applications run as root sandboxed, i know the risk of root, but some applications need it.
I don't understand why you said it's normal, if you have any commands to tell me to try, i'm ok with that i don't mind breaking my system right now, nothing important on it.

And yes you are right, the configs in /etc and other folders are quite different, but Debian is still Debian, i also said that some users have the same card and not my problem, using the same distro, so i thought it was MSI motherboard ?

Re: Problem installing my Nvidia Graphic Card

Posted: 2018-02-16 04:46
by debiman
whenever you install a distro, your first step (ideally before installing) is to read their web pages, wiki, installation instructions and such.

First things first:
Parrot is a GNU/Linux distribution based on Debian Testing and designed with Security, Development and Privacy in mind.
mind, "based on debian" is not the same as "debian".
Testing also has its own challenges and problems.
Since the parrot folks themselves promote reading the debian docs, i suggest you do.
wpeovwei wrote:i can't manage to install my GTX 850M, i tried installing the official drivers from the Nvidia site, or installing the drivers from debian repository
yet you didn't look in the first, most obvious place: the wiki of your distro: https://docs.parrotsec.org/doku.php/nvidia-drivers
your model is right there on that page.

imho, parrot is a vanity project combining the fashionable "security, privacy and pentesting" label with a fancy UI.
their wiki has gaping holes in it, and there was at least one more forum thread that lead me to believe that parrot just isn't a finished product.

i think it's unfair that good ol' fdn should deal with parrot's developer's problems.

please, contact a "Parrot Ambassador" (sic) for further inquiries.

Re: Problem installing my Nvidia Graphic Card

Posted: 2018-02-16 05:01
by dilberts_left_nut
debiman wrote:"based on debian" is not the same as "debian".
Yep.
Moved to Offtopic.