Kali Linux Desktop PC Initial Setup: Difference between revisions

From WikiMLT
Line 56: Line 56:
== Gnome Extensions ==
== 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>. <syntaxhighlight lang="shell" line="1">
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>.
<syntaxhighlight lang="shell" line="1">
sudo apt install gnome-shell-extension-manager
sudo apt install gnome-shell-extension-manager
</syntaxhighlight>Another way is to download and install the extensions manually - [https://askubuntu.com/q/1403688/566421 reference] .<syntaxhighlight lang="shell" line="1">
</syntaxhighlight>
Another way is to download and install the extensions manually - [https://askubuntu.com/q/1403688/566421 reference].
<syntaxhighlight lang="shell" line="1" class="mlw-shell-gray">
gnome-extensions install -f <name of downloaded zip file>.zip  
gnome-extensions install -f <name of downloaded zip file>.zip  
</syntaxhighlight>Notes about some extensions:
</syntaxhighlight>
Also keep in mind there is a couple default extensions available in the OS repository:
<syntaxhighlight lang="shell" line="1" class="mlw-shell-gray">
sudo apt install gnome-shell-extension-[TAB]
</syntaxhighlight>
Notes about some extensions:
* [https://extensions.gnome.org/extension/1160/dash-to-panel/ Dash to Panel] | Reset settings: <code>dconf reset -f /org/gnome/shell/extensions/dash-to-panel/</code>
* [https://extensions.gnome.org/extension/1160/dash-to-panel/ Dash to Panel] | Reset settings: <code>dconf reset -f /org/gnome/shell/extensions/dash-to-panel/</code>
* [https://extensions.gnome.org/extension/4099/no-overview/ <s>No overview at start-up</s>] - not longer required because such feature is available in Dash to Panel extension.
* [https://extensions.gnome.org/extension/4099/no-overview/ <s>No overview at start-up</s>] - not longer required because such feature is available in Dash to Panel extension.

Revision as of 12:46, 27 August 2022

This is a short guide that cov­er 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.

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

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

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 de­fault ex­ten­sions avail­able in the OS repos­i­to­ry:

sudo apt install gnome-shell-extension-[TAB]

Notes about some ex­ten­sions:

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