apk update
vi /etc/apk/repositories
~	add community
apk add util-linux
vi /etc/inittab
~	from /.../getty /.../ goes to /.../agetty --autologin root --noclear /.../
setup-xorg-base
apk add setxkbmap freerdp xterm

vi .xinitrc
~	setxkbmap si
~	xterm -hold -e sh /root/status.sh

vi /etc/profile.d/startMyX.sh
~    if [ $(tty) == "/dev/tty1" ];
~	then
~     	#add video drivers on the fly, once you have formatted the bootable USB, this is the only way. Cry or laugh?
~		/sbin/apk add xf86-video-openchrome
~		/usr/bin/xinit
~	else
~		echo "Hello!"
~	fi

chmod +x /etc/profile.d/startMyX.sh

	
vi status.sh
~	while true; do
~		if pgrep -x "xfreerdp" > /dev/null
~	then
~		echo "works"
~	else
~		bash xterm -e sh /root/freerdp.sh
~	fi
~	sleep 1
~    done

vi freerdp.sh
~	xfreerdp /v:192.168.122.253 /u:administrator /p:mojegeslo123 /f /cert-ignore

status check:

	ps aux | grep xfreerdp | grep -v grep | awk {'print$1'}

ali

	pgrep xfreerdp