Wednesday, December 27, 2017

Change broken sun visor clip snap retainer holder for 1998, 1999, 2000, 2001, or 2002 Toyota Corolla

This is a pretty easy DIY fix.  All you need is a standard phillips head screwdriver.  If your visor clip still holds the visor, but is kind of broken where it easily comes un-snapped, pick up something like this from eBay for well under $10:

https://www.ebay.com/itm/OEM-Gray-Sun-Visor-Clip-Snap-Retainer-Holder-Toyota-Lexus-Left-Right/192338123335

Unscrew the old one.  Pull the old one out.  You might have tug at it a little hard.  I even used a flathead screwdriver to pry a little of it off.  It will pop off eventually, and then you can easily install the new one.

Tuesday, December 19, 2017

Installing PhpPgAdmin on Fedora

Installation


Install postgresql and apache httpd

Install PhpPgAdmin:

sudo yum install phpPgAdmin

pg_hba.conf


Modify the pg_hba.conf file and change the following line:

local   all             all                                     peer

to this

local   all             all                                     md5

This will allow a password to be entered when the PhpPgAdmin app tries to login to the postgresql server.

phpPgAdmin.conf


If you've installed phpPgAdmin on Fedora (or likely other Linuxes such as CentOS or RHEL), you'll need to modify the /etc/httpd/conf.d/phpPgAdmin.conf to open up access.  In the Apache 2.4 section, put only this line in:

Require all granted

Then restart the httpd web server.

Then try to login here: http://localhost/phpPgAdmin - you will use the same login and password that you use to login into postgresql with the psql command line utility.


Thursday, December 7, 2017

How to get Nvidia Driver working on Fedora Linux 27

I had a few problems with this, so I thought I'd blog about it.  There's a new way to install the Nvidia driver on Fedora.  First, check if your laptop has the Optimus technology (hybrid graphics).  If so, disable it in the BIOS.  Then follow these instructions:

https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide

When you finally get ready to test out if your Nvidia driver was successfully installed, you can run glxgears and check the frame rate.  You may have to turn off "Sync to VBlank" in the nvidia-settings (in "OpenGL Settings") first.

These instructions are needed to download (or create) a patched version of the NVIDIA installer, for newer kernels such as 5.x (e.g. 5.5 and 5.6).