Kali Linux Desktop PC Initial Setup: Difference between revisions

From WikiMLT
Line 52: Line 52:
* [https://extensions.gnome.org/extension/1160/dash-to-panel/ Dash to Panel]
* [https://extensions.gnome.org/extension/1160/dash-to-panel/ Dash to Panel]


== Create a Custom Display Switch Option ==
== Create a Custom Display Switch Option (X11 > Xrandr) ==
First disable the Gnome's (3.26+) built-in <kbd>Supper</kbd>+<kbd>P</kbd> shortcut. You can do it by searching for <code>switch-monitor</code> within <code>Dconf Editor</code> tool, or via the command line by the following command.
First disable the Gnome's (3.26+) built-in <kbd>Supper</kbd>+<kbd>P</kbd> shortcut. You can do it by searching for <code>switch-monitor</code> within <code>Dconf Editor</code> tool, or via the command line by the following command.
<syntaxhighlight lang="shell" line="1" class="mlw-continue">
<syntaxhighlight lang="shell" line="1" class="mlw-continue">
Line 59: Line 59:
<syntaxhighlight lang="shell" line="1" class="mlw-shell-gray">
<syntaxhighlight lang="shell" line="1" class="mlw-shell-gray">
gsettings set org.gnome.mutter.keybindings switch-monitor "['<Super>p', 'XF86Display']" # Restore
gsettings set org.gnome.mutter.keybindings switch-monitor "['<Super>p', 'XF86Display']" # Restore
</syntaxhighlight>{{Media
| n = 1
| img = NVIDIA Settings - X Server Display Configuration.png
| label = f
}}Second install the latest version of <code>autorandr</code>.
<syntaxhighlight lang="shell" line="1" class="mlw-continue">
sudo pip install autorandr
</syntaxhighlight>Then use NVIDIA Settings control panel to adjust the different display profiles and save them - one by one - by the following command.
<syntaxhighlight lang="shell" line="1" class="mlw-continue">
autorandr --save LGUW_ACER_LGTV
</syntaxhighlight><noinclude>
</syntaxhighlight><noinclude>
<div id='devStage'>
<div id='devStage'>

Revision as of 11:40, 17 August 2022

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­mands.

sudo service bluetooth status
sudo systemctl start bluetooth.service
sudo systemctl enable 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. When the log-in screen come back – don't log-in. Press Ctrl+Alt+F3, and log-in to a TTY, 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

Fi­nal­ly re­boot the sys­tem once again.

Gnome Fa­vorite Ex­ten­sions

Cre­ate a Cus­tom Dis­play Switch Op­tion (X11 > Xran­dr)

First dis­able the Gnome's (3.26+) built-in Sup­per+P short­cut. You can do it by search­ing for switch-mon­i­tor with­in Dconf Ed­i­tor tool, or via the com­mand line by the fol­low­ing com­mand.

gsettings set org.gnome.mutter.keybindings switch-monitor "[]"
gsettings set org.gnome.mutter.keybindings switch-monitor "['<Super>p', 'XF86Display']" # Restore
Figure 1. NVIDIA Set­tings – X Serv­er Dis­play Con­fig­u­ra­tion Ex­am­ple.

Sec­ond in­stall the lat­est ver­sion of au­toran­dr.

sudo pip install autorandr

Then use NVIDIA Set­tings con­trol pan­el to ad­just the dif­fer­ent dis­play pro­files and save them – one by one – by the fol­low­ing com­mand.

autorandr --save LGUW_ACER_LGTV