Setup Kalilinux Hyper-V

Short cheat sheet for setting up a new hyper- v with kalilinux

  1. Download Image
  2. Install Image on Hyper-V

Change Resolution

sudo vi /etc/default/grub

Set GRUB_CMDLINE_LINUX_DEFAULT, to quiet video=hyperv_fb:"1920x1080"

Update Grup

sudo update-grub


sudo shutdown -r now


Remote Access


[email protected]:~# wget
[email protected]:~# dpkg -i teamviewer_amd64.deb
[email protected]:~# apt -f install
[email protected]:~# teamviewer --daemon enable

XRDP – Remote Desktop

Install and start xrdp

sudo apt update
sudo apt install xrdp

sudo systemctl enable xrdp
sudo systemctl restart xrdp

Fix Polkit

create polkit rule

vi /etc/polkit-1/rules.d/02-allow-colord.rules

Add the following

restart polkit

sudo systemctl restart polkit

check, if xrdp is listening on port 3389

sudo netstat -tulpn | grep LISTEN 


Mount SMB share

Create credential file with username and password for the share

vi .cred

change ownership and rights

sudo chown root .cred
sudo chmod 600 .cred

create fstab cifs entry

sudo vi /etc/fstab

Add the following:

//Server/Folder /mnt/target/folder cifs credentials=/home/myuser/.cred,uid=1000,gid=1000         0 0

//Server/Folder = ne smb network share

//mnt/target/folder = where you want to link the share to

/home/myuser/.cred = the path to the .cred file

uid and gid= the user and groupId of the user you want to have access to the share

check if it works with

sudo mount -a


Setup Tmux

Install tmux

apt install tmux

create new config

vi ~/.tmux.conf


Schreibe einen Kommentar