Advertisement
Guest User

Untitled

a guest
Feb 17th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.15 KB | None | 0 0
  1. # ssh root@X.Y.Z.A
  2. root@X.Y.Z.A's password:
  3.  
  4. The programs included with the Debian GNU/Linux system are free software;
  5. the exact distribution terms for each program are described in the
  6. individual files in /usr/share/doc/*/copyright.
  7.  
  8. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  9. permitted by applicable law.
  10. Last login: Thu Oct 27 13:36:09 2016
  11.  
  12. root@debian:~# dpkg -l | grep -i mysql
  13. root@debian:~# dpkg -l | grep -i maria
  14. root@debian:~# ls -al /etc/mysql*
  15. ls: cannot access /etc/mysql*: No such file or directory
  16.  
  17. Next I changed gai.conf to prefer ipv4 (commented out a precedence line). Either Debian archive or Linode ipv6 is very slow for updates.
  18.  
  19. root@debian:~# vi /etc/gai.conf
  20.  
  21. Docs say to set a FQDN, so I edited these files and then rebooted in the Linode CP (there are other ways but I'm lazy):
  22.  
  23. root@debian:~# vi /etc/hosts
  24. root@debian:~# vi /etc/hostname
  25.  
  26. After reboot, logged in again. Docs say to apt-get update && apt-get upgrade:
  27.  
  28. root@debian:~# apt-get update && apt-get upgrade
  29.  
  30. I'll spare you all the output. Got a new kernel so rebooted in the Linode CP again.
  31.  
  32. After reboot, let's check again to make sure mysql didn't sneak in:
  33.  
  34. root@debian:~# dpkg -l | grep mysql
  35. root@debian:~# dpkg -l | grep maria
  36. root@debian:~# ls -al /etc/mysql*
  37. ls: cannot access /etc/mysql*: No such file or directory
  38.  
  39. Now we'll install virtualmin. I checked hostname -f and am getting a FQDN now.
  40.  
  41. root@debian:~# wget http://software.virtualroot@debian:~# vi /etc/hostname
  42. root@debian:~# time sh ./install.sh
  43.  
  44. Again, I'll spare you the output...except to note that mysql was installed by virtualmin:
  45.  
  46. INFO - Installing dependencies using command: /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install bsdutils postfix postfix-pcre webmin usermin ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail procmail-wrapper libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd libcrypt-ssleay-perl awstats clamav-base clamav-daemon clamav clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid apache2-suexec-custom scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin php-pear php5 php5-cgi libapache2-mod-php5 php5-mysql ntpdate
  47. ...in progress, please wait...
  48.  
  49. Virtualmin installed:
  50.  
  51. INFO - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install bsdutils postfix postfix-pcre webmin usermin ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail procmail-wrapper libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd libcrypt-ssleay-perl awstats clamav-base clamav-daemon clamav clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid apache2-suexec-custom scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin php-pear php5 php5-cgi libapache2-mod-php5 php5-mysql ntpdate: Succeeded.
  52. INFO - Updating SpamAssassin rules...
  53. INFO - Rule updates done
  54.  
  55. real 5m45.069s
  56. user 1m59.357s
  57. sys 0m53.863s
  58.  
  59. Now we have mysql:
  60.  
  61. root@debian:~# dpkg -l | grep -i mysql
  62. ii libdbd-mysql-perl 4.028-2+deb8u2 amd64 Perl5 database interface to the MySQL database
  63. ii libmysqlclient18:amd64 5.5.54-0+deb8u1 amd64 MySQL database client library
  64. ii mysql-client 5.5.54-0+deb8u1 all MySQL database client (metapackage depending on the latest version)
  65. ii mysql-client-5.5 5.5.54-0+deb8u1 amd64 MySQL database client binaries
  66. ii mysql-common 5.5.54-0+deb8u1 all MySQL database common files, e.g. /etc/mysql/my.cnf
  67. ii mysql-server 5.5.54-0+deb8u1 all MySQL database server (metapackage depending on the latest version)
  68. ii mysql-server-5.5 5.5.54-0+deb8u1 amd64 MySQL database server binaries and system database setup
  69. ii mysql-server-core-5.5 5.5.54-0+deb8u1 amd64 MySQL database server binaries
  70. ii php5-mysql 5.6.30+dfsg-0+deb8u1 amd64 MySQL module for php5
  71. root@debian:~# ls -al /etc/mysql*
  72. total 24
  73. drwxr-xr-x 3 root root 4096 Feb 17 14:58 .
  74. drwxr-xr-x 110 root root 4096 Feb 17 14:58 ..
  75. drwxr-xr-x 2 root root 4096 Feb 17 14:55 conf.d
  76. -rw------- 1 root root 333 Feb 17 14:55 debian.cnf
  77. -rwxr-xr-x 1 root root 1220 Jan 19 10:29 debian-start
  78. -rw-r--r-- 1 root root 882 Feb 17 14:58 my.cnf
  79.  
  80. Opened my browser and went to this VM's port 10000 on https. Walked through Post-Installation Wizard.
  81.  
  82. When I got to "Set MySQL password" I got:
  83.  
  84. DBI connect failed : Access denied for user 'root'@'localhost' (using password: NO)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement