Sunday, July 29, 2007

installing vmware tools in vmware fusion

my virtual machine (guest OS) is feisty-i386-server. the host is mac0s using vmware fusion. in order to activate the shared folder, we need to install vmware tools, by:

1. Select Virtual Machine -> Install VMware Tools
2. Go to the vm and mount the cd using
% sudo mount /dev/cdrom /media/cdrom0

3. copy the VMwareTools-e.x.p-48339.tar.gz to the home directory,
% cp /media/cdrom0/VMwareTools-e.x.p-48339.tar.gz $HOME

4. extract the file
% tar xvfz VMwareTools-e.x.p-48339.tar.gz

5. go to the vmware-tools-distrib and install:
% cd vmware-tools-distrib
% sudo ./vmware-install.pl

6. just accept the all the default values.

7. don't forget to reboot the system!
% sudo reboot


grub in ubuntu

few days without a post as I was so anxious to wait for my teeth operation, so kids don't forget to brush your teeth. It was a small operation, but operation is an operation. the pain is real.

just a quick and lite tips today:

if you need to find out where is your grub menu option, look no further in

/grub/boot/menu.lst

usually after being updated by the system [for example after installing/upgrading to a new kernel], the old one will be save as /grub/boot/menu.lst~

Tuesday, July 24, 2007

[fds part 1]: installing fedora directory server in ubuntu server 64-bit

1. download the fedora directory server (fds) from:
% wget http://directory.fedoraproject.org/download/fedora-ds-1.0.4-1.FC6.x86_64.opt.rpm
2. convert it to deb [--script was put there as it was warned by the system]:
% sudo alien fedora-ds-1.0.4-1.FC6.x86_64.opt.rpm --script
3. as it is amd64 version, we should use the termcap from fedora and do converting to deb again:
% wget http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os/Fedora/RPMS/libtermcap-2.0.8-46.1.x86_64.rpm % sudo alien libtermcap-2.0.8-46.1.x86_64.rpm
% sudo dpkg -i libtermcap_2.0.8-47.1.amd64.deb

[deleted as it found to be false]Should 32 bit version is used, we could directly install it using:
% sudo apt-get install termcap-compat [upto here]
we should do:
% wget http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/
libtermcap-2.0.8-46.1.i386.rpm
% sudo alien
libtermcap-2.0.8-46.1.i386.rpm
% sudo dpkg -i
libtermcap-2.0.8-47.1.i386.deb


4. We need Java, for feisty fawn you can do:
% sudo apt-get install sun-java6-bin

5. Setting JAVA_HOME enviroment variable:
% sudo vi /etc/profile

add these two lines on the last line:
JAVA_HOME=/usr/bin/java
export PATH JAVA_HOME

to make the modification take effect:
% . /etc/profile

test by
% echo $JAVA_HOME
/usr/bin/java [the expected output]

6. We also need apache:
% sudo apt-get install apache2-mpm-worker

as ubuntu recognize apache as apache and fedora recognize it as httpd, we need to create as symbolic link:
% sudo ln -s /usr/sbin/apache2 /usr/sbin/httpd

7. Installing the package:
% sudo dpkg -i fedora-ds_1.0.1-2_i386.deb

Creating a user and group for the daemon:
% sudo groupadd fds
% sudo useradd -s /bin/false -g fds fds

Next, setting up the server....