Tuesday, February 18, 2014

CREATING A PRISTINE NEW INSTALL : Ubuntu 12.04 (LTS)

I decided to install Ubuntu on my laptop and customise it to my liking.
So, I chose the Ubuntu 12.04 (LTS) and went through the following steps
to customize my system :-

1.    Additional softwares installed from terminal :-

    apt-get install gparted
    apt-get install git                  // to install metasploit and Veil
    sudo apt-get install freemind
    apt-get install gimp
    apt-get install vlc
    apt-get install apache2
    apt-get install liferea           // rss reader
    apt-get install unetbootin    // install a distro (iso) on USB device
    apt-get install zenmap
    apt-get install wireshark
    apt-get install proxychains
    apt-get install openjdk-7-jdk

    [add the following two lines to ~/.bashrc file]
      export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386
      export PATH=$PATH:/usr/lib/jvm/java-7-openjdk-i386/bin


    ****REMASTERSYS****
    sudo su
    wget -O - http://www.remastersys.com/ubuntu/remastersys.gpg.key | apt-key
                add -
    Add the lines to /etc/apt/sources.list(sudo gedit /etc/apt/sources.list)
      #Remastersys Precise
      deb http://www.remastersys.com/ubuntu precise main

    sudo apt-get update && sudo apt-get install remastersys remastersys-gui

    ****FIREFOX******
    apt-get install firefox

    You can update your system with unsupported packages from this untrusted
    PPA by adding ppa:mozillateam/firefox-next to your system's Software
    Sources.
   

   deb http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu  
       quantal main 
   deb-src http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu  
       quantal main 


    install NetVideoHunter plugin for firefox
   
    ****MULTI MEDIA PLUGINS / CODECS****
    apt-get install mpg123
    apt-get install adobe-flashplugin
    apt-get install gstreamer0.10-plugins-bad gstreamer0.10-ffmpeg 
                gstreamer0.10-plugins-ugly
    apt-get install ffmpeg    // needed to play .flv files in movie player or vlc
    (to see how to do a screencast from terminal or how to play back TV on
    desktop see other posts)

    apt-get install ubuntu-restricted-extras

   
2.    Installed using Software Centre

       recordmydesktop and the gui
       netbeans
       guvcview     // for video and audio recordings.

3.    Software downloaded as tarballs / .deb and installed :-

      Tor Browser Bundle

      theHarvester2.2 from Edge Security website

      tar -zxvf truecrypt-7.1a-linux-x86.tar.gz (Download and extract tarball)
      sudo ./truecrypt-7.1a-linux-x86

      ****RELINUX******
     relinux_0.4a1-5_i386.deb
     sudo dpkg -i relinux_0.4a1-5_i386.deb

      ****GOOGLE EARTH******
     download the .deb file for googleearth package
     apt-get install lsb-core
     sudo dpkg -i googleearth*.deb
       
     ****VIRTUAL BOX***
    sudo dpkg -i 'virtualbox-4.3_4.3.4-91027~Ubuntu~raring_i386.deb'

    In order to be able to use the usb and external cd drive etc :-
    (launch virtualbox -> File -> Preferences -> Extensions - > choose the
    extension pack you have downloaded for your install for example ,
    Oracle_VM_VirtualBox_Extension_Pack-4.3.4-91027.vbox-extpack -> Click
    OK and install the extension pack)

    Next switch off (DONOT FREEZE THE VM, TURN IT OFF) the virtual
    machine and then open the settings for the vm and enable USB2.0 EHCI    
    Controller checkbox.

    Next add user to vboxusers group and restart your host OS :-
    sudo usermod -aG vboxusers yourUserName

    (VIMP :- You will only see your usb after you have restarted the host OS)

    (Also install the guest Aditions for every VM you create to enable shared
    folder with host OS and clip board sharing)
    
4.    Installations using git

      (a)    Veil 
          sudo git clone https://github.com/Veil-Framework/Veil.git
          cd /opt/Veil-Evasion
          sudo ./update.sh

      (b)    MSF install
          First uninstall ruby1.8.3 which is part of the base install of Ubuntu12.04
          sudo apt-get purge ruby1.8.*
         
          Install ruby1.9.1 and gems and verify their versions :-

          sudo apt-get install ruby1.9.1
          ruby -v
          sudo apt-get install rubygems1.9.1
          gem -v
          sudo apt-get install ruby1.9.1-dev

          Install postgresql

          sudo apt-get install postgresql
          sudo apt-get install libpq-dev

          Additional installs

          sudo apt-get install libpcap-dev

          cd /opt
          mkdir metasploit
          cd /opt/metasploit
          sudo git init
          sudo  git clone git://github.com/rapid7/metasploit-framework.git
                                  /opt/metasploit

          Now install the gem bundler & invoke it to install remaining gem bundle :-
          sudo gem install bundler
          sudo bundle install
      
          note:- Remember, if you donot pull down metasploit and clone it into
          /opt/metasploit directory first, you will not have any Gemfile, which
          carries the gem dependencies, that are installed by gem install bundler.
         

5.    After going through all the hardwork of customizing my installation, I decided it would be best to create an ISO image of my system, which I may either install on any new machine or create a VM with. So I used Remastersys.

Thanks for Reading and Enjoy !

No comments:

Post a Comment