Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

« Newer Snippets
Older Snippets »
Showing 1-4 of 4 total  RSS 

command to install mysql gem in FC5

// installs the mysql gem with the correct locations of the mysql install, for some reason the installer can't find it on its own.

gem install mysql -- --with-mysql-include=/usr/include/mysql --with-mysql-lib=/usr/lib/mysql

create linux bootdisk and fix grub after windows reinstall

Boot Disk Method
1. Create boot disk.
For Fedora Core 3:
/sbin/grub-install /dev/fd0

For Fedora Core 4+:
mkbootdisk `uname -r`

2. Reinstall Windows.
3. boot with floppy then
grub-install /dev/hdb


Rescue CD
1. Boot using FC3 CD then
linux rescue
chroot /mnt/sysimage
grub-install /dev/hdb


http://www.fedoraforum.org/forum/showthread.php?t=1272

bluetooth port in linux

To find out the bluetooth port
hcitool inq

To synchronize linux time -

My motherboard's battery's kind of out - so I have do this at startup (I added this in /etc/rc.d/rc.local)
/usr/sbin/ntpdate pool.ntp.org 
« Newer Snippets
Older Snippets »
Showing 1-4 of 4 total  RSS