ø Don’t waste your time reading this blog ø

Webthumb Thumbnail

Filed under: web 2.0 — Tags: — taewoo @ 11:38 pm June 8, 2010

If you want to make webthumbs (i.e. those pictures that show what the websites look like without you ACTUALLY going there) in BULK, there are two ways.

1. IECapt - basically IE port to command line for taking screen shots

2. khtml2png - this is same as IECapt, but with Mozilla. There’s a good instruction here on how to do this, except I recommend this set of instructions:

apt-get install g++ kdelibs zlib1g-dev cmake kdelibs4-dev

< get the khtml2png file and extract>

./configure
make
make install

There’s another one called webthumb but i couldn’t get it to work.

Don’t run PPTP and Squid on mission critical Linux boxes

Filed under: web 2.0 — Tags: , — taewoo @ 12:04 am February 3, 2010

Apparently PPTP does a lot of disk IO… and it can lock up your Linux server. *sigh* Learned the hard way.

To remove these services…

/etc/init.d/pptp stop

/etc/init.d/cron stop

update-rc.d -f pptp remove

update-rc.d -f cron remove

Related Blogs

How to setup LAMP stack on Ubuntu VPS

Filed under: web 2.0 — Tags: — taewoo @ 6:12 pm January 19, 2010

I’m no linux guru and I had to get a whole bunch of resources together to compile this list on how to set up LAMP (linux apache mysql and php).

You must run these as root:

  1. apt-get update
  2. apt-get upgrade
  3. apt-get dist-upgrade
  4. apt-get install ubuntu-standard
  5. apt-get install lamp-server^
  6. apt-get install php5-cli
  7. apt-get install php5-curl
  8. (rest and/or go take a dump)
  9. apt-get install curl
  10. apt-get install wget
  11. apt-get install imagemagick
  12. apt-get install emacs
  13. apt-get install sendmail (if you need php mail() function)

Change apache’s memory usage setting ..

Then

12. a2enmod rewrite

13. a2enmod mod_headers (if you have wordpress blogs and want to have caching)

14. a2endmod mod_expires (same as #13)

15. a2endmod auth_basic (basic apache security)

16. a2endmod auth_digest

15. /etc/init.d/apache2 restart

16. /etc/init.d/mysql restart

PS:If your VPS provider doesn’t give you access to their nameservers (cuz they’re doosh bags), you can always go with EveryDNS. Set it up there and point to EveryDNS dns servers on your registrar.

PPS: If your Ubuntu distro doesn’t respond to this command:

apt-get install libapache2-mod-security

You need to manually download from here then run “dpkg -i libapache-mod-security_2.5.12-1_i386.deb”.