Results 1 to 2 of 2

Hybrid View

  1. #1
    ROG Member Array
    Join Date
    Aug 2018
    Reputation
    10
    Posts
    10

    How to install Nvidia drivers on Kali Linux Guide ASUS ROG GL503GE

    When I tried to install kali linux or Ubuntu on my ROG GL503GE, I faced some problem, as my Kali linux won’t start and just show some error on black screen. After spending 1 day searching online I finally figured out how can I make linux working on my rog laptop. Original guide is taken from
    HOW TO INSTALL NVIDIA DRIVER ON KALI LINUX.

    Step 1: Disable Fast Startup on Windows 10:
    To disable Fast Startup, go to Start > Control Panel > Power Options and click "Choose what the power buttons do" from the column on the left.

    Step 2: Disable Fast Boot / Secure Boot on BIOS by going to the BIOS settings.

    Step 3: Now Install the Kali Linux on hard drive. After the installation process complete restart the computer.

    Setp 4: Now you will see the Kali Linux Grub Bootloader with a blue screen. From the GRUB loader select Kali Linux and press E. Navigate cursor to row where starting with Linux then on the end of the row replace "quiet splash" with "nouveau.modeset=0" (without quote marks). Then press F10. Now Kali Linux will boot normally.

    Step 5: After Kali Linux booted up run this command below.

    apt-get update
    apt-get upgrade
    apt-get dist-upgrade

    After that follow the steps below to install Nvidia drivers:

    Step 6: Before we begin, you’ll need to make sure you have the kernel headers for your currently active kernel, in order to build the NVIDIA driver kernel modules type:

    apt install linux-headers-$(uname -r)

    Step 7: Disable nouveau

    echo -e "blacklist nouveau\noptions nouveau modeset=0\nalias nouveau off" > /etc/modprobe.d/blacklist-nouveau.conf
    update-initramfs -u && reboot

    >>System will reboot and nouveau should be disabled.

    Step 8: Verify if nouveau is disabled:

    lsmod |grep -i nouveau

    >>If shows nothing,means nouveau successfully disabled.

    Step 9: Install nvidia driver from kali repo:

    apt-get install nvidia-driver nvidia-xconfig

    Step 10: Now we have to find bus id of our nvidia card:

    nvidia-xconfig --query-gpu-info | grep 'BusID : ' | cut -d ' ' -f6
    --------------------------------------------------------
    >>ROG GL503GE result: PCI:1:0:0
    >>PCI:1:0:0 This is our Bus ID.
    --------------------------------------------------------
    Step 11: Now we generate /etc/X11/xorg.conf file with this bus ID according to nvidia guide http://us.download.nvidia.com/XFree8...E/randr14.html:
    -----------------------------------
    Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
    EndSection
    Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    EndSection
    Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
    EndSection
    Section "Device"
    Identifier "intel"
    Driver "modesetting"
    EndSection
    Section "Screen"
    Identifier "intel"
    Device "intel"
    EndSection
    -----------------------------------------
    >>Replace the BusID value with your Bus ID and save it to /etc/X11/xorg.conf

    Step 12: Now we have to create some scripts according to our display manager https://wiki.archlinux.org/index.php...Managers.Since im using default Kali linux which is GDM,i created two files:

    /usr/share/gdm/greeter/autostart/optimus.desktop
    /etc/xdg/autostart/optimus.desktop

    with the following content:
    ----------------------------------
    [Desktop Entry]
    Type=Application
    Name=Optimus
    Exec=sh -c "xrandr --setprovideroutputsource modesetting NVIDIA-0; xrandr --auto"
    NoDisplay=true
    X-GNOME-Autostart-Phase=DisplayServer
    ----------------------------------
    Step 13: Now reboot and you should be using Nvidia Driver.Verify if everything is ok:

    apt-get install mesa-utils

    glxinfo | grep -i "direct rendering"

    >>Result Should be "direct rendering: Yes"

  2. #2
    New ROGer Array
    Join Date
    Mar 2019
    Reputation
    10
    Posts
    1

    could you please suggest the kernel panic solution occuring in Kali-Linux for GL553VE

    Quote Originally Posted by infernoshatt View Post
    When I tried to install kali linux or Ubuntu on my ROG GL503GE, I faced some problem, as my Kali linux won’t start and just show some error on black screen. After spending 1 day searching online I finally figured out how can I make linux working on my rog laptop. Original guide is taken from
    HOW TO INSTALL NVIDIA DRIVER ON KALI LINUX.

    Step 1: Disable Fast Startup on Windows 10:
    To disable Fast Startup, go to Start > Control Panel > Power Options and click "Choose what the power buttons do" from the column on the left.

    Step 2: Disable Fast Boot / Secure Boot on BIOS by going to the BIOS settings.

    Step 3: Now Install the Kali Linux on hard drive. After the installation process complete restart the computer.

    Setp 4: Now you will see the Kali Linux Grub Bootloader with a blue screen. From the GRUB loader select Kali Linux and press E. Navigate cursor to row where starting with Linux then on the end of the row replace "quiet splash" with "nouveau.modeset=0" (without quote marks). Then press F10. Now Kali Linux will boot normally.

    Step 5: After Kali Linux booted up run this command below.

    apt-get update
    apt-get upgrade
    apt-get dist-upgrade

    After that follow the steps below to install Nvidia drivers:

    Step 6: Before we begin, you’ll need to make sure you have the kernel headers for your currently active kernel, in order to build the NVIDIA driver kernel modules type:

    apt install linux-headers-$(uname -r)

    Step 7: Disable nouveau

    echo -e "blacklist nouveau\noptions nouveau modeset=0\nalias nouveau off" > /etc/modprobe.d/blacklist-nouveau.conf
    update-initramfs -u && reboot

    >>System will reboot and nouveau should be disabled.

    Step 8: Verify if nouveau is disabled:

    lsmod |grep -i nouveau

    >>If shows nothing,means nouveau successfully disabled.

    Step 9: Install nvidia driver from kali repo:

    apt-get install nvidia-driver nvidia-xconfig

    Step 10: Now we have to find bus id of our nvidia card:

    nvidia-xconfig --query-gpu-info | grep 'BusID : ' | cut -d ' ' -f6
    --------------------------------------------------------
    >>ROG GL503GE result: PCI:1:0:0
    >>PCI:1:0:0 This is our Bus ID.
    --------------------------------------------------------
    Step 11: Now we generate /etc/X11/xorg.conf file with this bus ID according to nvidia guide http://us.download.nvidia.com/XFree8...E/randr14.html:
    -----------------------------------
    Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
    EndSection
    Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    EndSection
    Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
    EndSection
    Section "Device"
    Identifier "intel"
    Driver "modesetting"
    EndSection
    Section "Screen"
    Identifier "intel"
    Device "intel"
    EndSection
    -----------------------------------------
    >>Replace the BusID value with your Bus ID and save it to /etc/X11/xorg.conf

    Step 12: Now we have to create some scripts according to our display manager https://wiki.archlinux.org/index.php...Managers.Since im using default Kali linux which is GDM,i created two files:

    /usr/share/gdm/greeter/autostart/optimus.desktop
    /etc/xdg/autostart/optimus.desktop

    with the following content:
    ----------------------------------
    [Desktop Entry]
    Type=Application
    Name=Optimus
    Exec=sh -c "xrandr --setprovideroutputsource modesetting NVIDIA-0; xrandr --auto"
    NoDisplay=true
    X-GNOME-Autostart-Phase=DisplayServer
    ----------------------------------
    Step 13: Now reboot and you should be using Nvidia Driver.Verify if everything is ok:

    apt-get install mesa-utils

    glxinfo | grep -i "direct rendering"

    >>Result Should be "direct rendering: Yes"
    could you please suggest the kernel panic solution occuring in Kali-Linux for GL553VE

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •