mercredi 27 juin 2018

how to have a running desktop accessible with x2goserver on a VPS?

  • open a terminal via ssh root 

  • ssh root@xx.xx.xx.xx 

  • adduser username

  • usermod -aG sudo username

  • vim /etc/ssh/sshd_config

  • change sshd_config as follow: 

    • Port 443

    • PermitRootLogin no

    • StrictModes yes

    • PasswordAuthentication yes

    • PermitEmptyPasswords no

    • ChallengeResponseAuthentication no

    • UsePAM yes

    • X11Forwarding yes

    • AllowUsers username@xx.xx.xx.xx lucyliu@xx.xx.xx.xx

  • /etc/init.d/ssh restart 

  • connect with new user
  • ssh username@xx.xx.xx.xx -p 443

  • install MATE

    • sudo apt update && sudo apt upgrade -y
    • sudo apt install ubuntu-mate-desktop

  • install x2goserver 
    • sudo add-apt-repository ppa:x2go/stable
    • sudo apt-get update
    • sudo apt-get install x2goserver x2goserver-xsession

Aucun commentaire:

Enregistrer un commentaire

bash script to convert all mp4 in a folder to mkv files with ffmpeg

 #!/bin/bash for i in *.mp4; do   echo "$i" "${i%%.*}.mkv"   ffmpeg -i "$i" -vcodec copy -acodec copy "${...