I just finished another semester at school and had a nice Christmas. I decided it was time for my Acer to be RIS'd. I just finished installing Windows XP, and now my BT4 is also up and running.
Code:
/dev/sda1 Recovery Partition
/dev/sda2 Windows XP *Bootable
/dev/sda5 NTFS Partition
/dev/sda6 Linux Ext2 /boot
/dev/sda7 Linux Swap
/dev/sda8 Linux ReiserFS /
Now, the first thing I will do is update the kernel.
Code:
apt-get update
apt-get install -d linux-image
cd /var/cache/apt/archives/
dpkg -i --force-all linux-image-2.6.30.9_2.6.30.9-10.00.Custom_i386.deb
apt-get dist-upgrade
dpkg -i --force-all libssh2_1.2.2-bt0_all.deb
dpkg -i --force-all samdump2_2.0.1-bt0_i386.deb
make-ssl-cert generate-default-snakeoil --force-overwrite
apt-get dist-upgrade
Before I reboot, I will create a backup of /boot/grub/menu.lst file.
Code:
cd /boot/grub
cp menu.lst menu.lst.bak
reboot
I will modify the vga mode and splashimage. I will also remove the older kernel entries. This is a copy of my working /boot/grub/menu.lst file.
Code:
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 4
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=a756cd1e-8c04-4d48-975c-93bf4701d09b ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=11a08b91-4803-4a1c-98c3-ba0e61d07a59
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=0x317 resume=/dev/hda5
# defoptions=vga=0x317
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
splashimage=(hd0,5)/grub/bt4.xpm.gz
title Ubuntu 8.10, kernel 2.6.30.9
uuid 11a08b91-4803-4a1c-98c3-ba0e61d07a59
kernel /vmlinuz-2.6.30.9 root=UUID=a756cd1e-8c04-4d48-975c-93bf4701d09b ro vga=0x312
initrd /initrd.img-2.6.30.9
quiet
title Ubuntu 8.10, kernel 2.6.30.9 (recovery mode)
uuid 11a08b91-4803-4a1c-98c3-ba0e61d07a59
kernel /vmlinuz-2.6.30.9 root=UUID=a756cd1e-8c04-4d48-975c-93bf4701d09b ro single
initrd /initrd.img-2.6.30.9
title Ubuntu 8.10, memtest86+
uuid 11a08b91-4803-4a1c-98c3-ba0e61d07a59
kernel /memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Microsoft Windows XP Professional
root (hd0,1)
savedefault
makeactive
chainloader +1
I will remove the files from the previous kernel.
Fix the Dragon Icon for non-root user.
Code:
unzip -o /root/.kde3/share/icons/nuvoX_0.7/kmenu-dragon.zip -d /home/*/.kde3/share/icons/nuvoX_0.7/
unzip -o /root/.kde3/share/icons/nuvoX_0.7/kmenu-dragon.zip -d /etc/skel/.kde3/share/icons/nuvoX_0.7/
mkdir /opt/kde3/share/icons/nuvoX_0.7/
unzip -o /root/.kde3/share/icons/nuvoX_0.7/kmenu-dragon.zip -d /opt/kde3/share/icons/nuvoX_0.7/
Install Compiz
Code:
apt-get install compiz compiz-fusion-plugins-extra compiz-fusion-plugins-unsupported simple-ccsm fusion-icon
Install Ruby on Rails
It looks like Ruby is already installed and it is the version I wanted to use.
Code:
ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
Next, we'll check for RubyGems.
I will upgrade to the latest RubyGems.
Code:
cd ~
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
tar -zxvf rubygems-1.3.5.tgz
cd rubygems-1.3.5
ruby setup.rb
RubyGems is now installed to /usr/bin/gem. *Note: /usr/bin/gem is a symbolic link to /etc/alternatives/gem which also a symbolic link to the /usr/bin/gem1.8 binary.
Updating RubyGems
Code:
gem update --system
Updating RubyGems
Nothing to update
Installing Rails
Code:
rails -v
Rails 2.3.5
Installing MySQL for Ruby
Code:
apt-get install mysql-server mysql-client libmysql-ruby libmysqlclient-dev
gem install mysql
*Note: Rails finds the default MySQL socket file in the /tmp/mysqld.sock path. In Debian, change the railsapp/config/database.yml file to reflect the real /var/run/mysqld/mysqld.sock path.
Code:
socket: '/var/run/mysqld/mysqld.sock'
Reset MySQL Password (More secure than --skip-grant-tables method.)
First, kill the server.
Code:
kill `cat /var/run/mysqld/mysqld.pid`
Create a file called ~/mysql-passwd and insert the following. *Must be two lines.
Code:
UPDATE mysql.user SET Password=PASSWORD('newpassword') WHERE User='root';
FLUSH PRIVILEGES;
The following will reset the root MySQL password.
Code:
mysqld_safe --user=mysql --init-file=~/mysql-passwd &
'KDE Menu > Services > Mysql' has bad commands. Fixed the start and stop...
Code:
sh -c "/etc/init.d/mysql start"
sh -c "/etc/init.d/mysql stop"
SQL Code to create a database named 'projectRails_development'.
Code:
CREATE DATABASE `projectRails_development` ;
Installing phpMyAdmin
Code:
apt-get install phpmyadmin
*Note: It will install to the /usr/share/phpmyadmin path and create /etc/apache2/conf.d/phpmyadmin.conf which is a symbolic link to the /etc/phpmyadmin/apache.conf file.