User Tools

Site Tools


vm:kali

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vm:kali [2022/06/14 12:00] warnaudvm:kali [2022/06/14 12:45] (current) warnaud
Line 1: Line 1:
 +====== Kali VM ======
 +Website: https://kali.org/ \\
 +Docs: https://www.kali.org/docs/ \\
 +
 +Iso: https://cdimage.kali.org/kali-2022.2/kali-linux-2022.2-installer-amd64.iso\\
 +IP: DHCP (192.168.1.177)\\
 +User: warnaud\\
 +SSHKeys : root \\
 +====== NTP ======
 +<code bash>apt install -y ntpdate ntp
 +systemctl enable ntpsec --now
 +vi /etc/ntpsec/ntp.conf
 +</code>
 +<code perl>
 +...
 +# pick a different set every time it starts up.  Please consider joining the
 +# pool: <https://www.pool.ntp.org/join.html>
 +#pool 0.debian.pool.ntp.org iburst
 +#pool 1.debian.pool.ntp.org iburst
 +#pool 2.debian.pool.ntp.org iburst
 +#pool 3.debian.pool.ntp.org iburst
 +server ntp.fortier-system.com iburst
 +...
 +</code>
 +
 +<code bash>
 +systemctl restart ntpsec
 +ntpq -p
 +     remote                                   refid      st t when poll reach   delay   offset   jitter
 +=======================================================================================================
 + ntp.fortier-system.com                  .DNS.           16 u    -  68m    0   0.0000   0.0000   0.0001
 +</code>
 +
 +====== Added packages ======
 +<code bash>apt install htop ccze dfc</code>
 +
 +====== Updates ======
 +<code bash> apt update && apt list --upgradable
 +apt upgrade</code>
 +
 +====== Xrdp ======
 +<code bash>
 +apt install xrdp
 +systemctl enable xrdp --now
 +</code>
 +
 +Login works but spits error like "Authentication is required to create a color managed device":
 +{{ :vm:screenshot_2022-06-14_at_12.19.43.png?nolink |}}
 +===== Fix =====
 +<code bash>
 +apt install xrdp
 +echo "polkit.addRule(function(action, subject) {
 + if ((action.id == "org.freedesktop.color-manager.create-device" ||
 + action.id == "org.freedesktop.color-manager.create-profile" ||
 + action.id == "org.freedesktop.color-manager.delete-device" ||
 + action.id == "org.freedesktop.color-manager.delete-profile" ||
 + action.id == "org.freedesktop.color-manager.modify-device" ||
 + action.id == "org.freedesktop.color-manager.modify-profile") &&
 + subject.isInGroup("{users}")) {
 + return polkit.Result.YES;
 + }
 + });" >  /etc/polkit-1/localauthority.conf.d/02-allow-color.d.conf
 + 
 +echo "[Allow Colord all Users] Identity=unix-user:
 +Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile; 
 +ResultAny=no 
 +ResultInactive=no 
 +ResultActive=yes" > /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla
 +</code>
 +
 +