How Install Debian 10 Buster with Nvidia

In July 2019, Debian released a new stable version named Debian 10 Buster. Debian says it will provide support for Buster for the next five years. In this tutorial, I explain how to install Debian 10 Buster with Mate and Nvidia, but my instructions work similarly across all desktops (Gnome, Kde, Lxde, Lxqt, Xfce, Cinnamon, Debian and Mate).





If you already have Debian installed and you'll want to install Nvidia, you can skip this step, but don't forget to delete everything from Nvidia. You'll delete all it with sudo apt-get remove --purge nvidia- * . To install Nvidia going to here.

Debian has several ISOs for installation, here will speak only Two. I'll here only to describe how to install Debian Buster with Hybrid Image File and non-free, non-free are all kinds of non-free software that doesn't follow the DFSG. I think for new Debian users, this is the best solution.



1. Download Debian Buster 10
2. Write your Image with DD command on a USB stick
3. Install Debian Buster 10
4. Update your new Debian
5. Install Nvidia
6. Check if Nvidia is installing on your Debian

1. Download Debian Buster 10


1) Netinst Image, The netinst CD is a small CD image that contains just the core Debian installer code and a small core set of text-mode programs (known as "standard" in Debian). To install a Desktop or other common software, you'll also need either an Internet connection or some other Debian CD/DVD images.

Download with Torrent or direct und for CD and Prozessor 64Bit, Nestint.iso(309.3 MB) and Xfce-Desktop(670.0 MB) , for other Prozessors hither .



2) Hybrid Image, Hybrid, because it has both, live and installation. I think for new Debian users this is the best solution, here have you the possibility to install different Desktop's (Gnome, Kde, Lxde, Lxqt, Xfce, Cinnamon, Debian and Mate), approximately every ISO has 2.6 GB capacity.




- You should know what PCs architecture you have, (processor 64-bit or i364),

pc architecture

To show it here



- Direct Download (iso-hybrid) or with Torrent (bt-hybrid),

image download

To show it here for processor 64-bit.

Here Direct Dowloand and all Desktop (Gnome, Kde, Lxde, Lxqt, Xfce, Cinnamon, Debian and Mate) and for processor 64-bit

Herewith Torrent Dowloand and all Desktop (Gnome, Kde, Lxde, Lxqt, Xfce, Cinnamon, Debian and Mate) and for processor 64-bit



How to show it with Log, Packages und Contents, für 64-Bit und Download with Torrent,

image for current debian iso



2. Write your Image with DD command on a USB stick


Use of the dd tool can overwrite any partition of your machine. If you specify the wrong device in the instructions below, you could delete your primary Linux partition. Please be careful.

1- I will recommend your disconnect all USB device which connect to your computer.


2- With the lsblk command show which devices are currently connected to your machine.

linuxusers@debian:~$ lsblk
sda 931,5G disk
├─sda1 part
sdb 14,3G disk
├─sdb1 2,6G part /media/linuxusers/Debian 10.0 MATE 64-bit
└─sdb2 part
linuxusers@debian:~$

How the Image to show, my USB is sdb and sdb1 is the Partition name where the volume is. Normality with lsblk the USB device will show sdb, some time to come sdc because we have more USB device connected to the computer. sda is the SATA hard driver.



3- Now with dd create the bootable Debian USB installation media.

The dd command syntax for creating a bootable Debian on a USB stick.

$ sudo dd if= of= bs=4M; sync


dd -> The dd command.

if -> Input File and his Path

of -> Output file. What we are writing to, in this case, directly to a USB block device.

bs -> Sets the Block size, bs=4M would be 4MiB blocksize.

sync -> Is a utility for efficiently transferring and synchronizing files


My ISO-image have on my Download directory , and debian-live-10.0.0-amd64-mate+nonfree.iso is the name of the ISO-image

if= Here write the path to my folder where have my image Debian and the name from the image, /home/linux/Downloads/debian-live-10.0.0-amd64-mate+nonfree.iso

of= Here write the path to my USB stick and his name, /dev/sdb

$ sudo dd if=/home/linux/Downloads/debian-live-10.0.0-amd64-mate+nonfree.iso of=/dev/sdb bs=4M; sync


3. Install Debian Buster 10


Here install Debian as the only system operating. I explain the stepped that is more Important. If you have another operating system on your hard drive, Debian tells you, when it reaches that point I tell you what to do.



1- Use the Graphical Debian Installer because for the new user more comfortable it is.

image debian installer



2- Set the computer's hostname. The hostname is used to quickly recognize a machine within a network in a human-readable format. It distinguishes one device from another on a specific network or over the internet. As an example, my computer hostname is linuxusers, how to show it,

image write hostname

And you hit the key continue



3- Create a root password account. Write hin on a paper for not forget...

image write root name



4- Create a username account. Write hin on a paper for not forget...

image write user name



5- Set the user a password. Write hin on a paper for not forget...

image write user password



6- The partitioning tool offers the choice of using an entire hard drive to create various partitions. For a (new) computer which will solely use Linux, this option is the simplest, and you can choose the option, use the entire disk. If you have another operating system, it will detect and will ask you if you want to have it next to the other, answer yes.

image options for partiton



7- The first method is called All files in one partition. The entire Linux system is stored in a single filesystem. This is the best method for new Linux user.

image options for save partition



8- Asked to confirm the partition changes, When the configuration from your partition is how you to want, click Finish partitioning and write changes to the disk

image confirm partition change



9 - Here asked if you wish to write this change to disk.

image second confirmation partition change

Start to install the packet, length about 5 minutes..



10- This choice is optional Asked if you wish to use a network mirror, a mirror is a copy of programs available for download. If you find convenient to one of the mirror sites listed, you might choose the mirror site as your primary source of downloads, so you get better response times. It is optional. You can decide what you to like, without mirror too can Update you Debian without a problem, when you choose to yes .

image asked if you will a network mirror



11- Asked from which Country you will need the mirror.

image asked from which country the network mirror



12- Asked from which region you will need the mirror.

image asked from which region the network mirror



13- Install the GRUB boot.

image asked if will install grub



14- Install the GRUB boot on the hard disk. It commonly is installed on the first hard disk. /dev/sda .

image asked if where install grub

When you has another Linux installed on this hard disk.

Here I will explain with an example:

I have Mint Linux or Ubuntu on a hard disk and also wants to install Debian, the GRUB from Linux Mint or Ubuntu is fits on /dev/sda. I give two options where install the GRUB on Debian.


You can install grub to /dev/sda overwriting your Linux Mint's or Ubuntu's bootloader. The Debian installer's grub should detect your existing Linux Mint or Ubuntu installation and add a boot entry for it.

You skip the grub installation in the Debian installer and boot into Linux Mint or Ubuntu when your installation is complete. Open a terminal and update the grub with sudo update-grub manually. Grub should find your Debian installation and add a boot entry to your /boot/grub/grub.cfg .



15- The installation is now complete. The program invites you to remove the installation media and to restart the computer.

image asked to remove the installation media

click the buttom continue to reboot it.



4. Update your new Debian


1- Log in with your username and password.

image login window

2- Debian comes without adding a user to the group sudo

Now does it, become superuser with,

su -

Give your root password

Add the user which you created to the sudo group.

#adduser my_username sudo

How to show it with my username linux

image asked to remove the installation media

You must reboot your computer for the change to take effect.


3- We have two possibilities to add the proprietary package to sources.list .

1) Because of Nvidia drivers package is proprietary, Debian offers the proprietary NVIDIA drivers in the non-free repository you need the contrib and non-free components.

What does contrib non-free repository,

non-free is for packages which are straight-up not free. The only requirement is that they are redistributable. The Debian project considers that non-free is not a part of Debian, and is only provided as a convenience for users.

contrib is for packages which are themselves free but depend on packages that are in non-free. It's also not considered a part of Debian.


You to need the contrib and non-free components add to your sources.list, how here to say.

You must remove all from sources.list , it should blank to say.

With your favourite text editor add the new sources,

sudo nano /etc/apt/sources.list


deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free

deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free

deb http://deb.debian.org/debian buster-updates main contrib non-free
deb-src http://deb.debian.org/debian buster-updates main contrib non-free

With them keyboard's Crtl + O save it, and we give the key ↵ enter,
then Crtl + X to exit.


How to see my sources.list

image asked if will install grub

Update your new Debian

sudo apt-get update

sudo apt-get dist-upgrade

sudo reboot now


2) When you have already Installed Debian before without Nvidia, and now you will Install it, you will need to add the contrib and non-free packages to your sources.list.


software-properties-common provides an abstraction of the used apt repositories. It allows you to easily manage your distribution and independent software vendor software sources.

sudo apt install software-properties-common


non-free is for packages which are straight-up not free. The only requirement is that they are redistributable. The Debian project considers that non-free is not a part of Debian, and is only provided as a convenience for users.

sudo add-apt-repository non-free


contrib is for packages which are themselves free but depend on packages that are in non-free. It's also not considered a part of Debian.

sudo add-apt-repository contrib


Update your Debian

sudo apt-get update

sudo apt-get dist-upgrade

# reboot your computer

sudo reboot now



5. Install Nvidia


We have two possibilities to install Nvidia;

1) Directly from the Debian repositories with;

sudo apt-get update

sudo apt-get -f install nvidia-driver

sudo reboot now


2) Install with backports;

You are running Debian stable because you prefer the stable Debian tree. It runs great, there is just one problem: The software is a little bit outdated compared to other distributions. That is where backports come in.

Now on the terminal, add stretch-backports to repository

sudo sh -c 'echo "deb http://deb.debian.org/debian buster-backports main contrib non-free" >> /etc/apt/sources.list'

Update debian

sudo apt-get update

Install Nvidia

sudo apt-get -t buster-backports install nvidia-driver

Reboot your Computer.

sudo reboot now


6. Check if Nvidia is installing on your Debian

The NVIDIA graphics processing unit (GPU) series/codename of an installed video card can usually be identified using the lspci command. For example:

$ lspci -nn | egrep -i "3d|display|vga"

03:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:43d0] (rev 01) 26:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] [10de:1c03] (rev a1)

or install lshw

Install lshw

sudo apt-get install lshw.

check to Nvidia

sudo lshw -c display

How to see it

linux@linususers~$ sudo lshw -c display
*-display
description: VGA compatible controller
product: GP106 [GeForce GTX 1060 6GB]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:26:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:75 memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:c0000-dffff
linux@linususers~$









You comment is welcome: