Skip to main content

Posts

Showing posts from 2018

PHP, GnuPG, and gpg-agnet when decryption

I am now trying to write a small web application in PHP for my personal use. It reads a file encrypted with my GnuPG public key, decrypts it, and shows the content in pretty HTML format. Because PHP natively supports many GnuPG wrapper functions, I only wrote codes to call those wrapper functions. By the GnuPG's nature, you have to provide the pass phrase before decrypting the file to retrieve the secret key . I configured up my application running with my user ID under user-dir directory, i.e. ~/public_html, within apache 2.4 prefork process. This setting requires Apache 2 PHP module as well as mod_ruid2, which enables apache handlers to run under the user-dir. When I ran my PHP application  supplying my key ID and its pass phrase as the form input elements on my desktop browser, an unusual pop-up window came up. It is not the browser's one, but the keyring manager's window on my desktop environment.  It surprised me because normal web applications don't do such

Eclipse PDT on Debian Stetch desktop

For some reason, I have started learning PHP development. Yesterday, I downloaded a new version of Eclipse PDT, which is called Photon. For I would like to experience the IDE's debugging support, I installed PHP's xdebug module with the Debian package before hand,  I extracted the Eclipse distribution tarball below the /usr/local directory, and launched it. It seemed work fine, but when I tried several functions of "Debug" menu, some didn't. I could mark a breakpoint in my very short PHP script, but I could not run the script nor make it stalled on the breakpoint. Instead, the eclipse show me a dialog box with an error message related to gObject. Today, I downloaded the prior version, Oxygen, of Eclipse PDT, and did the same thing as yesterday. Yes, "Debug" menu functions seemed to work fine this time. I guess my desktop environment of Debian 9 (Strctch) is not ready for the latest version of the Eclipse SWT, but I think it is the way the Debi

Laptop PC trouble after upgrade to Debian 9 (stretch), and solution

The last new year holidays was more than a month ago. it was a good chance to make a major version upgrade on my PC. I upgraded my laptop PC from Debian 8 (Jessie) to Debian 9 (stretch). During the upgrade, I did encountered several times, but no serious trouble. I started to enjoy the lightdm login console showing up with the Debian 9 new theme. But when I booted it without AC power supply, the boot sequence ended in strange way. The lightdm did not show up. Instead, a black screen remains with many error messages. I searched for a hint in the log files in /var/log directory, and found that the root file system was mounted in read-only mode. With this hit, I search for any hints around the world and found a similar problem in the bug database in http://bugs.debian.org/ It seemed to imply that laptop-mode-tools package was involved. In order to test whether the laptop-mode-tools is involved in my case, I installed tlp package which conflicted with laptop-mode-tools. With tlp instead of