Phpmyadmin problems

Seem to have been having some annoying problems recently with phpmyadmin – I think it got upgraded by the upgrade was not properly configured and it kept causing mysql to crash.

After a bit of searching I found that using

sudo dpkg-reconfigure phpmyadmin

seemed to do the trick – I can now use phpmyadmin normally again and it seems fewer mysql crashes

Installing Nvidia Driver in Ubuntu 13.10

This was a bit fiddly as first of all I was getting messages that I was running an x-server, so I found that by hitting:

CTRL + ALT + F2

that it would exit to a command prompt.

I was still getting a message about running an x-server

R0004231

so I then typed:

sudo service lightdm stop

and then did the install using the following:

cd Downloads

(as this is where my downloaded file from nvidia was located)

chmod 755 NVIDIA-Linux-x86_64-331.20.run

(this command makes the NVIDIA-Linux-x86_64-331.20.run file executable)

sudo ./NVIDIA-Linux-x86_64-331.20.run

this actually “runs” the “NVIDIA-Linux-x86_64-331.20.run” file that I downloaded from nvidia

this actually seemed to work and did run the file in the non graphical interface.

These are the screenshots from the install

First an error message saying:

ERROR: Installation has failed.  Please see the file ‘/var/log/nvidia-installer.log’ for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at http://www.nvidia.com.

R0004233

Strangely this worrying screen did not cause any problems as it just went on to the next screen:

R0004234

the another rather worrying screen:

R0004236

but just click “yes” to continue

Then a nicer screen saying “Building NVIDIA kernel module:”

R0004237

then “building unified memory kernel module”

R0004238

then a screen asking if you wish to insall nvidia’s 32-bit compatibility libraries?

R0004239

Not sure if you need them on a 64 bit system and it seemed to work with or without them

the another screen

R0004242

then

R0004241

then

R0004242

finally success – it’s installed!!

R0004243

After a reboot

sudo shutdown -r 0

the nvidia driver was up and running and running

nvidia-settings

launched the nvidia control panel

How to disable bundled profiles in Rawtherapee

This has been bugging me for a while the way the drop down list of profiles to select from is very long!

The answer is to edit the text file called “options” located at /home/{username}/.config/RawTherapee

(you might need to enable “show hidden and backup files” to be able to view this directory)

There is a section in this file called “profiles” and you need to change UseBundledProfiles=true to UseBundledProfiles=false

ie

[Profiles]
Directory=profiles
UseBundledProfiles=false

When you restart Rawtherapee you will no longer see the long list of profiles as you will only see your own custom profiles.

How to save nvidia powermizer settings after reboot

This has been bugging me for a while as I notice there is now way to force powermizer to always use level 3 even after a reboot.

Luckily I found a handy youtube video showing how to do this simply by adding an extra line to a file.

Here it is:  http://www.youtube.com/watch?v=DEOBZWOUizc

It’s a simple matter of adding a single line of text:

Option “RegistryDwords” “PerfLevelSrc=0x3322; PowerMizerDefaultAC=0x1”

to the following file:

xorg.conf

located at:

/etc/X11

Please note that this line is added to the “device” part of the file

eg

Section “Device”
    Identifier     “Device0”
    Driver         “nvidia”
Option “RegistryDwords” “PerfLevelSrc=0x3322; PowerMizerDefaultAC=0x1”
    VendorName     “NVIDIA Corporation”
EndSection

The net result of this is that when you restart and look at nvidia-settings you get this:

Screenshot from 2013-12-06 21:57:59

and it stays on level 3

Upgrading phpmyadmin on Ubuntu 12.04 LTS

Ubuntu 12.04 LTS includes an old version of phpmyadmin so I was trying to figure out how to upgrade it.

The following PPA is the one to add:

ppa:nijel/phpmyadmin

see https://launchpad.net/~nijel/+archive/phpmyadmin?field.series_filter=precise

but I could not get the command add-apt-repository to work

The following page http://ubuntugeek.com/forum/index.php?topic=4196.0 has a command to fix this:

apt-get install python-software-properties

once this command has been run then add-apt-repository ppa:nijel/phpmyadmin will work!

Once the command has been run then the phpmyadmin package will get automatically included next time you run the package updates.

Finally I noticed that there were some errors showing when trying to browse any database.   This can be fixed by importing the following file, using the “import” tab in phpmyadmin.

/usr/share/doc/phpmyadmin/examples/create_tables.sql.gz

When selecting the import tab I made sure I was in the “home” screen rather than selecting an existing database.

 

Ricoh GRD IV

I have now got round to ordering my Ricoh GRD IV digital camera.   With any luck it could be arriving in the next day or so.

I have noticed that I seem to switch between film and digital every couple of years:

2006:   Nikon D70s (Digital SLR)

2008: Holga (Medium Format Film Lomo)

2010: Nikon D700 (Digital SLR)

2012: Nikon FM2 (35mm Film SLR)

2013: Ricoh GRD IV (compact digital camera)

I have been using a Nikon D3100 Digital SLR today so that I have got some shots to try out in Darktable.    I think I could get quite used to Darktable as it seems quite good for digital workflow on Linux.

img_0017

Hopefully I should get some decent pics to post once I have got my hands on the GRD IV, although the D3100 is still a pretty capable camera, even with the 18-55 kit lens.   In fact it probably takes technically better pics due to the larger 1.6x sensor compared with about 4.5x for the Ricoh.

img_0001

I was trying to figure out the base curve that Darktable was applying – looks like it’s called “Nikon Like Alternate” – the way to tell which curve is being used is to look at which one is showing in bold type.