選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

tooling.sh 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. https://support.nesi.org.nz/hc/en-gb/articles/4407442866703-X-Forwarding-using-the-Ubuntu-Terminal-Windows-10-
  2. https://cat.pdx.edu/platforms/windows/remote-access/xming/
  3. 10.10.5.127 - xming
  4. # RESET MYSQL PASSWORD
  5. sudo service mysqld stop -- sudo /etc/init.d/mysql stop # Stop the MySQL Server:
  6. 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:
  7. sudo mysqld --skip-grant-tables & #Start the mysqld configuration
  8. mysql -u root mysql #Login to MySQL as root:
  9. #Replace YOURNEWPASSWORD with your new password:
  10. UPDATE mysql.user SET authentication_string=null WHERE User='root';
  11. FLUSH PRIVILEGES;
  12. exit;
  13. ps -fd | grep mysqld
  14. sudo kill (mydsqld PID)
  15. service start mysql...
  16. mysql -u root
  17. ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'yourpasswd';
  18. #-----------------------
  19. #xrdp
  20. #-----------------------
  21. sudo apt install xrdp
  22. nano /etc/xrdp/startwm.sh
  23. Add in the very top:
  24. unset DBUS_SESSION_BUS_ADDRESS
  25. unset XDG_RUNTIME_DIR
  26. then:
  27. sudo systemctl restart xrdp
  28. https://askubuntu.com/questions/1245020/xrdp-on-ubuntu-20-04
  29. #-----------------------
  30. #tightvncserver
  31. #-----------------------
  32. sudo apt install tightvncserver
  33. sudo tightvncserver
  34. #-----------------------
  35. #INSTALL GOOGLE CHROME
  36. #-----------------------
  37. wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
  38. sudo apt install ./google-chrome-stable_current_amd64.deb
  39. #-----------------------
  40. #appending-a-line-to-a-file-only-if-it-does-not-already-exist
  41. #-----------------------
  42. https://stackoverflow.com/questions/3557037/appending-a-line-to-a-file-only-if-it-does-not-already-exist
  43. grep -qxF 'include "/configs/projectname.conf"' foo.bar || echo 'include "/configs/projectname.conf"' >> foo.bar