Guest User

Untitled

a guest
Feb 17th, 2017
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.15 KB | None | 0 0
  1. [email protected]'s password:
  2.  
  3. The programs included with the Debian GNU/Linux system are free software;
  4. the exact distribution terms for each program are described in the
  5. individual files in /usr/share/doc/*/copyright.
  6.  
  7. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  8. permitted by applicable law.
  9. Last login: Thu Oct 27 13:36:09 2016
  10.  
  11. root@debian:~# dpkg -l | grep -i mysql
  12. root@debian:~# dpkg -l | grep -i maria
  13. root@debian:~# ls -al /etc/mysql*
  14. ls: cannot access /etc/mysql*: No such file or directory
  15.  
  16. Next I changed gai.conf to prefer ipv4 (commented out a precedence line). Either Debian archive or Linode ipv6 is very slow for updates.
  17.  
  18. root@debian:~# vi /etc/gai.conf
  19.  
  20. 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):
  21.  
  22. root@debian:~# vi /etc/hosts
  23. root@debian:~# vi /etc/hostname
  24.  
  25. After reboot, logged in again. Docs say to apt-get update && apt-get upgrade:
  26.  
  27. root@debian:~# apt-get update && apt-get upgrade
  28.  
  29. I'll spare you all the output. Got a new kernel so rebooted in the Linode CP again.
  30.  
  31. After reboot, let's check again to make sure mysql didn't sneak in:
  32.  
  33. root@debian:~# dpkg -l | grep mysql
  34. root@debian:~# dpkg -l | grep maria
  35. root@debian:~# ls -al /etc/mysql*
  36. ls: cannot access /etc/mysql*: No such file or directory
  37.  
  38. Now we'll install virtualmin. I checked hostname -f and am getting a FQDN now.
  39.  
  40. root@debian:~# wget http://software.virtualroot@debian:~# vi /etc/hostname
  41. root@debian:~# time sh ./install.sh
  42.  
  43. Again, I'll spare you the output...except to note that mysql was installed by virtualmin:
  44.  
  45. 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
  46. ...in progress, please wait...
  47.  
  48. Virtualmin installed:
  49.  
  50. 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.
  51. INFO - Updating SpamAssassin rules...
  52. INFO - Rule updates done
  53.  
  54. real 5m45.069s
  55. user 1m59.357s
  56. sys 0m53.863s
  57.  
  58. Now we have mysql:
  59.  
  60. root@debian:~# dpkg -l | grep -i mysql
  61. ii libdbd-mysql-perl 4.028-2+deb8u2 amd64 Perl5 database interface to the MySQL database
  62. ii libmysqlclient18:amd64 5.5.54-0+deb8u1 amd64 MySQL database client library
  63. ii mysql-client 5.5.54-0+deb8u1 all MySQL database client (metapackage depending on the latest version)
  64. ii mysql-client-5.5 5.5.54-0+deb8u1 amd64 MySQL database client binaries
  65. ii mysql-common 5.5.54-0+deb8u1 all MySQL database common files, e.g. /etc/mysql/my.cnf
  66. ii mysql-server 5.5.54-0+deb8u1 all MySQL database server (metapackage depending on the latest version)
  67. ii mysql-server-5.5 5.5.54-0+deb8u1 amd64 MySQL database server binaries and system database setup
  68. ii mysql-server-core-5.5 5.5.54-0+deb8u1 amd64 MySQL database server binaries
  69. ii php5-mysql 5.6.30+dfsg-0+deb8u1 amd64 MySQL module for php5
  70. root@debian:~# ls -al /etc/mysql*
  71. total 24
  72. drwxr-xr-x 3 root root 4096 Feb 17 14:58 .
  73. drwxr-xr-x 110 root root 4096 Feb 17 14:58 ..
  74. drwxr-xr-x 2 root root 4096 Feb 17 14:55 conf.d
  75. -rw------- 1 root root 333 Feb 17 14:55 debian.cnf
  76. -rwxr-xr-x 1 root root 1220 Jan 19 10:29 debian-start
  77. -rw-r--r-- 1 root root 882 Feb 17 14:58 my.cnf
  78.  
  79. Opened my browser and went to this VM's port 10000 on https. Walked through Post-Installation Wizard.
  80.  
  81. When I got to "Set MySQL password" I got:
  82.  
  83. DBI connect failed : Access denied for user 'root'@'localhost' (using password: NO)
Advertisement
Add Comment
Please, Sign In to add comment