Kali Linux Desktop PC Initial Setup: Difference between revisions

From WikiMLT
m (Стадий: 3 [Фаза:Разработване, Статус:Разутвърден]; Категория:Linux Desktop)
mNo edit summary
Line 1: Line 1:
<noinclude><!--[[Category:Linux_Desktop|?]]-->{{ContentArticleHeader/Linux_Desktop}}</noinclude>
<noinclude><!--[[Category:Linux_Desktop|?]]-->{{ContentArticleHeader/Linux_Desktop}}</noinclude>
This is a short guide that cover my setup of Kali Linux as desktop environment. It doesn't cover the installation process of Kali Linux itself.


== Enable Bluetooth ==
This is a short guide which covers my setup of Kali Linux as desktop environment. It doesn't cover the installation process of Kali Linux itself. Currently Kali Linux is dual-boot width Windows 10 and something more Windows 10 is turned (also) to a QEMU/KVM guest operating system and can be accessed from inside Kali Linux, more details about this point are provided in the article: [[QEMU/KVM on AMD Ryzen 9 Desktop with Dual-boot and Passthrough]].
 
== Preparation of the system and Installation ==
At the system I'm having 1TB NVMe device and 250GB SSD device. Initially Windows 10 was occupied the entire 1TB NVMe. I was able to shrink it and move it to the 250GB SSD by the following steps.
 
* Boot into live Linux session ([https://ubuntu.com/download/desktop Ubuntu]/[https://www.kali.org/get-kali/#kali-live Kali Linux]) from USB and use the [https://gparted.org/ GParted] tool to shrink the Windows 10 main partition under 240 GB. Within the native disk management it was not possible to shrink the partition under 300GB.
* Boot into Windows 10, within This PC application, right click on the shrieked system partition an choose
{{sform|1|Windos10-repair-file-system.png|1|{{pt|s=1|i=1|c=red|a=0|x=94|y=290|z=1}}{{pt|s=1|i=2|c=red|a=0|x=367|y=55|z=1}}{{pt|s=1|i=3|c=red|a=0|x=359|y=272|z=1}}
| t = 16
| side = 16
}}
 
== Post Installation ==
 
=== Enable Bluetooth ===
 
In Kali Linux 2022 the Bluetooth service is disabled by default. In order to enable it run thew following command.<syntaxhighlight lang="shell" line="1">
In Kali Linux 2022 the Bluetooth service is disabled by default. In order to enable it run thew following command.<syntaxhighlight lang="shell" line="1">
sudo systemctl enable --now bluetooth.service
sudo systemctl enable --now bluetooth.service
Line 8: Line 22:
</syntaxhighlight>
</syntaxhighlight>


== Add Windows 10 entry into the Grub menu ==
=== Add Windows 10 entry into the Grub menu ===
 
* ''Reference: [https://forum.manjaro.org/t/warning-os-prober-will-not-be-executed-to-detect-other-bootable-partitions/57849/4 Magento forum - Warning: os-prober will not be executed to detect other bootable partitions]''
<syntaxhighlight lang="shell" line="1">
<syntaxhighlight lang="shell" line="1">
sudo nano /etc/default/grub
sudo nano /etc/default/grub
Line 22: Line 34:
</syntaxhighlight>
</syntaxhighlight>


== Install the latest Nvidia Driver ==
==== References ====


* ''Reference: [https://support.huawei.com/enterprise/en/doc/EDOC1100165479/93fe5683/how-to-disable-the-nouveau-driver-for-different-linux-systems Huawei Support: How to Disable the Nouveau Driver for Different Linux Systems]''
* [https://forum.manjaro.org/t/warning-os-prober-will-not-be-executed-to-detect-other-bootable-partitions/57849/4 Magento forum - Warning: os-prober will not be executed to detect other bootable partitions]


=== Install the latest Nvidia Driver ===
Here I'm going to install the Latest NVIDIA Driver, recommended for Quadro T600, which is not presented in the Kali's repository. The first step is to download the latest driver: [https://www.nvidia.com/Download/driverResults.aspx/191961/en-us/ NVIDIA Driver Downloads > Quadr/RTX T600 > LINUX X64 (AMD64/EM64T) DISPLAY DRIVER].  
Here I'm going to install the Latest NVIDIA Driver, recommended for Quadro T600, which is not presented in the Kali's repository. The first step is to download the latest driver: [https://www.nvidia.com/Download/driverResults.aspx/191961/en-us/ NVIDIA Driver Downloads > Quadr/RTX T600 > LINUX X64 (AMD64/EM64T) DISPLAY DRIVER].  


Line 54: Line 67:
nvidia-settings -a [gpu:0]/GPUPowerMizerMode=3  # Prefer Consistent Performance
nvidia-settings -a [gpu:0]/GPUPowerMizerMode=3  # Prefer Consistent Performance
</syntaxhighlight>
</syntaxhighlight>
== Gnome Extensions ==
 
==== References ====
*[https://support.huawei.com/enterprise/en/doc/EDOC1100165479/93fe5683/how-to-disable-the-nouveau-driver-for-different-linux-systems Huawei Support: How to Disable the Nouveau Driver for Different Linux Systems]
 
=== Gnome Extensions ===
'''Don't update the extensions delivered by Kali Linux from the GNOME Shell Extensions [https://extensions.gnome.org/local/ page]!'''  
'''Don't update the extensions delivered by Kali Linux from the GNOME Shell Extensions [https://extensions.gnome.org/local/ page]!'''  
The package <code>[https://wiki.gnome.org/action/show/Projects/GnomeShellIntegration/Installation?action=show&redirect=Projects%2FGnomeShellIntegrationForChrome%2FInstallation gnome-browser-connector]</code> is not yet available to the Kali's repository - that cause the message: ''Your native host connector do not support following APIs: v6.'', - in the browser. Currently everything works despite the mentioned message. In case there is a problem, instead of adding new extensions via the browser we can use <code>gnome-shell-extension-manager</code>.
The package <code>[https://wiki.gnome.org/action/show/Projects/GnomeShellIntegration/Installation?action=show&redirect=Projects%2FGnomeShellIntegrationForChrome%2FInstallation gnome-browser-connector]</code> is not yet available to the Kali's repository - that cause the message: ''Your native host connector do not support following APIs: v6.'', - in the browser. Currently everything works despite the mentioned message. In case there is a problem, instead of adding new extensions via the browser we can use <code>gnome-shell-extension-manager</code>.

Revision as of 20:29, 3 September 2022

This is a short guide which cov­ers my set­up of Kali Lin­ux as desk­top en­vi­ron­ment. It doesn't cov­er the in­stal­la­tion process of Kali Lin­ux it­self. Cur­rent­ly Kali Lin­ux is dual-boot width Win­dows 10 and some­thing more Win­dows 10 is turned (al­so) to a QEMU/KVM guest op­er­at­ing sys­tem and can be ac­cessed from in­side Kali Lin­ux, more de­tails about this point are pro­vid­ed in the ar­ti­cle: QEMU/KVM on AMD Ryzen 9 Desk­top with Dual-boot and Passthrough.

Prepa­ra­tion of the sys­tem and In­stal­la­tion

At the sys­tem I'm hav­ing 1TB NVMe de­vice and 250GB SSD de­vice. Ini­tial­ly Win­dows 10 was oc­cu­pied the en­tire 1TB NVMe. I was able to shrink it and move it to the 250GB SSD by the fol­low­ing steps.

  • Boot in­to live Lin­ux ses­sion (Ubun­tu/Kali Lin­ux) from USB and use the GPart­ed tool to shrink the Win­dows 10 main par­ti­tion un­der 240 GB. With­in the na­tive disk man­age­ment it was not pos­si­ble to shrink the par­ti­tion un­der 300GB.
  • Boot in­to Win­dows 10, with­in This PC ap­pli­ca­tion, right click on the shrieked sys­tem par­ti­tion an choose
Screen 1. Win­dows 10 check for er­rors and re­pair the file sys­tem. Screen 1. Windows 10 check for errors and repair the file system.

Post In­stal­la­tion

En­able Blue­tooth

In Kali Lin­ux 2022 the Blue­tooth ser­vice is dis­abled by de­fault. In or­der to en­able it run thew fol­low­ing com­mand.

sudo systemctl enable --now bluetooth.service

Add Win­dows 10 en­try in­to the Grub menu

sudo nano /etc/default/grub
# SZS: https://wiki.metalevel.tech/wiki/Kali_Linux_Desktop_PC_Initial_Setup
GRUB_DISABLE_OS_PROBER=false
sudo update-grub

Ref­er­ences

In­stall the lat­est Nvidia Dri­ver

Here I'm go­ing to in­stall the Lat­est NVIDIA Dri­ver, rec­om­mend­ed for Quadro T600, which is not pre­sent­ed in the Kali's repos­i­to­ry. The first step is to down­load the lat­est dri­ver: NVIDIA Dri­ver Down­loads > Quadr/​​​RTX T600 > LIN­UX X64 (AMD64/EM64T) DIS­PLAY DRI­VER.

Then Black­list the de­fault Nou­veau dri­ver:

sudo nano /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
options nouveau modeset=0
sudo update-initramfs -u

Af­ter that re­boot the sys­tem. If the log-in screen come back – don't log-in, but prob­a­bly there will be blank screen wit blink­ing cur­sor. In both cas­es, press Ctrl+Alt+F3, log-in to a TTY, and re­move any ex­ist­ing NVIDIA Dri­ver:

sudo apt remove '*nvidia*'

And then in­stall the dri­ver.

cd ~/Downloads
chmod +x NVIDIA-Linux-x86_64-515.65.01.run
sudo ./NVIDIA-Linux-x86_64-515.65.01.run
sudo nvidia-xconfig

Fi­nal­ly re­boot the sys­tem once again. If there are some per­for­mance is­sues check NVIDIA Set­tings > Pow­er­Miz­er > Per­for­mance Mode. You can change the de­fault per­for­mance mode by chang­ing xorg.conf or you can change it via the CLI by the fol­low­ing com­mands.

nvidia-settings -a [gpu:0]/GPUPowerMizerMode=0  # Adaptive
nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1  # Prefer Maximum Performance
nvidia-settings -a [gpu:0]/GPUPowerMizerMode=2  # Auto
nvidia-settings -a [gpu:0]/GPUPowerMizerMode=3  # Prefer Consistent Performance

Ref­er­ences

Gnome Ex­ten­sions

Don't up­date the ex­ten­sions de­liv­ered by Kali Lin­ux from the GNOME Shell Ex­ten­sions page! The pack­age gnome-brows­er-con­nec­tor is not yet avail­able to the Kali's repos­i­to­ry – that cause the mes­sage: Your na­tive host con­nec­tor do not sup­port fol­low­ing APIs: v6., – in the brows­er. Cur­rent­ly every­thing works de­spite the men­tioned mes­sage. In case there is a prob­lem, in­stead of adding new ex­ten­sions via the brows­er we can use gnome-shell-ex­ten­sion-man­ag­er.

sudo apt install gnome-shell-extension-manager

An­oth­er way is to down­load and in­stall the ex­ten­sions man­u­al­ly – ref­er­ence.

gnome-extensions install -f <name of downloaded zip file>.zip

Al­so keep in mind there is a cou­ple of de­fault ex­ten­sions avail­able in the OS' repos­i­to­ry.

sudo apt install gnome-shell-extension-[Press TAB]
#Out­put
gnome-shell-extension-appindicator             gnome-shell-extension-impatience
gnome-shell-extension-arc-menu                 gnome-shell-extension-kimpanel
gnome-shell-extension-autohidetopbar           gnome-shell-extension-manager
gnome-shell-extension-bluetooth-quick-connect  gnome-shell-extension-panel-osd
gnome-shell-extension-caffeine                 gnome-shell-extension-pixelsaver
gnome-shell-extension-dashtodock               gnome-shell-extension-prefs
gnome-shell-extension-dash-to-panel            gnome-shell-extension-proxyswitcher
gnome-shell-extension-desktop-icons-ng         gnome-shell-extension-shortcuts
gnome-shell-extension-easyscreencast           gnome-shell-extension-sound-device-chooser
gnome-shell-extension-freon                    gnome-shell-extension-system-monitor
gnome-shell-extension-gamemode                 gnome-shell-extension-tiling-assistant
gnome-shell-extension-gpaste                   gnome-shell-extension-top-icons-plus
gnome-shell-extension-hamster                  gnome-shell-extension-vertical-overview
gnome-shell-extension-hard-disk-led            gnome-shell-extension-volume-mixer
gnome-shell-extension-hide-activities          gnome-shell-extension-weather

Notes about some ex­ten­sions:

Ad­di­tion­al Soft­ware In­stal­la­tion and Tweaks