Posts tagged with: linux


Intallation CUDA to Ubuntu 12.10 with Optimus Nvidia Cards

I installed Ubuntu 12.10 to my brand new machine but as always I started to deal lot of deriver problems coming around. Most consuming trouble was about the Nvidia drivers. I installed all kind of drivers suggested by the Additional Drivers tool and the Nvidia website but I cannot get my Graphic card working. After hours of investigation see that with the new generation notebooks with Nvidia cards there is a new technology called Optimus. With that system, new machines have two different graphic cards as the Intel’s native one on the mother board and Nvidia Card. To prolong the battery life, Intel card is working for simple graphic rendering where as Nvidia comes into play with hard rendering problems so that machine can keep the battery life better in hours. However, Nvidia is deficient to provide a driver supporting new tech on Linux machines. As always solution is taken by the open source approach, Bumblebee driver interface is developed. In Continue Reading

Share

Simple hack to connect an authentication needed internet. (like in Starbucks)

For the notion of tradition I need to say that “all the information for educational purpose”.

To make use of that trick, you should able to connect to the LAN but cannot connect to internet since it is waiting to fill a authentication form that is not free to fill(generally, if it is free don’t mass your mind).

We follow the process as, first look the LAN for other hosts’ IP addresses. Find a good looking IP (luckily connected to internet already.). Then retrieve the MAC address of that IP by using ARP protocol. Set your MAC address to retrieved one. Check whether you can surf. If you can’t, try another victim IP. Continue Reading

Share

A bash script for Linux to extract all kind of compressed file from console.

Open ~/.bashrc file with your favorite editor and paste below script to the bottom of the file.

extract () {
if [ -f 1 ] ; then     case1 in
     *.tar.bz2) tar xvjf 1 ;;      *.tar.gz) tar xvzf1 ;;
     *.bz2) bunzip2 1 ;;      *.rar) rar x1 ;;
     *.gz) gunzip 1 ;;      *.tar) tar xvf1 ;;
     *.tbz2) tar xvjf 1 ;;      *.tgz) tar xvzf1 ;;
     *.zip) unzip 1 ;;      *.Z) uncompress1 ;;
     *.7z) 7z x 1 ;;     *) echo "don't know how to extract '1'..." ;;
   esac
else
   echo "'$1' is not a valid file!"
fi
}

then write “extract” on console with the file you want to extract and see the effect.

extract bla.tar.gz
Share


Use Compiz in Linux Mint 13 MATE

There is some things you have to do to get Compiz work.

  • Install the packet “compizconfig-settings-manager”.
  •  In a terminal window write “compiz –replace”     (When you want Compiz start automatic you can open Control Center -> Startup Applications, and add a new post Continue Reading
Share


Creating Custom Linux Command

Sometimes you may need to repeat lots of linux command on terminal for any aim. It is some time so boring to type all the commands again and again so the solution to create  own commands to execute all the repetition in one.

All the commands are kept on /bin directory s we just need to create a file and name as the command that we’ll use. Then we need to make the file readable and executable. Continue Reading

Share

Today's Linux Console Command

It is good if you are working on console and you don’t want to change it for any little text addition to any file. Here is the command:

echo “this text will be added” | sudo tee “path/to/the/file.txt”

Share

Pages:12