Tuesday, April 24, 2012

Ubuntu Command Collection

  • install debian file:
sudo dpkg -i package_name.deb
  • install dependency:
sudo apt-get -f install
  • install software:
sudo apt-get -f install package_name
  • install bundle file:
sudo sh file_name.bundle
  • install bin/sh file:
chmod +x file_name.bin
./file_name.bin
  • Installing WIRESHARK's dumpcap without allowing non-root users to capture packets:
setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap
  • Find the MAC address:
ifconfig

References:
  1. WIRESHARK:

Monday, April 9, 2012

Generics are not supported in -source 1.3 error in Maven Project

When compiling via maven project, you may have encountered following error:
generics are not supported in -source 1.3 error in Maven Project. use -source 5 or higher to enable generics.

Annotation is not allowed in -source 1.3 use -source 5 or higher to enable annotation.

To solve this you must add the below lines at your pom.xml :


    
        
            org.apache.maven.plugins
            maven-compiler-plugin
            
                1.5</source>
                1.5