Here is a simple bash oneliner to rename all folders/files in a directory to lower case
for old in * ; do new=`echo $old | tr "[[:upper:]]" "[[:lower:]"`; mv $old $new; done;
for old in * ; do new=`echo $old | tr "[[:upper:]]" "[[:lower:]"`; mv $old $new; done;
$ php -v
PHP 5.3.3 (cli) (built: Aug 22 2010 19:41:55)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
$ curl -O http://us.php.net/distributions/php-5.3.3.tar.gz
$ tar -xzvf php-5.3.3.tar.gz
$ cd php-5.3.3/ext/pcntl/
$ phpize
$ ./configure
$ make
$ sudo make install
$ php -i | grep pcntl
pcntl
pcntl support => enabled
Q: I am a complete moron and forgot my password. How can I get back into my system?
(Hey, YOU forgot it, I think that gives me the right to do some degrading before letting you back in!)
A:
1. Turn off your computer.
2. Tap it 3 times
3. Say your favorite magic word.
---- If that doesn't fix your problem, do the steps below... #-o
4. Turn your computer on.
5. Press ESC at the grub prompt.
6. Press e for edit.
7. Highlight the line that begins kernel ........., press e
8. Go to the very end of the line, add rw init=/bin/bash
9. press enter, then press b to boot your system.
10. Your system will boot up to a passwordless root shell.
CAUTION: This is a FULL ROOT SHELL! You can damage your system if not careful!
11. Type in passwd. Set your password.
12. Type in reboot.
NOTE: steps 1-3 may help at this point.
13. Bow down to me....
$ sudo su - postgres # become the postgres user
$ createuser -P lance # I'm usually a super user
$ exit # exit out of the postgres user
$ createuser account1 ... # Create the standard accounts
$ sudo vi /etc/postgresql/8.2/main/pg_hba.conf
$ sudo vi /etc/postgresql/8.2/main/postgresql.conf
$ sudo /etc/init.d/postgresql-8.2 stop
$ sudo mv /var/lib/postgresql/8.2 /data/postgresql/8.2
$ sudo ln -fs /data/postgresql/8.2/main /etc/postgresql/8.2/main/pgdata
$ sudo /etc/init.d/postgresql-8.2 start
$ sudo -u postgres psql < /usr/share/postgresql/8.2/contrib/adminpack.sql