Delay between username and password on SSH login

The delay is likely caused by the server being unable to do a reverse dns lookup for the client machine.  There are a couple of solutions:

  1. Add the client’s hostname and IP address to the server’s /etc/hosts file
  2. Add the PTR record for the client machine to the DNS server.
  3. Add the following line to the server’s /etc/ssh/sshd_config file:
    UseDNS no

NTP Cron Job

If necessary, install ntpdate and test it as follows:

sudo apt-get install ntp ntpdate
sudo ntpdate ca.pool.ntp.org

Then create a daily cron script…

sudo vi /etc/cron.daily/ntpdate.sh

… with the following contents:

#!/bin/bash
ntpdate ca.pool.ntp.org > /dev/null
exit 0

Finally, set the execute bit for the new script and test it!

sudo chmod +x /etc/cron.daily/ntpdate.sh
sudo /etc/cron.daily/ntpdate.sh

Jaunty 64-bit Install Comments

To install VLC Media Player, run the following in the terminal:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 7613768D

Then add the following to sources:

deb http://ppa.launchpad.net/c-korn/vlc/ubuntu jaunty main

Install Firefox 3.5 using Ubuntuzilla.  Using about:config, set network.dns.disableIPv6 to true.
Installation of Adobe Flash Player (credit): since Ubuntzilla installs a 32-bit version of Firefox, the 32-bit version of Flash Player is required. Download the tar’ed linux version of Flash Player from adobe and copy the libflashplayer.so file to the ~/.mozilla/plugins/ directory (create the plugins directory if necessary).

Reinstall Ubuntu Grub Bootloader After Windows Wipes it Out

If you run a dual-boot system with Linux and Windows, this has happened to you. You had to do your monthly reinstall of Windows, and now you don’t see the linux bootloader anymore, so you can’t boot into Ubuntu or whatever flavor of linux you prefer.

Here’s the quick and easy way to re-enable Grub.

1) Boot off the LiveCD

2) Open a Terminal and type in the following commands, noting that the first command will put you into the grub “prompt”, and the next 3 commands will be executed there. Also note that hd0,0 implies the first hard drive and the first partition on that drive, which is where you probably installed grub to during installation. If not, then adjust accordingly.

sudo grub

> root (hd0,0)

> setup (hd0)

> exit

Reboot (removing the livecd), and your boot menu should be back.

Only read below if Windows is now missing from the boot menu

If you installed Ubuntu before you installed Windows, then Ubuntu will not have anything in the grub configuration for Windows. This is where you’ll have to do a bit of manual editing to the grub boot menu file.

If you open the file /boot/grub/menu.lst with the following command:

sudo gedit /boot/grub/menu.lst

You’ll see a sample section for Windows, which you’ll want to uncomment and add to the boot menu list in whatever position you want it in. (uncomment by removing the #’s)

# title   Windows 95/98/NT/2000
# root   (hd0,0)
# makeactive
# chainloader   +1

Note that you should also verify that hd0,0 is the correct location for Windows. If you had installed Windows on the 4th partition on the drive, then you should change it to (hd0,3)

Credit

Renumber Partitions in Ubuntu

Boot into Ubuntu using a live CD.  Open a terminal window and run fdisk by executing:

sudo fdisk /dev/sda

Press x to navigate to the advanced menu, then press f to fix the partition order.

It may be necessary to update grub’s configuration after renumbering partitions. Update any partition references in the notation “hd(0,1)” – the second number may have to be changed to reflect the new partition numbers.

It’s a good idea to check for any changes to partition UUIDs as a result of renumbering.  In a terminal window, run:

ls -l /dev/disk/by-uuid

Compare the output from this to grub’s menu file. Make certain the “root=UUID=0000000000” parameter is correct on any line beginning with “kernel”.

Credit: https://lists.ubuntu.com/archives/ubuntu-uk/2008-January/010753.html

Microsoft Word: Make 2003 & 2007 versions coexist

For information on installation order of multiple versions of Office, see http://support.microsoft.com/default.aspx/kb/928091.

Once multiple versions of Word have been installed on the same machine, you’ll notice that every time you switch between versions, it comes up with an irritating installer/configuration dialog before Word starts. To prevent this, the following commands can be run to add registry values that will fix the problem:

reg add HKCU\Software\Microsoft\Office\11.0\Word\Options /v NoReReg /t REG_DWORD /d 1

reg add HKCU\Software\Microsoft\Office\12.0\Word\Options /v NoReReg /t REG_DWORD /d 1

Thanks to David Overton, for this little tidbit.

David also writes about another problem where the EULA appears every time an application is opened. Read about it here.