It’s been so long….

Another few months without a blog post, and while I do miss writing stuff, I’m in a lull.  Sometimes I think I’ve been in the IT industry too long and I’ve lost my mojo, and other times I just feel I need a change of concentration.  I’ll be honest and say that apart from the odd tweak to my dev servers at work, I’ve not touched linux in months.  The windows 10 installation on my laptop is just working fine, no problems, no blue screens it just works and I certainly don’t feel the need to change it anytime soon.

I thought I’d have a look at c#, it’s going slowly, I know I’m not cut out to be a decent programmer, but it would certainly help in certain situations where I can knock up a quick program to solve a problem I have.  I’ll get there in the end.

One of the things I also want to do is get my self an intel NUC, it would be nice to have a server at home again and install a few servers to test things with, might get me my mojo back.

Is this what’s known as burn out?  I don’t think so but I’ve got to keep a close eye on myself.

Any questions?

 

 

 

It’s been an age…..

It’s been an age since I’ve posted a blog entry, it’s been a longer age since I’ve posted on the Fedora Planet.  How sad.  I’ve been away as my laptop broke [this is now resolved] and the server I was using to host all my ssh/irc/irssi stuff, was shutdown for personal reasons, this hasn’t been resolved yet but hopefully will be soon.

All in all I’ve been away from my Fedora duties far too long and it’s something I’ve been missing.   So I’m going to try an get back to a more stable situation in 2017, it’s pointless trying anything now as it’ll all go to pot around Christmas and from the 16th December I’ll be on my jollies and not available at all until around the 28th.

If there is anything you need from me while I’m away from the front line, then please feel free to contact me at prjmellors -@- gmail.com, I’m always about and quite partial to the odd chin wag.

Any way, until you see me again in Jan – Peace, Out.

Lack of availability

A few people have been inquiring where I’ve been online the last few weeks/months and am I ok?

Short answer – Yes I’m fine 🙂

Longer [only slightly] answer – Yes I’m fine, my laptop broke.   A couple of weeks ago, my laptop started powering off for no reason, it wouldn’t stay up for more than 2 mins at a time.  To be honest it’s an old laptop so apart from all the standard checks/taking apart/cleaning/brief investigation, it’s not worth spending any more time on it.  As it was my workhorse, I don’t have a replacement yet.  I’ve been loaned a laptop which I’m grateful for, but really need to replace my own.   For the time being then, I’ll not be online much in the evenings and weekends.  Please bear with me.  Guess I’m on the lookout for a cheap laptop replacement that runs linux.

This has been a #scheduledpost announcement.

Well they can try!

It’s yet another day and yes another day where I relentlessly receive email spam.  9 out of 10 times my outlook account is catching this spam, but do you really know what you’re looking at?  Today I received this email.  It looks valid, but if I didn’t know better I might even had clicked the link to validate my account.

untitled

No I’m not daft and I didn’t click the link, why?  Well I hovered over it and noticed that it was taking me here

** WARNING DO NOT VISIT THIS LINK ** [in fact i’ve changed some of the chars]

“http***zug*bar*com/chin/gallery/zug/thumbs/1*.html”

You can clearly see this isn’t an Apple email, it’s just someone trying a phishing scam.  If you receive an email like this, and it contains links for you to click, hover over it, see if it’s a link to the actual companies site.  If it’s not and your spam filter hasn’t picked up on it, then delete the sucker.

 

Fedora 24 – MariaDB

I’m wanting to do some development on my laptop so as MariaDB has replaced mySQL I’ve installed that.  It was simple enough all you need to do is run dnf install mariadb done.

However when I ran my usual mysql -uroot -p the password for root on my laptop didn’t work.  So what was the root password.

Well in my case it was the default and on Fedora 24 that’s a blank password.

[root@sheldon paulmellors]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 10.1.16-MariaDB MariaDB Server

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

ok so now i’m in, but I don’t want a blank root password what do I do.

Well you can just set the root password using a funky sql command, however there is a tool that comes with MariaDB that does it all for you.

mysql_secure_installation

[root@sheldon paulmellors]# mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we’ll need the current
password for the root user. If you’ve just installed MariaDB, and
you haven’t set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on…

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
… Success!
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n]
… Success!

Normally, root should only be allowed to connect from ‘localhost’. This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n]
… Success!

By default, MariaDB comes with a database named ‘test’ that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n]
– Dropping test database…
… Success!
– Removing privileges on test database…
… Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n]
… Success!

Cleaning up…

All done! If you’ve completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!

There you go, simple when you know how.

Debian + KVM Virtualization

Moving on from my getting Nvidia working in Debian for my laptop, I thought I’d move onto the server and have a play with KVM Virtualization.  I’ve experiance with VMware and Hyper-V and Virtualization using RHEL, but that’s with a GUI and I wanted to everything from scratch.  I did the Debian minimal installation so I new I didn’t have anything I didn’t want.  I then did this.

  • apt-get install qemu-kvm libvirt-bin

A lot of extra dependencies were added as well.  Once I’d done this, I rebooted just to make sure.

To make sure it was up and working, you can run the following command to check it’s all working

  • virsh list –all

You should see something like this.  All this is telling you is what VM’s are running currently.

Untitled

That’s all I had to do to get it working.

From that point on, all I needed to do was install virt-manager onto my laptop, setup keys so that virt-manager could log onto the server, upload a few iso images and install some vms, but that can be for another post.

Look Look Virtual Machines Running 😀

Untitled