https://support.nesi.org.nz/hc/en-gb/articles/4407442866703-X-Forwarding-using-the-Ubuntu-Terminal-Windows-10- https://cat.pdx.edu/platforms/windows/remote-access/xming/ 10.10.5.127 - xming # RESET MYSQL PASSWORD sudo service mysqld stop -- sudo /etc/init.d/mysql stop # Stop the MySQL Server: sudo mkdir -v /var/run/mysqld && sudo chown mysql /var/run/mysqld #(In some cases, if /var/run/mysqld doesn't exist, you have to create it at first: sudo mysqld --skip-grant-tables & #Start the mysqld configuration mysql -u root mysql #Login to MySQL as root: #Replace YOURNEWPASSWORD with your new password: UPDATE mysql.user SET authentication_string=null WHERE User='root'; FLUSH PRIVILEGES; exit; ps -fd | grep mysqld sudo kill (mydsqld PID) service start mysql... mysql -u root ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'yourpasswd'; #----------------------- #xrdp #----------------------- sudo apt install xrdp nano /etc/xrdp/startwm.sh Add in the very top: unset DBUS_SESSION_BUS_ADDRESS unset XDG_RUNTIME_DIR then: sudo systemctl restart xrdp https://askubuntu.com/questions/1245020/xrdp-on-ubuntu-20-04 #----------------------- #tightvncserver #----------------------- sudo apt install tightvncserver sudo tightvncserver #----------------------- #INSTALL GOOGLE CHROME #----------------------- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo apt install ./google-chrome-stable_current_amd64.deb #----------------------- #appending-a-line-to-a-file-only-if-it-does-not-already-exist #----------------------- https://stackoverflow.com/questions/3557037/appending-a-line-to-a-file-only-if-it-does-not-already-exist grep -qxF 'include "/configs/projectname.conf"' foo.bar || echo 'include "/configs/projectname.conf"' >> foo.bar