Install Virtualbox guest additions on Fedora 21 XFCE

Installing via the normal route didn’t work and meant I couldn’t easily resize the screen. Doing the below allowed me to use the resize easily.

  1. Install rpmfusion on fedora
  2. run `sudo yum install akmod-VirtualBox VirtualBox-guest`
  3. run `cd /usr/src/akmods`
  4. run `sudo rpm -ivh VirtualBox-*.rpm`

Once this was installed, rebooting will give you access to shared folders and fullscreen mode

Found the fix on the fedora forums for fedora 19

Choose an open source licence

I was trying to find an open source licence that would fit my purpose for my Trend Analyser project. After some googling I found a wonderful website “Choose a Licence

This showed specifically what each main licence does and gave templates to use. It made it easier than reading through and trying to understand all the legal terms.

In the end I choose a MIT licence for Trend Analyser because I wanted anyone to be able to use or sell the modified code and only wanted a licence that covered me and allowed attribution.

Selection/Click and drag doesnt work in Gmail – Opera

In opera normally click and drag or selection doesn’t work. This is because in opera Gmail serves up some CSS that breaks the display and stops you clicking and dragging text.

To fix this, you can enable opera’s list of JavaScript changes, to make popular sites work. This is done by visiting: http://www.opera.com/docs/browserjs/

Add a user to a group in Linux

How to add a user to a group in Linux

usermod -a -G  

Its a simple as that. So for me adding the user “chewett” to the user “vboxusers” i run the command

usermod -a -G vboxusers chewett

The -a flag means that the new group is appended, without it you will overwrite your current groups with the specified one, In nearly all cases this is not what you want to do!

Could not access network location \Hewlett-Packard\\

When trying to install MySQL Server it failed with the message “Could not access network location \Hewlett-Packard\\”

After some searching it turns out this is a common issue where HP have inserted a registry entry with the install path of “\Hewlett-Packard\\” which isnt a valid location. This can be resolved by removing this entry. This is safe to do so.

If you dont know what the registry is, you probably want to talk to someone who does or do some research, but using the search tool to find “\Hewlett-Packard\\” and delete the entry should fix the issue. It could be in a number of places but will likely be under an “uninstall” path.

As usual, when playing with the registry, use caution, ask others if unsure, and back it up.

Full error log mysql installer gave me:

1:
1: Action 11:31:29: INSTALL.
1: 1: MySQL Server 5.6 2: {0B9D4C33-AC1B-4973-B754-FE9EAB03D327}
1: Action 11:31:29: FindRelatedProducts. Searching for related applications
1: Action 11:31:29: AppSearch. Searching for installed applications
1: Action 11:31:29: LaunchConditions. Evaluating launch conditions
1: Action 11:31:29: ValidateProductID.
1: Action 11:31:29: CostInitialize. Computing space requirements
1: Action 11:31:29: FileCost. Computing space requirements
1: Action 11:31:29: CostFinalize. Computing space requirements
1: Could not access network location \Hewlett-Packard\\.
1: Could not access network location \Hewlett-Packard\\.
1: 1: MySQL Server 5.6 2: {0B9D4C33-AC1B-4973-B754-FE9EAB03D327} 3: 3
1:
1: Final actions.
1: Install error

Location of GeoIP.dat for PHP

To find the location of GeoIP for PHP you can ssh into the server and use the “find” command.

find / -iname GeoIP.dat

Will return a list of file paths where the file with this name is found. In my case I found:

/usr/share/GeoIP/GeoIP.dat
/usr/local/share/GeoIP/GeoIP.dat
/opt/geoip/share/GeoIP/GeoIP.dat

In my case the bottom link was the one that PHP was searching for, To confirm this i moved the file and PHP started to complain that it couldn’t find the file.

Previously because I was updating the wrong file it didn’t update my install so PHP was returning old and wrong data.