2010-04-15

Syntax error near unexpected token `)'

I was trying to make a case statement in bash, and was getting this error:

./check: line 8: syntax error near unexpected token `)'
./check: line 8: `      1)'

Turns out this is the error you get if you forget the ;; at the end of each code block.

2010-04-14

Ubuntu 10.04 Boot Issues

I loaded Beta 2 of Lucid Lynx on a machine; it wouldn't get past the splash screen. I had to hit the spacebar during the Live CD boot to get it to show the boot log; this prevented the splash screen from loading and allowed me to install.

But it wouldn't boot afterwards; it would lockup in the splash screen. Turns out that the menu fr Grub 2 can only be accessed if you hold SHIFT down while booting; then you can remove "quiet splash" from the kernel command line, and boot with CTRL+X.

After it loads, edit /etc/default/grub and change CRUB_CMDLINE_LINUX_DEFAULT to:

GRUB_CMDLINE_LINUX_DEFAULT=""

Then run update-grub (the above has to be done as root), and the system will continue to boot correctly. The bug seems to be in a package called plymouth; perhaps it will be fixed later.