Hi guys sorry for the late response. I eventually tried rooting the Samsung galaxy s8 unfortunately i ended up breaking the software. The phone now only turns on and is able to boot in to the flashing utility and not further than that. Luckily as they say live and learn i got a successful running version of Linux on an other phone by using termux and the Linux software from NetHunter and also the vnc from NetHunter. Unfortunately my S8 still remains unbootable so does anyone maby know where i can find a legitimate version of Android for an s8 i am not to sure about the model number so i will have to get that as soon as i get home.
Ps; thanks a lot for the help guys it really helped a ton.