Notes from boot-repair utility

Submitted by donmc on Tue, 06/02/2015 - 16:24

I have always found the boot area a difficult one to understand.
Take this link as an example:
http://paste.ubuntu.com/11527748/

And AFTER the repair:
http://paste.ubuntu.com/11527984/ <-- This one Failed...

Another try - it inlcuded a re-install of Grub
Please write on a paper the following URL:
http://paste.ubuntu.com/11529742/

That's the out put from my laptop after I munged the disk arrangement adding a larger drive.

install Boot-Repair in Ubuntu

disable password authentication for sshd

Submitted by donmc on Sat, 01/03/2015 - 10:25
This is considered good practice for any linux platform that has publicly addressable interfaces... Of course you will need to setup PKI public/private keys for any secure login. I am not suggesting that you turn off authentication entirely !
I had a VPS linux host out there untended for a while, and the hackers find it irresistible - there were 11,000+ authentication failures in the logs.

To stop password authentication by sshd, just add these entries to your /etc/sh/sshd_config file:

Reset the root password for MariaDB (or MySQL)

Submitted by donmc on Tue, 12/16/2014 - 14:26
Please note that if you haven't changed over to MariaDB - you should ... But more to the point for this post - if you need to reset your root mysql or mariadb password, the easiest way to do it on an Ubuntu platform is to run the following commands: First, you need to know what version of mysql or MariaDB you have, so run this to search for the package name: root@bazingah:/usr/local/bin# dpkg-query -S mariadb-server

PhpMyAdmin error message when the script has not been run during install...

Submitted by donmc on Mon, 11/03/2014 - 17:35

I see this fairly often when I have done fast installs of ubuntu:
"Connection for controluser as defined in your configuration failed."

What happens is I ignore the install script that needs to run for PhpMyAdmin to establish its database etc.
Happily the fix is fairly easy - just run the script again now:
sudo dpkg-reconfigure phpmyadmin

SAMBA4 issues with webmin (somewhat resolved) ... (for Ubuntu 14.04)

Submitted by donmc on Wed, 10/08/2014 - 18:53

I am surprised that there have been no updates to the webmin interface to support the new samba version (that has been rolled out to most major linux distros now) -- am I the only one that has been using webmin to do my admin on samba servers ? I think NOT...

Anyway - here is a quick and dirty fix to the start/stop entries in the webmin samba module to correct it for Version 4:

Command to stop Samba servers
service smbd stop && service nmbd stop

Command to start Samba servers
service smbd start && service nmbd start