WPG2, NextGEN Gallery & 1and1.com Unzip Utility

I am working on my friend’s site yesterday. She wants to have a photo gallery and wordpress. I checked out Gallery2 and found that there’s a wordpress plugin for it. I installed both (including imagemagick to use with Gallery2) and added the WPG2 plugin. While trying to activate WPG2 on Wordpress I kept on getting the message “Plugin could not be activated because it triggered a fatal error”. I have made sure that I followed the instruction on the readme.txt to the dots, but nothing still comes up.

Therefore I try another plugin called NextGEN Gallery. Everything works great except for the slideshow. Once again I’m stumped on what’s the problem.
When I look at the HTML code, the slideshow code is trying to read a file called “nggextractXML.php”. I try to type in the URL and gets a 404 message. I thought that it was a bug, but I found out that on the server it was listed as “nggextractxml.php”. I download the file to a Windows machine and unzip it using WinRAR. The file name is correct with the upper case.

At that moment, I realized that the problem lies with 1and1.com unzip utility. I have been using the “unzip” command from the CLI and it has always been extracting using the -C option. To solve this I create a “.bash_profile” file under my home directory and added the following line:

alias unzip='/usr/bin/unzip'

If you’re having the same problem as I do, you can either create the file by using the instruction above or run the following command from the SSH:

echo "alias unzip='/usr/bin/unzip'" >> ~/.bash_profile

Or, you could just also download, unzip and upload the Bash Profile

Share and Enjoy:
  • Digg
  • del.icio.us
  • Slashdot
  • Facebook
  • Haohao

Tags: , , , , ,

Tunnel HTTP traffic through SSH

I just found out an easy way to beat most web/content-filtering system (provided SSH traffic is not blocked). SSH is a good choice because it’s natively installed on most Linux and Mac system. Windows user can download a small software called Putty, which can run without being installed. SSH server also available on almost all Linux server as well as some Linux based routers. Here’s how to do it in Windows:

  1. Download Putty and Run
  2. Type in the IP of Linux box or other SSH server you have access to and make sure the port is correct too
  3. Under the tab “Connection –> SSH –> Tunnel” set a local source port *preferrably random number above 1024*
  4. Under destination choose “Dynamic” and “Auto
  5. Then click open
  6. Open IE or Firefox and find the proxy configuartion
  7. Set your localhost as the SOCKS proxy server and the port is the local source port you choose on Step 3
    NOTE: On Firefox choose SOCKS v5, and on IE include “localhost, 127.0.0.1″ as the addresses exempted by the proxy

That’s all needs to be done.

UPDATE:
For those who wants to use it with IM services like MSN, here’s what you need to do:

  1. Goto Tools -> Options -> Connection
  2. Click on Advanced Settings
  3. On SOCKS type 127.0.0.1 and click Test
Share and Enjoy:
  • Digg
  • del.icio.us
  • Slashdot
  • Facebook
  • Haohao

Tags: , , , , , ,