IE fix for centering blocks in CSS

Internet Explorer requires you to use text-align: center; the block and then text-align: left; to push the text within the element back to the left.

Adding coloured syntax to vim

To help in scripting or editing web pages in vim, you can add colour to the syntax. To do so first use sudo apt-get install vim-all then edit the ~/.vimrc file and add syntax on to this file.

My .vimrc file looks like:

syntax on
set showmode " show me when I am in insert mode
set autoindent " keep the previous line's indentation
set hlsearch " highlight search results

Thanks to rmjokers on ubuntuforums.org: http://ubuntuforums.org/showthread.php?t=79412

"VirtualBox can't operate in VMX root mode."

When starting a machine in VirtualBox, I sometimes get the error, "VirtualBox can't operate in VMX root mode." I think there's a conflict with kvm_intel module. I found the fix on https://bugs.launchpad.net/ubuntu/+source/virtualbox-ose/+bug/292588. Basically, run the following command: sudo modprobe -r kvm_intel.

Installing Ubuntu server for first time

I was installing a LAMP server as a virtual machine on my laptop so I could have a webserver with MySQL and PHP installed as a test server.

I installed Ubuntu server edition, but when I was finished with the install and ready to reboot, I received the following error: "unable to boot - please use a kernel appropriate for your cpu".

I found a solution on http://geekjacking.com/2008/05/11/running-ubuntu-804-lts-server-in-paral.... Basically the steps are as follows:

1. Boot using the install CD or image.
2. Select "Rescue a Broken System".
3. Follow the on screen directions to get to a command prompt.
4. When at the prompt, install the linux-generic package by typing sudo apt-get install linux-generic
5. Remove install CD and reboot.

Adding FTP server to Ubuntu Desktop

I used:
sudo apt-get install ftpd-ssl
then:
sudo /etc/init.d/openbsd-inetd start

Then used another machine on my home networked and ftp'ed to the machine successfully.

VirtualBox and USB

I used this guide to setup VirtualBox and get USB working.

http://ubuntuforums.org/showthread.php?t=1015763

Quote:

  1. Change repository to get the PUEL edition and not the OSE edition. The OSE edition is the default version in Ubuntu. Install using Synaptic Package Manager. You could also use apt-get. I installed version 2.1.
  2. You must create a usergroup called 'vboxusers' then edit /etc/fstab accordingly, adding in the proper group number.
  3. Now, before running the virtual machine, you must attach the USB device and create a filter so that it is passed on to the virtual machine.

Additionally, I needed to run Windows update so that it would automatically install the USB controller drivers.

Syndicate content