Pages

Tuesday, August 31, 2010

Lab 4 - Solution

Lab 4 - Advanced spread sheet techniques

Download now or preview on posterous
sample.ods (30 KB)
You are to download this file. It is self explanatory. You are to supposed to reproduce this sheet. Follow all the steps mentioned and thats it for the lab. Once again as always make sure submit it online on your respective drop.

Saturday, August 28, 2010

Ubuntu Login accounts

Your login accounts have been made, you can get them from lab support. Make sure you get your passwords before you come in lab on Tuesday!

Wednesday, August 25, 2010

Lab work submission

All the labwork will be submitted online. I have created separate drops for all sections. All labwork, assignments and projects should be submitted online.

The follwoing drops have been created

Data Communication and Networks lab - El-1                                              www.drop.io/dcn1fa2010

Data Communication and Networks lab - El-2                                              www.drop.io/dcn2fa2010

The password for the guest account is 123456 for all the drops. Make sure  you submit your work on your designated drop.

Submission format

You are advised to strictly follow the submission guidelines.

If you have more than one files zip them or tar them into a single archive. Rename the archive to <lab #>-<roll number> e.g. lab11-104535

Any work submitted in non-standard format will not be acceptable and will result in loss of marks.

Lab work submission

All the labwork will be submitted online. I have created separate drops for all sections. All labwork, assignments and projects should be submitted online.

The follwoing drops have been created

Programming for Engineers lab - El-1                                              www.drop.io/p4e1fa2010

Programming for Engineers lab - El-2                                              www.drop.io/p4e2fa2010

Programming for Engineers lab - El-5                                              www.drop.io/p4e5fa2010

Programming for Engineers lab - El-6                                              www.drop.io/p4e6fa2010

The password for the guest account is 123456 for all the drops. Make sure  you submit your work on your designated drop.

Submission format

You are advised to strictly follow the submission guidelines.

If you have more than one files zip them or tar them into a single archive. Rename the archive to <lab #>-<roll number> e.g. lab11-104535

Any work submitted in non-standard format will not be acceptable and will result in loss of marks.

Lab work submission

All the labwork will be submitted online. I have created separate drops for all sections. All labwork, assignments and projects should be submitted online.

The follwoing drops have been created

Programming for Engineers lab - El-1                                              www.drop.io/p4e1fa2010

Programming for Engineers lab - El-2                                              www.drop.io/p4e2fa2010

Programming for Engineers lab - El-5                                              www.drop.io/p4e5fa2010

Programming for Engineers lab - El-6                                              www.drop.io/p4e6fa2010

The password for the guest account is 123456 for all the drops. Make sure  you submit your work on your designated drop.

Submission format

You are advised to strictly follow the submission guidelines.

If you have more than one files zip them or tar them into a single archive. Rename the archive to <lab #>-<roll number> e.g. lab11-104535

Any work submitted in non-standard format will not be acceptable and will result in loss of marks.

Lab 3 - Ns2 introduction

Download now or preview on posterous
test.pdf (171 KB)

Lab 3 - Ns2 introduction

Download now or preview on posterous
test.pdf (171 KB)

Removing Ubuntu

It is rumoured that uninstalling Ubuntu is not possible. Well the news is,  it is very much possible to remove Ubuntu.

Here is how to do it.

1. Boot into windows

2. Go to control panel -> Administrative tools -> computer management -> disk management.

3. Over here select the drive on which ubuntu is installed, right click and select delete drive

4. Now you may wish to turn it into a new drive  by right clicking and creating a new volume, partition logical drive etc, based upon your configuration

5. Insert a windows cd. windows xp or windows 7

6. Reboot your computer and startup select boot options (usually F12 key brings up this menu) and select boot from CD.

7. Press any key to continue

8. Now while the CD loads do not press any function key.

9. On the menu that finally appears press R to enter the recovery console

10. It will search for already installed windows

11. Select appropriate number for the windows install, usually with a single windows installation it is 1.

12. Now if asked for a password provide the administrator password. This is usually the password with which you log in or in case you dont have one then just press enter.

13. Issue the command fixmbr

14. It will give some scary warnings, at your own risk press "y" :p

15. Your done. Reboot and enjoy! :)

Sunday, August 22, 2010

My new blogs

I have made two new blogs to keep things neat and clean. The posts on all the blogs would also show up here but you may feel more comfortable visiting the individual blogs.

For Programing for Engineer students

p4e.posterous.com

For Data Communication and Network students

dcn.posterous.com

Otcl Tutorials

Here are a few links to Otcl tutorials

http://nile.wpi.edu/NS/otcl.html

http://www.isi.edu/nsnam/otcl/doc/tutorial.html

A full tutorial on tcl and ns2 is also attached

Download now or preview on posterous
tcl_ns2.pdf (237 KB)

You can also start looking at the tutorial below, so that you are comfortable in the next lab.

Otcl and ns2

I have been receiving emails on how to run otcl code. In order to run ns2 code you need to have ns2 installed which is already installed in the lab. In case you wish to install it on your home PC's, you can refer to the following post regarding installation instructions. http://zaidmunir.blogspot.com/2010/06/installing-ns2-on-ubuntu-910.html

Friday, August 20, 2010

Ubuntu Installation - Tips and tricks

There will be a session tomorrow on Saturday 21st of August 2010 at 11 am in the auditorium. You are all invited to attend. The session will focus on various methods of installing Ubuntu on your computers and related issues. Other issues related to installation of softwares, missing drivers or issues related to networking etc. will also be discussed.

Tuesday, August 17, 2010

DCN lab 2 - FALL 2010

In this lab we will be learning tcl and Otcl. The lab manual has been placed at the photocopier you are supposed to fill it up and submit it by the end of today's lab.

You can google and follow any tutorial on tcl that you wish. A list of tcl tutorials is also given here:

1. http://www.tcl.tk/man/tcl/tutorial/tcltutorial.html
2. http://users.belgacom.net/bruno.champagne/tcl.html

Monday, August 16, 2010

Quote of the day

"Muft ke cheez mein makhi zaroor hoti hai", Shoaib Bhatti.

So true for Ubuntu :p :D

Sunday, August 15, 2010

Ubuntu suxs when you get to know it well! Its a nightmare

Make sure you do this

sudo dpkg-reconfigure adduser

Give "no" for an answer

Also don't forget to add this line to ~/.profile

umask 077

Then you may also want to do this

cp ~/.profile /etc/skel

this will change the default (pathetic) rights on files created by a user form 755 to 700. Note: this change will only be for users that are added after you made this change.

Or instead of changing and copying the ~./profile into etc/skel you may just simply change /etc/profile. At the end of this file you would find umask 022 change it to 077. Enjoy :)
Reference:
http://ubuntuforums.org/showpost.php?p=4461165&postcount=4

Friday, August 6, 2010

Recovering lost Ubuntu installation after installing windows

You can  try installing and using Boot-repair, for instructions on installing and using it refer to the following link. (Note: i have not personally tried it but seems user friendly)
https://help.ubuntu.com/community/Boot-Repair

Or alternately you can choose to do it manually

Boot from a live cd of Ubuntu 10.04.
First, find out about your drives.
sudo fdisk -l
Then check to see if the drive is already mounted or not
df
If it is not mounted then mount it first. This is the drive in which Ubuntu is installed. In this example i will be mounting /dev/sda2 on to the folder /home/mtf
mkdir /home/mtf
sudo mount /dev/sda2 /home/mtf
In case you are not sure which drive has Ubuntu installed, you would like to look for a drive with System field as "Linux" in the output of sudo fdisk -l
If you have multiple such drives and are confused, then you can check the drives by mounting each of them and looking at the contents to see which is which. You can mount multiple drives on different folders using the steps mentioned above. You may also mount to the same folder (not consecutively) by unmounting the former drive.In this example /dev/sda2 is unmounted and /dev/sda3 is mounted in its stead
sudo umount /home/mtf
sudo mount /dev/sd3 /home/mtf
Once the drive is mounted
sudo grub-install --root-directory=/path-of-mounted-drive-with-ubuntu-install /dev/sdx
Replace x with the letter for your hard disk.

In my example, /dev/sda3 is the drive with Ubuntu installation, mounted on /home/mtf so the command would be
sudo grub-install --root-directory=/home/mtf /dev/sda
Note that in the above case it is /dev/sda and NOT /dev/sda2

Additionally to ensure everything is in order boot into your Ubuntu and then do the following to fix any missing or malfunctioning entries in grub
sudo update-grub

https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows