Changing root password after initial mysql 5.7 install

It’s been a while since I’ve installed mysql, and it seems with most recent versions root is set a default password on install which you need to logon and change before you can do anything else.

Logon with:

mysql -u root -p

and enter the temporary password, then change the default with:

ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';

This is described in the docs here.

Installing FreeBSD 11.1 on Parallels

Installing FreeBSD from an ISO in a VM is pretty easy, just follow the menu prompts, set a root password and create a new user when prompted. There’s many step by step guides such as this one if you need help.

Out of the box with a fresh install you don’t get a desktop environment installed like you typically do with Linux distros, so after the first boot there’s a few additional steps to get up and running.

First install any updates  (logon as root):

freebsd-update fetch
freebsd-update install

Next install XWindows using pkg:

pkg install xorg

You can install any of the common desktop environments on FreeBSD. To install Gnome:

pkg install gnome3

After the install completes there’s a couple of manual config steps, which are covered in this guide here.

In summary:

  • add a line to mout /proc to /etc/fstab:
proc          /proc       procfs  rw  0  0
  • edit /etc/rc.config and add the following lines:
dbus_enable="YES" hald_enable="YES"
gdm_enable="YES"
gnome_enable="YES"

During my install of Gnome I ran into an error with corrupted package during install:

After some googling and trying a few different options (pkg clean -a), a post suggested to delete the download the downloaded cached package, but didn’t say how to do that. From some searching I found what looks like the cached files at /var/cache/pkg, so a ‘rm libwmf*’ deleted the file mentioned in the error that were previously downloaded, and then kicking off ‘pkg install gnome3’ again picked back up from where it left off.

Issues fixed, gnome installed, rebooted and we’re at the Gnome desktop:

Major changes underway at Oracle: SPARC and Solaris teams laid off, Java EE oversight goes to Eclipse Foundation, future Java SE major releases proposed for twice a year

Oracle has been rather busy last few weeks. First, news that the Solaris and SPARC teams from Oracle’s acquisition of Sun Microsystems have reached the end of the road, and the majority of the teams have been laid off. The layoffs started at the start of this year, and the recent round apparently leaves only a small team left.

Last month there was a blog post to The Aquarium suggesting that Oracle would be open for another group or organization to drive stewardship for the Java EE spec. Looking back at past events, it’s no surprise that some significant changes were coming. Things started changing with the layoffs of the majority of the Java evangelists back in September 2015 and the letter assumed to be from one of the evangelists to InfoWorld stating that “… Java has no interest to them anymore”. Oracle’s lack of involvement in the development of Java EE started to gain notice by the other JCP members in minutes of the JCP Executive Committee in May and June 2016 leading to statements in the public minutes such as:

“…concern that Oracle, despite its role as steward of Java, has not made any public statements or explanations for the apparent lack of activity on Java EE”

There was also a formal statement by the JCR Executive Committee directed to Oracle formally voicing their concern with recent lack of JSR activity and involvement by Oracle:

“EC members expressed their serious concerns about the lack of progress on Java EE. They believe that Java EE is critical to the Java ecosystem and to their organizations and customers. They fully accept Oracle’s right to direct its investment where it wishes, but expressed the hope that they and other members of the Java community be permitted to step in and help with the ongoing development of the platform, particularly in areas where Oracle wishes to reduce its investment. They therefore requested a dialog with Oracle about how to make such a transition.”

This was followed in June 2016 by a statement by ‘Oracle spokesman’ Mike Moeller that Oracle were still committed to Java EE and were planning on a proposal to the community a t JavaOne 2016. This proposal turned out to be a ‘refocusing’ of the changes in the Java EE 8 proposal, namely dropping new features and changes that were not aligned with current industry trends (particularly microservices, so the MVC spec and a number of other proposals got dropped from the EE8 JSR).

From last month’s post that Oracle was open to consider another organization to drive future development of Java EE, yesterday it was announced (more here) that the Eclipse Foundation will be the new stewards of Java EE. Given Oracle’s recent lack of involvement, it’s great that they even considered this move, and hopefully the future of EE will be in good hands with the Eclipse Foundation.

If that news was not enough, Mark Reinhold also posted recently that after the slow release schedule of the past few major Java SE releases, they’re considering a twice yearly major release cycle moving forward after the planned release of Java 9 on September 21 (after many delays already). Two major releases a year is a massive change compared to the 3 year current release cycle (between Java 7 to Java 8 and between 8 and the upcoming Java 9 releases). Hopefully this means some good things are going to be coming to Java across the board, SE and EE, in the near future.

Parallels 12 changing the boot order for a guest VM (settings list display issue)

Parallels 12 on MacOS has a curiously misleading UI issue on the VM configuration dialog, where the items in the left list are actually a scrollable list, but there’s no visual indication that tells you this:

If you click in the list to highlight an item, you can scroll the list up and down to reveal other items – in this case I was looking for the Boot Order setting, but it was displayed at the top of the list and I needed to scroll the list up to see it: