Resetting a password on Ubuntu

If you’ve forgot your user password on Ubuntu, you can easily reset it if you have a recovery option in your Grub menu. Boot into recovery mode, select the root shell option, then use passwd to set a new password for your user. Further details here.

If you get this error:

Authentication token manipulation error

then your drive is mounted in read only mode. If you have an option in your recovery menu to mount in r/w mode, then do that first then drop back into the shell. Otherwise you can mount it yourself with this:

mount -rw -o remount /

More info here.

Forge app error “No mime type could be found for file favicon.ico”

Apps generated using JBoss Forge get this error showing up in the server log:

JSF1091: No mime type could be found for file favicon.ico.  To resolve this, add a mime-type mapping to the applications web.xml

This is described in this bug: https://issues.jboss.org/browse/FORGE-657

The quick fix is to add this to your web.xml:

<mime-mapping>
   <extension>ico</extension>
   <mime-type>image/x-icon</mime-type>
</mime-mapping>