Search This Blog

Saturday, January 19, 2013

Commands used after installing Ubuntu

 

To install Drivers and VLC

  • sudo apt-get update
  • sudo apt-get install ubuntu-restricted-extras
  • sudo apt-get install vlc  
  

To Install JAVA from bin file jdk-6u39-linux-i586.bin

 Remove open JDK

  • sudo apt-get purge openjdk*
Copy .bin java file to dir /usr/lib/jvm (I Created jvm folder) using sudo
i.e 
  • cd /usr/lib
  • sudo mkdir jvm
  • cp sourceFilePath/jdk-6u39-linux-i586.bin /usr/lib/jvm/
  • sudo chmod +x /usr/lib/jvm/jdk-6u39-linux-i586.bin
  • gedit ~/.bashrc 
  • export JAVA_HOME='/usr/lib/jvm/jdk1.6.0_39'
    PATH=.:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH 
  • which java 
    • Above command will return /usr/lib/jvm/jdk1.6.0_39     

Install Softwares

  • sudo apt-get install wireshark
  • sudo apt-get install tshark
  • sudo apt-get install ns2

To Enable Root Account

  • sudo passwd root
  • sudo sh -c 'echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf'
         [Ref:] http://www.techlw.com/2012/05/enable-login-as-root-in-ubuntu-12041110.html


Move Minimize,Maximize & Close Button to Right 

  • sudo apt-get install gconf-editor 
  • gconf-editor
  • Go to the following: 'apps' -> 'metacity' -> 'general' Find the "button_layout" parameter,
  • Right mouse click, and select Edit Key.
  • Change the value to the following: menu:minimize,maximize,close then Press Enter
        [Ref:] http://www.noobslab.com/2012/04/important-things-to-do-after-install_26.html

Adobe Reader invisble Menus

  • //from terminal
    • cd /etc/X11/Xsession.d
    • sudo gedit 98menuproxy
  • //open gedit & paste
    • export UBUNTU_MENUPROXY="acroread":$UBUNTU_MENUPROXY
  • //save file; log off and log on



Friday, January 18, 2013

Restore/Reinstall Grub 2 in Ubuntu

  1. Change your system boot priority to CD drive \ USB [depends on your installation media... I selected USB].
  2. Select option Run Ubuntu from this USB.
  3. Open the Terminal and run below command to find the partition where Ubuntu Installed.
    1. sudo fdisk -l [In my system on sda8]
Sample output is:

 Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63       80324       40131   de  Dell Utility
Partition 1 does not start on physical sector boundary.
/dev/sda2   *       81920    31145983    15532032    7  HPFS/NTFS/exFAT
/dev/sda3        31145984   197792279    83323148    7  HPFS/NTFS/exFAT
/dev/sda4       197792280   625141759   213674740    f  W95 Ext'd (LBA)
/dev/sda5       197792343   354474224    78340941    7  HPFS/NTFS/exFAT
Partition 5 does not start on physical sector boundary.
/dev/sda6       354474288   438606629    42066171    7  HPFS/NTFS/exFAT
/dev/sda7       438606693   522739034    42066171    7  HPFS/NTFS/exFAT
Partition 7 does not start on physical sector boundary.
/dev/sda8       522739712   613423103    45341696   83  Linux
/dev/sda9       613425152   625141759     5858304   82  Linux swap / Solaris

  • Execute following 15 commands one by one, then restart your system and revert back the boot priority.
    1. sudo mount /dev/sda8 /mnt
    2. sudo mount --bind /dev /mnt/dev
    3. sudo mount --bind /dev/pts /mnt/dev/pts
    4. sudo mount --bind /proc /mnt/proc
    5. sudo mount --bind /sys /mnt/sys
    6. sudo chroot /mnt
    7. grub-install /dev/sda
    8. grub-install --recheck /dev/sda
    9. update-grub
    10. exit
    11. sudo umount /mnt/dev/pts
    12. sudo umount /mnt/dev
    13. sudo umount /mnt/proc
    14. sudo umount /mnt/sys
    15. sudo umount /mnt

      Wednesday, January 9, 2013

      To Include JavaDoc in NetBeans

      In NetBeans IDE [my version 7.2.1]
      1. Click Tools -> Java Platform. [Java Platform Manager will open.]
      2. Select the platform to which you want to add Javadoc in the left panel of the dialog box. [I selected JDK 1.7]
      3. In the Javadoc tab, click 'Add ZIP/Folder' and specify the location of the Javadoc folder.
      4. Click Close.

      Tuesday, January 8, 2013

      GATE Scholarship on-line submission 2012-13

      Follow below instructions to apply for GATE Scholarship 2012-13. [Common for 2011 and 2012 batch]

      1. Click on link: http://www.aicte-india.org/PGScholarship.htm. There are 3 steps to complete this [Try to access with Internet Explorer]
      2. Get your Institute ID [Step 1 from site]
      3. Change the IE Security setting as bellow.
        1. Internet Options -> Security Tab -> Click on Internet -> Security Level for this Zone (Make it Low)
        2. Un check option 'Enable Protected Mode'.
        3. Restart IE
        4. Press and Hold CTRL key while clicking 2nd Step, this will install 'Siebel high interactivity framework' automatically. [We have try 2 or 3 times for the proper installation]
      4. Try to generate student id, details should match exactly the same information updated by the college.   [Step 2 from site]
      5. If Students are not able to generate student id, college has an option to pull the details from AICTE web site along with student id.
      6. Now click on Step 3 [ from site]. If the above mentioned installation is proper we will get a screen asking details like, State, Institute ID, Student ID and DOB, then fill the necessary details as given in below step 8, and skip below step 7.
      7. If the above installation is NOT proper the site will ask for User ID and Password, [Try Several times to get the proper installation]  OR else we have another way to complete 3rd step i.e we need to login with college's AICTE ID and password, same can be done only from authorized office staff member of college.This ID and password will not disclose to students.[Most of students from our college completed this Step 3 with the help of college]
      8. Following are the Details required to complete 'Step 3' all are Mandatory .
        1. Institution ID [ from Step1] 
        2. Student ID     [ from Step2]
        3. Date Of Birth
        4. Gate Reg No
        5. Gate Score
        6. Gate Year
        7. SBI A\C No
        8. Branch Name 
        9. IFSC Code 
        10. Mobile 1 
        11. Mobile 2\Land Line 
        12. E Mail 1 
        13. E Mail 2
        14. Scanned copy of GATE Score card 
        15. Scanned copy of SBI Passbook i.e page containing A\C no, IFSC Code, photo etc. [Format not specified you upload these files in JPG or PDF].