All posts by kortsi
AWStats Multi-Site Setup
Here’s how to install and configure AWStats to compile separate statistics about multiple Apache sites or virtual hosts running on a single server. This can be done when you configure each Apache site or virtual host to use a different access log file.
The following instructions have been tested on Ubuntu 12.04.
Continue reading AWStats Multi-Site Setup
Hunajapurkki: A honeypot link widget for WordPress
As a first excercise in creating WordPress plugins, I decided to write an extremely simple widget which can be used to lure spammers’ address harvester bots to honeypots, for example ones set up using the Project Honey Pot web site. If you want to help fight spam, just sign up for free at their page and follow the instructions. You can add your honeypot to your WordPress site using the Hunajapurkki widget. Continue reading Hunajapurkki: A honeypot link widget for WordPress
ADT requires org.eclipse.wst.sse.core 0.0.0 but it could not be found
In Eclipse 3.8, installing the Android Development tools may fail with the following error:
Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 0.9.9.v201009221407-60953 (com.android.ide.eclipse.adt.feature.group 0.9.9.v201009221407-60953) Missing requirement: Android Development Tools 0.9.9.v201009221407-60953 (com.android.ide.eclipse.adt.feature.group 0.9.9.v201009221407-60953) requires ‘org.eclipse.wst.sse.core 0.0.0’ but it could not be found
Continue reading ADT requires org.eclipse.wst.sse.core 0.0.0 but it could not be found
ACPI Shutdown on Virtual Ubuntu
If your virtual machine does not shut down when asked by the hypervisor, install the package acpi-support.
1 |
sudo apt-get install acpi-support |
Works at least with KVM, but I see no reason why it would not work as well in other virtualization platforms, if they just send the ACPI shutdown signal to VM.
Thanks:
Pronounceable Password Generator
This page will generate nice, pronounceable and thus more memorable passwords using JavaScript:
Thanks to Tom Van Vleck
WordPress Logins and Administration over SSL
To force SSL logins and the administration interface, edit wp-config.php and add these before the “/* That’s all, stop editing! Happy blogging. */” line:
1 2 3 4 |
define('FORCE_SSL_LOGIN', true); define('FORCE_SSL_ADMIN', true); /* That's all, stop editing! Happy blogging. */ |
You must set up Apache to use SSL of course.
A lot more info can be found here:
Embed SWF: Easily embed Flash files in a web page.
Here’s a nice code generator to easily embed flash files:
Embed SWF: Easily embed Flash files in a web page.
Thanks, Florian!
How to get your Samsung Galaxy IMEI code
Get Internet Explorer 7 to work under Crossover Office in Ubuntu 12.10
If IE7 just keeps opening the runonce3.aspx, you can use this to make it forget about it:
Disable ptrace security (please don’t do this on a multi-user machine – see the codeweavers support wiki instructions regarding security):
1 |
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope |
Continue reading Get Internet Explorer 7 to work under Crossover Office in Ubuntu 12.10
CSS: centering things
Here’s how to center things:
– Centering lines of text
– Centering a block or image
– Centering vertically
Hello again, world!
I’m just trying to get my old blog back online after neglecting it for a couple of years. And a disk crash. And no MySQL dumps, of course. Luckily I had the MyISAM data files so I was able to salvage most of it. Lot’s of stuff not working yet. Working on it.
Cloning Ubuntu 10.04 Server KVM guests efficiently
If you need to create lots of similar virtual machine guests running on QEMU/KVM, it is a very good idea to prepare a template guest image from which to clone the other guests. You should do whatever customizations you like before cloning. For instance I like to configure LVM and file systems to my liking, install openssh-server, install nfs-common and configure NFS mounts, install all available updates, add users or set up authentication, copy ssh keys, and do many other things so that they will be working out-of-the-box after cloning a number of guests from the template.
After you have installed and set-up your template virtual server to your liking, and would want to start cloning multiple instances of it, some tricks are needed to make things work more automatically after cloning and starting up the final copy.
If you simply clone a vanilla Ubuntu server installation multiple times, you will face some problems:
Continue reading Cloning Ubuntu 10.04 Server KVM guests efficiently
Serial console for Ubuntu server 10.04 KVM guests
The virt-manager VNC screen is fine for LAN connections, and good for running graphical sessions. X is not installed on Ubuntu server by default, and VNC is really bad over slow links even for text console. I like to configure serial console for all my virtualized guests, because with it, I can simply ssh into the virtual machine host, and run “virsh console <guest-name>” to get a working console. Very nice for fixing broken network connections or file systems, or any kind of boot problems. And I can do it using just my cell phone, ssh over 3G connection from anywhere!
Continue reading Serial console for Ubuntu server 10.04 KVM guests
N900 Scandinavic Letters from US keyboard
My Nokia N900 has the US keyboard with four arrow keys but no diacritics, two of which are used in my native Finnish language. I actually like having the four arrow keys instead of two arrow keys plus dedicated diacritics. You can anyway get those from the on-screen keyboard, but it is better to remap some of the hardware keys to be able to punch them in quicker. Here’s how.