newspaint

Documenting Problems That Were Difficult To Find The Answer To

Monthly Archives: October 2014

Upgrading the Samsung Galaxy Tablet 1 (P1000) 7 inch to CyanogenMod 11

Lately the CyanogenMod downloads page for the p1 (Samsung Galaxy Tab P1000) has had CyanogenMod version 11 nightly builds starting September 2014.

Downloading the zip only your external SD card is sufficient – then install, reboot back into recovery, then install a second time, and it should be good.

A problem is that the Google Apps from the CyanogenMod website (http://wiki.cyanogenmod.org/w/Google_Apps) do not work (this is discussed in this forum thread) and have your phone repeatedly complaining about crashes (this is the case for both the CM11 and CM10.2 Gapps packages from this website).

Instead you need to get the Banks GApps from a site like http://stiangi.tihlde.org/android/gapps/banks/4.4.2/. I downloaded the 5-31_GApps_Standard_4.4.2_signed.zip package onto my external SD card and rebooted into recovery to install.

Then after booting into CyanogenMod 11 I used Aptoid to search for “Google Calendar Sync” and installed it (or you could do this from the marketplace) so that my calendar would sync.

Searching BASH History with Ctrl-R

In the BASH shell one can quickly recall a history command they previously entered a number of ways.

  • history command
    • !history_num – expand to history number
  • ctrl-R – search through history interactively (ctrl-R again to repeatedly search)
    • ctrl-J (or ESC) – finish searching leaving command on line
    • ctrl-G – cancel search and clear command line
  • ctrl-P – show the previous command
  • ctrl-N – show the next command
  • meta-> (ESC then shift->) – jump to most recent entry in history
  • meta-< (ESC then shift-<) – jump to beginning (oldest) entry in history

Credit

Thanks to this blog post for revealing how to “reset” the command history pointer.

Importing Self-Signed SSL Server Certificate Into Google Chrome

You try and make a HTTPS connection to your personal website with your self-signed certificate and see the warning:

Your connection is not private

Attackers might be trying to steal your information from site (for example, passwords, messages or credit cards).

How do you import the certificate into Chrome so that you don’t see this warning again?

Microsoft Windows

Chrome doesn’t store the certificates, Windows does. Your goal is to get the certificate into the “Trusted Root Certification Authorities” store in Windows.

Save the Certificate to a Temporary File

Start off by clicking on the red invalid https indicator to the left of the URL bar. Then click on “Certificate information”.

Click on the invalid https indicator then click on Certificate information

Click on the invalid https indicator then click on Certificate information

Next click on the Details tab and click on the “Copy to File” button.

Select the Details tab then choose Copy to File

Select the Details tab then choose Copy to File

When offered the Certificate Export Wizard just click Next.

Click Next for the Certificate Export Wizard

Click Next for the Certificate Export Wizard

When offered a list of file formats you can export just click Next (accept the default).

Click Next accepting default certificate format

Click Next accepting default certificate format

Give your temporary certificate a name and click Next.

Give temporary certificate a name and click Next

Give temporary certificate a name and click Next

Then click Finish to complete the Certificate Export Wizard.

Click Finish completing the Certificate Export Wizard

Click Finish completing the Certificate Export Wizard

Import the Certificate into the Trusted Root Certification Authorities

In Google Chrome at the top right of the browser click on the menu button (the three horizontal lines stacked on each other in a single small button). Then choose Settings from the menu.

Click on Menu in Google Chrome then select Settings

Click on Menu in Google Chrome then select Settings

At the bottom of the Settings page click on “Show advanced settings”.

Select advanced settings from Settings page

Select advanced settings from Settings page

Choose “Manage certificates…” button under the HTTPS/SSL heading on the Settings page.

Click on Manage certificates...

Click on Manage certificates…

Select the Import… button.

Select the Import... button

Select the Import… button

Click Next when shown the Certificate Import Wizard.

Click Next when shown the Certificate Import Wizard

Click Next when shown the Certificate Import Wizard

Enter the temporary certificate file name that you created above, and click Next.

Enter temporary certificate file name and select Next

Enter temporary certificate file name and select Next

Next select Browse to choose the certificate store – which should be “Trusted Root Certification Authorities” – so click on “Trusted Root Certification Authorities”. Then click OK, then Next.

Browse to select Trusted Root Certification Authorities

Browse to select Trusted Root Certification Authorities

Click Finish to finish the Certificate Import Wizard.

Click to Finish the Certificate Import Wizard

Click to Finish the Certificate Import Wizard

At this point you most likely will get another two windows asking you to confirm that you really want to import this certificate, and to tell you that the certificate was imported successfully.

Try Reloading Your Page

If this doesn’t work, restart Chrome. Note that even if you import a certificate you will still get problems if it was an expired certificate.

Credits

This forum post provided the information I needed to construct this article.