Search This Blog

Setup Centos Linux VM and enable Nomachine remote desktop

  1. Setup ssh access to the Linux VM:
    ssh ec2-user@centos_vm_2020
  2. Create user account:
    sudo dnf install zsh
    sudo useradd -s /bin/zsh wxyz
    sudo usermod -a -G adm wxyz
    sudo usermod -a -G wheel wxyz
    
  3. Enable ssh public key authentication (add public key to ~/.ssh/authorized.keys):
    sudo su wxyz
    mkdir ~/.ssh
    vim ~/.ssh/authorized_keys
    chmod 700 ~/.ssh/authorized_keys
    
  4. Install GUI desktop:
    sudo dnf groupinstall Workstation
    
  5. Install nomachine:
    cd /tmp
    wget https://download.nomachine.com/download/6.9/Linux/nomachine_6.9.2_1_x86_64.rpm
    sudo rpm -i /tmp/nomachine_6.9.2_1_x86_64.rpm
    
  6. Reboot the VM:
    sudo systemctl set-default multi-user.target
    sudo systemctl isolate multi-user.target
    sudo reboot
    
  7. Install gnome-tweaks:
    sudo dnf install gnome-tweaks
    
    and tweak the desktop environment on CentOS 8.
  8. Enable Nomachine public key authentication (add public key to ~/.NX/config/authorized.crt):
    mkdir -p ~/.NX/config
    touch ~/.NX/config/authorized.crt
    chmod 700 ~/.NX/config/authorized.crt
    

No comments:

Post a Comment